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

Hauschke, Christian christian.hauschke at tib.eu
Fri Jul 13 14:29:18 CEST 2018


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. 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?

2.      Is there a way to harvest  only the 336.835 records from
https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadataP
refix=marc_xml&set=collection~tibkat_solr~documentType:r
<https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadata
Prefix=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&metadata
Prefix=oai_dc&set=tibkat with 3.612.946 records)

 

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
<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&metadataP
refix=marc_xml&set=collection~tibkat_solr~documentType:r
<https://www.tib.eu/oai/public/repository/open?verb=ListRecords&metadata
Prefix=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
<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 

	www.tib.eu <http://www.tib.eu/> 

	 

	
	
	
	

	_______________________________________________
	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
-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20180713/ecb295b6/attachment.html>


More information about the librecat-dev mailing list