From fb7b5b6010f569cea0d92f64af80568453b186df Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 7 Aug 2024 00:11:53 +0000 Subject: [PATCH] Bug 37588: Add ability to mark a suggestion as Available This enhancement provides the ability to edit a suggestion and mark the status as Available. To test: 1) In the staff interface, edit a patron and give them a primary email address. 2) Click the More menu at the top and go to Suggestions. 3) Create a new purchase suggestion. Fill in the required bibliographic information. Under the Suggestion management section, click the 'Set to patron' button and search for the patron you just edited. This is to mark the suggestion as created by this patron. Submit your suggestion. 4) Your suggestion is now pending. Check the checkbox for your suggestion and mark it as Available. Submit. 5) View your patron and go to their Notices tab. 6) Confirm the 'suggested purchase available' notice has been generated for them. 7) Repeat steps 2 & 3. 8) Once you've made a new suggestion, go to Edit the suggestion. Under the Suggestion management section, change the Status dropdown to Available. Save. 9) Repeat steps 5 & 6. Sponsored-by: Pymble Ladies' College Signed-off-by: Olivier V --- .../prog/en/modules/suggestion/suggestion.tt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index e342ee6cf0..8de8a5fc42 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -466,6 +466,12 @@ [% END %] + [% IF ( statusselected_AVAILABLE ) %] + + [% ELSE %] + + [% END %] + [% FOREACH s IN SuggestionStatuses %] [% IF s.authorised_value == suggestion.STATUS %] @@ -934,6 +940,12 @@ [% END %] + [% IF ( statusselected_AVAILABLE ) %] + + [% ELSE %] + + [% END %] + [% FOREACH s IN SuggestionStatuses %] [% END %] -- 2.34.1