diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 6272ea6802..dc2b1e0b04 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -2701,6 +2701,8 @@ modules: columnname: suspended_until - columnname: notes + - + columnname: result logviewer: logst: default_display_length: 20 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 34206a0044..9d3ed7ce9f 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 @@ -103,63 +103,133 @@ [% ELSIF view == "report" %] -

Modified holds

-
-
- - - - - - - - - - - - - - - - - [% FOREACH hold IN updated_holds_obj %] +

Modified holds report

+ [% IF updated_holds_obj %] +
+
+

Updated holds ([% total_updated | html %])

+
TitlePatronPickup locationPriorityExpiration dateStatusSuspendedSuspended untilNotes
+ - - - - - - - - - + + + + + + + + + + + - [% END %] - -
[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %][% INCLUDE 'patron-title.inc' invert_name=1 patron=hold.borrower hide_patron_infos_if_needed=1 link_to="circulation_reserves" %][% hold.branch.branchname | html %][% hold.priority | html %][% hold.expirationdate | $KohaDates %] - [% IF hold.found == 'F' %] - Fulfilled - [% ELSIF hold.cancellationdate %] - Cancelled - [% ELSIF hold.found == 'W' %] - [% IF hold.cancellation_requests.count == 0 %] - Waiting - [% ELSE %] - Cancelled - [% END %] - [% ELSIF hold.found == 'T' %] - In transit - [% ELSE %] - Pending - [% END %] - [% IF hold.suspend %]Yes[% ELSE %]No[% END %][% IF hold.suspend_until %][% hold.suspend_until | $KohaDates %][% ELSE %]-[% END %][% hold.reservenotes | html %]TitlePatronPickup locationPriorityExpiration dateStatusSuspendedSuspended untilNotesResult
+ + + [% FOREACH hold IN updated_holds_obj %] + + [% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %] + [% INCLUDE 'patron-title.inc' invert_name=1 patron=hold.borrower hide_patron_infos_if_needed=1 link_to="circulation_reserves" %] + [% hold.branch.branchname | html %] + [% hold.priority | html %] + [% hold.expirationdate | $KohaDates %] + + [% IF hold.found == 'F' %] + Fulfilled + [% ELSIF hold.cancellationdate %] + Cancelled + [% ELSIF hold.found == 'W' %] + [% IF hold.cancellation_requests.count == 0 %] + Waiting + [% ELSE %] + Cancelled + [% END %] + [% ELSIF hold.found == 'T' %] + In transit + [% ELSE %] + Pending + [% END %] + + [% IF hold.suspend %]Yes[% ELSE %]No[% END %] + [% IF hold.suspend_until %][% hold.suspend_until | $KohaDates %][% ELSE %]-[% END %] + [% hold.reservenotes | html %] + Success + + [% END %] + + +
+
- -
- Return to batch hold modification -
- - + + [% END %] + [% IF failed_holds_obj %] +
+
+

Failed holds ([% total_failed | html %])

+
Important: The following holds were not modified.
+ + + + + + + + + + + + + + + + + + [% FOREACH failure IN failed_holds_obj %] + [% SET hold = failure.hold %] + + + + + + + + + + + + + [% END %] + +
TitlePatronPickup locationPriorityExpiration dateStatusSuspendedSuspended untilNotesResult
[% INCLUDE 'biblio-title.inc' biblio=hold.biblio link = 1 %][% INCLUDE 'patron-title.inc' invert_name=1 patron=hold.borrower hide_patron_infos_if_needed=1 link_to="circulation_reserves" %][% hold.branch.branchname | html %][% hold.priority | html %][% hold.expirationdate | $KohaDates %] + [% IF hold.found == 'F' %] + Fulfilled + [% ELSIF hold.cancellationdate %] + Cancelled + [% ELSIF hold.found == 'W' %] + [% IF hold.cancellation_requests.count == 0 %] + Waiting + [% ELSE %] + Cancelled + [% END %] + [% ELSIF hold.found == 'T' %] + In transit + [% ELSE %] + Pending + [% END %] + [% IF hold.suspend %]Yes[% ELSE %]No[% END %][% IF hold.suspend_until %][% hold.suspend_until | $KohaDates %][% ELSE %]-[% END %][% hold.reservenotes | html %] + Failed + [% IF failure.reason == 'pickupLocationNotAllowed' %] + New pickup location is invalid + [% END %] +
+
+ +
+ + [% END %] +
+ Return to batch hold modification +
[% END %]