Bug 10807: (follow-up) wording tweak; take OpacAuthorities into account
This follow-up makes two changes: 1) Change "biblio" to "catalog" when referring to non-authority searches. 2) Make display of the authority search tab dependent on the OpacAuthorities system preference. If OPAC authority searches are disabled we shouldn't show a tab which will always be empty. To test, view the OPAC search history page with the OpacAuthorities preference both on and off. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
ba41b7da79
commit
e6d8029750
1 changed files with 18 additions and 8 deletions
|
@ -19,7 +19,7 @@ $(document).ready(function() {
|
|||
]
|
||||
}));
|
||||
|
||||
$('#tabs').tabs();
|
||||
[% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]$('#tabs').tabs();[% END %]
|
||||
});
|
||||
//]]>
|
||||
|
||||
|
@ -40,11 +40,13 @@ $(document).ready(function() {
|
|||
<div class="yui-b">
|
||||
<div class="yui-g">
|
||||
<h1>Search history</h1>
|
||||
<div id="tabs" class="toptabs">
|
||||
<ul>
|
||||
<li><a href="#biblio_tab">Biblio</a></li>
|
||||
<li><a href="#authority_tab">Authority</a></li>
|
||||
</ul>
|
||||
[% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
|
||||
<div id="tabs" class="toptabs">
|
||||
<ul>
|
||||
<li><a href="#biblio_tab">Catalog</a></li>
|
||||
<li><a href="#authority_tab">Authority</a></li>
|
||||
</ul>
|
||||
[% END %]
|
||||
<div id="biblio_tab">
|
||||
[% IF ( current_biblio_searches ) %]
|
||||
<h2>Current session</h2>
|
||||
|
@ -52,7 +54,7 @@ $(document).ready(function() {
|
|||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="previous" value="0" />
|
||||
<input type="hidden" name="type" value="biblio" />
|
||||
<input type="submit" class="deleteshelf" value="Delete your current biblio history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
|
||||
<input type="submit" class="deleteshelf" value="Delete your current catalog history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
|
||||
</form>
|
||||
<table class="historyt">
|
||||
<thead>
|
||||
|
@ -80,7 +82,7 @@ $(document).ready(function() {
|
|||
<input type="hidden" name="action" value="delete" />
|
||||
<input type="hidden" name="previous" value="1" />
|
||||
<input type="hidden" name="type" value="biblio" />
|
||||
<input type="submit" class="deleteshelf" value="Delete your previous biblio search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
|
||||
<input type="submit" class="deleteshelf" value="Delete your previous catalog search history" onclick="return confirm(MSG_CONFIRM_DELETE_HISTORY);" />
|
||||
</form>
|
||||
<table class="historyt">
|
||||
<thead>
|
||||
|
@ -102,6 +104,13 @@ $(document).ready(function() {
|
|||
</table>
|
||||
[% END %]
|
||||
|
||||
[% IF !current_biblio_searches && !previous_biblio_searches %]
|
||||
<p>Your catalog search history is empty.</p>
|
||||
[% END %]
|
||||
</div>
|
||||
|
||||
|
||||
[% IF Koha.Preference( 'OpacAuthorities' ) == 1 %]
|
||||
<div id="authority_tab">
|
||||
[% IF ( current_authority_searches ) %]
|
||||
<h2>Current session</h2>
|
||||
|
@ -164,6 +173,7 @@ $(document).ready(function() {
|
|||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue