MODS Transform For DSpace

From UA Libraries Digital Services Planning and Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "Using XMLSpy 2016, here are the steps for transforming MODS for DSpace. 1) Open XMLSpy. 2) Select New Project from the task bar: File:newProject.png 3) Click on Proje...")
 
Line 1: Line 1:
Using XMLSpy 2016, here are the steps for transforming MODS for DSpace.
+
Using XMLSpy 2016, here are the steps for transforming MODS for DSpace.  This assumes you have gone to libcontent and run the script called pullEmbargoed in /srv/scripts/etds/toDspace, which expects a datestamped embargoLift.xml file in S:\Public\DigitalServices\DSpace\embargoLift .  That script will dump the MODS into a datestamped folder in S:\Public\DigitalServices\DSpace\embargoLift\MODS  so that you can run these transformations.
  
 
1)  Open XMLSpy.
 
1)  Open XMLSpy.
Line 7: Line 7:
 
[[File:newProject.png]]
 
[[File:newProject.png]]
  
3) Click on Project again, and select "Add External Folder to Project":
+
 
 +
3) Click on Project again, and select "Add Files to Project"
 +
 
 +
4) Select the XSL files you need for this transformation, which are currently mods_dspace_20160815c.xsl (which creates Dublin Core) and mods_dspace_etd.xsl (which creates ETD-MS files in DSpace-version Dublin Core) located in S:\Public\DigitalServices\DSpace. You can use the shift key to select multiple files, so you won't have to repeat this step.
 +
 
 +
[[File:whichFiles.png]]
 +
 
 +
 
 +
5) Now click on Project again, and select "Add External Folder to Project":
  
 
[[File:addFolder.png]]
 
[[File:addFolder.png]]
  
4) You will be presented with a browse interface;  browse to the correct location for the MODS to be transformed, and select that folder:
 
  
 +
6) You will be presented with a browse interface;  browse to the correct location for the MODS to be transformed, and select that folder. For content coming from embargo lifts, they will be in S:\Public\DigitalServices\DSpace\embargoLift\MODS\datestamp  where the datestamp matches the date on the embargoLift xml file.
 +
 
[[File:browseForMODS.png]]
 
[[File:browseForMODS.png]]
  
5)
+
 
 +
7) The folder you added will appear in the left hand window of XMLSpy.  Right click on the folder, and select "Properties":
 +
 
 +
[[File:rightClickFolder.png]]
 +
 
 +
 
 +
8) Fill in:
 +
 
 +
a) File extensions (.xml)
 +
 
 +
b) Click "Use this XSL" and "Browse" to select the mods_dspace_20160815c.xsl (which creates Dublin Core)
 +
 
 +
c) Click "Save in folder:" and "Browse" to select the S:\Public\DigitalServices\DSpace\embargoLift\DC\datestamp folder (where datestamp matches the date on the embargoLift xml file)
 +
 
 +
d) Again file in File extension (.xml)
 +
 
 +
e) click "OK"
 +
 
 +
[[File:fillInProperties.png]]
 +
 
 +
 
 +
8) Now right click the MODS folder in the project window on the left side in XMLSpy and select "XSL Transformation", to generate DC files:
 +
 
 +
[[File:rightClickFolder_transform.png]]
 +
 
 +
 
 +
9) Again right click the MODS folder and select "Properties"
 +
 
 +
[[File:rightClickFolder.png]]
 +
 
 +
 
 +
10) Select "Properties" and then change the following entries:
 +
 
 +
a) Click "Use this XSL" and "Browse" to select the mods_dspace_etd.xsl (which creates ETD-MS files)
 +
 
 +
b) Click "Save in folder:" and "Browse" to select the S:\Public\DigitalServices\DSpace\embargoLift\ETD\datestamp folder (where datestamp matches the date on the embargoLift xml file)
 +
 
 +
c) click "OK"
 +
 
 +
[[File:changeProperties.png]]
 +
 
 +
 
 +
11) Now right click the MODS folder in the project window on the left side in XMLSpy and select "XSL Transformation", to generate ETD-MS files:
 +
 
 +
[[File:rightClickFolder_transform.png]]
 +
 
 +
 
 +
12)  Check results.  Then return to libcontent to run pullEmbargoed with the datestamp again, to complete the process.

Revision as of 13:48, 25 August 2016

Using XMLSpy 2016, here are the steps for transforming MODS for DSpace. This assumes you have gone to libcontent and run the script called pullEmbargoed in /srv/scripts/etds/toDspace, which expects a datestamped embargoLift.xml file in S:\Public\DigitalServices\DSpace\embargoLift . That script will dump the MODS into a datestamped folder in S:\Public\DigitalServices\DSpace\embargoLift\MODS so that you can run these transformations.

1) Open XMLSpy.

2) Select New Project from the task bar:

NewProject.png


3) Click on Project again, and select "Add Files to Project"

4) Select the XSL files you need for this transformation, which are currently mods_dspace_20160815c.xsl (which creates Dublin Core) and mods_dspace_etd.xsl (which creates ETD-MS files in DSpace-version Dublin Core) located in S:\Public\DigitalServices\DSpace. You can use the shift key to select multiple files, so you won't have to repeat this step.

WhichFiles.png


5) Now click on Project again, and select "Add External Folder to Project":

AddFolder.png


6) You will be presented with a browse interface; browse to the correct location for the MODS to be transformed, and select that folder. For content coming from embargo lifts, they will be in S:\Public\DigitalServices\DSpace\embargoLift\MODS\datestamp where the datestamp matches the date on the embargoLift xml file.

BrowseForMODS.png


7) The folder you added will appear in the left hand window of XMLSpy. Right click on the folder, and select "Properties":

RightClickFolder.png


8) Fill in:

a) File extensions (.xml)

b) Click "Use this XSL" and "Browse" to select the mods_dspace_20160815c.xsl (which creates Dublin Core)

c) Click "Save in folder:" and "Browse" to select the S:\Public\DigitalServices\DSpace\embargoLift\DC\datestamp folder (where datestamp matches the date on the embargoLift xml file)

d) Again file in File extension (.xml)

e) click "OK"

FillInProperties.png


8) Now right click the MODS folder in the project window on the left side in XMLSpy and select "XSL Transformation", to generate DC files:

RightClickFolder transform.png


9) Again right click the MODS folder and select "Properties"

RightClickFolder.png


10) Select "Properties" and then change the following entries:

a) Click "Use this XSL" and "Browse" to select the mods_dspace_etd.xsl (which creates ETD-MS files)

b) Click "Save in folder:" and "Browse" to select the S:\Public\DigitalServices\DSpace\embargoLift\ETD\datestamp folder (where datestamp matches the date on the embargoLift xml file)

c) click "OK"

ChangeProperties.png


11) Now right click the MODS folder in the project window on the left side in XMLSpy and select "XSL Transformation", to generate ETD-MS files:

RightClickFolder transform.png


12) Check results. Then return to libcontent to run pullEmbargoed with the datestamp again, to complete the process.

Personal tools