Bugzilla – Attachment 126995 Details for
Bug 29058
Add option to not load existing holds table automatically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29058: (follow-up) Add hold count and don't display show options if no holds
Bug-29058-follow-up-Add-hold-count-and-dont-displa.patch (text/plain), 2.56 KB, created by
Nick Clemens (kidclamp)
on 2021-10-27 13:23:36 UTC
(
hide
)
Description:
Bug 29058: (follow-up) Add hold count and don't display show options if no holds
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-10-27 13:23:36 UTC
Size:
2.56 KB
patch
obsolete
>From cceb27cecc355a7d495ee6bc98e5f0cc5a9dc24c Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 21 Sep 2021 10:44:48 +0000 >Subject: [PATCH] Bug 29058: (follow-up) Add hold count and don't display show > options if no holds > >--- > .../prog/en/modules/reserve/request.tt | 19 +++++++++++-------- > 1 file changed, 11 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index e9cdc0ed0e..4039a30fbb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -3,6 +3,7 @@ > [% USE Asset %] > [% USE JSON.Escape %] > [% USE Koha %] >+[% USE Biblio %] > [% USE KohaDates %] > [% USE Branches %] > [% USE Categories %] >@@ -877,14 +878,16 @@ > [% END %] > > [% UNLESS ( patron ) %] >- >- <label for ="always_show_holds">Always show holds</label> >- [% IF always_show_holds == 'DONT' %] >- <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO"> >- <a class="btn btn-default" value="Show holds" id="show_holds_now" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]&show_holds_now=1">Show holds</a> >- [% ELSE %] >- <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked"> >- [% END %] >+ [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %] >+ [% IF hold_count %] >+ <label for ="always_show_holds">Always show holds</label> >+ [% IF always_show_holds == 'DONT' %] >+ <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO"> >+ <a class="btn btn-default" value="Show holds" id="show_holds_now" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]&show_holds_now=1">Show holds ([% hold_count %])</a> >+ [% ELSE %] >+ <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked"> >+ [% END %] >+ [% END %] > [% IF ( reserveloop ) %] > <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block"> > [% IF ( multi_hold ) %] >-- >2.20.1
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 29058
:
125054
|
125062
|
125091
|
125487
|
125488
|
126995
|
129924
|
129925
|
129930
|
129931
|
129932
|
129933