Project

General

Profile

Actions

Story #6294

closed

Replace Metacat API ecogrid links with D1 MN object service links

Added by Lauren Walker over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
Start date:
12/11/2013
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by ben leinfelder over 10 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

Actions #2

Updated by Lauren Walker about 10 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.

Actions

Also available in: Atom PDF