Bug 22468: Standardize on labelling ccode table columns as Collections
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / itemsearch.tt
blobb1fa37e812e4c83d67b5739e00a4423ce00ac488
1 [% USE raw %]
2 [% USE To %]
3 [% USE Asset %]
4 [% USE AuthorisedValues %]
6 [% BLOCK form_label %]
7   [% SWITCH label %]
8     [% CASE 'barcode' %]<span>Barcode</span>
9     [% CASE 'itemcallnumber' %]<span>Call number</span>
10     [% CASE 'stocknumber' %]<span>Inventory number</span>
11     [% CASE 'title' %]<span>Title</span>
12     [% CASE 'author' %]<span>Author</span>
13     [% CASE 'publishercode' %]<span>Publisher</span>
14     [% CASE 'publicationyear' %]<span>Publication date</span>
15     [% CASE 'collectiontitle' %]<span>Collection title</span>
16     [% CASE 'isbn' %]<span>ISBN</span>
17     [% CASE 'issn' %]<span>ISSN</span>
18     [% CASE 'homebranch' %]<span>Home library</span>
19     [% CASE 'holdingbranch' %]<span>Current location</span>
20     [% CASE 'All libraries' %]<span>All libraries</span>
21     [% CASE 'location' %]<span>Shelving location</span>
22     [% CASE 'All locations' %]<span>All locations</span>
23     [% CASE 'itype' %]<span>Item type</span>
24     [% CASE 'All item types' %]<span>All item types</span>
25     [% CASE 'ccode' %]<span>Collection</span>
26     [% CASE 'All collection codes' %]<span>All collections</span>
27     [% CASE 'notforloan' %]<span>Status</span>
28     [% CASE 'All statuses' %]<span>All statuses</span>
29     [% CASE 'damaged' %]<span>Damaged</span>
30     [% CASE 'itemlost' %]<span>Lost</span>
31     [% CASE 'withdrawn' %]<span>Withdrawn</span>
32   [% END %]
33 [% END %]
35 [% BLOCK form_field_select %]
36   <div class="form-field form-field-select">
37     <label class="form-field-label" for="[% name | html %]">[% INCLUDE form_label label=name %]</label>
38     <select id="[% name | html %]_op" name="[% name | html %]_op">
39       <option value="=">is</option>
40       <option value="!=" >is not</option>
41     </select>
42     <select id="[% name | html %]" name="[% name | html %]" multiple="multiple" size="[% options.size < 4 ? options.size + 1 : 4 | html %]">
43       <option value="" selected="selected">
44         [% IF (empty_option) %][% INCLUDE form_label label=empty_option %][% ELSE %]<span>All</span>[% END %]
45       </option>
46       [% FOREACH option IN options %]
47         <option value="[% option.value | html %]">[% option.label | html %]</option>
48       [% END %]
49     </select>
50   </div>
51 [% END %]
53 [% BLOCK form_field_select_option %]
54   <option value="[% value | html %]">[% INCLUDE form_label label=value %]</option>
55 [% END %]
57 [% BLOCK form_field_select_text %]
58   <div class="form-field form-field-select-text">
59     <select name="c" class="form-field-conjunction" disabled="disabled">
60       <option value="and">AND</option>
61       <option value="or">OR</option>
62     </select>
63     <select name="f" class="form-field-column">
64       [% INCLUDE form_field_select_option value='barcode' %]
65       [% INCLUDE form_field_select_option value='itemcallnumber' %]
66       [% INCLUDE form_field_select_option value='stocknumber' %]
67       [% INCLUDE form_field_select_option value='title' %]
68       [% INCLUDE form_field_select_option value='author' %]
69       [% INCLUDE form_field_select_option value='publishercode' %]
70       [% INCLUDE form_field_select_option value='publicationyear' %]
71       [% INCLUDE form_field_select_option value='collectiontitle' %]
72       [% INCLUDE form_field_select_option value='isbn' %]
73       [% INCLUDE form_field_select_option value='issn' %]
74       [% IF items_search_fields.size %]
75         <optgroup label="Custom search fields">
76           [% FOREACH field IN items_search_fields %]
77             [% marcfield = field.tagfield %]
78             [% IF field.tagsubfield.defined AND field.tagsubfield != "" %]
79               [% marcfield = marcfield _ '$' _ field.tagsubfield %]
80             [% END %]
81             <option value="marc:[% marcfield | html %]" data-authorised-values-category="[% field.authorised_values_category | html %]">[% field.label | html %] ([% marcfield | html %])</option>
82           [% END %]
83         </optgroup>
84       [% END %]
85     </select>
86     <input type="text" name="q" class="form-field-value" value="" />
87     <input type="hidden" name="op" value="like" />
88   </div>
89 [% END %]
91 [% BLOCK form_field_radio_yes_no %]
92   <div class="form-field">
93     <label class="form-field-label">[% INCLUDE form_label label=name %]:</label>
94     <input type="radio" name="[% name | html %]" id="[% name | html %]_indifferent" value="" checked="checked"/>
95     <label for="[% name | html %]_indifferent">Ignore</label>
96     <input type="radio" name="[% name | html %]" id="[% name | html %]_yes" value="yes" />
97     <label for="[% name | html %]_yes">Yes</label>
98     <input type="radio" name="[% name | html %]" id="[% name | html %]_no" value="no" />
99     <label for="[% name | html %]_no">No</label>
100   </div>
101 [% END %]
103 [%# We need to escape html characters for 'value' and 'label' %]
104 [%- BLOCK escape_html_value_label -%]
105     [%- SET escaped = [] -%]
106     [%- FOR e IN elts -%]
107         [%- value = BLOCK %][% e.value | html %][% END -%]
108         [%- label = BLOCK %][% e.label | html %][% END -%]
109         [%- escaped.push({ 'value' => value, 'label' => label }) -%]
110     [%- END -%]
111     [%- To.json(escaped) | $raw -%]
112 [%- END -%]
114 [% notforloans = AuthorisedValues.GetDescriptionsByKohaField({ kohafield = 'items.notforloan' }) %]
115 [% FOREACH nfl IN notforloans %]
116     [% nfl.value = nfl.authorised_value %]
117     [% nfl.label = nfl.lib %]
118 [% END %]
120 [% locations = AuthorisedValues.GetDescriptionsByKohaField({ kohafield = 'items.location' }) %]
121 [% FOREACH loc IN locations %]
122     [% loc.value = loc.authorised_value %]
123     [% loc.label = loc.lib %]
124 [% END %]
126 [%# Page starts here %]
128 [% SET footerjs = 1 %]
129 [% INCLUDE 'doc-head-open.inc' %]
130   <title>Koha &rsaquo; Catalog &rsaquo; Item search</title>
131   [% INCLUDE 'doc-head-close.inc' %]
132   [% Asset.css("css/itemsearchform.css") | $raw %]
133 </head>
135 <body id="catalog_itemsearch" class="catalog">
136   [% INCLUDE 'header.inc' %]
137   [% INCLUDE 'home-search.inc' %]
138   <div id="breadcrumbs">
139     <a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a> &rsaquo; Item search
140   </div>
142 <div class="main container-fluid">
143     <div class="row">
144         <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
146     <div id="item-search-block">
147       <h1>Item search</h1>
148       <p><a href="/cgi-bin/koha/catalogue/search.pl">Go to advanced search</a></p>
149       <form action="/cgi-bin/koha/catalogue/itemsearch.pl" method="get" id="itemsearchform">
150           <div id="toolbar" class="btn-toolbar">
151               <fieldset class="action">
152                   <div class="btn-group">
153                       <button class="btn btn-default"><i class="fa fa-search"></i> Search</button>
154                   </div>
155               </fieldset>
156           </div>
157           <fieldset>
158             [% INCLUDE form_field_select name="homebranch" options = branches empty_option = "All libraries" %]
159             [% INCLUDE form_field_select name="holdingbranch" options = branches empty_option = "All libraries" %]
160             [% IF locations.size %]
161                 [% INCLUDE form_field_select name="location" options = locations empty_option = "All locations" %]
162             [% END %]
163           </fieldset>
164           <fieldset>
165             [% INCLUDE form_field_select name="itype" options = itemtypes empty_option = "All item types" %]
166             [% IF ccodes.size %]
167                 [% INCLUDE form_field_select name="ccode" options = ccodes empty_option = "All collection codes" %]
168             [% END %]
169             [% IF notforloans.size %]
170                 [% INCLUDE form_field_select name="notforloan" options = notforloans empty_option = "All statuses" %]
171             [% END %]
172             [% IF itemlosts.size %]
173                 [% INCLUDE form_field_select name="itemlost" options = itemlosts empty_option = "All statuses" %]
174             [% END %]
175             [% IF withdrawns.size %]
176                 [% INCLUDE form_field_select name="withdrawn" options = withdrawns empty_option = "All statuses" %]
177             [% END %]
178           </fieldset>
179           <fieldset>
180             [% INCLUDE form_field_select_text %]
181             <p class="hint">You can use the following wildcard characters: % _</p>
182             <p class="hint">% matches any number of characters</p>
183             <p class="hint">_ matches only a single character</p>
184           </fieldset>
185           <fieldset>
186             <div class="form-field">
187               <label class="form-field-label" for="itemcallnumber_from">From call number:</label>
188               <input type="text" id="itemcallnumber_from" name="itemcallnumber_from" value="" />
189               <span class="hint">(inclusive)</span>
190             </div>
191             <div class="form-field">
192               <label class="form-field-label" for="itemcallnumber_to">To call number:</label>
193               <input type="text" id="itemcallnumber_to" name="itemcallnumber_to" value="" />
194               <span class="hint">(inclusive)</span>
195             </div>
196             [% INCLUDE form_field_radio_yes_no name="damaged" %]
197             <div class="form-field">
198               <label class="form-field-label" for="issues_op">Checkout count:</label>
199               <select id="issues_op" name="issues_op">
200                 <option value=">">&gt;</option>
201                 <option value="<">&lt;</option>
202                 <option value="=">=</option>
203                 <option value="!=">!=</option>
204               </select>
205               <input type="text" name="issues" />
206             </div>
207             <div class="form-field">
208               <label class="form-field-label" for="datelastborrowed_op">Last checkout date:</label>
209               <select id="datelastborrowed_op" name="datelastborrowed_op">
210                 <option value=">">After</option>
211                 <option value="<">Before</option>
212                 <option value="=">On</option>
213               </select>
214               <input type="text" name="datelastborrowed" />
215               <span class="hint">ISO Format (YYYY-MM-DD)</span>
216             </div>
217           </fieldset>
218           <fieldset>
219             <div class="form-field-radio">
220               <label>Output:</label>
221               <input type="radio" id="format-html" name="format" value="html" checked="checked" /> <label for="format-html">Screen</label>
222               <input type="radio" id="format-csv" name="format" value="csv" /> <label for="format-csv">CSV</label>
223               <input type="radio" id="format-barcodes" name="format" value="barcodes"/> <label for="format-barcodes">Barcodes file</label>
224             </div>
225           </fieldset>
226       </form>
227     </div>
228     </div>
229   </div>
230     <div class="row">
231         <div class="col-md-12">
232       <div id="results-wrapper"></div>
233         </div>
234       </div>
236 [% MACRO jsinclude BLOCK %]
237     [% INCLUDE 'datatables.inc' %]
238     [% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %]
239     [% Asset.js("lib/hc-sticky.js") | $raw %]
240     <script>
241         var authorised_values = [% authorised_values_json | $raw %];
243         function loadAuthorisedValuesSelect(select) {
244             var selected = select.find('option:selected');
245             var category = selected.data('authorised-values-category');
246             var form_field_value = select.siblings('.form-field-value');
247             if (category && category in authorised_values) {
248                 var values = authorised_values[category];
249                 var html = '<select name="q" class="form-field-value">\n';
250                 for (i in values) {
251                     var value = values[i];
252                     html += '<option value="' + value.authorised_value + '">' + value.lib + '</option>\n';
253                 }
254                 html += '</select>\n';
255                 var new_form_field_value = $(html);
256                 new_form_field_value.val(form_field_value.val());
257                 form_field_value.replaceWith(new_form_field_value);
258             } else {
259                 if (form_field_value.prop('tagName').toLowerCase() == 'select') {
260                     html = '<input name="q" type="text" class="form-field-value" />';
261                     var new_form_field_value = $(html);
262                     form_field_value.replaceWith(new_form_field_value);
263                 }
264             }
265         }
267     function addNewField( link ) {
268             var form_field = $('div.form-field-select-text').last();
269             var copy = form_field.clone(true);
270             copy.find('input,select').not('[type="hidden"]').each(function() {
271                 $(this).val('');
272             });
273             copy.find('.form-field-conjunction').prop('disabled', false).val('and');
274             form_field.after(copy);
275       link.remove();
276             copy.find('select.form-field-column').change();
277         }
279         function submitForm($form) {
280             var tr = ''
281                 + '    <tr>'
282                 + '      <th id="items_checkbox"></th>'
283                 + '      <th id="items_title">' + _("Title") + '</th>'
284                 + '      <th id="items_pubdate">' + _("Publication date") + '</th>'
285                 + '      <th id="items_publisher">' + _("Publisher") + '</th>'
286                 + '      <th id="items_collection">' + _("Collection") + '</th>'
287                 + '      <th id="items_barcode">' + _("Barcode") + '</th>'
288                 + '      <th id="items_callno">' + _("Call number") + '</th>'
289                 + '      <th id="items_homebranch">' + _("Home library") + '</th>'
290                 + '      <th id="items_holdingbranch">' + _("Current location") + '</th>'
291                 + '      <th id="items_location">' + _("Shelving location") + '</th>'
292                 + '      <th id="items_itype">' + _("Itemtype") + '</th>'
293                 + '      <th id="item_inventoryno">' + _("Inventory number") + '</th>'
294                 + '      <th id="items_status">' + _("Not for loan status") + '</th>'
295                 + '      <th id="items_itemlost">' + _("Lost status") + '</th>'
296                 + '      <th id="items_widthdrawn">' + _("Withdrawn status") + '</th>'
297                 + '      <th id="items_checkouts">' + _("Checkouts") + '</th>'
298                 + '      <th id=""></th>'
299                 + '    </tr>'
300             var table = ''
301                 + '<table id="results">'
302                 + '  <thead>' + tr + tr + '</thead>'
303                 + '  <tbody></tbody>'
304                 + '</table>';
306             var advSearchLink = $('<a>')
307                 .attr('href', '/cgi-bin/koha/catalogue/search.pl')
308                 .html(_("Go to advanced search"));
309             var editSearchLink = $('<a>')
310                 .attr('href', '#')
311                 .html(_("Edit search"))
312                 .addClass('btn btn-default btn-xs')
313                 .on('click', function(e) {
314                     e.preventDefault();
315                     $('#item-search-block').show();
316                 });
318             function getCheckedItemnumbers () {
319                 var itemnumbers;
320                 try {
321                     itemnumbers = JSON.parse(sessionStorage.getItem('itemsearch_itemnumbers') || '[]');
322                 } catch (e) {
323                     itemnumbers = [];
324                 }
326                 return new Set(itemnumbers);
327             }
329             function exportItems(format) {
330               var itemnumbers = getCheckedItemnumbers();
331               if (itemnumbers.size > 0) {
332                 var href = '/cgi-bin/koha/catalogue/item-export.pl?format=' + format;
333                 href += '&itemnumber=' + Array.from(itemnumbers).join('&itemnumber=');
334                 location = href;
335               } else {
336                 $('#format-' + format).prop('checked', true);
337                 $('#itemsearchform').submit();
338                 $('#format-html').prop('checked', true);
339               }
340             }
342             var csvExportLink = $('<a>')
343                 .attr('href', '#')
344                 .html("CSV")
345                 .on('click', function(e) {
346                     e.preventDefault();
347                     exportItems('csv');
348                 });
349             var barcodesExportLink = $('<a>')
350                 .attr('href', '#')
351                 .html(_("Barcodes file"))
352                 .on('click', function(e) {
353                     e.preventDefault();
354                     exportItems('barcodes');
355               });
357             var exportButton = $('<div>')
358               .addClass('btn-group')
359               .append($('<button>')
360                   .addClass('btn btn-default btn-xs dropdown-toggle')
361                   .attr('id', 'export-button')
362                   .attr('data-toggle', 'dropdown')
363                   .attr('aria-haspopup', 'true')
364                   .attr('aria-expanded', 'false')
365                   .html(_("Export all results to") + ' <span class="caret"></span>'))
366               .append($('<ul>')
367                   .addClass('dropdown-menu')
368                   .append($('<li>').append(csvExportLink))
369                   .append($('<li>').append(barcodesExportLink)));
371             var selectVisibleRows = $('<a>')
372               .attr('href', '#')
373               .append('<i class="fa fa-check"></i> ')
374               .append(_("Select visible rows"))
375               .on('click', function(e) {
376                   e.preventDefault();
377                   $('#results input[type="checkbox"]').prop('checked', true).change();
378               });
379             var clearSelection = $('<a>')
380               .attr('href', '#')
381               .append('<i class="fa fa-remove"></i> ')
382               .append(_("Clear selection"))
383               .on('click', function(e) {
384                   e.preventDefault();
385                   sessionStorage.setItem('itemsearch_itemnumbers', '[]');
386                   $('#results input[type="checkbox"]').prop('checked', false).change();
387               });
388             var exportLinks = $('<p>')
389               .append(selectVisibleRows)
390               .append(' ')
391               .append(clearSelection)
392               .append(' | ')
393               .append(exportButton);
395             var results_heading = $('<div>').addClass('results-heading')
396                 .append("<h1>" + _("Item search results") + "</h1>")
397                 .append($('<p>').append(advSearchLink))
398                 .append($('<p>').append(editSearchLink))
399                 .append(exportLinks);
400             $('#results-wrapper').empty()
401                 .append(results_heading)
402                 .append(table);
404             var params = [];
405             $form.find('select:not(:disabled) option:selected,input[type="text"]:not(:disabled),input[type="hidden"]:not(:disabled),input[type="radio"]:checked').each(function() {
406                 if ( $(this).prop('tagName').toLowerCase() == 'option' ) {
407                     var name = $(this).parents('select').first().attr('name');
408                     var value = $(this).val();
409                     params.push({ 'name': name, 'value': value });
410                 } else {
411                     params.push({ 'name': $(this).attr('name'), 'value': $(this).val() });
412                 }
413             });
415             $('#results').dataTable($.extend(true, {}, dataTablesDefaults, {
416                 'bDestroy': true,
417                 'bServerSide': true,
418                 'bProcessing': true,
419                 'sAjaxSource': '/cgi-bin/koha/catalogue/itemsearch.pl',
420                 'fnServerData': function(sSource, aoData, fnCallback) {
421                     aoData.push( { 'name': 'format', 'value': 'json' } );
422                     for (i in params) {
423                         aoData.push(params[i]);
424                     }
425                     $.ajax({
426                         'dataType': 'json',
427                         'type': 'POST',
428                         'url': sSource,
429                         'data': aoData,
430                         'success': function(json){
431                             fnCallback(json);
432                         }
433                     });
434                 },
435                 'sDom': '<"top pager"ilp>t<"bottom pager"ip>r',
436                 'aaSorting': [[1, 'asc']],
437                 'aoColumns': [
438                     { 'sName': 'checkbox', 'bSortable': false },
439                     { 'sName': 'title' },
440                     { 'sName': 'publicationyear' },
441                     { 'sName': 'publishercode' },
442                     { 'sName': 'ccode' },
443                     { 'sName': 'barcode' },
444                     { 'sName': 'itemcallnumber' },
445                     { 'sName': 'homebranch' },
446                     { 'sName': 'holdingbranch' },
447                     { 'sName': 'location' },
448                     { 'sName': 'itype'},
449                     { 'sName': 'stocknumber' },
450                     { 'sName': 'notforloan' },
451                     { 'sName': 'itemlost' },
452                     { 'sName': 'withdrawn' },
453                     { 'sName': 'issues' },
454                     { 'sName': 'actions', 'bSortable': false }
455                 ],
456                 "sPaginationType": "full_numbers"
457             })).columnFilter({
458                 'sPlaceHolder': 'head:after',
459                 'aoColumns': [
460                     null,
461                     { 'type': 'text' },
462                     { 'type': 'text' },
463                     { 'type': 'text' },
464                     [% IF ccodes.size %]
465                         { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => ccodes %] },
466                     [% ELSE %]
467                         null,
468                     [% END %]
469                     { 'type': 'text' },
470                     { 'type': 'text' },
471                     { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => branches %] },
472                     { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => branches %] },
473                     [% IF locations.size %]
474                         { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => locations %] },
475                     [% ELSE %]
476                         null,
477                     [% END %]
478                     [% IF itemtypes.size %]
479                         { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => itemtypes %] },
480                     [% ELSE %]
481                         null,
482                     [% END %]
483                     { 'type': 'text' },
484                     [% IF notforloans.size %]
485                         { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => notforloans %] },
486                     [% ELSE %]
487                         null,
488                     [% END %]
489                     [% IF itemlosts.size %]
490                         { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => itemlosts %] },
491                     [% ELSE %]
492                         null,
493                     [% END %]
494                     [% IF withdrawns.size %]
495                         { 'type': 'select', 'values': [% INCLUDE escape_html_value_label elts => withdrawns %] },
496                     [% ELSE %]
497                         null,
498                     [% END %]
499                     { 'type': 'text' },
500                     null
501                 ]
502             });
503             $('#results').on('draw.dt', function (e, settings) {
504                 var itemnumbers = getCheckedItemnumbers();
505                 $(this).find('input[type="checkbox"][name="itemnumber"]').each(function () {
506                     var itemnumber = this.value;
507                     if (itemnumbers.has(itemnumber)) {
508                         this.checked = true;
509                     }
510                 });
511             });
513             sessionStorage.setItem('itemsearch_itemnumbers', '[]');
515             $('#results').on('change', 'input[type="checkbox"]', function() {
516               var itemnumber = this.value;
517               var itemnumbers = getCheckedItemnumbers();
518               if (this.checked) {
519                   itemnumbers.add(itemnumber);
520               } else {
521                   itemnumbers.delete(itemnumber);
522               }
523               sessionStorage.setItem('itemsearch_itemnumbers', JSON.stringify(Array.from(itemnumbers)));
525               var caret = ' <span class="caret">';
526               if (itemnumbers.size > 0) {
527                 $('#export-button').html(_("Export selected results (%s) to").format(itemnumbers.size) + caret);
528               } else {
529                 $('#export-button').html(_("Export all results to") + caret);
530               }
531             });
532         }
533         var Sticky;
534         $(document).ready(function () {
535             Sticky = $("#toolbar");
536             Sticky.hcSticky({
537                 stickTo: "#item-search-block",
538                 stickyClass: "floating"
539             });
540             // Add the "New field" link.
541             var form_field = $('div.form-field-select-text').last()
542             var NEW_FIELD = _("New field");
543       var button_field_new = $('<a href="#" class="button-field-new" title="Add a new field"><i class="fa fa-plus"></i> ' + NEW_FIELD + '</a>');
544       button_field_new.click(function(e) {
545           e.preventDefault();
546           addNewField( $(this) );
547             });
548       form_field.append(button_field_new);
550             // If a field is linked to an authorised values list, display the list.
551             $('div.form-field-select-text select[name="f"]').change(function() {
552                 loadAuthorisedValuesSelect($(this));
553             }).change();
555             // Prevent user to select the 'All ...' option with other options.
556             $('div.form-field-select').each(function() {
557                 $(this).find('select').filter(':last').change(function() {
558                     values = $(this).val();
559                     if (values.length > 1) {
560                         var idx = $.inArray('', values);
561                         if (idx != -1) {
562                             values.splice(idx, 1);
563                             $(this).val(values);
564                         }
565                     }
566                 });
567             });
569             $('#itemsearchform').submit(function() {
570                 var searchform = $(this);
571                 var format = searchform.find('input[name="format"]:checked').val();
572                 if (format == 'html') {
573                     submitForm(searchform);
574                     $("#item-search-block").hide();
575                     return false;
576                 }
577             });
578         });
579     </script>
580 [% END %]
582 [% INCLUDE 'intranet-bottom.inc' %]