Owen Leonard
04dd98fa84
Several system preference variables are unavailable to the OPAC login template because they are not explicitly enabled for that page. Instead of adding them to Auth.pm using the old method this patch uses the new system preference check syntax using the Koha TT plugin. The following preferences are now checked using this syntax in masthead.inc: OpacAddMastheadLibraryPulldown UseCourseReserves reviewson OpacShowRecentComments In order for the call in masthead.inc to the new plugin to work on all OPAC pages "[% USE Koha %]" must be added to any template which includes it (most of them). Also in this patch: A change to Auth.pm to enable correct display of the LibraryName in the title of the OPAC login page. To test, turn on the above system preferences and confirm that the relevant links appear under the OPAC's main search bar on all pages including the login page. Confirm that the text specified in the LibraryName system preference is shown as the title of the login page. Confirm that course reserves and comments are displayed correctly on the biblio detail page. Signed-off-by: Liz Rea <liz@catalyst.net.nz> I checked both prog and ccsr - all seems well and the links are appearing and disappearing in accordance with the appropriate sysprefs. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works as described. Signed-off-by: Galen Charlton <gmc@esilibrary.com>
62 lines
2.7 KiB
Text
62 lines
2.7 KiB
Text
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Authority search
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="opac-authorities">
|
|
[% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %]
|
|
<div id="bd">
|
|
[% INCLUDE 'masthead.inc' %]
|
|
|
|
<div id="yui-main">
|
|
<div class="yui-b"><div class="yui-g">
|
|
<div id="userauthhome" class="container">
|
|
<form name="f" action="/cgi-bin/koha/opac-authorities-home.pl" method="get">
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="opac" />
|
|
<fieldset class="rows">
|
|
<legend>Authority search</legend>
|
|
<ol>
|
|
<li><label for="authtypecode">Search: </label> <select name="authtypecode" id="authtypecode">
|
|
[% FOREACH authtypesloo IN authtypesloop %]
|
|
[% IF ( authtypesloo.selected ) %]<option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
|
|
[% ELSE %]<option value="[% authtypesloo.value %]"> [% authtypesloo.authtypetext %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
<select name="operator" id="anywhere">
|
|
<option value="contains">contains</option>
|
|
<option value="start">starts with</option>
|
|
<option value="is">is exactly</option>
|
|
</select>
|
|
<input type="text" name="value" id="value" value="[% value %]" />
|
|
<select name="marclist" id="marclist">
|
|
<option value="any" selected="selected">in keyword</option>
|
|
<option value="match">in any heading</option>
|
|
<option value="mainentry">in main entry</option>
|
|
</select>
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
</li>
|
|
<li><label for="orderby">Order by: </label><select name="orderby" id="orderby">
|
|
<option value="">None</option>
|
|
<option value="HeadingAsc" selected="selected">Heading ascendant</option>
|
|
<option value="HeadingDsc">Heading descendant</option>
|
|
</select>
|
|
</li></ol>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="submit" value="Submit" class="submit" />
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
[% IF ( OpacNav ) %]
|
|
<div class="yui-b">
|
|
<div id="leftmenus" class="container">
|
|
[% INCLUDE 'navigation.inc' %]
|
|
</div>
|
|
</div>[% END %]
|
|
</div>
|
|
[% INCLUDE 'opac-bottom.inc' %]
|