From 1346bd250ed70ed429267b4dca2a0c1f90921a60 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 22 May 2014 11:24:52 -0400 Subject: [PATCH] Bug 12280 - "Others..." reason for suggestions not showing in Bootstrap OPAC If you accept or reject a suggestion using the "Others..." option and entering a reason manually, the text is not showing up in the Bootstrap OPAC theme as it does in CCSR and prog. This patch corrects the problem. This patch also adds a missing [% USE AuthorisedValues %] which would cause errors if the template tried to display a custom suggestion status as defined in the SUGGEST_STATUS authorized value category. To test, accept or reject a suggestion and specify a custom reason. View that suggestion in the Bootstrap OPAC and confirm that the custom reason is displayed. Signed-off-by: Nicole C. Engard Signed-off-by: Jonathan Druart Signed-off-by: Chris Cormack Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 573cd37b06..f58dd00dd7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -1,4 +1,5 @@ [% USE Koha %] +[% USE AuthorisedValues %] [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( op_add ) %]Enter a new purchase suggestion[% END %] [% IF ( op_else ) %]Purchase Suggestions[% END %] @@ -205,6 +206,7 @@ [% ELSIF ( suggestions_loo.REJECTED ) %]Suggestion declined [% ELSIF ( suggestions_loo.AVAILABLE ) %]Available in the library [% ELSE %] [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS, 1 ) %] [% END %] + [% IF ( suggestions_loo.reason ) %]([% suggestions_loo.reason |html %])[% END %] [% END # / FOREACH suggestions_loo %] -- 2.39.5