[ http://jira.dspace.org/jira/browse/DS-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10574#action_10574 ]
Stuart Lewis commented on DS-286: --------------------------------- If the script is to be kept, and not removed, two things to note: 1) It needs fixing to include the new language="" attribute introduced by the exporter in 1.6. At present the identfier.uri line does not match as it includes the extra language attribute before the http://hdl. 2) See email below from John Davison (OhioLink): I was transferring a few collections from a DSpace 1.5.2 development server to a production instance this morning and encountered a small issue with the dspace_migrate bash script. Since the item exporter in 1.6 has a migrate option (-m flag) this script might get removed, so I'm posting this simple fix just in case anyone else encounters the same problem. Transferring Items Between DSpace Instances: http://www.dspace.org/1_5_2Documentation/ch09.html#N1382D DSpace System Documentation lists the auto-generated fields the dspace_migrate script removes from dublin_core.xml prior to moving a collection (date.accessioned, date.available, description.provenance, etc.). The script also removes the handle file. When I attempted to import the collection into the production instance, I ended up with two handles-- one newly created and one left over from the dev server because it was still listed in the dublin_core.xml file as a dc.identifier.uri value. Here's the fix: Lines 101 and 104 perform the deletion of several element/qualifier pairs from the dublin_core.xml metadata, but a small typo occurs twice on the lines that should remove the handle. Removing one character from both lines fixes the problem. This: | $SED "/element=\"identifier\" qualifier=\"uri\"\>http:\/\/hdl/d" Should be this: | $SED "/element=\"identifier\" qualifier=\"uri\">http:\/\/hdl/d" Note: removing the extra escape character (backslash \) before the greater than (>) symbol causes the script to correctly remove any dc.identifier.uri that starts with http://hdl without removing any non-handle URIs nor removing any local accession numbers stored in dc.indentifer.other. > Remove dspace/bin/dspace_migrate script > --------------------------------------- > > Key: DS-286 > URL: http://jira.dspace.org/jira/browse/DS-286 > Project: DSpace 1.x > Issue Type: Task > Components: DSpace API > Affects Versions: 1.5.0, 1.5.1, 1.5.2 > Reporter: Stuart Lewis > Priority: Minor > Fix For: 1.6.0 > > > I propose that we remove the /dspace/bin/dspace_migrate script. > Reasons: > 1) It is a bash script, and we would prefer DSpace to be 100% java > 2) The item exporter now has a -m (migrate) option that will perform the same > function during the export > Would anyone have a problem with this script being removed? > (If it is removed, it needs removing from the PDF manual, and the -migrate > export option needs documenting) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel