Project

General

Profile

Bug #6546

old metacat URIs should redirect to #view service

Added by Matt Jones over 5 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/05/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

Researchers have complained that prior citations on the KNB metacat of the form:

https://knb.ecoinformatics.org/knb/metacat/nuding.7.6/knb

currently return a partially broken response. Instead, we should configure apache redirect all URLs of that for for the KNB to the associated URL for the view service for the data set, in this case:

https://knb.ecoinformatics.org/#view/doi:10.5063/AA/nuding.7.6

We need to consider how to redirect other skins other than the knb skin that are on that server, such as nrs and obfs.

History

#1 Updated by ben leinfelder over 5 years ago

You are proposing a redirect from a Metacat docid to a DataONE Identifier -- these are not always the same value and often there is a DOI shoulder added to the Metacat docid.
In many cases (e.g., those DOIs we minted when the KNB first came online as a DataONE MN) we can successfully prepend "doi:10.5063/AA" to the Metacat docid and redirect to the #view URI. In some cases where the package has been updated after we generated the batch DOIs, this will result in an error (the docid == identifier with no DOI prefix). There is no way for us to know (in the Apache configuration where I assume these rewrite rules will exist) which is correct redirect strategy to take. There should probably be a nice error page giving suggestions about how to search to locate the package they are trying to find.

#2 Updated by Lauren Walker over 5 years ago

We could update the Metacat KNB skin with a informational message about the new KNB redesign with a link to the new KNB Metadata view for that package.

#3 Updated by ben leinfelder over 5 years ago

For the perl registry, I ended up needing another Metacat servlet method to get the docid when given a pid:
https://knb.ecoinformatics.org/knb/metacat?action=getdocid&pid=doi:10.5063/AA/nuding.7.9
We could do a similar look up of the PID given a docid, just not sure when or how to call this kind of lookup, especially if we are trying to do it outside of Metacat.

If we kept this stuff in Metacat, then /knb/metacat/<docid>/<qformat> could easily redirect to the /#view/<DOI> version of it or the #view/docid version of it as appropriate for the given docid.
Similarly, /knb/metacat?action=read&docid=<docid>&qformat=<qformat> could redirect as well. Would not want to redirect when qformat=xml, of course.

#4 Updated by Lauren Walker over 5 years ago

  • Target version deleted (1.6.0)
  • Project changed from MetacatUI to Metacat

It looks like we have decided that we will redirect users to the new KNB /#view service from the /metacat/{docid} KNB metacat skin. This redirect will need to happen in metacat so we can easily lookup the guid for that docid.

#5 Updated by ben leinfelder over 5 years ago

  • Assignee changed from Lauren Walker to ben leinfelder
  • Status changed from New to Closed

Metacat trunk now has the short form Metatcat read URIs redirecting to the Metacat UI #view using the looked-up pid/identifier (which may or may not be the same as the docid depending on whether is is published with a DOI or came in via DataONE APIs)

#6 Updated by ben leinfelder over 5 years ago

  • Target version set to 2.5.0

#7 Updated by Matt Jones over 4 years ago

  • Assignee changed from ben leinfelder to Lauren Walker
  • Status changed from Closed to In Progress

Reopening this issue because it appears some of the urls are still not redirecting properly. There are many archived links to NCEAS data products using this form:

http://knb.ecoinformatics.org/knb/metacat/olyarnik.3/nceas

When resolved, this redirects to the KNB, but never gets past the spinning progress graphic.

#8 Updated by Lauren Walker over 4 years ago

  • Status changed from In Progress to Resolved

this issue was resolved on Metacat trunk (r8764) and should be deployed on KNB with Metacat 2.5.0.

r8764: redirect "short form" metacat read URIs to the the new Metacat UI using the configured UI context. This translates the docid -> pid to use the correct identifier for the correct service.

Also available in: Atom PDF