[Koha] Koha 3.4.7. // additem.pl

Alen Vodopijevec alen at irb.hr
Sat Jan 14 08:02:55 NZDT 2012


Hi!

We have a strange behaviour on test upgrade 3.4.4 -> 3.4.7. with
adding an item (additem.pl)

Select options for all fields that have value >0 (2 or 4 for example)
for "hidden" variable in subfield constraints in MARC bibliographic
framework are not shown on Additem form. I'm not sure if this is a
feature or bug.

The only thing that I can see is an addition at around line 203 of additem.pl:

           if ($subfieldlib->{'hidden'}) {
               $subfield_data{marc_value} = qq(<input type="hidden"
$attributes /> $authorised_lib{$value});
           }
           else {
               $subfield_data{marc_value} =CGI::scrolling_list(
# FIXME: factor out scrolling_list
                   -name     => "field_value",
                   -values   => \@authorised_values,
                   -default  => $value,
                   -labels   => \%authorised_lib,
                   -override => 1,
                   -size     => 1,
                   -multiple => 0,
                   -tabindex => 1,
                   -id       =>
"tag_".$tag."_subfield_".$subfieldtag."_".$index_subfield,
                   -class    => "input_marceditor",
               );
           }

If I remove the first IF statement or if I set "hidden" to "0" in MARC
bibliographic framework settings for that particular subfield, select
options are shown.

We have a same issue with 3.6.2 testing Koha. Any suggestions are welcome :).

regards,
alen

-- 
Alen Vodopijevec (alen at irb.hr)
Library, Rudjer Boskovic Institute
tel.: +385 1 456 0954 (x1293) gsm: +385 98 584 045
http://lib.irb.hr


More information about the Koha mailing list