[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% USE Branches %]
[% USE AuthorisedValues %]
[% USE KohaDates %]
[% USE AdditionalContents %]
[% SET opacsuggestion = AdditionalContents.get( location => "OpacSuggestioninstructions", lang => lang, library => logged_in_user.branchcode || default_branch ) %]
[% 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 ) %]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' %]
[% BLOCK cssinclude %][% END %]
[% IF ( loggedinusername ) %][% INCLUDE 'bodytag.inc' bodyid='opac-usersuggestions' bodyclass='scrollto' %][% ELSE %][% INCLUDE 'bodytag.inc' bodyid='opac-suggestions' bodyclass='scrollto' %][% END %]
[% INCLUDE 'masthead.inc' %]
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 %]
[% IF ( opacsuggestion ) %]
[% PROCESS koha_news_block news => opacsuggestion %]
[% ELSE %]
Enter a new purchase suggestion
Please fill out this form to make a purchase suggestion. You will receive an email when the library processes your suggestion.
Only certain fields (marked in red) are required, but the more information you enter the easier it will be for the librarians to find the title you're requesting. The "Notes" field can be used to provide any additional information.
[% END %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'biblio_exists' %]
A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% END %]
[% END # IF op_add %]
[% IF ( op_else ) %]
[% IF Koha.Preference( 'OPACViewOthersSuggestions' ) == 1 %]
Purchase suggestions
[% ELSE %]
[% IF ( loggedinusername ) %]
Your purchase suggestions
[% ELSE %]
Purchase suggestions
[% END %]
[% END %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'total_suggestions' %]
The suggestion has not been added. You have reached your limit for suggestions you can place at this time ([% Koha.Preference('MaxTotalSuggestions') | html %] in [% Koha.Preference('NumberOfSuggestionDays') | html %] days).
[% CASE 'too_many' %]
The suggestion has not been added. 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.
[% CASE 'already_exists' %]
The suggestion has not been added. A suggestion with this title already exists.
[% CASE 'success_on_inserted' %]
Your suggestion has been submitted.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% IF ( deleted ) %]
The selected suggestions have been deleted.
[% END %]
[% IF (Koha.Preference( 'OPACViewOthersSuggestions' ) || loggedinusername) && (suggestions.size > 0 OR title_filter) %]
[% SET can_delete_suggestion = 0 %]
[% END %]
[% IF suggestions.size > 0 %]
[% SET can_delete_suggestion = 0 %]
[% ELSE %]
[% IF Koha.Preference( 'OPACViewOthersSuggestions' ) %]
[% IF title_filter %]
There are no pending purchase suggestions matching your search.
[% ELSIF loggedinusername AND NOT suggested_by_anyone %]
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.