|
Lines 326-331
Link Here
|
| 326 |
|
326 |
|
| 327 |
[% MACRO jsinclude BLOCK %] |
327 |
[% MACRO jsinclude BLOCK %] |
| 328 |
[% INCLUDE 'datatables.inc' %] |
328 |
[% INCLUDE 'datatables.inc' %] |
|
|
329 |
<script> |
| 330 |
var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'addbooks', 'reservoir-table', 'json' ) | $raw %] |
| 331 |
const interface = "[% interface | html %]"; |
| 332 |
const theme = "[% theme | html %]"; |
| 333 |
const biblionumber = "[% biblionumber | html %]"; |
| 334 |
var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; |
| 335 |
</script> |
| 336 |
|
| 329 |
<script> |
337 |
<script> |
| 330 |
$(document).ready(function() { |
338 |
$(document).ready(function() { |
| 331 |
//Set focus to cataloging search |
339 |
//Set focus to cataloging search |
|
Lines 352-358
Link Here
|
| 352 |
}); |
360 |
}); |
| 353 |
|
361 |
|
| 354 |
$("#useadvanced").click(function(){ |
362 |
$("#useadvanced").click(function(){ |
| 355 |
Cookies.set( "catalogue_editor_[% logged_in_user.borrowernumber | html %]", "advanced", { expires: 365, path: '/', sameSite: 'Lax' } ); |
363 |
Cookies.set( `catalogue_editor_${logged_in_user_borrowernumber}`, "advanced", { expires: 365, path: '/', sameSite: 'Lax' } ); |
| 356 |
return true; |
364 |
return true; |
| 357 |
}); |
365 |
}); |
| 358 |
|
366 |
|
|
Lines 366-375
Link Here
|
| 366 |
}); |
374 |
}); |
| 367 |
$("#dataPreview").on("hidden.bs.modal", function(){ |
375 |
$("#dataPreview").on("hidden.bs.modal", function(){ |
| 368 |
$("#dataPreviewLabel").html(""); |
376 |
$("#dataPreviewLabel").html(""); |
| 369 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
377 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"" + interface + "/" + theme + "/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
| 370 |
}); |
378 |
}); |
| 371 |
|
379 |
|
| 372 |
var table_settings = [% TablesSettings.GetTableSettings( 'cataloguing', 'addbooks', 'reservoir-table', 'json' ) | $raw %] |
|
|
| 373 |
var reservoirt = $("#reservoir-table").kohaTable( |
380 |
var reservoirt = $("#reservoir-table").kohaTable( |
| 374 |
{ |
381 |
{ |
| 375 |
pagingType: "simple", |
382 |
pagingType: "simple", |
|
Lines 382-398
Link Here
|
| 382 |
function PopupZ3950(fw) { |
389 |
function PopupZ3950(fw) { |
| 383 |
var strQuery = GetZ3950Terms(fw); |
390 |
var strQuery = GetZ3950Terms(fw); |
| 384 |
if(strQuery){ |
391 |
if(strQuery){ |
| 385 |
window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber | html %]"+strQuery,"z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); |
392 |
window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=" + biblionumber + strQuery,"z3950search",'width=800,height=500,location=yes,toolbar=no,scrollbars=yes,resize=yes'); |
| 386 |
} |
393 |
} |
| 387 |
} |
394 |
} |
| 388 |
/* provide Z3950 search points */ |
|
|
| 389 |
function GetZ3950Terms(fw){ |
| 390 |
var strQuery="&frameworkcode=" + fw; |
| 391 |
[% FOREACH z3950_search_param IN z3950_search_params %] |
| 392 |
strQuery += "&" + "[% z3950_search_param.name | uri %]" + "=" + "[% z3950_search_param.value | uri %]"; |
| 393 |
[% END %] |
| 394 |
return strQuery; |
| 395 |
} |
| 396 |
|
395 |
|
| 397 |
/** |
396 |
/** |
| 398 |
* This function checks if the adequate number of records are checked for merging |
397 |
* This function checks if the adequate number of records are checked for merging |
|
Lines 412-417
Link Here
|
| 412 |
return false; |
411 |
return false; |
| 413 |
} |
412 |
} |
| 414 |
</script> |
413 |
</script> |
|
|
414 |
|
| 415 |
<script> |
| 416 |
/* provide Z3950 search points */ |
| 417 |
function GetZ3950Terms(fw){ |
| 418 |
var strQuery="&frameworkcode=" + fw; |
| 419 |
[% FOREACH z3950_search_param IN z3950_search_params %] |
| 420 |
strQuery += "&" + "[% z3950_search_param.name | uri %]" + "=" + "[% z3950_search_param.value | uri %]"; |
| 421 |
[% END %] |
| 422 |
return strQuery; |
| 423 |
} |
| 424 |
</script> |
| 415 |
[% END %] |
425 |
[% END %] |
| 416 |
|
426 |
|
| 417 |
[% INCLUDE 'intranet-bottom.inc' %] |
427 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 418 |
- |
|
|