[Koha-bugs] [Bug 28022] MARC subfield 9 not honoring visibility

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 24 09:25:47 CET 2021


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

--- Comment #2 from Thomas Klausner <domm at plix.at> ---
Would it work if we consider the visibility of $a?

i.e. change:

$subfield eq "9" and
           exists($tagslib->{$tag}->{'a'}->{authtypecode}) and
           defined($tagslib->{$tag}->{'a'}->{authtypecode}) and
           $tagslib->{$tag}->{'a'}->{authtypecode} ne ''


to something like 

$subfield eq "9" and
           is_visibile($tagslib->{$tag}->{'a'}) and
           exists($tagslib->{$tag}->{'a'}->{authtypecode}) and
           defined($tagslib->{$tag}->{'a'}->{authtypecode}) and
           $tagslib->{$tag}->{'a'}->{authtypecode} ne ''

where is_visibile would check the value of `hidden` of $tag->{a} ?

(probably this wouldn't even need to be a function, but just some bit-twiddling
on `hidden`)

I was going to test something like this today. But if you say that this might
have implications beyond the visibility of a field in the editor, we might end
up removing the authtypecode from the various fields (which feels quite
wrong..)

Greetings,
domm

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


More information about the Koha-bugs mailing list