[% END %]
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
-[% INCLUDE js_includes.inc %]
+[% UNLESS ( footerjs ) %]
+ [% INCLUDE js_includes.inc %]
+[% END %]
[% END %]
[% END %]
<span id="audio-alert"></span>
+ [% IF ( footerjs ) %]
+ [% INCLUDE js_includes.inc %]
+ [% jsinclude # Parse the page template's JavaScript block if necessary %]
+ [% END %]
</body>
</html>
});
</script>
[% END %]
+
+[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
+ [% IF ( CircAutocompl ) %]
+ <script type="text/javascript">
+ $(document).ready(function(){
+ $( "#findborrower" ).autocomplete({
+ source: "/cgi-bin/koha/circ/ysearch.pl",
+ minLength: 3,
+ select: function( event, ui ) {
+ $( "#findborrower" ).val( ui.item.cardnumber );
+ $("#patronsearch").submit();
+ return false;
+ }
+ })
+ .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
+ return $( "<li></li>" )
+ .data( "ui-autocomplete-item", item )
+ .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
+ .appendTo( ul );
+ };
+ });
+ </script>
+ [% END %]
+[% END %]
-[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
-//<![CDATA[
-$(document).ready(function(){
- $( "#findborrower" ).autocomplete({
- source: "/cgi-bin/koha/circ/ysearch.pl",
- minLength: 3,
- select: function( event, ui ) {
- $( "#findborrower" ).val( ui.item.cardnumber );
- $("#patronsearch").submit();
- return false;
- }
- })
- .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
- return $( "<li></li>" )
- .data( "ui-autocomplete-item", item )
- .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.dateofbirth + " " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
- .appendTo( ul );
- };
-
-});
-//]]>
-</script>[% END %]
+[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
<div id="circ_search" class="residentsearch">
<p class="tip">Enter patron card number or partial name:</p>
<form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="post">
[% USE Koha %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha staff client</title>
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/mainpage.css" />
[% INCLUDE 'doc-head-close.inc' %]
-<style type="text/css"> </style>
-<script type="text/javascript">
-//<![CDATA[
-var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
- $(document).ready(function(){
- $(".news_delete").on("click", function(){
- return confirmDelete(MSG_CONFIRM_DELETE);
- });
- });
-//]]>
-</script>
</head>
<body id="main_intranet-main" class="main">
[% INCLUDE 'header.inc' %]
</div>
</div>
+[% MACRO jsinclude BLOCK %]
+ <script type="text/javascript">
+ //<![CDATA[
+ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This cannot be undone.");
+ $(document).ready(function(){
+ $(".news_delete").on("click", function(){
+ return confirmDelete(MSG_CONFIRM_DELETE);
+ });
+ });
+ //]]>
+ </script>
+[% END %]
<!-- the main div is closed in intranet-bottom.inc -->
[% INCLUDE 'intranet-bottom.inc' %]