[Koha-bugs] [Bug 14987] patron card creator not displaying correct cardnumber
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Oct 9 05:57:13 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14987
Marc Véron <veron at veron.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |veron at veron.ch
--- Comment #1 from Marc Véron <veron at veron.ch> ---
Card number is the position number in the batch.
It comes from:
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/edit-batch.tt Line 215
[% SWITCH header_field.field_label -%]
[% CASE "Card Number" -%]
<th>Card number</th>
^-----------------------
patroncards/edit-batch.pl Line 50
my $display_columns = [ {_card_number => {label => 'Card Number', (...)
^----------------------
Line 138 get_card_summary
^----------------------
C4/Creators/Lib.pm
get_card_summary:
This function returns an arrayref whose elements are hashes containing the
label_ids of current cards along with the item count
Line 367 :
my $card_number = 0;
(...)
foreach my $item (@{$params{'items'}}) {
$card_number++;
(...)
my $card_summary->{'_card_number'} = $card_number;
Fazit:
Quick string fix would be to change edit-batch.cc
More comprensible / sustainable fix would be to change edit-batch.pl and Lib.pm
as well.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list