Lines 154-159
Link Here
|
154 |
renderPagIndexList(pag_index_ini, $("#listResults")); |
154 |
renderPagIndexList(pag_index_ini, $("#listResults")); |
155 |
} |
155 |
} |
156 |
$("#a_listResults").click(function(e) { |
156 |
$("#a_listResults").click(function(e) { |
|
|
157 |
$("#sidebar").toggle(); |
157 |
if (arrPagination.length > 0) { |
158 |
if (arrPagination.length > 0) { |
158 |
e.preventDefault(); |
159 |
e.preventDefault(); |
159 |
var navigation = $(".pagination"); |
160 |
var navigation = $(".pagination"); |
Lines 173-178
Link Here
|
173 |
e.preventDefault(); |
174 |
e.preventDefault(); |
174 |
var navigation = $(".pagination"); |
175 |
var navigation = $(".pagination"); |
175 |
navigation.hide(); |
176 |
navigation.hide(); |
|
|
177 |
$("#sidebar").toggle(); |
176 |
}); |
178 |
}); |
177 |
[% END %] |
179 |
[% END %] |
178 |
|
180 |
|
Lines 285-292
function parseIDBJSON( json ) {
Link Here
|
285 |
var timeoutRFW; |
287 |
var timeoutRFW; |
286 |
var totalPagItemList = 10; |
288 |
var totalPagItemList = 10; |
287 |
|
289 |
|
288 |
function rewindList() |
290 |
function rewindList(e) |
289 |
{ |
291 |
{ |
|
|
292 |
e.preventDefault(); |
290 |
var ul = $("#listResults"); |
293 |
var ul = $("#listResults"); |
291 |
var li_ini = ul.children(':first').next(); |
294 |
var li_ini = ul.children(':first').next(); |
292 |
var index_ini = pag_index_ini; |
295 |
var index_ini = pag_index_ini; |
Lines 304-311
function rewindList()
Link Here
|
304 |
} |
307 |
} |
305 |
}//rewindList |
308 |
}//rewindList |
306 |
|
309 |
|
307 |
function forwardList() |
310 |
function forwardList(e) |
308 |
{ |
311 |
{ |
|
|
312 |
e.preventDefault(); |
309 |
var ul = $("#listResults"); |
313 |
var ul = $("#listResults"); |
310 |
var li_ini = ul.children(':first').next(); |
314 |
var li_ini = ul.children(':first').next(); |
311 |
var index_ini = pag_index_ini; |
315 |
var index_ini = pag_index_ini; |
Lines 336-342
function renderPagIndexList(index, ul)
Link Here
|
336 |
var ini = index - 1; |
340 |
var ini = index - 1; |
337 |
var end = ini + totalPagItemList - 1; |
341 |
var end = ini + totalPagItemList - 1; |
338 |
li = $("<li />"); |
342 |
li = $("<li />"); |
339 |
html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«"; |
343 |
html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList(event)' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«"; |
340 |
li.html(html); |
344 |
li.html(html); |
341 |
ul.append(li); |
345 |
ul.append(li); |
342 |
var title = ""; |
346 |
var title = ""; |
Lines 358-364
function renderPagIndexList(index, ul)
Link Here
|
358 |
li = $("<li />"); |
362 |
li = $("<li />"); |
359 |
ini = index + 1; |
363 |
ini = index + 1; |
360 |
end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1; |
364 |
end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1; |
361 |
html = (end <= arrPagination.length - 1 && (end - index) >= totalPagItemList)?"<a href='#' id='fw_list_index' onclick='forwardList()' title='" + _("Click to forward the list to") + " " + ini + " - " + end + "'>»</a>":"»"; |
365 |
html = (end <= arrPagination.length - 1 && (end - index) >= totalPagItemList)?"<a href='#' id='fw_list_index' onclick='forwardList(event)' title='" + _("Click to forward the list to") + " " + ini + " - " + end + "'>»</a>":"»"; |
362 |
li.html(html); |
366 |
li.html(html); |
363 |
ul.append(li); |
367 |
ul.append(li); |
364 |
}//renderPagIndexList |
368 |
}//renderPagIndexList |
Lines 1423-1429
YAHOO.util.Event.onContentReady("furtherm", function () {
Link Here
|
1423 |
<div class="l_Results">[% IF ( listResults ) %]<a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>[% ELSE %]<span>Browse results</span>[% END %]</div> |
1427 |
<div class="l_Results">[% IF ( listResults ) %]<a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>[% ELSE %]<span>Browse results</span>[% END %]</div> |
1424 |
<ul class="pg_menu clearfix"> |
1428 |
<ul class="pg_menu clearfix"> |
1425 |
<li class="left_results">[% IF ( previous ) %]<a href="[% previous %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>[% ELSE %]<span>Previous</span>[% END %]</li> |
1429 |
<li class="left_results">[% IF ( previous ) %]<a href="[% previous %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>[% ELSE %]<span>Previous</span>[% END %]</li> |
1426 |
<li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li> |
1430 |
<li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list" class="searchwithcontext">Back to results</a></li> |
1427 |
<li class="right_results">[% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>[% ELSE %]<span>Next</span>[% END %]</li> |
1431 |
<li class="right_results">[% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>[% ELSE %]<span>Next</span>[% END %]</li> |
1428 |
</ul> |
1432 |
</ul> |
1429 |
[% IF ( listResults ) %] |
1433 |
[% IF ( listResults ) %] |
Lines 1440-1445
YAHOO.util.Event.onContentReady("furtherm", function () {
Link Here
|
1440 |
</div> |
1444 |
</div> |
1441 |
[% END %] |
1445 |
[% END %] |
1442 |
|
1446 |
|
|
|
1447 |
<div id="sidebar"> |
1443 |
[% INCLUDE 'opac-detail-sidebar.inc' %] |
1448 |
[% INCLUDE 'opac-detail-sidebar.inc' %] |
1444 |
[% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'right') %] |
1449 |
[% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'right') %] |
1445 |
<div id="NovelistSelect"> |
1450 |
<div id="NovelistSelect"> |
Lines 1468-1473
YAHOO.util.Event.onContentReady("furtherm", function () {
Link Here
|
1468 |
[% END %] |
1473 |
[% END %] |
1469 |
|
1474 |
|
1470 |
</div> |
1475 |
</div> |
|
|
1476 |
|
1477 |
</div> |
1471 |
</div> |
1478 |
</div> |
1472 |
</div> |
1479 |
</div> |
1473 |
|
1480 |
|