[librecat-dev] Use of uninitialized value $\ in concatenation (.)or string

Vitali Peil vitali.peil at uni-bielefeld.de
Fri Jul 13 15:09:26 CEST 2018



Am 13.07.2018 um 14:29 schrieb Hauschke, Christian:
>
> Hi,
>
>  
>
> Thanks for your help, the query worked! Now I have two follow-up
> questions:
>
>  
>
> 1.      The query doesn’t seem to make use of the resumption tokens,
> at least the file output.xml contains only 10 entries.
>
That is not true. Via the command line you get them all (catmandu
convert OAI --url https://www.tib.eu/oai/public/repository/open
--metadataPrefix marc_xml --handler marcxml to MARC --type XML)
>
> From what I understand from
> https://metacpan.org/pod/release/HOCHSTEN/Catmandu-OAI-0.16/lib/Catmandu/Importer/OAI.pm,
> there is no parameter to turn this on. The parameter resumptiontoken
> seems to serve only as a starting point. How do I get all records I
> queried?
>
The resupmtionToken parameter is optional and just an offset where to
start from.
>
> 2.      Is there a way to harvest  only the 336.835 records from
> https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataPrefix=marc_xml&set=collection~tibkat_solr~documentType:r
> <https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataPrefix=marc_xml&set=collection%7Etibkat_solr%7EdocumentType:r>without
> using sets? The set containing the records I’m interested in would be
> significantly larger
> (https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataPrefix=oai_dc&set=tibkat
> with 3.612.946 records)
>
Why don't you run
catmandu convert OAI --url https://www.tib.eu/oai/public/repository/open
--metadataPrefix oai_dc --set tibkat
then? That is equivalent to
https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataPrefix=oai_dc&set=tibkat

Vitali
>
>  
>
> Best,
>
> Christian
>
>  
>
> *Von:*librecat-dev-bounces at lists.uni-bielefeld.de
> [mailto:librecat-dev-bounces at lists.uni-bielefeld.de] *Im Auftrag von
> *Vitali Peil
> *Gesendet:* Freitag, 13. Juli 2018 11:50
> *An:* librecat-dev at lists.uni-bielefeld.de
> *Betreff:* Re: [librecat-dev] Use of uninitialized value $\ in
> concatenation (.)or string
>
>  
>
> Hi,
>
> easy answer here: your selected set
> "collection~tibcat_solr~documentType:r" does not  exist (according to
> https://www.tib.eu/oai/public/repository/open?verb=ListSets).
>
> Without the set parameter it works well
>
> catmandu convert OAI --url
> https://www.tib.eu/oai/public/repository/open--metadataPrefix marc_xml
> --handler marcxml to MARC > output.xml
>
> (but it doesn't provide an XML ;-) you have to specify a type).
>
> So, one looks ok:
> catmandu convert OAI --url
> https://www.tib.eu/oai/public/repository/open--metadataPrefix marc_xml
> --handler marcxml to MARC --type XML > output.xml
>
> Best,
>
> Vitali
>
>  
>
> Am 13.07.2018 um 11:31 schrieb Hauschke, Christian:
>
>     Dear all,
>
>      
>
>     in the mailing list archive it looks like my mail from yesterday
>     wasn’t sent out to the list members. Please excuse me, if you
>     receive this a second time now.
>
>      
>
>     Despite the support of Patrick Hochstenbach
>     (https://twitter.com/hochstenbach/status/1017087798132736002,
>     thanks a lot!) I cannot achieve my desired result.
>
>      
>
>     I want to write the following set as MARC/XML into a file (or many
>     files):
>     https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataPrefix=marc_xml&set=collection~tibkat_solr~documentType:r
>     <https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataPrefix=marc_xml&set=collection%7Etibkat_solr%7EdocumentType:r>
>
>     My approach, following the advice I received:
>
>     catmandu convert OAI --url
>     https://www.tib.eu/oai/public/repository/open--set
>     collection~tibcat_solr~documentType:r --metadataPrefix marc_xml
>     --handler marcxml to MARC > output.xml
>
>      
>
>     This leads to the following error message:
>
>     Use of uninitialized value $\ in concatenation (.) or string at
>     /usr/local/share/perl/5.22.1/HTTP/OAI/Repository.pm line 169.
>
>      
>
>     I use Catmandu 1.09 on Ubuntu. Any advice on how to proceed is
>     very welcome.
>
>      
>
>     Best,
>
>     Christian
>
>      
>
>      
>
>     -- 
>
>     Christian Hauschke
>
>     Technische Informationsbibliothek (TIB)
>
>     German National Library of Science and Technology
>
>     Open Science Lab
>
>     Welfengarten 1 B // 30167 Hannover, Germany
>
>     T +49 511 762-14642
>
>     christian.hauschke at tib.eu <mailto:christian.hauschke at tib.eu>
>
>     www.tib.eu <http://www.tib.eu/>
>
>      
>
>
>
>
>     _______________________________________________
>
>     librecat-dev mailing list
>
>     - send list mails to librecat-dev at lists.uni-bielefeld.de
>     <mailto:librecat-dev at lists.uni-bielefeld.de>
>
>     - to unsubscribe or change options, visit
>     https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
>
>     - project website: http://librecat.org/
>
>
>
> -- 
> Vitali Peil
> Deputy Head Acquisitions Department
> Subject Librarian
> Office U3-200/E1-144, Tel. +49521-106-4010/6125
> Bielefeld University Library
>
>
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/

-- 
Vitali Peil
Deputy Head Acquisitions Department
Subject Librarian
Office U3-200/E1-144, Tel. +49521-106-4010/6125
Bielefeld University Library

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20180713/5392c070/attachment.html>


More information about the librecat-dev mailing list