[Koha-bugs] [Bug 17624] Hide (some) not-for-loan items on search results' availability
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 30 15:42:16 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17624
--- Comment #10 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 57834
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57834&action=edit
Bug 17624: [Follow-up] Consistency between Availability and Location
If OpacItemLocation is set to location, the opac results xslt shows
something like:
Availability: Copies available for loan: Library(1).
Copies available for reference: Library(1).
Location(s): Location_1 callnumber_1
Note that the reference item is not listed under Location, since the logic
for that section is different. Simply stated: Available is created by two
separate if statements, but Location is one if-else statement.
This patch changes the Location logic to two if statements. In this
process some single choose/when's are replaced by simple if's. Actually,
the change is quite minimal.
NOTE: A conditional <br> tag is removed from the XSLT between the reference
section and the status counts.
Test plan:
[1] Set OpacItemLocation to Location.
[2] Use a biblio with two items. Put data in callnumber and location.
Mark one item as not for loan.
[3] Verify that you now see both items in the Location line of the
search results.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list