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 1417-1423
YAHOO.util.Event.onContentReady("furtherm", function () {
Link Here
|
1417 |
<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> |
1421 |
<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> |
1418 |
<ul class="pg_menu clearfix"> |
1422 |
<ul class="pg_menu clearfix"> |
1419 |
<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> |
1423 |
<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> |
1420 |
<li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li> |
1424 |
<li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list" class="searchwithcontext">Back to results</a></li> |
1421 |
<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> |
1425 |
<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> |
1422 |
</ul> |
1426 |
</ul> |
1423 |
[% IF ( listResults ) %] |
1427 |
[% IF ( listResults ) %] |
Lines 1434-1439
YAHOO.util.Event.onContentReady("furtherm", function () {
Link Here
|
1434 |
</div> |
1438 |
</div> |
1435 |
[% END %] |
1439 |
[% END %] |
1436 |
|
1440 |
|
|
|
1441 |
<div id="sidebar"> |
1437 |
[% INCLUDE 'opac-detail-sidebar.inc' %] |
1442 |
[% INCLUDE 'opac-detail-sidebar.inc' %] |
1438 |
[% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'right') %] |
1443 |
[% IF ( NovelistSelectProfile ) %] [% IF ( NovelistSelectView == 'right') %] |
1439 |
<div id="NovelistSelect"> |
1444 |
<div id="NovelistSelect"> |
Lines 1462-1467
YAHOO.util.Event.onContentReady("furtherm", function () {
Link Here
|
1462 |
[% END %] |
1467 |
[% END %] |
1463 |
|
1468 |
|
1464 |
</div> |
1469 |
</div> |
|
|
1470 |
|
1471 |
</div> |
1465 |
</div> |
1472 |
</div> |
1466 |
</div> |
1473 |
</div> |
1467 |
|
1474 |
|