|
Lines 3-8
Link Here
|
| 3 |
[% PROCESS 'authorities-search-results.inc' %] |
3 |
[% PROCESS 'authorities-search-results.inc' %] |
| 4 |
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %] |
4 |
[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › [% IF ( total ) %]Authority search result[% ELSE %]No results found[% END %] |
| 5 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
6 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 7 |
<script type="text/javascript"> |
| 8 |
//<![CDATA[ |
| 9 |
function updateDetailsLink() { |
| 10 |
var authids = getContextAuthIds(); |
| 11 |
if ( authids.length > 0 ) { |
| 12 |
$(".details_link a").attr("href", "/cgi-bin/koha/opac-authoritiesdetail.pl?authid=" + authids[0]); |
| 13 |
$(".details_link").show(); |
| 14 |
} else { |
| 15 |
$(".details_link").hide(); |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
$(document).ready(function(){ |
| 20 |
$("div.searchresults").unCheckCheckboxes(); |
| 21 |
var authids = getContextAuthIds(); |
| 22 |
if ( authids ) { |
| 23 |
for (var i = 0 ; i < authids.length ; i++ ) { |
| 24 |
var id = ('#auth' + authids[i]); |
| 25 |
if ( $(id) ) { |
| 26 |
$(id).attr('checked', true); |
| 27 |
} |
| 28 |
} |
| 29 |
updateDetailsLink(); |
| 30 |
} |
| 31 |
$("input[name='authid']").change(function(){ |
| 32 |
if ( $(this).is(':checked') == true ) { |
| 33 |
addAuthToContext( $(this).val() ); |
| 34 |
} else { |
| 35 |
delAuthToContext( $(this).val() ); |
| 36 |
} |
| 37 |
updateDetailsLink(); |
| 38 |
}); |
| 39 |
}); |
| 40 |
|
| 41 |
//]]> |
| 42 |
</script> |
| 6 |
</head> |
43 |
</head> |
| 7 |
<body id="opac-authoritiesresultlist"> |
44 |
<body id="opac-authoritiesresultlist"> |
| 8 |
[% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %] |
45 |
[% IF ( OpacNav ) %]<div id="doc3" class="yui-t1">[% ELSE %]<div id="doc3" class="yui-t7">[% END %] |
|
Lines 13-21
Link Here
|
| 13 |
<div class="yui-b"><div class="yui-g"> |
50 |
<div class="yui-b"><div class="yui-g"> |
| 14 |
<div id="userauthsearchresults" class="container"> |
51 |
<div id="userauthsearchresults" class="container"> |
| 15 |
<h1>Authority search results</h1> |
52 |
<h1>Authority search results</h1> |
|
|
53 |
<span class="details_link"><a href="#">Browse selected records</a></span> |
| 16 |
<div id="pages"> |
54 |
<div id="pages"> |
| 17 |
[% IF ( displayprev ) %] |
55 |
[% IF ( displayprev ) %] |
| 18 |
<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]"> |
56 |
<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]" class="nav"> |
| 19 |
<< |
57 |
<< |
| 20 |
</a> |
58 |
</a> |
| 21 |
[% END %] |
59 |
[% END %] |
|
Lines 23-33
Link Here
|
| 23 |
[% IF ( number.highlight ) %] |
61 |
[% IF ( number.highlight ) %] |
| 24 |
<span class="current">[% number.number %]</span> |
62 |
<span class="current">[% number.number %]</span> |
| 25 |
[% ELSE %] |
63 |
[% ELSE %] |
| 26 |
<a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">[% number.number %]</a> |
64 |
<a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]" class="nav">[% number.number %]</a> |
| 27 |
[% END %] |
65 |
[% END %] |
| 28 |
[% END %] |
66 |
[% END %] |
| 29 |
[% IF ( displaynext ) %] |
67 |
[% IF ( displaynext ) %] |
| 30 |
<a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]&resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">>></a> |
68 |
<a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]&resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]" class="nav">>></a> |
| 31 |
[% END %] |
69 |
[% END %] |
| 32 |
</div> |
70 |
</div> |
| 33 |
<div id="results"> |
71 |
<div id="results"> |
|
Lines 46-51
Link Here
|
| 46 |
<div class="searchresults"> |
84 |
<div class="searchresults"> |
| 47 |
<table> |
85 |
<table> |
| 48 |
<tr> |
86 |
<tr> |
|
|
87 |
<th></th> |
| 49 |
<th>Authorized headings</th> |
88 |
<th>Authorized headings</th> |
| 50 |
<th>Type of heading</th> |
89 |
<th>Type of heading</th> |
| 51 |
[% UNLESS ( isEDITORS ) %] |
90 |
[% UNLESS ( isEDITORS ) %] |
|
Lines 59-64
Link Here
|
| 59 |
[% ELSE %] |
98 |
[% ELSE %] |
| 60 |
<tr> |
99 |
<tr> |
| 61 |
[% END %] |
100 |
[% END %] |
|
|
101 |
<td><input type="checkbox" id="auth[% resul.authid %]" name="authid" value="[% resul.authid %]" /></td> |
| 62 |
<td>[% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&valuec=" %]</td> |
102 |
<td>[% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/opac-authorities-home.pl?op=do_search&type=opac&operatorc=contains&marclistc=mainentry&and_orc=and&orderby=HeadingAsc&valuec=" %]</td> |
| 63 |
<td>[% resul.authtype %]</td> |
103 |
<td>[% resul.authtype %]</td> |
| 64 |
[% UNLESS ( resul.isEDITORS ) %] |
104 |
[% UNLESS ( resul.isEDITORS ) %] |
|
Lines 75-89
Link Here
|
| 75 |
</div> |
115 |
</div> |
| 76 |
<div id="resultnumber"> |
116 |
<div id="resultnumber"> |
| 77 |
[% IF ( displayprev ) %] |
117 |
[% IF ( displayprev ) %] |
| 78 |
<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]"><<</a> |
118 |
<a href="opac-authorities-home.pl?startfrom=[% startfromprev %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]" class="nav"><<</a> |
| 79 |
[% END %] |
119 |
[% END %] |
| 80 |
[% FOREACH number IN numbers %] |
120 |
[% FOREACH number IN numbers %] |
| 81 |
[% IF ( number.highlight ) %]<span class="current">[% number.number %]</span>[% ELSE %] |
121 |
[% IF ( number.highlight ) %]<span class="current">[% number.number %]</span>[% ELSE %] |
| 82 |
<a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">[% number.number %]</a> |
122 |
<a href="opac-authorities-home.pl?startfrom=[% number.startfrom %]&[% FOREACH searchdat IN number.searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]" class="nav">[% number.number %]</a> |
| 83 |
[% END %] |
123 |
[% END %] |
| 84 |
[% END %] |
124 |
[% END %] |
| 85 |
[% IF ( displaynext ) %] |
125 |
[% IF ( displaynext ) %] |
| 86 |
<a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]&resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]">>></a> |
126 |
<a href="opac-authorities-home.pl?startfrom=[% startfromnext %]&[% FOREACH searchdat IN searchdata %][% searchdat.term %]=[% searchdat.val |url %]&[% END %]&resultsperpage=[% resultsperpage %]&type=opac&op=do_search&authtypecode=[% authtypecode %]&orderby=[% orderby %]" class="nav">>></a> |
| 87 |
[% END %] |
127 |
[% END %] |
| 88 |
</div> |
128 |
</div> |
| 89 |
[% END %] |
129 |
[% END %] |