@@ -, +, @@ (SUGGEST_STATUS) - Create different values for the AV SUGGEST_STATUS - Create several suggestions - Change the status using the SUGGEST_STATUS values - Edit the suggestion and change again the status - View the suggestions for a given patron --- .../en/modules/members/purchase-suggestions.tt | 23 +++++++++++++++------- .../prog/en/modules/suggestion/suggestion.tt | 2 +- 2 files changed, 17 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt @@ -75,13 +75,22 @@ [% END %] - [% IF ( s.ASKED ) %]Requested[% END %] - [% IF ( s.CHECKED ) %]Checked by the library[% END %] - [% IF ( s.ACCEPTED ) %]Accepted by the library[% END %] - [% IF ( s.ORDERED ) %]Ordered by the library[% END %] - [% IF ( s.REJECTED ) %]Suggestion declined [% END %] - [% IF ( s.AVAILABLE ) %]Available in the library[% END %] - [% IF ( s.reason ) %]([% s.reason %])[% END %] + [% SWITCH s.STATUS %] + [% CASE "ASKED" %]Requested + [% CASE "CHECKED" %]Checked by the library + [% CASE "ACCEPTED" %]Accepted by the library + [% CASE "ORDERED" %]Ordered by the library + [% CASE "REJECTED" %]Suggestion declined + [% CASE "AVAILABLE" %]Available in the library + [% CASE %] + [% SET status_description = AuthorisedValues.GetByCode('SUGGEST_STATUS', s.STATUS) %] + [% IF status_description %] + [% status_description %] + [% ELSE %] + Unknown + [% END %] + [% END %] + [% IF s.reason %]([% s.reason %])[% END %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -308,7 +308,7 @@ [% END %] [% FOREACH s IN SuggestionStatuses %] - [% IF s.authorised_value == selected_status %] + [% IF s.authorised_value == suggestion.STATUS %] [% ELSE %] --