EPrints Technical Mailing List Archive

Message: #06287


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Import DOI Issue


Hi,

This thread is a bit old: we tried to change the URL to http://doi.crossref.org/openurl but we still get an error message (and not the 301 one):

Unhandled exception in Import::DOI: Can't call method "getDocumentElement" on a↲
n undefined value at /opt/eprints/perl_lib/EPrints/Plugin/Import/DOI.pm line 77↲
, <$fh> line 2.

Unhandled warning in Import::DOI: [Fri Feb 17 09:27:01 2017] -e: http error : U↲
nknown IO error

the rest in French:

Le test a échoué : 0 enregistrement(s) trouvé(s) avant qu'une erreur n'interrompe le test. Vérifier que le bon format d'importation a été sélectionné et que les enregistrements sont complets

In fact, changing the URL doesn't make a difference in the error message.

Any advice would be great,

Regards,

----------------------------------------
Pierre Nault
Bibliothécaire systèmes - Direction du développement technologique
Service des bibliothèques
Université du Québec à Montréal
Tél : 514-987-3000 #4554





-----Message d'origine-----
De : eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] De la part de Will Fyson
Envoyé : 2 février 2017 08:01
À : eprints-tech@ecs.soton.ac.uk
Objet : [EP-tech] Import DOI Issue

Hi Everyone,

We came across an issue with the DOI Import plugin no longer working. It looks like this is a result of updates across all the Crossref sites and so the base URL it was using ("http://www.crossref.org/openurl";) was returning a 301 "Moved Permanently" response.

I've applied a quick fix that updates the URL to "http://doi.crossref.org/openurl"; which seems to have fixed the issue. 
It's on GitHub at
https://github.com/eprints/eprints/commit/24de2fc05604aa7f0d34677ed2eb470e4f425a9d

Many thanks,

Will


Richard William Fyson
rwf1v07@soton.ac.uk
EPrints Services Bay 2, 3081, B32
University of Southampton
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/