sul-dlss / earthworks

Geospatial discovery application for Stanford University Libraries.
https://earthworks.stanford.edu
Other
21 stars 3 forks source link

Changes to Aardvark mapping #1114

Closed kimdurante closed 2 months ago

kimdurante commented 3 months ago

Some changes to the Aardvark metadata mapping

Also, phrases such as "Digital Map" should be detected and included in Map -- anything that contains "maps" or "map".

I have updated the mapping on line 8 here

marlo-longley commented 2 months ago

1 --

Curious if we can search for the words map/maps in the form genre string in the Yaml file here https://github.com/sul-dlss/searchworks_traject_indexer/blob/4c5d25b90ed8d24f4b6a2e57b75893011737537c/lib/translation_maps/geo_resource_class.yaml#L4

"form": [
{
"value": "Early Maps",
"type": "genre"
},
marlo-longley commented 2 months ago

2 -- example of a structured name: https://argo.stanford.edu/items/druid:rk962wd2562.json

See indexing: https://github.com/sul-dlss/searchworks_traject_indexer/blob/4c5d25b90ed8d24f4b6a2e57b75893011737537c/lib/traject/config/geo_aardvark_config.rb#L150

"contributor": [
{
"name": [
{
"structuredValue": [
{
"value": "Ptolemy",
"type": "name"
},
{
"value": "active 2nd century",
"type": "activity dates"
}
]
}
],
"type": "person",
"status": "primary"
},
{
"name": [
{
"structuredValue": [
{
"value": "Waldseemüller, Martin",
"type": "name"
},
{
"value": "1470-1519",
"type": "life dates"
}
]
}
],
marlo-longley commented 2 months ago

3 -- add DOI to this as well as purl https://github.com/sul-dlss/searchworks_traject_indexer/blob/4c5d25b90ed8d24f4b6a2e57b75893011737537c/lib/traject/config/geo_aardvark_config.rb#L181

Example with both DOI and purl: https://purl.stanford.edu/rh195hm5975

marlo-longley commented 2 months ago

4 -- if links to georeferenced map in the Cocina, populate this boolean value

https://github.com/sul-dlss/searchworks_traject_indexer/blob/4c5d25b90ed8d24f4b6a2e57b75893011737537c/lib/traject/config/geo_aardvark_config.rb#L221

should be applied to scanned maps that also have a georeferenced version keep it unexposed in the UI.

Could make a good storytime if there's time.

marlo-longley commented 2 months ago

@kimdurante re: the DOI, should it be displayed under "More Details At" with the Purl (bottom of the page image)? Or somewhere else? I have it indexed into the data, but not sure about the display. I might make this its own design ticket if we aren't sure yet. Thanks!

Image

marlo-longley commented 2 months ago

4 -- "To indicate whether or not a scanned map or other imagery has a georeferenced version." (https://opengeometadata.org/ogm-aardvark/#georeferenced)

Current behvior goes to a georef'd map and says yes it is georeferencesd. What it should be doing is -- going to a scanned map that has a georeferenced version. "True" sholud be on the scanned versions, not the georef'd versions.

Example: https://purl.stanford.edu/gm036df2527 -- The check for "true" may involve checking multiple fields

"type": "has other format",
"displayLabel": "Georeferenced Map",

or

{
"structuredValue": [],
"parallelValue": [],
"groupedValue": [],
"value": "https://earthworks.stanford.edu/catalog/stanford-px984sn6906",
"identifier": [],
"displayLabel": "Georeferenced map in EarthWorks",
"note": [],
"appliesTo": []
}

we also need to create a new field to hold the Earthworks link: https://opengeometadata.org/ogm-aardvark/#relation

marlo-longley commented 2 months ago

In the case of a georeferenced map we should have data in dct_source_sm -- but for example here https://earthworks.stanford.edu/catalog/stanford-kd514jp1398.json the data isn't coming through.

See https://github.com/sul-dlss/earthworks/issues/1152