> For the complete documentation index, see [llms.txt](https://davidson-library.gitbook.io/systems-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidson-library.gitbook.io/systems-documentation/preservica/alma-dublin-core-xml-transformation-into-preservica-ready-xml/download-and-transform-bulk/rename-xml-files-for-media.md).

# Rename XML Files for Media

Since the `.xslt` created single `.xml` files, you now need to rename these to match the media files exactly, with the additional `.metadata`, e.g., `OHI-0357_V_ShowersCharlesO_20220310.mp4.metadata` This is what Preservica requires.

I recommend going back to the XML Editor perspective for a fuller screen of the long `.xml` file.

![Editor View](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-a5f5824a8f1d18ffe2400c922be0038982c40f39%2FRename_XSLT_Editor.png?alt=media)

The new list of files e.g., `file1-40.xml` are in the same order as they appear in the main `.xml` file exported from Alma. Scroll through that file to target the newly transformed individual files and match it with the `fileX.xml`. The easiest way is to find the OHI in the `<dc:identifier>` field.

![OHI ID](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-95800101a8db8e49a82f5567720e56850a652cd3%2FRename_OHI_ID.png?alt=media)

Copy the file name from one of the media files that match the OHI ID

![Copy file name](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-a9f15ccfb83746c19c87bfd305d0480010129095%2FRename_Multi_Files_Copy.png?alt=media)

Rename `fileX.xml` and paste the copied text and edit the `.xml` with `.metadata`

![Paste file name](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-0177b657e348d292f0dcfb2307267622d840899a%2FRename_Multi_Files_Paste.png?alt=media)

![change xml to metadata](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-68e2b4fdcdc547a3716b47d7f6e47e3e71f098c3%2FRename_Multi_Files_MetadataXML.png?alt=media)

Open the newly named `.metadata` file and make sure the `dc:type` matches the media it's for. This is the only `dc` field that will need to be updated. Typical names are:

* V and .mp4 for `MovingImage`
* A and .mp3 or .m4a for `Sound`
* T and .pdf or .doc for `Text`

![type of media](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-4fa19a4b82c8a1db0d922281d12a444bacb78666%2FRename_Multi_Files_Type.png?alt=media)

Once the `dc:type` matches the media file type, **Save As**

![save as screen](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-3187f09c72314bb58376777271964813e254cf2d%2FRename_Multi_Files_SaveAs.png?alt=media)

Rename the file (typical examples above). Oxygen Editor will add `.xml` after the `.metadata` so make sure to delete `.xml` as this speeds up the Ingest process in Preservica.

![rename file](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-91c843e1d34ecfc66458bf593492e17a871b5cf7%2FRename_Multi_Files.png?alt=media)

If there's one (1) Audio, one (1) Video, and one (1) Transcript media, there should be three (3) metadata files, totalling six (6) files.

![3 metadata files](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-9c555be12ce596215dc59437cefd55b543671303%2FRename_3_Files.png?alt=media) ![3 media files](https://2941452961-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgvN1jZPCLML0RXmNAq8%2Fuploads%2Fgit-blob-bc1447be029dd760bc18f1ae774ff872302e7e54%2FRename_3_Files_Media.png?alt=media)

Continue through the list of transformed `.xml` files from the `.xsl` using this method.
