NASA-PDS / deep-archive

PDS Open Archival Information System (OAIS) utilities, including Submission Information Package (SIP) and Archive Information Package (AIP) generators
https://nasa-pds.github.io/deep-archive/
Other
7 stars 4 forks source link

Add compatibility with PDS API version 1.4.0 #161

Closed nutjob4life closed 6 months ago

nutjob4life commented 6 months ago

🗒️ Summary

Merge this to make the Deep Archive compatible with PDS API version 1.4.0. Note that this is a backwards-incompatible change and will no longer support earlier versions of the PDS API.

⚙️ Test Data and/or Report

With earlier PDS API and older Deep Archive:

$ pds-deep-registry-archive --version
pds-deep-registry-archive 1.1.4
$ pds-deep-registry-archive  --quiet --site PDS_ATM urn:nasa:pds:magellan_gxdr::1.0
$ wc -l magellan_gxdr_v1.0_20240222_*
      84 magellan_gxdr_v1.0_20240222_aip_v1.0.xml
     109 magellan_gxdr_v1.0_20240222_checksum_manifest_v1.0.tab
     109 magellan_gxdr_v1.0_20240222_sip_v1.0.tab
      89 magellan_gxdr_v1.0_20240222_sip_v1.0.xml
     109 magellan_gxdr_v1.0_20240222_transfer_manifest_v1.0.tab
     500 total

With the 1.4.0 PDS API (currently hosted at https://pds.nasa.gov/api/search-en-gamma/1):

$ pds-deep-registry-archive --version
pds-deep-registry-archive 1.2.0
$ pds-deep-registry-archive  --quiet --url https://pds.nasa.gov/api/search-en-gamma/1 --site PDS_ATM urn:nasa:pds:magellan_gxdr::1.0
$ wc -l magellan_gxdr_v1.0_20240222_*
      84 magellan_gxdr_v1.0_20240222_aip_v1.0.xml
     109 magellan_gxdr_v1.0_20240222_checksum_manifest_v1.0.tab
     109 magellan_gxdr_v1.0_20240222_sip_v1.0.tab
      89 magellan_gxdr_v1.0_20240222_sip_v1.0.xml
     109 magellan_gxdr_v1.0_20240222_transfer_manifest_v1.0.tab
     500 total

♻️ Related Issues