The SHOW_BCODE is a hidden feature, not translatable and does not exist for all languages. It sounds like it should be a column of the borrowers table
Or maybe it should be deprecated in favor of settings on the category type or a column configuration setting? Not sure hwo granular display stuff like this needs to be.
(In reply to Katrin Fischer from comment #1) > Or maybe it should be deprecated in favor of settings on the category type > or a column configuration setting? Not sure hwo granular display stuff like > this needs to be. I was leaning in the direction of something in the column settings, but right now, it seems to be set on a individual basis. If we transfer it somewhere, it probably should be somewhere in the patron categories, so as not to change the feature too much for libraries already using it?
It would be really interesting to get feedback on this from libraries using it. I think it was introduced with the extended patron attributes, maybe as some kind of example? But I never quite understood the use case. Maybe we could even do without?
I really feel like it is overkill as a per person setting. I wonder who is using it?
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;