Owen Leonard
157d329083
This patch moves the functionality contained in biblio-default-view.inc into biblio-title.inc. biblio-title.inc can now be called with a "link = 1" parameter in order for the title to be displayed as a link which is controlled by the IntranetBiblioDefaultView preference. To test, apply the patch and test the affected pages, especially titles linked to in breadcrumbs menus Acquisitions: - Add to basket -> From existing record -> Search - Title in search results Catalog: - Search for a record - Add record to cart - Open cart - Title in brief display - Check that link opens the correct page in the main window - View bibliographic record - ISBD view - MARC view - Normal view - Local cover image detail page - Checkout history - Request article - Item details - From the "Edit" menu -> Attach item - Stock rotation rota - Place hold Cataloging: - Cataloging search -> Search results Circulation: - Article requests - Overdues with fines - Overdues - Holds queue - Holds to pull - Hold ratios - Holds awaiting pickup - Transfers to recevie - Renew - Batch checkout Lists: - View list contents Patrons: - View patron details - Holds history - Checkout history Tools: - Rotating collections - View collection - Add item - Tags - Click term to see titles tagged with that term - Batch record deletion - Submit batch Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
153 lines
3.8 KiB
JavaScript
153 lines
3.8 KiB
JavaScript
|
|
function placeHold () {
|
|
var checkedItems = $("input:checkbox:checked");
|
|
if ($(checkedItems).size() === 0) {
|
|
alert(MSG_NO_RECORD_SELECTED);
|
|
return false;
|
|
}
|
|
|
|
var newloc;
|
|
|
|
if ($(checkedItems).size() > 1) {
|
|
var bibs = "";
|
|
$(checkedItems).each(function() {
|
|
var bib = $(this).val();
|
|
bibs += bib + "/";
|
|
});
|
|
|
|
newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs + "&multi_hold=1";
|
|
} else {
|
|
var bib = checkedItems[0].value;
|
|
newloc = "/cgi-bin/koha/reserve/request.pl?biblionumber=" + bib;
|
|
}
|
|
|
|
window.opener.location = newloc;
|
|
window.close();
|
|
}
|
|
|
|
function batchDelete(){
|
|
var checkedItems = $("input:checkbox:checked");
|
|
if ($(checkedItems).size() === 0) {
|
|
alert(MSG_NO_RECORD_SELECTED);
|
|
return false;
|
|
}
|
|
var newloc;
|
|
|
|
var bibs = "";
|
|
checkedItems.each(function() {
|
|
var bib = $(this).val();
|
|
bibs += bib + "/";
|
|
});
|
|
|
|
newloc = "/cgi-bin/koha/tools/batch_delete_records.pl?op=list&type=biblio&bib_list=" + bibs;
|
|
|
|
window.opener.location = newloc;
|
|
window.close();
|
|
}
|
|
|
|
function batchModify(){
|
|
var checkedItems = $("input:checkbox:checked");
|
|
if ($(checkedItems).size() === 0) {
|
|
alert(MSG_NO_RECORD_SELECTED);
|
|
return false;
|
|
}
|
|
var newloc;
|
|
|
|
var bibs = "";
|
|
$(checkedItems).each(function() {
|
|
var bib = $(this).val();
|
|
bibs += bib + "/";
|
|
});
|
|
newloc = "/cgi-bin/koha/tools/batch_record_modification.pl?op=list&bib_list=" + bibs + "&type=biblio";
|
|
|
|
window.opener.location = newloc;
|
|
window.close();
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
$("#items-popover").popover();
|
|
|
|
$("#CheckAll").click(function (e) {
|
|
e.preventDefault();
|
|
$(".select_record").each(function () {
|
|
$(this).prop("checked", true).change();
|
|
});
|
|
});
|
|
|
|
$("#CheckNone").click(function (e) {
|
|
e.preventDefault();
|
|
$(".select_record").each(function () {
|
|
$(this).prop("checked", false).change();
|
|
});
|
|
});
|
|
|
|
$(".holdsep").text("| ");
|
|
$(".hold").text(_("Place hold"));
|
|
$("#downloadcartc").empty();
|
|
|
|
$("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"sDom": 't',
|
|
"aoColumnDefs": [
|
|
{ "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
|
|
{ "sType": "anti-the", "aTargets" : [ "anti-the" ] },
|
|
{ "sType": "callnumbers", "aTargets" : [ "callnumbers"] }
|
|
],
|
|
"aaSorting": [[ 1, "asc" ]],
|
|
"bPaginate": false
|
|
}));
|
|
|
|
$(".showdetails").on("click",function(e){
|
|
e.preventDefault();
|
|
if( $(this).hasClass("showmore") ){
|
|
showMore();
|
|
} else {
|
|
showLess();
|
|
}
|
|
});
|
|
|
|
$("#batch_modify").on("click",function(e){
|
|
e.preventDefault();
|
|
batchModify();
|
|
});
|
|
$("#batch_delete").on("click",function(e){
|
|
e.preventDefault();
|
|
batchDelete();
|
|
});
|
|
|
|
$("#remove_from_cart").on("click",function(e){
|
|
e.preventDefault();
|
|
delSelRecords();
|
|
});
|
|
|
|
$("#add_to_list").on("click",function(e){
|
|
e.preventDefault();
|
|
addSelToShelf();
|
|
});
|
|
|
|
$("#place_hold").on("click",function(e){
|
|
e.preventDefault();
|
|
placeHold();
|
|
});
|
|
|
|
$("#send_cart").on("click",function(e){
|
|
e.preventDefault();
|
|
sendBasket();
|
|
});
|
|
|
|
$("#print_cart").on("click",function(e){
|
|
e.preventDefault();
|
|
printBasket();
|
|
});
|
|
|
|
$("#empty_cart").on("click",function(e){
|
|
e.preventDefault();
|
|
delBasket('popup');
|
|
});
|
|
$(".title").on("click",function(e){
|
|
e.preventDefault();
|
|
openBiblio( this.href );
|
|
});
|
|
$(".select_record").on("change",function(){
|
|
selRecord( this.value, this.checked );
|
|
});
|
|
});
|