@@ -, +, @@
the holds page
- Locate a title in the catalog with multiple holds.
- View the holds on that title. In the list of holds you should see
"Delete" and "Suspend" buttons in the last two columns of the tabel of
holds.
- Test that the "Delete" button works correctly,
- Test the "Suspend" button. Clicking it should trigger a modal window
where you can set a date for the hold to resume.
- Submitting the form with a date should result in the page reloading
and showing the hold as suspended until that date.
- Submitting hte form without a date should result in the page
reloading and showing the hold as suspended.
- Test that the "Resume" button works to remove the suspension.
- Disable AutoResumeSuspendedHolds. Now when you click the "Suspend"
button you should not see the modal. The page should reload and the
hold should be suspended without a resume date.
---
.../prog/en/includes/holds_table.inc | 23 ++++---
.../prog/en/modules/reserve/request.tt | 62 ++++++++++++++++++-
2 files changed, 73 insertions(+), 12 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
@@ -177,6 +177,13 @@
[% IF hold.non_priority %]
Non priority hold
[% END %]
+ [% IF ( hold.suspend ) %]
+ [% IF ( hold.suspend_until ) -%]
+
Hold is suspended until [% hold.suspend_until | $KohaDates %]
+ [% ELSE %]
+
Hold is suspended
+ [% END %]
+ [% END %]
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
@@ -196,28 +203,24 @@
[% END %]