5 [%# Prevent XFS attacks -%]
9 var antiClickjack = document.getElementById("antiClickjack");
10 antiClickjack.parentNode.removeChild(antiClickjack);
12 top.location = self.location;
17 [% Asset.js("lib/jquery/jquery-2.2.3.min.js") | $raw %]
18 [% Asset.js("lib/jquery/jquery-migrate-1.3.0.min.js") | $raw %]
19 [% Asset.js("lib/jquery/jquery-ui-1.11.4.min.js") | $raw %]
20 [% Asset.js("lib/shortcut/shortcut.js") | $raw %]
21 [% Asset.js("lib/jquery/plugins/jquery.cookie.min.js") | $raw %]
22 [% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
23 [% Asset.js("lib/bootstrap/bootstrap.min.js") | $raw %]
24 [% Asset.js("lib/jquery/plugins/jquery.validate.min.js") | $raw %]
26 [% Asset.js("js/staff-global.js") | $raw %]
27 [% Asset.js("js/commons.js") | $raw %]
29 [% INCLUDE 'validator-strings.inc' %]
30 [% IF ( IntranetUserJS ) %]
32 [% IntranetUserJS | $raw %]
36 [% IF ( virtualshelves || intranetbookbag ) %]
38 var MSG_BASKET_EMPTY = _("Your cart is currently empty");
39 var MSG_RECORD_IN_BASKET = _("This item is already in your cart");
40 var MSG_RECORD_ADDED = _("This item has been added to your cart");
41 var MSG_NRECORDS_ADDED = _("%s item(s) added to your cart");
42 var MSG_NRECORDS_IN_BASKET = _("%s already in your cart");
43 var MSG_NO_RECORD_SELECTED = _("No item was selected");
44 var MSG_NO_RECORD_ADDED = _("No item was added to your cart (already in your cart)!");
45 var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?");
46 var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?");
47 var MSG_IN_YOUR_CART = _("Items in your cart: %s");
48 var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be reserved.");
49 var MSG_ITEM_NOT_IN_CART = _("Add to cart");
50 var MSG_ITEM_IN_CART = _("In your cart");
51 var MSG_RECORD_REMOVED = _("The item has been removed from your cart");
54 [% Asset.js("js/basket.js") | $raw %]
57 [% IF LocalCoverImages %]
58 [% Asset.js("js/localcovers.js") | $raw %]
60 var NO_LOCAL_JACKET = _("No cover image available");
64 [% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
66 var AUDIO_ALERT_PATH = '[% interface | html %]/[% theme | html %]/sound/';
67 var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" );
69 $( document ).ready(function() {
71 for ( var k in AUDIO_ALERTS ) {
72 var alert = AUDIO_ALERTS[k];
73 if ( $( alert.selector ).length ) {
74 playSound( alert.sound );
83 [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
84 [% IF ( CircAutocompl ) %]
86 $(document).ready(function(){
87 var obj = $( "#findborrower" ).autocomplete({
88 source: "/cgi-bin/koha/circ/ysearch.pl",
90 select: function( event, ui ) {
91 $( "#findborrower" ).val( ui.item.cardnumber );
92 $("#patronsearch").submit();
95 }).data( "ui-autocomplete" );
97 obj._renderItem = function( ul, item ) {
98 return $( "<li></li>" )
99 .data( "ui-autocomplete-item", item )
100 .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )