Skip Menu |
 

This queue is for tickets about the marc-moose CPAN distribution.

Report information
The Basics
Id: 83123
Status: resolved
Priority: 0/
Queue: marc-moose

People
Owner: FREDERICD [...] cpan.org
Requestors: thomas.schwaerzler [...] uibk.ac.at
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.028
Fixed in: 0.029



Subject: Can't use string ("a") as an ARRAY ref while "strict refs" in use at /usr/local/share/perl/5.10.1/MARC/Moose/Formater/Marcxml.pm line 48.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1359994856-9078-4"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 953
Download (untitled) / with headers
text/plain 953b
trying to convert the unimarc xml record (see attachement) containing datafield 210: <datafield tag="210" ind1=" " ind2=" "> <subfield code="l">ivr. económica F. Napoleão de Victoria</subfield> <subfield code="d">[18--]</subfield> </datafield> with the following script: my $reader = MARC::Moose::Reader::File::Marcxml->new( fh => *STDIN ); my $formater = MARC::Moose::Formater::UnimarcToMarc21->new(); while ( my $unimarc = $reader->read() ) { my $marc21 = $formater->format($unimarc); print $marc21->as('Marcxml'); } i get an error: Can't use string ("a") as an ARRAY ref while "strict refs" in use at /usr/local/share/perl/5.10.1/MARC/Moose/Formater/Marcxml.pm line 48. perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi (with 59 registered patches, see perl -V for more detail) uname -a Linux c108-dig41.uibk.ac.at 2.6.34 #1 SMP Thu Jun 17 18:49:37 CEST 2010 x86_64 GNU/Linux
Subject: 30short-uni.xml
MIME-Version: 1.0
Content-Type: text/xml; name="30short-uni.xml"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="30short-uni.xml"
Content-Transfer-Encoding: binary
Content-Length: 2879
Download 30short-uni.xml
text/xml 2.8k
<collection> <record> <leader>00590cam 02200193 04500</leader> <controlfield tag="001">634775</controlfield> <controlfield tag="003" >http://catalogo.bnportugal.pt/ipac20/ipac.jsp?profile=bn&amp;uri=full=3100024~!634775~!0</controlfield> <controlfield tag="005">19990105000000.0</controlfield> <datafield tag="095" ind1=" " ind2=" "> <subfield code="a">PTBN00846396</subfield> </datafield> <datafield tag="100" ind1=" " ind2=" "> <subfield code="a">19961128d18 m y0pory0103 ba</subfield> </datafield> <datafield tag="101" ind1="0" ind2=" "> <subfield code="a">por</subfield> </datafield> <datafield tag="102" ind1=" " ind2=" "> <subfield code="a">PT</subfield> </datafield> <datafield tag="200" ind1="1" ind2=" "> <subfield code="a">Trez dandys</subfield> <subfield code="e">tercetto comico</subfield> <subfield code="f">Correia d'Oliveira</subfield> <subfield code="g">musica de Antonio F. de Campos</subfield> </datafield> <datafield tag="210" ind1=" " ind2=" "> <subfield code="l">ivr. económica F. Napoleão de Victoria</subfield> <subfield code="d">[18--]</subfield> </datafield> <datafield tag="215" ind1=" " ind2=" "> <subfield code="a">7 p.</subfield> <subfield code="d">16 cm</subfield> </datafield> <datafield tag="500" ind1="1" ind2="0"> <subfield code="a">Três dandys, terceto comico</subfield> </datafield> <datafield tag="700" ind1=" " ind2="1"> <subfield code="a">Oliveira</subfield> <subfield code="b">João Correia de</subfield> <subfield code="f">1881-1960</subfield> <subfield code="3">48215</subfield> </datafield> <datafield tag="702" ind1=" " ind2="1"> <subfield code="a">Campos</subfield> <subfield code="b">António Fernandes Gomes de</subfield> <subfield code="f">1839-1888</subfield> <subfield code="4">230</subfield> <subfield code="3">234049</subfield> </datafield> <datafield tag="801" ind1=" " ind2="0"> <subfield code="a">PT</subfield> <subfield code="b">BN</subfield> <subfield code="g">RPC</subfield> </datafield> <datafield tag="966" ind1=" " ind2=" "> <subfield code="l">BN</subfield> <subfield code="m">FGMON</subfield> <subfield code="s">L. 76160 P.</subfield> <subfield code="x">2</subfield> </datafield> <datafield tag="997" ind1=" " ind2=" "> <subfield code="a">BIBEOD</subfield> </datafield> </record> </collection>
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-29399-1360009982-1541.83123-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 15
Solved in 0.029


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.