Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3822

XSLTIngestionCrosswalk does not work if there are multiple XML nodes inside the root

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2
    • Fix Version/s: 6.3, 7.0
    • Component/s: OAI-Harvester
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      We are trying to harvest a remote OAI collection using the XSLTIngestionCrosswalk and a custom xslt stylesheet.

      This does not work, because the XSLTIngestionCrosswolk assumes, that the content of the XML root is a single node:

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.jdom.Element
        at org.dspace.content.crosswalk.XSLTIngestionCrosswalk.ingest(XSLTIngestionCrosswalk.java:182)
        at org.dspace.harvest.OAIHarvester.processRecord(OAIHarvester.java:547)
        at org.dspace.harvest.OAIHarvester.runHarvest(OAIHarvester.java:367)
        at org.dspace.app.xmlui.aspect.administrative.FlowContainerUtils.processRunCollectionHarvest(FlowContainerUtils.java:315)
        ...

      But the OAI document contains various tags (f.e. some metadata.of the OAI request/response).

        Attachments

          Activity

            People

            Assignee:
            kshepherd Kim Shepherd
            Reporter:
            sulfrian Alexander Sulfrian
            Reviewer:
            Terrence W Brady Terrence W Brady
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: