From 587b0ee46db6927984173ccf777f317ef35e09b7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 6 Jan 2021 16:41:48 +0000 Subject: [PATCH] Bug 27325: Fix singular/plural forms on the OPAC dashboard This patch adds handling of plurals to the display of counts on the logged-in user's dashboard: checkouts, overdues, etc. To test, apply the patch and log in to the OPAC. - Go to the OPAC main page and check the user dashboard area. - Confirm that the correct numbers and plural forms are shown for checkouts, overdues, holds pending, holds waiting, and messages. - Test each of those categories with counts of 0, 1, and more than one to confirm that the plural forms are correct. - Test with various counts of each type of message: OPAC notes as defined when editing a patron record and notes added via the checkout page. --- .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 50 +++++++++++++++++++--- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 37c50aacdc..9f5f0a30fc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -5,6 +5,7 @@ [% USE Categories %] [% USE Price %] [% USE KohaNews %] +[% PROCESS 'i18n.inc' %] [% SET OpacNavRight = KohaNews.get( location => "OpacNavRight", lang => lang, library => branchcode ) %] [% SET OpacMainUserBlock = KohaNews.get( location => "OpacMainUserBlock", lang => lang, library => branchcode ) %] [% SET OpacLoginInstructions = KohaNews.get( location => "OpacLoginInstructions", lang => lang, library => branchcode ) %] @@ -218,25 +219,60 @@

Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user %]

-- 2.11.0