Story #6294
closedReplace Metacat API ecogrid links with D1 MN object service links
0%
Description
In the rendered EML view (MetadataView), the links to the individual data files are using the metacat API (metacat?action=read&qformat=metacatui&sessionid=&docid=df35d.21.2). Ben and I decided we would like to have consistency across the metacatui project by only using the D1 API.
Our solution is to change the links on the front-end by manipulating the DOM anchor tags href attribute after the MetadataView has rendered. We will switch out the Metacat API URL with the D1 /object/{pid} URL.
Updated by ben leinfelder almost 11 years ago
Note that this relies on the DataONE pid being indexed in SOLR as contained in the package (isDocumentedBy) otherwise we have no way of figuring out the correct pid to use in the /object/{pid} endpoint.
We'll have to do some fuzzy-mapping to figure out that the ecogrid docid is equivalent to the DataONE pid:
Data file with docid:
tao.2.1
is the same as:
doi:10.5063/AA/tao.2.1
And you can see the package relationship here:
http://knb.ecoinformatics.org/knb/d1/mn/v1/query/solr/fl=id,resourceMap,isDocumentedBy&wt=xml&q=formatType:*+isDocumentedBy:%22doi:10.5063/AA/tao.1.1%22
Updated by Lauren Walker almost 11 years ago
- Status changed from New to Resolved
The MetadataView now fuzzily matches these links to the ID's found in the resource map and replace them with the DataONE API object service URLs and current pids/DOI's.