[ 
http://jira.dspace.org/jira/browse/DS-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stuart Lewis resolved DS-303.
-----------------------------

    Resolution: Fixed

Fixed.

It checks that the identifier.uri matches 
http://hdl.handle.net/{handle.prefix}/ before removing it.

> Export migrate option incorrectly removes non-handle identifier.uris
> --------------------------------------------------------------------
>
>                 Key: DS-303
>                 URL: http://jira.dspace.org/jira/browse/DS-303
>             Project: DSpace 1.x
>          Issue Type: Bug
>          Components: DSpace API
>    Affects Versions: 1.5.2
>            Reporter: Stuart Lewis
>            Assignee: Stuart Lewis
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> Reported by John Davison:
> Collection-based export is working as expected when using the -m 
> (migrate) flag in DSpace 1.5.2 with one exception.
> /bin/export ItemExport --type=COLLECTION --id=collID --dest=dest_dir 
> --number=seq_num -m
> This will correctly remove the handle file, as well as the following 
> metadata fields from dublin_core.xml:
>  <dcvalue element="date" qualifier="accessioned"></dcvalue>
>  <dcvalue element="date" qualifier="available"></dcvalue>
>  <dcvalue element="date" qualifier="issued"></dcvalue>*
>  <dcvalue element="description" qualifier="provenance"></dcvalue>
>  <dcvalue element="format" qualifier="extent"></dcvalue>
>  <dcvalue element="format" qualifier="mimetype"></dcvalue>
> (*Date.issued is retained if the item has been published before.)
> It also removes dc.identifier.uri in all cases. The dspace_migrate 
> script uses a regular expression to only remove identifier.uri fields 
> that start with http://hdl (retaining non-handle based identifier.uri 
> elements), while ItemExport.java is eliminating all identifier.uri fields.
> Line 474:
>                if ((!migrate) ||
>                    (migrate && !(
>                     (dcv.element.equals("date") && 
> qualifier.equals("issued")) ||
>                     (dcv.element.equals("date") && 
> qualifier.equals("accessioned")) ||
>                     (dcv.element.equals("date") && 
> qualifier.equals("available")) ||
>                     (dcv.element.equals("identifier") && 
> qualifier.equals("uri")) ||
>                     (dcv.element.equals("description") && 
> qualifier.equals("provenance")) ||
>                     (dcv.element.equals("format") && 
> qualifier.equals("extent")) ||
>                     (dcv.element.equals("format") && 
> qualifier.equals("mimetype")))))
>                {
>                    out.write(utf8, 0, utf8.length);

-- 
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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to