Koha/koha-tmpl/opac-tmpl/bootstrap/en/xslt
Marcel de Rooy f05bff428c Bug 21260: Create three main XSLT Availability segments
XSLT changes:
[1] Add an item count at the start. Also add variables for counting
    status available and reference. Use these vars in the corresponding
    'blocks'.
[2] Refine the No items-test with the new itemcount.
[3] Combine the reallynotforloan block with the other statuses by
    refining (extending) its initial test. All if's are moved up into
    the former block but are unchanged.

Result of these changes makes that the Availability line consists of three
segments: 1 Available items, 2 Reference items, 3 Other statuses.

Test plan:
[1] Check a biblio without any items in the OAPC results. You should
    see the No items only here.
[2] Check a biblio with one item checked out. You should see only the
    'third' segment with Checked out(1).
[3] Check a biblio with one available and a notforloan==1. You should
    see segment 1 and 2. Both listing item call numbers.
[4] Check a biblio with one available and a notforloan==-1. You should
    see segment 1 and 3. Both listing item call numbers. (See also the
    following patch.)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: ava li <rubyli208@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-01 17:58:49 +02:00
..
compact.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21Languages.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
MARC21slim2OPACDetail.xsl Bug 27581: Rename USeICU preference to UseICUStyleQuotes 2021-02-08 14:56:00 +01:00
MARC21slim2OPACResults.xsl Bug 21260: Create three main XSLT Availability segments 2021-04-01 17:58:49 +02:00
MARC21slimUtils.xsl Bug 27633: (bug 15436 follow-up) Fix duplicate of 440$v at the OPAC 2021-02-08 14:56:00 +01:00
NORMARCslim2OPACDetail.xsl Bug 27581: Rename USeICU preference to UseICUStyleQuotes 2021-02-08 14:56:00 +01:00
NORMARCslim2OPACResults.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
NORMARCslimUtils.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
plainMARC.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2OPACDetail.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslim2OPACResults.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00
UNIMARCslimUtils.xsl Bug 25381: XSLTs should not define entities 2021-01-22 13:46:40 +01:00