Hi,
  I have created a METS file for testing METS ingest following the docs.
  When using dspace packager –e [email protected] –p 123456789/3 –t METS 
<path_to_sip_zip> file I get the following error:

  org.dspace.content.crosswalk.MetadataValidationException: Invalid METS 
Manifest: mdWrap element for streaming crosswalk without binData child

The METS file is given below:

<?xml version="1.0" encoding="UTF-8"?>
<mets xmlns="http://www.loc.gov/METS/"; xmlns:xlink="http://www.w3.org/TR/xlink"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:premis="http://www.loc.gov/standards/premis"; 
xmlns:tsmd="http://www.timescapes.leeds.ac.uk/metadata_1.0"; 
xsi:schemaLocation="http://www.loc.gov/METS/ 
http://www.loc.gov/standards/mets/mets.xsd http://www.loc.gov/standards/premis 
http://www.loc.gov/standards/premis/PREMIS-v1-0.xsd"; ID="uniqueID1" 
PROFILE="DSpace METS SIP Profile 1.0">
    
    <dmdSec ID="uniqueID2">
        <mdWrap MDTYPE="MODS">
            <xmlData>
                <mods    xmlns="http://www.loc.gov/mods/v3";
                        xmlns:xlink="http://www.w3.org/TR/xlink";
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                        xsi:schemaLocation="http://www.loc.gov/mods/v3 
http://www.loc.gov/standards/mods/mods.xsd";>

                    <titleInfo>
                        <title>Sample METS Ingest</title>
                    </titleInfo>
                    <name type="personal">
                        <namePart>Ben, Ryan</namePart>
                        <role>
                            <roleTerm type="text">author</roleTerm>
                        </role>
                    </name>
                </mods>
            </xmlData>
        </mdWrap>
    </dmdSec>
    
    <amdSec ID="uniqueID3">
        <rightsMD ID="uniqueID4">
            <mdWrap MDTYPE="OTHER" OTHERMDTYPE="Creative Commons">
                <xmlData>
                    <rdf:RDF    xmlns="http://web.resource.org/cc/";
                                xmlns:dc="http://purl.org/dc/elements/1.1/";
                                
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
                        <Work rdf:about="UUID for Item">
                            <dc:type 
rdf:resource="http://purl.org/dc/dcmitype/Text"; />
                            <license 
rdf:resource="http://creativecommons.org/licenses/by-nc-nd/2.5/"; />
                        </Work>
                        <License 
rdf:about="http://creativecommons.org/licenses/by-nc-nd/2.5/";>
                            <permits 
rdf:resource="http://web.resource.org/cc/Reproduction"; />
                            <permits 
rdf:resource="http://web.resource.org/cc/Distribution"; />
                        
                            <requires 
rdf:resource="http://web.resource.org/cc/Notice"; />
                            <requires 
rdf:resource="http://web.resource.org/cc/Attribution"; />
                            <prohibits 
rdf:resource="http://web.resource.org/cc/CommercialUse"; />
                        </License>
                    </rdf:RDF>
                </xmlData>
            </mdWrap>
        </rightsMD>
    </amdSec>

    <fileSec>
        <!-- Ebony -->
        <fileGrp USE="CONTENT">
            <file    ID="FL_1"
                    DMDID="uniqueID2"
                    ADMID="uniqueID3"
                    CHECKSUM=""
                    CHECKSUMTYPE=""
                    USE="preferred">
                <FLocat    LOCTYPE="URL"
                        xlink:type="simple"
                        xlink:href="test.doc" />
            </file>
            
        </fileGrp>

    </fileSec>
    
    <structMap ID="MAP_0" TYPE="LOGICAL" LABEL="METS Test">
        <div ID="ID6" ADMID="uniqueID3" DMID="uniqueID2" LABEL="Sample MS Word 
Doc">
            <div ID="ID7" LABEL="Interview">
                <fptr FILEID="FL_1"/>
            </div>
            
        </div>
    </structMap>
</mets>

Regards,
  Ben
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to