[Koha-bugs] [Bug 8698] New: OPAC export "Save Record" for Dublincore XML for some records triggers error logs.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 29 08:17:31 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8698

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 8698
          Assignee: oleonard at myacpl.org
           Summary: OPAC export "Save Record" for Dublincore XML for some
                    records triggers error logs.
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: mtompset at hotmail.com
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: OPAC
           Product: Koha

opac-export.pl: Argument "\\x{20}" isn't numeric in numeric eq (==) at
/usr/share/perl5/MARC/Crosswalk/DublinCore.pm line 541

When trying to "Save Record" from the OPAC details screen, the error given in
the summary is triggered. It doesn't happen for every record. And despite the
error in the error log, output is returned:
--- BEGIN DUBLIN CORE XML ---
<?xml version="1.0" encoding="UTF-8"?>
<metadata
  xmlns="http://example.org/myapp/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://example.org/myapp/
http://example.org/myapp/schema.xsd"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:dcterms="http://purl.org/dc/terms/"><dc:Title>Ibatan to English
dictionary with English, Filipino, Ilokano, Ivatan indices / compiled by Judith
Y.M. Maree, Orlando R. Tomas and Rundell D. Maree. book</dc:Title>
<dc:Title>Ibatan dictionary</dc:Title>
<dc:Creator>Maree, Judith Y. M. 378</dc:Creator>
<dc:Creator>Tomas, Orlando R. 381</dc:Creator>
<dc:Creator>Maree, Rundell D. 382</dc:Creator>
<dc:Creator>Summer Institute of Linguistics. 34</dc:Creator>
<dc:Subject>17 Batan language Dictionaries 379</dc:Subject>
<dc:Subject>17 Philippine languages Batan language 380</dc:Subject>
<dc:Description>Includes bibliographical references (p.371-501) and
index.</dc:Description>
<dc:Publisher>Manila : SIL Philippines,</dc:Publisher>
<dc:Date>c2012.</dc:Date>
<dc:Date>c2012.</dc:Date>
<dc:Date></dc:Date>
<dc:Type>Text</dc:Type>
<dc:Format>xv, 501 p. ;</dc:Format>
<dc:Identifier>http://www.sil.org/asia/Philippines/online/ivb/dict/</dc:Identifier>
<dc:Language>eng</dc:Language>
<dc:Language>ivbeng</dc:Language>
<dc:Language>Ibatan, English, Filipino, Ilokano and Ivatan</dc:Language>

</metadata>
--- END DUBLIN CORE XML ---

I find it strange that three dates are returned and yet, there is only one date
entered (c2012.). This record does not have an items record, as it is
electronically available for free at the URL provided.

UPDATE: My colleagues must have added an items record, because they probably
printed a copy. Now there's a new, additional error:
[Wed Aug 29 13:16:59 2012] [error] [client 192.168.100.2] [Wed Aug 29 13:16:59
2012] opac-export.pl: Use of uninitialized value in string eq at
/usr/share/perl5/MARC/Crosswalk/DublinCore.pm line 535.

It may be a data error, but I'm not sure where to look. Suggestions? Better
error messages? :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list