CDLUC3 / ezid

CDLUC3 ezid
MIT License
11 stars 4 forks source link

407 fix datacite citation preview #532

Closed jsjiang closed 6 months ago

jsjiang commented 7 months ago

@rushirajnenuji @sfisher Hi Rushiraj and Scott, Here are the major changes for issue ticket:

  1. added package xmltodict for converting Datacite XML record to Python dictionary
  2. added function dcmsRecordToDict(record) to convert Datacite XML record to dict
  3. added function briefDataciteRecord(record) to convert Datacite XML record to a simplified format with data fields required for citation preview.
  4. added unit tests for briefDataciteRecord(record)

The changes are on ezid-dev (http://ezid-dev.cdlib.org/). Please review and let me know if you have questions.

Thank you

Jing

sfisher commented 7 months ago

I'm still trying to get my local environment set up, so wasn't able to test, but it looks ok, I believe.

jsjiang commented 6 months ago

@rushirajnenuji @sfisher Hi Rushiraj and Scott, The newer commits are fixes and tests for removing namespace prefixes from XML records. The added code only converts XML records for citation preview. It does not affect other functionalities or record in the database.

You can see the changes by comparing the outputs from stg and dev:

Please review and let me know if you have questions.

Thank you

Jing