[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] De la part de Will Fyson
Envoy??: 2 f?vrier 2017 08:01
??: eprints-tech at 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 at 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/