[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 12:06:20 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32302
--- Comment #2 from Adam Styles <adam.styles at esa.edu.au> ---
Hi David,
Just to clarify the bug raised:
```
"ISBN:" shows in the email whether or not there is any ISBN data."
```
Are you suggesting that, IF a bibliographic record, has NO ISBN FIELD in the
marc file? that the output result in email, still displays a blank ISBN label.
OR that...
IF a bibliographic record, has an empty ISBN FIELD with no value in subfields,
in the marc file, that the output result in email, still displays a blank ISBN
label.
The reason I ask, is that in the file:
./koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendshelf.tt
There is a specific IF statement line 61 - 68, that will only display the ISBN
output IF the marc file itself has an ISBN marc field present (either subfield
populated or not).
See below
```
[% IF ( BIBLIO_RESULT.ISBN ) %]
<span>
ISBN: [% FOREACH isbn IN BIBLIO_RESULT.ISBN %]
[% isbn | $raw %]
[% UNLESS ( loop.last ) %]; [% END %]
[% END %]
</span><br/>
[% END %]
```
I ran a quick test in opac which appears to show the ISBN label, only when the
marc record itself has a 020 ISBN field. When I removed 020 ISBN field in test
marc record, the ISBN label did not populate in output results.
Are you able to create a test plan based on your perspective on this bug? IF so
I can test authentically.
Thanks.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list