Commit c86ef9db authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

koha: search styling - activate patron autocomplete and hide unwanted tabs

parent b8d62e5e
......@@ -241,11 +241,11 @@ sub setCustomTemplateParams {
my ($self, $template) = @_;
$template->param(
dateformat => "dmydot", # dd.mm.yyyy
minPasswordLength => "0",
EnhancedMessagingPreferences => "1",
minPasswordLength => 0,
EnhancedMessagingPreferences => 1,
KohaAdminEmailAddress => 'noreply@deichman.no',
UseKohaPlugins => "1",
UseKohaPlugins => 1,
CircAutocompl => 1,
# from Auth
# LoginBranchcode => C4::Context->userenv->{"branch"},
# LoginFirstname => C4::Context->userenv->{"firstname"},
......
......@@ -4,6 +4,7 @@
<div id="header_search">
[% INCLUDE 'patron-search-box.inc' %]
<!--
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
<div id="checkin_search" class="residentsearch">
<p class="tip">Scan a barcode to check in:</p>
......@@ -30,6 +31,7 @@
<input value="Submit" class="submit" type="submit" />
</form>
</div>[% END %]
-->
[% IF ( CAN_user_catalogue ) %]
<div id="catalog_search" class="residentsearch">
<p class="tip">Enter search keywords:</p>
......@@ -42,9 +44,11 @@
<ul>
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
<!--
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li class="deichman-hidden"><a class="keep_text" href="#checkin_search">Check in</a></li>[% END %]
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li class="deichman-hidden"><a class="keep_text" href="#renew_search">Renew</a></li>[% END %]
[% IF ( CAN_user_borrowers ) %]<li class="deichman-hidden"><a class="keep_text" href="#patron_search">Search patrons</a></li>[% END %]
-->
[% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
</ul>
......
......@@ -3,7 +3,8 @@
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Main page Resident Search Box -->
<div id="header_search">
[% INCLUDE 'patron-search-box.inc' %]
[% INCLUDE 'patron-search-box.inc' %]
<!--
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
<div id="checkin_search" class="residentsearch">
<p class="tip">Skann en strekkode og lever inn:</p>
......@@ -30,6 +31,7 @@
<input value="Send" class="submit" type="submit" />
</form>
</div>[% END %]
-->
[% IF ( CAN_user_catalogue ) %]
<div id="catalog_search" class="residentsearch">
<p class="tip">Skriv søkeord:</p>
......@@ -42,9 +44,11 @@
<ul>
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Utlån</a></li>[% END %]
<!--
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li class="deichman-hidden"><a class="keep_text" href="#checkin_search">Innlevering</a></li>[% END %]
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li class="deichman-hidden"><a class="keep_text" href="#renew_search">Forny</a></li>[% END %]
[% IF ( CAN_user_borrowers ) %]<li class="deichman-hidden"><a class="keep_text" href="#patron_search">Søk etter lånere</a></li>[% END %]
-->
[% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Søk i katalogen</a></li>[% END %]
</ul>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment