Bugzilla – Attachment 190902 Details for
Bug 40568
Various corrections to recalls templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40568: Various corrections to recalls templates
Bug-40568-Various-corrections-to-recalls-templates.patch (text/plain), 3.72 KB, created by
Owen Leonard
on 2026-01-05 18:07:44 UTC
(
hide
)
Description:
Bug 40568: Various corrections to recalls templates
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-05 18:07:44 UTC
Size:
3.72 KB
patch
obsolete
>From e749cd56e3273aa1cc97c4f0adfef2931cb7a6c7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 31 Jul 2025 11:41:00 +0000 >Subject: [PATCH] Bug 40568: Various corrections to recalls templates > >This patch makes various minor changes to recalls templates. > >- Correct sorting of dates in tables >- Wrap recalls table in "page-section" div. >- Hide "Show old recalls" if there are no recalls. > >To test, apply the patch and enable Recalls if necessary. > >- If necessary, place some recalls. >- Check the sorting of date columns on the "Recalls queue" page. It > should be correct. >- View a patron who has never placed a recall. Go to their recalls > history and confirm that you see a "Patron has no recalls" message but > no "Show old recalls" checkbox. > >Sponsored-by: Athens County Public Libraries >--- > koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc | 6 +++--- > .../prog/en/modules/members/recallshistory.tt | 8 +++++--- > 2 files changed, 8 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc >index 8915ab1f352..44ecb3926fa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/recalls.inc >@@ -41,9 +41,9 @@ > <td class="recall-patron"> [% INCLUDE 'patron-title.inc' patron=recall.patron hide_patron_infos_if_needed=1 link_to="circulation_recalls" %] </td> > [% END %] > >- <td class="recall-date"> [% recall.created_date | $KohaDates %] </td> >+ <td class="recall-date" data-order="[% recall.created_date | html %]"> [% recall.created_date | $KohaDates %] </td> > >- <td class="recall-expiry"> >+ <td class="recall-expiry" data-order="[% recall.expiration_date | html %]"> > [% IF ( recall.expiration_date ) %] > [% recall.expiration_date | $KohaDates %] > [% ELSIF ( !recall.completed ) %] >@@ -74,7 +74,7 @@ > </td> > > [% UNLESS viewing_old %] >- <td class="recall-duedate"> >+ <td class="recall-duedate" data-order="[% recall.checkout.date_due | html %]"> > [% IF recall.requested and recall.checkout %] > <span>Due to be returned by [% recall.checkout.date_due | $KohaDates %]</span> > [% ELSIF recall.waiting and RECALL.expiration_date %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/recallshistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/recallshistory.tt >index aac63d06e51..f705ddda984 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/recallshistory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/recallshistory.tt >@@ -40,9 +40,11 @@ > [% INCLUDE 'members-toolbar.inc' %] > <h1>Recalls history</h1> > [% IF Koha.Preference('UseRecalls') %] >- <input type="checkbox" id="hide_old" name="hide_old" checked="checked" /> >- <label for="hide_old">Show old recalls</label> >- [% INCLUDE 'recalls.inc' %] >+ [% IF recalls.count %] >+ <input type="checkbox" id="hide_old" name="hide_old" checked="checked" /> >+ <label for="hide_old">Show old recalls</label> >+ [% END %] >+ <div class="page-section"> [% INCLUDE 'recalls.inc' %] </div> > [% ELSE %] > <div class="alert alert-info">Recalls have not been enabled. Enable the <a href="/cgi-bin/koha/admin/preferences.pl?tab=circulation">UseRecalls</a> system preference to use recalls.</div> > [% END %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40568
:
184937
|
190902
|
190913