From b946f4b3b18f1921cd3b618d4d93ab89438353d6 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 12 Feb 2025 21:13:39 +0000 Subject: [PATCH] Bug 36135: API the found_holds table --- .../en/modules/tools/batch_modify_holds.tt | 416 ++++++++++-------- 1 file changed, 225 insertions(+), 191 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt index 166bdd04bc9..7a926bfb93d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_modify_holds.tt @@ -35,75 +35,75 @@ [% END #/ WRAPPER breadcrumbs %] [% END #/ WRAPPER sub-header.inc %] -
-
-
-
+
+
+
+
+

Batch modify holds

-

Batch modify holds

- - [% IF view == 'form' %] -
-
- Hold search criteria: - NOTE! Column patron_expiration_date is used as a main filter for expiration date field. Otherwise column expirationdate is used. -
    -
  1. - - -
  2. -
  3. - - -
  4. -
  5. - - -
  6. -
  7. - - -
  8. -
  9. - - -
  10. -
  11. - - -
  12. -
  13. - - -
  14. -
  15. - - -
  16. -
-
-
- - - Cancel -
-
- [% ELSIF view == 'list' %] + [% IF view == 'form' %] +
+
+ Hold search criteria: + NOTE! Column patron_expiration_date is used as a main filter for expiration date field. Otherwise column expirationdate is used. +
    +
  1. + + +
  2. +
  3. + + +
  4. +
  5. + + +
  6. +
  7. + + +
  8. +
  9. + + +
  10. +
  11. + + +
  12. +
  13. + + +
  14. +
  15. + + +
  16. +
+
+
+ + + Cancel +
+
+ + [% ELSIF view == 'list' %] + [% IF holds.count %]
- [% INCLUDE 'csrf-token.inc' %] - [% IF holds.count %] -

Found [% holds.count | html %][% IF holds.count > 1 %] holds [% ELSE %] hold [% END %]to modify.

+ [% INCLUDE 'csrf-token.inc' %] +

Found [% holds.count | html %][% IF holds.count > 1 %]holds[% ELSE %]hold[% END %]to modify.

Select all @@ -112,9 +112,8 @@ - + - @@ -124,34 +123,10 @@ - - [% FOREACH hold IN holds %] - - - - - - - - - - - - - [% END %] - -
 Hold ID Expiration datePatron expiration date Title Barcode StatusNote
[% hold.expirationdate | $KohaDates %][% hold.patron_expiration_date | $KohaDates %][% hold.biblio.title | html %][% hold.item.barcode | html %] - [% IF hold.found == "T" %] - In transit - [% ELSIF hold.found == "P" %] - In processing - [% ELSIF hold.found == "W" %] - Waiting - [% ELSE %] - No status - [% END %] - [% Branches.GetName( hold.branchcode ) | html %][% IF hold.suspend %]Yes[% ELSE %]No[% END %][% hold.suspend_until | $KohaDates %][% hold.reservenotes | html %]
-
+ + +
+

Modify holds

@@ -167,7 +142,7 @@ -
- + - + - +
+ +
- - + + Cancel
-
- [% ELSE %] -
- No holds were found for the selected filters. -
- Return - [% END %] - [% ELSIF view == 'report' %] -
- [% updated_holds.count | html %] holds have been modified! -
-
- - + + + [% ELSE %] +
No holds were found for the selected filters.
+ Return + [% END %] + [% ELSIF view == 'report' %] +
[% updated_holds.count | html %] holds have been modified!
+
+
+ + + + + + + + + + + + + [% FOREACH hold IN updated_holds %] - - - - - - - + + + + + + + - - - [% FOREACH hold IN updated_holds %] - - - - - - - - - - [% END %] - -
Expiration dateTitleBarcodeHold pickup librarySuspendedSuspended untilNote
Expiration dateTitleBarcodeHold pickup librarySuspendedSuspended untilNote[% hold.expirationdate | $KohaDates %][% hold.biblio.title | html %][% hold.item.barcode | html %][% Branches.GetName( hold.branchcode ) | html %][% IF hold.suspend == 0 %]No[% ELSE %]Yes[% END %][% hold.suspend_until | $KohaDates %][% hold.reservenotes | html %]
[% hold.expirationdate | $KohaDates %][% hold.biblio.title | html %][% hold.item.barcode | html %][% Branches.GetName( hold.branchcode ) | html %][% IF hold.suspend == 0 %]No[% ELSE %]Yes[% END %][% hold.suspend_until | $KohaDates %][% hold.reservenotes | html %]
-
- Return to batch hold modification - [% END %] -
-
+ [% END %] + + + +
+ + Return to batch hold modification + [% END %] +
+
+ - -
- -
-
+
+ +
+
+ + [% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] [% END %] -[% INCLUDE 'intranet-bottom.inc' %] \ No newline at end of file +[% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5