[Koha-bugs] [Bug 9156] itemcallnumber not pulling more than 2 subfields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 5 08:21:52 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9156

Zeno Tajoli <z.tajoli at cineca.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |z.tajoli at cineca.it

--- Comment #4 from Zeno Tajoli <z.tajoli at cineca.it> ---
To fix the probblrm we need to work on line 149 - 160 of
../cataloguing/additem.pl.
The lines are:

 149         my $pref_itemcallnumber =
C4::Context->preference('itemcallnumber');
 150         if (!$value && $subfieldlib->{kohafield} eq 'items.itemcallnumber'
&& $pref_itemcallnumber) {
 151             my $CNtag       = substr($pref_itemcallnumber, 0, 3);
 152             my $CNsubfield  = substr($pref_itemcallnumber, 3, 1);
 153             my $CNsubfield2 = substr($pref_itemcallnumber, 4, 1);
 154             my $temp2 = $temp->field($CNtag);
 155             if ($temp2) {
 156                 $value = ($temp2->subfield($CNsubfield)).'
'.($temp2->subfield($CNsubfield2));
 157                 #remove any trailing space incase one subfield is used
 158                 $value =~ s/^\s+|\s+$//g;
 159             }
 160         }

It is clear that first and second subfields are user.
Inside '$temp' you find bibliographic record data.

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


More information about the Koha-bugs mailing list