EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #06074
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Antwort: Antwort: Re: Antwort: Re: fail to import PubMedID
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Antwort: Antwort: Re: Antwort: Re: fail to import PubMedID
- From: martin.braendle@id.uzh.ch
- Date: Tue, 8 Nov 2016 12:52:43 +0100
I have published our version of the PubMedID Import plugin to ...i think, it is more general if XML::LibXML can't deal with https. So it's here: perl_lib/EPrints/XML/LibXML.pm (Line 69) and 'XML::LibXML->new();' is the wrong parser for our needs. What would you suggest? Changing Import/PubMedID.pm and bin/metadata_update from anything like EPrints::XML::parse_url( $url ); to something like - using LWP to retrieve it - then LibXML to decode it to xml or create a more general and new EPrints::XML module? Workarounds or other quick & dirtys are also welcome Jens -- Jens Vieler Zentrale Informatik Universität Zürich Stampfenbachstrasse 73 CH-8006 Zürich mail: jens.vieler@id.uzh.ch phone: +41 44 63 56777 http://www.id.uzh.ch Adam Field ---07.11.2016 14:39:46---….on, incidentally, it’s this line: https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plu Von: Adam Field <Adam.Field@jisc.ac.uk> An: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Datum: 07.11.2016 14:39 Betreff: Re: [EP-tech] Antwort: Re: fail to import PubMedID Gesendet von: eprints-tech-bounces@ecs.soton.ac.uk ….on, incidentally, it’s this line: https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Plugin/Import/PubMedID.pm#L58
From: Adam Field <Adam.Field@jisc.ac.uk> Date: Monday, 7 November 2016 13:32 To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Subject: Re: [EP-tech] Antwort: Re: fail to import PubMedID I can confirm this – I can also download the metadata via https using curl. Jens’ suggestions are good. We should be able to respond to this kind of thing as a community – it’s a non-core, simple bug. I’m happy to offer advice, code review and testing if anyone wants to give it a stab. Alternatively, is there anyone out there who can offer me the same if I take a stab? Best
From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of "jens.vieler@id.uzh.ch" <jens.vieler@id.uzh.ch> Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Date: Monday, 7 November 2016 10:45 To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Subject: [EP-tech] Antwort: Re: fail to import PubMedID Dear Adam, Hiroshi, List Visiting the URL, I get: <eFetchResult> <ERROR>WebEnv parameter is required</ERROR> </eFetchResult> If I add a dummy WebEnb parameter, I get: <eFetchResult> <ERROR>query_key parameter is required</ERROR> </eFetchResult> …it looks like the API the plugin is using has changed L It’s unlikely to be a local problem.
From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Hiroshi Watabe <hwatabe@m.tohoku.ac.jp> Organization: CYRIC Reply-To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Date: Monday, 7 November 2016 01:27 To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk> Subject: [EP-tech] fail to import PubMedID Dear all, It seems PubMed only accepts https now and I cannot import PubMed ID anymore. I got the following warning message. Unhandled warning in Import::PubMedID: http error : Unknown IO error I modified PubMedID.pm as follows but no success. 27c27 < $self->{EFETCH_URL} = 'http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&rettype=full'; ---
'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&rettype=full'; Error message is as follows; Unhandled exception in Import::PubMedID: Could not create file parser context for file Could you help me? Hiroshi *** 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/
|
- References:
- [EP-tech] fail to import PubMedID
- From: Hiroshi Watabe <hwatabe@m.tohoku.ac.jp>
- [EP-tech] Antwort: Re: fail to import PubMedID
- From: jens.vieler@id.uzh.ch
- Re: [EP-tech] Antwort: Re: fail to import PubMedID
- From: Adam Field <Adam.Field@jisc.ac.uk>
- Re: [EP-tech] Antwort: Re: fail to import PubMedID
- From: Adam Field <Adam.Field@jisc.ac.uk>
- [EP-tech] fail to import PubMedID
- Prev by Date: [EP-tech] Antwort: Re: Antwort: Re: fail to import PubMedID
- Next by Date: Re: [EP-tech] Antwort: Antwort: Re: Antwort: Re: fail to import PubMedID
- Previous by thread: [EP-tech] Antwort: Re: Antwort: Re: fail to import PubMedID
- Next by thread: Re: [EP-tech] Antwort: Antwort: Re: Antwort: Re: fail to import PubMedID
- Index(es):