[Koha-bugs] [Bug 18348] SHOW_BCODE should be a column of the borrowers table

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 10 23:12:26 CEST 2023


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

--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
It only seems to affect the items table in the OPAC? Maybe.

opac/opac-user.pl:

use constant ATTRIBUTE_SHOW_BARCODE => 'SHOW_BCODE';

my $show_barcode = Koha::Patron::Attribute::Types->search( # FIXME we should
not need this search
    { code => ATTRIBUTE_SHOW_BARCODE } )->count;
if ($show_barcode) {
    my $patron_show_barcode =
$patron->get_extended_attribute(ATTRIBUTE_SHOW_BARCODE);
    undef $show_barcode if $patron_show_barcode and not
$patron_show_barcode->attribute;
}
$template->param( show_barcode => 1 ) if $show_barcode;

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


More information about the Koha-bugs mailing list