From 9a6a0611f8905344493bb471c102e9d0fa958c4b Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 7 Mar 2024 23:09:56 +0000 Subject: [PATCH] Bug 36274: Correct links leading to purchase suggestion page To test: 1. APPLY PATCH 2. As a logged in OPAC user go to 'Your account' > Purchase suggestion. The form should display. 3. Make a suggestion and confirm it works. 4. Try to make a suggestion using title, author, isbn information from an item that already exists. 5. See the "A similar document already exists:" warning. Confirm the suggestion anyways. 6. Set MaxTotalSuggestions to 4 and NumberOfSuggestionDays to 2. Make sure you can still navigate to the purchase suggestion form. 7. Do an OPAC search that will yield no results as a logged in user. 8. Click the "Make a purchase suggestion" link, making sure it works. 9. Turn on AnonSuggestions and log out of the OPAC. 10. Do an OPAC search that will yield no results. Again click the "Make a purchase suggestion", confirm it works. Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++-- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 043b1bbc69..1e16195fe7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -557,9 +557,9 @@
    [% IF suggestion %] [% IF Koha.Preference( 'AnonSuggestions' ) == 1 %] -
  • Make a purchase suggestion
  • +
  • Make a purchase suggestion
  • [% ELSIF loggedinusername %] -
  • Make a purchase suggestion
  • +
  • Make a purchase suggestion
  • [% END %] [% END %] [% IF Koha.Preference( 'ILLModule' ) == 1 && loggedinusername %] 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..6bf1a4facb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -382,7 +382,7 @@ [% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %]

    You have reached your limit for suggestions you can place at this time ([% Koha.Preference('MaxOpenSuggestions') | html %]).
    Once the library has processed those suggestions you will be able to place more.

    [% ELSE %] - New purchase suggestion + New purchase suggestion [% END %] [% END %] @@ -521,7 +521,7 @@ [% ELSIF ( Koha.Preference('MaxOpenSuggestions') != '' && patrons_pending_suggestions_count >= Koha.Preference('MaxOpenSuggestions') ) %]

    You have reached your limit for suggestions you can place at this time.
    Once the library has processed those suggestions you will be able to place more.

    [% ELSE %] -

    New purchase suggestion

    +

    New purchase suggestion

    [% END %] [% END %] [% END # / IF suggestions.size %] -- 2.39.5