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