From a89c4b73589d6dec2621709b5d5afe4ae675679f Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 7 Mar 2024 15:29:16 +0000 Subject: [PATCH] Bug 36274: Use right op on opac-suggestions.tt To test: 1. click on "New suggestion", only an empty page comes up. The form is missing. 2. Apply patch and try again. 3. Play with suggestions making sure everything looks as excepted. --- .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 2be316bc6f..46bf965697 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -9,7 +9,7 @@ [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] [% INCLUDE 'doc-head-open.inc' %] -[% IF ( op_add_form ) %]Enter a new purchase suggestion[% END %] +<title>[% IF ( op_add ) %]Enter a new purchase suggestion[% END %] [% IF ( op_else ) %]Purchase suggestions[% END %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] @@ -25,7 +25,7 @@ [% INCLUDE 'patron-title.inc' patron = logged_in_user %] [% END %] [% END %] - [% IF ( op_add_form ) %] + [% IF ( op_add ) %] [% WRAPPER breadcrumb_item %] Purchase suggestions [% END %] @@ -49,7 +49,7 @@
- [% IF ( op_add_form ) %] + [% IF ( op_add ) %]

Your purchase suggestions

[% IF ( Koha.Preference('MaxTotalSuggestions') != '' && patrons_total_suggestions_count >= Koha.Preference('MaxTotalSuggestions') ) %]

You cannot place any more suggestions

@@ -305,7 +305,7 @@ [% END %] - [% END # IF op_add_form %] + [% END # IF op_add %] [% IF ( op_else ) %]

-- 2.30.2