Bug 21270: Display "Make an Interlibrary loan request" even if "suggestions" is turned off
Test plan: - Turn off "suggestions" - Turn on "ILLModule" => When logged in you should see the "Make an Interlibrary loan request" - Turn on "suggestions" - Turn off "ILLModule" => When logged in you should see the "Make a purchase suggestion" - Turn on "suggestions" - Turn on "ILLModule" => When logged in you should see both links. - Turn off "suggestions" - Turn off "ILLModule" => You should not see the "Not finding what you're looking for?" block - Turn on "suggestions" - Turn on AnonSuggestions => You should see the "Make a purchase suggestion" even when logged out Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
1cce77631a
commit
83e83adfb5
1 changed files with 6 additions and 5 deletions
|
@ -599,14 +599,15 @@
|
||||||
|
|
||||||
[% END # / IF total %]
|
[% END # / IF total %]
|
||||||
|
|
||||||
[% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) %]
|
[%# Display "Not finding what you're looking for" for suggestion or ILL %]
|
||||||
|
[% IF Koha.Preference( 'suggestion' ) == 1 && ( Koha.Preference( 'AnonSuggestions' ) == 1 || loggedinusername ) || ( Koha.Preference( 'ILLModule' ) == 1 && loggedinusername ) %]
|
||||||
<div class="suggestion">
|
<div class="suggestion">
|
||||||
Not finding what you're looking for?
|
Not finding what you're looking for?
|
||||||
<ul>
|
<ul>
|
||||||
|
[% IF Koha.Preference( 'suggestion' ) == 1 %]
|
||||||
[% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
|
[% IF Koha.Preference( 'AnonSuggestions' ) == 1 %]
|
||||||
<li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
|
<li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
|
||||||
[% ELSE %]
|
[% ELSIF loggedinusername %]
|
||||||
[% IF ( loggedinusername ) %]
|
|
||||||
<li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
|
<li>Make a <a href="/cgi-bin/koha/opac-suggestions.pl?op=add">purchase suggestion</a></li>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
Loading…
Reference in a new issue