Forum - Add SourceMetaData for an IE

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #34404
    Anonymous
    Inactive

    Hello,

    i’m currently trying to implement a automated IE Generator with the DPS-SDK-5.2 for our data.

    The only thing missing is the <mets:amdSec ID=”ie-amd”> Part.

    My METS-Document looks fine but I am missing this:

    Quote:
    <mets:amdSec ID=”ie-amd”> <


    How to create this?
    <mets:rightsMD ID=”ie-amd-rights”>
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”dnx”>
    <mets:xmlData>
    <dnx xmlns=”http://www.exlibrisgroup.com/dps/dnx”&gt;
    <section id=”accessRightsPolicy”>
    <record>
    <key id=”policyId”>AR_EVERYONE</key>
    <key id=”policyParameters”/>
    <key id=”policyDescription”>No restrictions</key>
    </record>
    </section>
    </dnx>
    </mets:xmlData>
    </mets:mdWrap>
    </mets:rightsMD>
    <!– MARC MD is added as ‘source MD’ –>
    <!– This empty record is needed – otherwise the 1st MD record will be empty –>
    <mets:sourceMD ID=”ie-amd-source”>
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”dnx”>
    <mets:xmlData>
    <dnx xmlns=”http://www.exlibrisgroup.com/dps/dnx”/&gt;
    </mets:xmlData>
    </mets:mdWrap>
    </mets:sourceMD>
    <mets:sourceMD ID=”ie-amd-source-MARC-1″> <


    Or more important, this?
    <mets:mdWrap MDTYPE=”MARC”>
    <mets:xmlData>
    <!— some XML DATA –>
    </mets:xmlData>
    </mets:mdWrap>
    </mets:sourceMD>
    </mets:amdSec>

    Best regards
    Chris

    #36251
    Anonymous
    Inactive

    Hi Chris,

    See below the following code, should do the work.

    Code:
    //example for adding Access Rights
    DnxDocument ieDnxDocument = DnxDocumentFactory.getInstance().createDnxDocument();
    DnxDocumentHelper ieDocumentHelper = new DnxDocumentHelper(ieDnxDocument);
    AccessRightsPolicy AccessRightsPolicy = ieDocumentHelper.new AccessRightsPolicy("AR_EVERYONE", null, null);
    ieDocumentHelper.setAccessRightsPolicy(AccessRightsPolicy);
    ie.setIeDnx(ieDnxDocument);

    //example for adding Source MD
    gov.loc.mets.MdSecType.MdWrap.MDTYPE.Enum mdType = MDTYPE.Enum.forString("MARC");
    XmlObject marc = XmlObject.Factory.parse("<?xml version="1.0" encoding="UTF-8" ?><marc:collection xmlns:marc=”http://www.loc.gov/MARC21/slim&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd”></marc:collection>&#8221;);
    ie.setSourceMd(“ie”, mdType, marc);

    Zvi

    #36253
    Anonymous
    Inactive

    Hello,

    thanks a lot for your reply, that was really quick.

    NotSoImportant:
    Is there any difference between the ie.setSourceMd() method and the ie.setIeSourceMd() method ?

    MuchMoreImportant:
    In the SourceMetaData Section I have to set the MDTYPE to OTHER.
    I found out, that if I use this, I have to add an attribute called OTHERMDTYPE. But I could not find out how to set it.
    So what I need to create is something like:

    Quote:
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”MySuperDuperMetaDataType”>

    I would really appreciate if you could tell me how to reach this (or much nicer: tell me where the documentation is (-: ).

    Thanks a lot again!
    Kind Regards
    Chris

    #36254
    Anonymous
    Inactive

    Hi Chris,

    There’s some information about adding a new source MD type in this blog post (which now includes the above example). Specifically, you need to add your type to the “Other Source Metadata Subtype” code table. See also Rosetta Configuration Guide, Appendix A.

    Opher

    #36255
    Anonymous
    Inactive

    Hi Chris,

    Regarding no.1 – Both APIs can be used, the ‘setIeSourceMd’ API is specific for IE source MD.
    Regarding no.2 – It looks like the API that supports adding ‘Other’ MD Type isn’t working properly, I suggest you open a support case so we can take care of it ASAP.

    Zvi

    #36256
    Anonymous
    Inactive

    Dear Opher,
    Dear Zvi,

    again, thanks a lot for your quick response.

    @Opher: I carefully read the article you suggested, but didn’t find a solution on how to reach this :

    Quote:
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”MySuperMDType”>

    It cannot be done within the Rosetta-Installation, because I’m using the sdk to prepare a SIP. So its a Submission, which the document (also) refers to:

    Quote:
    METS submissions should include the subtype as OTHERMDTYPE, e.g.

    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”vra”>

    Which leads me to Zvi’s answer.

    Quote:
    I suggest you open a support case so we can take care of it ASAP.

    I will ask my contact to eXL.

    Thanks a lot to you guys.

    Best regards
    Chris

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.