Forum - MID in Update Metadata Job

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

    Hi there,

    I’m trying to get the Update Metadata Job running and I’ve got two questions after reading the docs (https://developers.exlibrisgroup.com/rosetta/integrations/metadataUpdateJob):

    1. Where do I get the MID? And what is the mid element?

    2. Is it possible to add the source MD to the file and not to the IE?

    thanks a lot
    Konstantin

    #36283
    Anonymous
    Inactive

    Hi,

    1. You can get a source MD record’s MID from the Web Editor, or using the getMD API (the ‘ID’ attribute of mets:sourceMD).

    2. Currently, the job only supports IE-level descriptive metadata updates.

    Regards,
    Opher

    #36284
    Anonymous
    Inactive

    Hi Opher,

    when I don’t want to update an existing sourceMD but want to use the Update Metadata Job to attach a new sourceMD, do I have to submit an empty MID?
    <mid></mid>

    thx
    Konstantin

    #36285
    Anonymous
    Inactive

    Yes. If you take a look at https://developers.exlibrisgroup.com/blog/Working-with-Source-Metadata-in-Rosetta , you’ll see an example.

    Opher

    #36353
    Anonymous
    Inactive

    I’m attempting to add source metadata using the sdk — almost verbatim from the example in the tech blog post except I’m using mods instead of marc…

    my code looks like:

    MDTYPE.Enum mdType = MDTYPE.Enum.forString ( “MODS” );
    XmlObject mods = XmlObject.Factory.parse ( modsData );
    ie.setSourceMd ( “ie”, mdType, mods );

    and the resulting amdSec looks like:

    <mets:amdSec ID=”ie-amd”>
    <mets:techMD ID=”ie-amd-tech”>
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”dnx”>
    <mets:xmlData/>
    </mets:mdWrap>
    </mets:techMD>
    <mets:rightsMD ID=”ie-amd-rights”>
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”dnx”>
    <mets:xmlData/>
    </mets:mdWrap>
    </mets:rightsMD>
    <mets:sourceMD ID=”ie-amd-source”>
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”dnx”>
    <mets:xmlData/>
    </mets:mdWrap>
    </mets:sourceMD>
    <mets:sourceMD ID=”ie-amd-source-MODS-1″>
    <mets:mdWrap MDTYPE=”MODS”>
    <mets:xmlData>
    <mods:mods xmlns:mods=”http://www.loc.gov/mods/v3″&gt;
    <titleInfo>
    <nonSort>My</nonSort>
    <title>Title</title>
    </titleInfo>
    </mods:mods>
    </mets:xmlData>
    </mets:mdWrap>
    </mets:sourceMD>
    <mets:digiprovMD ID=”ie-amd-digiprov”>
    <mets:mdWrap MDTYPE=”OTHER” OTHERMDTYPE=”dnx”>
    <mets:xmlData/>
    </mets:mdWrap>
    </mets:digiprovMD>
    </mets:amdSec>

    as you can see, the <mets:xmlData> elements are empty (except for the mods data) which results in a validation error. can you explain what I am doing wrong? unfortunately, there doesn’t seem to be a java doc for setSourceMD()

    Thanks for any suggestions!
    Bill

    #36356
    Anonymous
    Inactive

    I think I have discovered the answer to my own question. I believe what I needed to do was to first create an empty <andSec> with

    dnxDocument = DnxDocumentFactory.getInstance().createDnxDocument();
    documentHelper = new DnxDocumentHelper ( dnxDocument );
    ie.setIeDnx ( dnxDocument );

    and then add the mods markup with the code from my previous post. Don’t know if this is the optimal approach, but it works!

    –Bill

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