Skip to content

Main marcxml21#2154

Open
smutniak wants to merge 3 commits into
mainfrom
main_marcxml21
Open

Main marcxml21#2154
smutniak wants to merge 3 commits into
mainfrom
main_marcxml21

Conversation

@smutniak
Copy link
Copy Markdown
Contributor

uses dc.subject instead of major for subject values tag 650

@smutniak
Copy link
Copy Markdown
Contributor Author

fixes issue #2123 pending further info

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MARC21 XML export to emit 650 subject fields from dc.subject values (instead of using the submission’s major), aligning subject output with existing subject handling in other exporters.

Changes:

  • Replace MARC 650 generation from single MAJOR value to iterating SUBJECT_FIELD_VALUES (dc.subject).
  • Add SUBJECT_FIELD_VALUES into MarcXML21Key and populate it in MarcXML21Formatter.
  • Adjust MARC template comments around 650/653 to reflect the new mapping.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/main/resources/formats/marc21_xml.xml Generate MARC 650 fields from SUBJECT_FIELD_VALUES instead of MAJOR; tweak related comments.
src/main/java/org/tdl/vireo/model/formatter/MarcXML21Formatter.java Populate Thymeleaf context with SUBJECT_FIELD_VALUES via SubmissionHelperUtility.getSubjectFieldValues().
src/main/java/org/tdl/vireo/model/export/enums/MarcXML21Key.java Add new enum key SUBJECT_FIELD_VALUES for the MARC21 formatter/template.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 11 to 15
DEPOSIT_URL,
ABSTRACT,
SUBJECT_FIELD_VALUES,
KEYWORD_FIELD_VALUES,
DEPARTMENT,
Comment on lines +221 to +223
<datafield th:each="subject: ${SUBJECT_FIELD_VALUES}" tag="650" ind1=" " ind2=" ">
<subfield th:text="${ subject.getValue() }" code="a"></subfield>
</datafield>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants