Bug #6546


old metacat URIs should redirect to #view service

Added by Matt Jones over 9 years ago. Updated over 8 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


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

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:

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

Actions #1

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

Actions #2

Updated by Lauren Walker over 9 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.

Actions #3

Updated by ben leinfelder over 9 years ago

For the perl registry, I ended up needing another Metacat servlet method to get the docid when given a pid:
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.

Actions #4

Updated by Lauren Walker over 9 years ago

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

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.

Actions #5

Updated by ben leinfelder over 9 years ago

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

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)

Actions #6

Updated by ben leinfelder over 9 years ago

  • Target version set to 2.5.0
Actions #7

Updated by Matt Jones over 8 years ago

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

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:

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

Actions #8

Updated by Lauren Walker over 8 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