Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / shelves.tt
index 7460d1c..5a29ca7 100644 (file)
@@ -3,6 +3,17 @@
 [% INCLUDE 'doc-head-close.inc' %]
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'datatables.inc' %]
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script>
+
+[% IF print %]
+<script type="text/javascript">
+    $( document ).ready(function() {
+        window.print();
+        setTimeout('window.close()', 1);
+    });
+</script>
+[% END %]
+
 [% IF ( viewshelf ) %]
     <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
     <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.fixFloat.js"></script>
@@ -24,8 +35,16 @@ $(document).ready(function(){
             aoData.push({
                 'name': 'type',
                 'value': type,
-            },
-            {
+            },{
+                'name': 'shelfname',
+                'value': $("#searchshelfname_filter").val(),
+            },{
+                'name': 'owner',
+                'value': $("#searchowner_filter").val(),
+            },{
+                'name': 'sortby',
+                'value': $("#searchsortby_filter").val(),
+            },{
                 'name': 'template_path',
                 'value': 'virtualshelves/tables/shelves_results.tt',
             });
@@ -45,6 +64,8 @@ $(document).ready(function(){
             { 'mDataProp': 'dt_count' },
             { 'mDataProp': 'dt_owner' },
             { 'mDataProp': 'dt_sortby' },
+            { 'mDataProp': 'dt_created_on' },
+            { 'mDataProp': 'dt_modification_time' },
             { 'mDataProp': 'dt_action', 'bSortable': false }
         ],
         "aoColumnDefs": [
@@ -52,8 +73,9 @@ $(document).ready(function(){
         ],
         'bAutoWidth': false,
         'sPaginationType': 'full_numbers',
+        'bFilter': false,
         "bProcessing": true,
-        'bFilter': false
+        "bSortCellsTop": true
     }));
 
     dtListResults.fnAddFilters("filter", 750);
@@ -280,9 +302,11 @@ function placeHold () {
 
 [% IF ( viewshelf ) %]&rsaquo; Contents of <i>[% shelfname | html %]</i>[% END %][% IF ( shelves ) %] &rsaquo; Create new list[% END %][% IF ( edit ) %] &rsaquo; Edit list <i>[% shelfname | html %]</i>[% END %]</div>
 
-<div id="doc2" class="yui-t7">
- <div id="bd">
-  <div id="yui-main">
+<div id="doc3" class="yui-t2">
+<div id="bd">
+<div id="yui-main">
+<div class="yui-b">
+
    <div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
    </div>
 [% IF ( paramsloop ) %]
@@ -344,7 +368,7 @@ function placeHold () {
     [% SET new_direction = 'asc' %]
 [% END %]
 
-<div id="searchheader">
+<div id="searchheader" class="noprint">
     [% IF ( itemsloop ) %]
         <div id="selection_ops"><span class="checkall"></span> |
         <span class="clearall"></span>
@@ -352,12 +376,12 @@ function placeHold () {
         <span class="addto">| </span>
         &nbsp;
         [% IF ( CAN_user_reserveforothers && DisplayMultiPlaceHold ) %]
-            <div class="btn-group"><button class="btn btn-mini placehold"><i class="icon-hold"></i> Place hold</button></div>
+            <div class="btn-group"><button class="btn btn-mini placehold"><i class="fa fa-hold"></i> Place hold</button></div>
         [% END %]
         [% IF ( allowremovingitems ) %]
-            <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="icon-remove-sign"></i> Remove selected</button></div>
+            <div class="btn-group"><button type="submit" class="btn btn-mini list-remove"><i class="fa fa-remove-sign"></i> Remove selected</button></div>
         [% END %]
-        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-mini merge-items"><i class="icon-merge"></i> Merge selected</button></div>[% END %]
+        [% IF ( CAN_user_editcatalogue_edit_catalogue ) %]<div class="btn-group"><button type="submit" class="btn btn-mini merge-items"><i class="fa fa-merge"></i> Merge selected</button></div>[% END %]
         </div>
     [% END %]
 </div>
@@ -461,25 +485,6 @@ function placeHold () {
    </div>
 [% END %]<!-- /viewshelf -->
 
-[% IF ( allowaddingitem ) %]
-<div class="yui-g">
-<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
- <fieldset class="brief">
-    <legend>Add an item to <i>[% shelfname | html %]</i></legend>
-        <ol>
-            <li>
-                <label for="addbarcode">Barcode:</label>
-                <input name="addbarcode" type="text" id="addbarcode" size="14" />
-                <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
-                <input type="hidden" name="modifyshelfcontents" value="1" />
-                <input type="submit" value="Add" />
-            </li>
-        </ol>
- </fieldset>
-</form>
-</div>
-[% END %]<!-- /allowaddingitem -->
-
 [% IF ( debug ) %]
   [% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %]
   [% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %]
@@ -593,8 +598,28 @@ function placeHold () {
                         <th>Contents</th>
                         <th>Owner</th>
                         <th>Sort by</th>
+                        <th>Creation date</th>
+                        <th>Modification date</th>
                         <th>Actions</th>
                     </tr>
+                    <tr class="filters_row">
+                        <th></th>
+                        <th><input class="filter text_filter" id="searchshelfname_filter" placeholder="List name"></th>
+                        <th></th>
+                        <th><input class="filter text_filter" id="searchowner_filter" placeholder="Owner"></th>
+                        <th>
+                            <select class="filter text_filter" id="searchsortby_filter">
+                                <option value=""></option>
+                                <option value="title">Title</option>
+                                <option value="author">Author</option>
+                                <option value="copyrightdate">Copyrightdate</option>
+                                <option value="itemcallnumber">Call number</option>
+                            </select>
+                        </th>
+                        <th></th>
+                        <th></th>
+                        <th></th>
+                    </tr>
                 </thead>
                 <tbody></tbody>
             </table>
@@ -610,4 +635,27 @@ function placeHold () {
 
 </div>
 </div>
+
+[% IF ( allowaddingitem ) %]
+<div class="yui-b">
+  <form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
+    <fieldset class="brief">
+      <legend>Add an item</legend>
+      <ol>
+        <li>
+          <label for="addbarcode">Barcode:</label>
+          <input name="addbarcode" type="text" id="addbarcode" class="focus" />
+          <input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
+          <input type="hidden" name="modifyshelfcontents" value="1" />
+        </li>
+      </ol>
+      <fieldset class="action">
+        <input type="submit" value="Add" />
+      </fieldset>
+    </fieldset>
+  </form>
+</div>
+[% END %]<!-- /allowaddingitem -->
+
+</div>
 [% INCLUDE 'intranet-bottom.inc' %]