Skip to Main Content

UFDC XML Batch Updates: Adding Content to XMLs

Steps and tools for updating UFDC XML records by batch

Steps

1. set the location to insert new content. 

  • Open one file from the batch in Oxygen XML Editor
  • Tools --> XML Refactoring --> Elements --> Fragments--> filling the information for the following fields in the popup window
    • XML Fragment: ContentAdding
    • Location
      • Path: mods:mods
      • Position: Last child
    • Next >Preview (Preview the first test file before switch the Scope to "Working sets")

2. Replace "ContentAdding" with the right formated XML chunks, see templates below:

Alternative Title

<mods:titleInfo type="alternative" >

<mods:title>The Additional Title</mods:title>

</mods:titleInfo>

Uniform Title

<mods:titleInfo type="uniform" >

<mods:title>The Additional Title</mods:title>

</mods:titleInfo>

Publisher, Publication Year/Time

<mods:originInfo>

<mods:publisher>The Additional Place Name</mods:publisher>

<mods:dateIssued>The Additional Year</mods:dateIssued>

</mods:originInfo>

OCLC number (Please note, in most cases, we may ask just to replace OCLC number, so we won't need to use this process.)

<mods:identifier type="OCLC">The Additional Number</mods:identifier>

If to update multiple fields, can put all chunks together as below and then use Find and Replace, that is, to replace "ContentFinding" with all the following: 

<mods:titleInfo type="alternative" >
<mods:title>20230508testing</mods:title>
</mods:titleInfo>
<mods:titleInfo type="uniform" >
<mods:title>20230508testing</mods:title>
</mods:titleInfo>
<mods:originInfo>
<mods:publisher>20230508testing</mods:publisher>
<mods:dateIssued>20230508testing</mods:dateIssued>
</mods:originInfo>
<mods:identifier type="OCLC">20230508testing</mods:identifier>

Publication Place (it can be updated, but the Xpath is different from the above) 

<sobekcm:Publisher>

<sobekcm:Name>University of Florida</sobekcm:Name>

<sobekcm:PlaceTerm type="text">Gainesville, FL</sobekcm:PlaceTerm>

</sobekcm:Publisher>

Sample Testing: 

https://original-ufdc.uflib.ufl.edu/IR00010532/00001/citation

University of Florida Home Page

This page uses Google Analytics - (Google Privacy Policy)

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.