[Koha-bugs] [Bug 26314] "Volumes: show volumes" showing regardless of whether there are volumes linked to the record
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 15 16:06:54 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26314
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #155446|0 |1
is obsolete| |
--- Comment #40 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 155670
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155670&action=edit
Bug 26314: Only display volumes link when required
This patch makes C4::XSLT query for volumes the same way it would do
with the generated link (i.e. based on UseControlNumber) and passes
a flag to the XSLT so it displays (or not) the 'Show volumes' link.
To test:
1. Apply the first patch
2. Have a known record without volumes
3. Open the record in the OPAC
=> FAIL: It shows the 'Show volumes' link
4. Have a record known to have volumes
5. Open the record in the OPAC
=> SUCCESS: It shows the 'Show volumes' link
6. Apply this patch and restart_all
7. Reload the above records
=> SUCCESS: It shows the link where it has to, and hides it where it
shouldn't be displayed.
8. Repeat for Intranet
9. Sign off :-D
Signed-off-by: Michaela Sieber <michaela.sieber at kit.edu>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list