NASA-PDS / archive-viewer

Frontend React app for searching and viewing archived datasets
Apache License 2.0
0 stars 0 forks source link

Respect LIDVID versions when looking up supplemental metadata #10

Closed mdrum closed 3 years ago

mdrum commented 3 years ago

In cases where multiple versions of the same LID were present in the supplemental registry, lookups would fail and be ignored. Now,

  1. If a version ID is present in the initial lookup, that version ID will be passed to the query to the supplemental registry
  2. If no version ID is present in the initial lookup, the latest version that is present in the supplemental registry will be used

It appears that the primary PDS registry does not store multiple versions of the same datasets, so this logic was not used for that half of the lookup (VIDs will be stripped off).