[Koha-bugs] [Bug 32302] Hide "ISBN" label when no ISBN data when sending list

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 30 23:51:12 CET 2022


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

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
Hi Adam,

Thanks for taking an interest in this one. I'm not sure that I 100% follow your
comment. 

The premise is there is a List with bib records that don't have the 020 MARC
field in them. If you view the list in the OPAC, click "Send list", and email
the list to yourself, the email should have blank "ISBN:" lines in the email
for the records that don't have 020 MARC fields in them. 

This is because BIBLIO_RESULT.ISBN contains an empty array reference which
counts as a "true" value in [% IF ( BIBLIO_RESULT.ISBN ) %].

That IF statement needs to check the size/length of the array reference in the
ISBN field of the BIBLIO_RESULT hash. 

I've already fixed this one locally, so it hasn't been a high priority for me,
but I'll attach a patch in a minute.

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


More information about the Koha-bugs mailing list