[Koha-bugs] [Bug 6465] New: Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jun 5 23:36:31 CEST 2011


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

             Bug #: 6465
           Summary: Errors in UNIMARC plugins for fixed length fields (for
                    | and space) (T::T issue)
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Cataloging
        AssignedTo: gmcharlt at gmail.com
        ReportedBy: januszop at gmail.com
         QAContact: koha-bugs at lists.koha-community.org
                CC: ian.walls at bywatersolutions.com


Created attachment 4369
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=4369
A screenshot illustrating the problem

When editing, with a plugin, a fixed length field of an existing (or new)
record, some characters are changed when invoking the plugin (i.e. are not
correctly passed to the plugin window). (The initial values for these fields
set in .pl in variable $result are not respected as well).

The attached screenshot illustrates the problem.

This is because after switching to T::T variable names like:

<!-- TMPL_IF name="f5|" -->
or
<!-- TMPL_IF name="f8 " -->

(which were used in most of templates in /value_builder) are not allowed. In
translation process these constructs have been replaced with 

[% IF ( f5pipe ) %] 
and
[% IF ( f8 ) %]

The corresponding *.pl files remain unchanged and provide the elements in the
result hash as follows:

    my $f5  = substr( $result, 5,  1 );
[...]
    $template->param(
[...]
        "f5$f5"   => 1,

So, if there is a pipe (or a space), the has key will be "f5|" ("f5 " resp.),
which worked well with HTML::Template, but not with T::T.

The same applies most probably to MARC-21.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list