Lines 60-66
$(document).ready(function(){
Link Here
|
60 |
return false; |
60 |
return false; |
61 |
}); |
61 |
}); |
62 |
$("#print_overdues").click(function(){ |
62 |
$("#print_overdues").click(function(){ |
63 |
window.open("/cgi-bin/koha/members/print_overdues.pl?borrowernumber=[% borrowernumber %]", "printwindow"); |
63 |
window.open("/cgi-bin/koha/members/print_overdues.pl?borrowernumber=[% borrowernumber | url%]", "printwindow"); |
64 |
$(".btn-group").removeClass("open"); |
64 |
$(".btn-group").removeClass("open"); |
65 |
return false; |
65 |
return false; |
66 |
}); |
66 |
}); |
Lines 75-106
$(document).ready(function(){
Link Here
|
75 |
function confirm_local_deletion() { |
75 |
function confirm_local_deletion() { |
76 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron from the local database? This cannot be undone.")); |
76 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron from the local database? This cannot be undone.")); |
77 |
if (is_confirmed) { |
77 |
if (is_confirmed) { |
78 |
window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber %]&deletelocal=true&deleteremote=false'; |
78 |
window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber | url%]&deletelocal=true&deleteremote=false'; |
79 |
} |
79 |
} |
80 |
} |
80 |
} |
81 |
function confirm_remote_deletion() { |
81 |
function confirm_remote_deletion() { |
82 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron from the Norwegian national patron database? This cannot be undone.")); |
82 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron from the Norwegian national patron database? This cannot be undone.")); |
83 |
if (is_confirmed) { |
83 |
if (is_confirmed) { |
84 |
window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber %]&deletelocal=false&deleteremote=true'; |
84 |
window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber |url%]&deletelocal=false&deleteremote=true'; |
85 |
} |
85 |
} |
86 |
} |
86 |
} |
87 |
function confirm_both_deletion() { |
87 |
function confirm_both_deletion() { |
88 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron both from the local database and from the Norwegian national patron database? This cannot be undone.")); |
88 |
var is_confirmed = window.confirm(_("Are you sure you want to delete this patron both from the local database and from the Norwegian national patron database? This cannot be undone.")); |
89 |
if (is_confirmed) { |
89 |
if (is_confirmed) { |
90 |
window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber %]&deletelocal=true&deleteremote=true'; |
90 |
window.location='/cgi-bin/koha/members/deletemem.pl?member=[% borrowernumber | url%]&deletelocal=true&deleteremote=true'; |
91 |
} |
91 |
} |
92 |
} |
92 |
} |
93 |
|
93 |
|
94 |
[% IF ( is_child ) %]function confirm_updatechild() { |
94 |
[% IF ( is_child ) %]function confirm_updatechild() { |
95 |
var is_confirmed = window.confirm(_("Are you sure you want to update this child to an Adult category? This cannot be undone.")); |
95 |
var is_confirmed = window.confirm(_("Are you sure you want to update this child to an Adult category? This cannot be undone.")); |
96 |
if (is_confirmed) { |
96 |
if (is_confirmed) { |
97 |
window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]'; |
97 |
window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% borrowernumber | url%]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]'; |
98 |
} |
98 |
} |
99 |
} |
99 |
} |
100 |
|
100 |
|
101 |
function update_child() { |
101 |
function update_child() { |
102 |
[% IF ( CATCODE_MULTI ) %] |
102 |
[% IF ( CATCODE_MULTI ) %] |
103 |
window.open('/cgi-bin/koha/members/update-child.pl?op=multi&borrowernumber=[% borrowernumber %]','UpdateChild','width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes'); |
103 |
window.open('/cgi-bin/koha/members/update-child.pl?op=multi&borrowernumber=[% borrowernumber | url%]','UpdateChild','width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes'); |
104 |
[% ELSE %] |
104 |
[% ELSE %] |
105 |
confirm_updatechild(); |
105 |
confirm_updatechild(); |
106 |
[% END %] |
106 |
[% END %] |
Lines 110-131
function update_child() {
Link Here
|
110 |
function confirm_reregistration() { |
110 |
function confirm_reregistration() { |
111 |
var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?")); |
111 |
var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?")); |
112 |
if (is_confirmed) { |
112 |
if (is_confirmed) { |
113 |
window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&destination=[% destination %]&reregistration=y'; |
113 |
window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber | url%]&destination=[% destination %]&reregistration=y'; |
114 |
} |
114 |
} |
115 |
} |
115 |
} |
116 |
function export_barcodes() { |
116 |
function export_barcodes() { |
117 |
window.open('/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]&op=export_barcodes'); |
117 |
window.open('/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber | url%]&op=export_barcodes'); |
118 |
} |
118 |
} |
119 |
var slip_re = /slip/; |
119 |
var slip_re = /slip/; |
120 |
function printx_window(print_type) { |
120 |
function printx_window(print_type) { |
121 |
var handler = print_type.match(slip_re) ? "printslip" : "summary-print"; |
121 |
var handler = print_type.match(slip_re) ? "printslip" : "summary-print"; |
122 |
window.open("/cgi-bin/koha/members/" + handler + ".pl?borrowernumber=[% borrowernumber %]&print=" + print_type, "printwindow"); |
122 |
window.open("/cgi-bin/koha/members/" + handler + ".pl?borrowernumber=[% borrowernumber | url%]&print=" + print_type, "printwindow"); |
123 |
return false; |
123 |
return false; |
124 |
} |
124 |
} |
125 |
function searchToHold(){ |
125 |
function searchToHold(){ |
126 |
var date = new Date(); |
126 |
var date = new Date(); |
127 |
date.setTime(date.getTime() + (10 * 60 * 1000)); |
127 |
date.setTime(date.getTime() + (10 * 60 * 1000)); |
128 |
$.cookie("holdfor", "[% borrowernumber %]", { path: "/", expires: date }); |
128 |
$.cookie("holdfor", "[% borrowernumber | url%]", { path: "/", expires: date }); |
129 |
location.href="/cgi-bin/koha/catalogue/search.pl"; |
129 |
location.href="/cgi-bin/koha/catalogue/search.pl"; |
130 |
} |
130 |
} |
131 |
//]]> |
131 |
//]]> |