Forums » OaipmhHarvester problem w/Digital Commons

RSS feed for this topic

Info

  1. I've been using the OaipmhHarvester plugin quite a bit, and it seems to have a problem with harvesting from repositories running on the Digital Commons (http://www.bepress.com/ir/) system.

    Sometimes it will simply return a "String could not be parsed as XML" message on the harvester page itself, but most of the time it returns something like this:

    Omeka has encountered an error
    
    Exception
    
        String could not be parsed as XML
    
    Backtrace
    
    exception 'Exception' with message 'String could not be parsed as XML' in /home3/halfshel/public_html/omeka/plugins/OaipmhHarvester/libraries/OaipmhHarvester/Xml.php:46
    Stack trace:
    #0 /home3/halfshel/public_html/omeka/plugins/OaipmhHarvester/libraries/OaipmhHarvester/Xml.php(46): SimpleXMLElement->__construct('')
    #1 /home3/halfshel/public_html/omeka/plugins/OaipmhHarvester/controllers/IndexController.php(93): OaipmhHarvester_Xml->__construct('http://digitalc...', Array)
    #2 /home3/halfshel/public_html/omeka/application/libraries/Zend/Controller/Action.php(513): OaipmhHarvester_IndexController->setsAction()
    #3 /home3/halfshel/public_html/omeka/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('setsAction')
    #4 /home3/halfshel/public_html/omeka/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #5 /home3/halfshel/public_html/omeka/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch()
    #6 /home3/halfshel/public_html/omeka/application/libraries/Zend/Application.php(358): Zend_Application_Bootstrap_Bootstrap->run()
    #7 /home3/halfshel/public_html/omeka/application/libraries/Omeka/Core.php(157): Zend_Application->run()
    #8 /home3/halfshel/public_html/omeka/admin/index.php(42): Omeka_Core->run()
    #9 {main}

    (I hope that comes through all right.)

    I don't know if this is a problem with the way I have the harvester set up or a problem with the way Digital Commons serves up records? Anyone have an idea what might be going on?

    Thank you.

  2. What is the URL you are using to harvest?

  3. The url I was using for that example was http://digitalcommons.uri.edu/cgi/oai2.cgi

  4. Have you had trouble importing other collections? I have been testing the plugin with a few other collections, including this one, and had no trouble: http://dlc.dlib.indiana.edu/dspace-dlc-oai/request

    I think it may be an issue with the way that the Digital Commons serves its records.

    Try the library above and see if you can get it to work, and then you might want to check with the Digital Commons service and see if they have a forum or place to ask them about it as well.

  5. Ah, I figured it out. For some reason the Digital Commons repositories require specifying the proper OAI verb and metadata format at the end of the URL, like so:
    http://digitalcommons.uri.edu/cgi/oai2.cgi?verb=ListSets&metadataPrefix=oai_dc

Reply

You must log in to post.