usnistgov / oar-pdr

The NIST Open Access to Research (OAR) Public Data Repository (PDR) system software
12 stars 10 forks source link

LPS: Support access to previous versions #258

Closed RayPlante closed 2 years ago

RayPlante commented 2 years ago

The landing page offers links to older versions of a dataset record; however these link simply link to the latest version of the page. These links were intentional placeholders until full support for accessing these old records. This PR brings this support to the Landing Page Service.

Across all of the PDR components, this capability relies heavily on a new resolver service (provided via the new oar-pdr-py repo). The purpose of this service is to resolve identifiers into different views of datasets in a variety of formats, be it NERDm, HTML, schema.org, etc.; this is accomplished via content-negotiation. Thus, with this PR, the LPS uses the new resolver service to pull its metadata. The API is slightly different from the RMM, so this PR adjusts for this as well.

In addition, this PR effects the following changes:

This PR is best tested via oar-docker using the test/version-access branch; this starts the resolver service and provides an updated coniguration. To test,

The LPS should also be tested under publish application.