(bug #3173) revert non-working code
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-shelves.tmpl
index 883f753..a6de2d3 100644 (file)
-<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> Catalog -- <!-- TMPL_IF Name="viewshelf" -->Contents of <!-- TMPL_VAR Name="shelfname" --><!-- TMPL_ELSE -->My Virtual Shelves<!-- /TMPL_IF --><!-- TMPL_INCLUDE name="doc-head-close.inc" -->
-</head>
-<!-- TMPL_IF NAME="OpacNav" --> <body id="withnav">
-<!--TMPL_ELSE-->
-<body>
-<!-- /TMPL_IF -->
-<!-- TMPL_INCLUDE name="masthead.inc" -->
-<!-- TMPL_INCLUDE name="usermenu.inc" -->
-<!-- TMPL_INCLUDE name="navigation.inc" -->
-<div id="main_wrapper">
-<div id="main" class="searchresults">
-<div class="content-block">
-<!-- TMPL_IF Name="viewshelf" -->
-<h3><a href="/cgi-bin/koha/opac-shelves.pl">Virtual Shelves</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <!-- TMPL_IF NAME="itemsloop" --><em><!-- TMPL_VAR Name="shelfname" --></em><!-- TMPL_ELSE -->The Virtual Shelf <em><!-- TMPL_VAR Name="shelfname" --></em> is empty<!-- /TMPL_IF --></h3>
-<form class="inline" action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform">
-    <table>
-        <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
-        <input type="hidden" name="modifyshelfcontents" value="1" />
-            <tr>
-                <th>
-                    <a style="color:white;" href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;">Check All</a>
-                </th>
-                <th>&nbsp;</th>
-                <th>Title</th>
-                <th>Author</th>
-                <th>Call No.</th>
-            </tr>
-        <!-- TMPL_LOOP Name="itemsloop" -->
-            <tr<!-- TMPL_IF name="color" --> class="highlight"<!-- /TMPL_IF -->>
-                    <td>
-                        <input type="checkbox" name="MOD-<!-- TMPL_VAR Name="biblionumber" -->" />
-                        <input type="hidden" name="ModBiblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->">
-                    </td>
-                    <td>
-                        <img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
-                    </td>
-                    <td>
-                         <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
-                                        <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
-                                            <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
-                                        </a>
-                                    <!-- TMPL_ELSE -->
-                                        <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
-                                            <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
-                                                <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
-                                            </a>
-                                        <!-- TMPL_ELSE -->
-                                            <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
-                                                <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
-                                            </a>
-                                        <!-- /TMPL_IF -->
-                                    <!-- /TMPL_IF -->
-                        </a>
-                    </td>
-                    <td><!-- TMPL_VAR Name="author" --></td>
-                    <td><!-- TMPL_VAR NAME="classification" --></td>
-        </tr>
-        <!-- /TMPL_LOOP -->
-    </table>
-    <!-- TMPL_ELSE -->
-    <tr><td colspan="5">This Virtual Shelf is empty.</td></tr>
-    <!-- /TMPL_IF -->
-  </table>
-  <!-- TMPL_IF name="manageshelf" --><!-- TMPL_IF NAME="itemsloop" --><a href="/cgi-bin/koha/opac-shelves.pl" onclick="CheckAll(); return false;"><img src="<!-- TMPL_VAR NAME="themelang" -->/images/checkall.gif" height="18" width="18" alt="Check All" title="Check All" border="0" /></a><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
-  <input type="hidden" name="modifyshelfcontents" value="1" />
-  <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete('Are you sure you want to remove these items from the list?')" /><!-- /TMPL_IF --><!-- /TMPL_IF --></form><!-- TMPL_IF name="manageshelf" --> <form class="inline" method="get" action="/cgi-bin/koha/opac-shelves.pl"><input type="hidden" name="op" value="modif" /><input type="hidden" value="<!-- TMPL_VAR NAME="shelfnumber" -->" name="shelf" /><input type="submit" value="Rename this Shelf" class="icon edit" /></form> <!-- TMPL_UNLESS NAME="itemsloop" --><form class="inline" method="get" action="/cgi-bin/koha/opac-shelves.pl"><input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="hidden" name="shelves" value="1" /><input type="submit" class="icon delete" value="Delete this Virtual Shelf" onclick="return confirmDelete('Are you sure you want to delete this Virtual Shelf?')" /></form><!-- /TMPL_UNLESS -->
-<br /><br /><!-- TMPL_IF name="manageshelf" -->
-<form action="/cgi-bin/koha/opac-shelves.pl" method="post">
-  <table>
-    <tr><th colspan="2">Add an Item to this Virtual Shelf by Barcode</th></tr>
-    <tr>
-      <td><label for="addbarcode">Barcode:</label></td>
-      <td><input name="addbarcode" type="text" id="addbarcode" size="14" maxlength="14" /><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="hidden" name="modifyshelfcontents" value="1" /><input type="submit" value="Save" class="submit" /></td>
-    </tr>
-  </table>
-</form><!-- /TMPL_IF -->
-<!-- /TMPL_IF -->
-<form class="inline" method="get" action="opac-shelves.pl"><input type="submit" class="icon back" value="Back to Virtual Shelves" /></form> <form class="inline" action="opac-shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Virtual Shelves" class="icon add" /></form>
-<!-- TMPL_ELSE -->
-  <!-- TMPL_IF Name="shelves" -->
-    <!-- TMPL_IF Name="status1" -->
-      <p class="error"><!-- TMPL_VAR Name="string1" --></p>
-    <!-- /TMPL_IF -->
-    <!-- TMPL_LOOP Name="paramsloop" -->
-      <!-- TMPL_IF Name="status" -->
-        <p class="error"><!-- TMPL_VAR Name="string" --></p>
-      <!-- /TMPL_IF -->
-    <!-- /TMPL_LOOP -->
-<div id="center">
-<form method="post" action="/cgi-bin/koha/opac-shelves.pl">
-    <input type="hidden" name="shelves" value="1">
-    <div class="form"><table>
-    <caption>Create a New a Virtual Shelf</caption>
-    <tr><th><label for="addshelf">List Name:</label> </th><td> <input id="addshelf" type="text" name="addshelf" size="60"><input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR name="loggedinuser" -->"></td></tr>
-</table></div>
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;   <!-- TMPL_IF NAME="viewshelf" -->Contents of <!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --><!-- TMPL_ELSE -->My Lists<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/JavaScript" language="JavaScript">
+//<![CDATA[
+$.tablesorter.addParser({
+    id: 'articles', 
+    is: function(s) {return false;  }, 
+    format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
+    type: 'text' 
+});
 
-                <p><input type="hidden" name="category" value="1" /><input type="submit" value="Add New Shelf" class="icon add"></p>
-          </form>
-        </div>    
-    
-    <div id="right"><!-- TMPL_IF NAME="shelveslooppriv" -->
-    <form method="post" action="/cgi-bin/koha/opac-shelves.pl" name="mainform">
-          <input type="hidden" name="shelves" value="1" />
-          <table>
-          <caption>Delete Virtual Shelves</caption>
-            <tr><th>&nbsp;</th><th>Virtual Shelf Name</th><th>Contents</th></tr>
-            <!-- TMPL_LOOP Name="shelveslooppriv" -->
-    
-            <tr>
-              <td>
-              <!-- TMPL_IF NAME="shelfbookcount" --> <input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->" disabled="disabled" readonly="readonly" /><!--TMPL_ELSE--><input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->" /><!-- /TMPL_IF --> </td><td><a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)<!-- TMPL_IF NAME="shelfbookcount" --><sup>*</sup><!-- /TMPL_IF --></td></tr>
-    
-            <!-- /TMPL_LOOP -->
-          </table><p><sup>*</sup>All items must be removed from Virtual Shelves prior to deletion.</p>
-    <input type="submit" value="Delete Selected Lists" onclick="return confirmDelete('Are you sure you want to delete this list?')" class="icon delete" /> </form>
-    <!-- /TMPL_IF -->
-    <p><form class="inline" action="opac-shelves.pl" method="get"><input type="submit" class="icon back" value="Back to Virtual Shelves" /></form></p>
-</div>
-  <!-- TMPL_ELSE -->
-  <!-- TMPL_IF name="edit" -->
-    <form method="post">
-      <input type="hidden" name="op" value="modifsave">
-      <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->">
-      <div class="form"><table>
-      <caption>Rename Virtual Shelf <em><!-- TMPL_VAR name="shelfname"--></em></caption>
-      <tr><th><label for="shelfname">List Name: </label></th><td><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR name="shelfname"-->" /></td></tr>
-      </table>
-      <p><input type="hidden" name="category" value="1" /><input type="submit" value="Save Changes" class="submit"></p></div>
+$(function() {
+    $("span.clearall").html("<a id=\"CheckNone\" href=\"#\">"+_("Clear All")+"</a>");
+    $("span.checkall").html("<a id=\"CheckAll\" href=\"#\">"+_("Select All")+"</a>");
+    $("#listcontents").tablesorter({
+        widgets : ['zebra'],
+        <!-- TMPL_IF NAME="manageshelf" -->
+          sortList: [[1,0]],
+          headers: { 0: { sorter: false },1:{sorter: 'articles'}
+        <!-- TMPL_ELSE -->
+          sortList: [[0,0]],
+          headers: { 0:{sorter:'articles'}
+        <!-- /TMPL_IF -->
+        }
+    }); 
+    $("#CheckAll").click(function(){
+        $(".checkboxed").checkCheckboxes();
+        return false;
+    });
+    $("#CheckNone").click(function(){
+        $(".checkboxed").unCheckCheckboxes();
+        return false;
+    });
 
-    </form>
-<!-- /TMPL_IF -->
+});
 
-<h2>Virtual Shelves</h2>
+//]]>
+</script>
+</head>
+<!-- TMPL_IF NAME="loggedinusername" --><body id="opac-userlists"><!-- TMPL_ELSE --><body id="opac-lists"><!-- /TMPL_IF -->
+    <!-- TMPL_IF EXPR="OpacNav||loggedinusername" --><div id="doc3" class="yui-t1"><!-- TMPL_ELSE --><div id="doc3" class="yui-t7"><!-- /TMPL_IF -->
+ <div id="bd">
+<!-- TMPL_INCLUDE NAME="masthead.inc" -->
 
-<ul class="link-tabs">
-<!-- TMPL_IF name="showprivateshelves" -->
-<li id="privateshelves_tab" class="on">
-<!-- TMPL_ELSE --> 
-<li id="privateshelves_tab" class="off">
-<!-- /TMPL_IF --><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves" onclick="changeView('privateshelves'); return false;">Your Virtual Shelves</a> </li>
-<!-- TMPL_IF name="showpublicshelves" --> 
-<li id="publicshelves_tab" class="on">
-<!-- TMPL_ELSE --> 
-<li id="publicshelves_tab" class="off">
-<!-- /TMPL_IF -->
-<a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves" onclick="changeView('publicshelves'); return false;">Public Virtual Shelves</a></li>
-  
-</ul>
-<!-- TMPL_IF name="showprivateshelves" -->
-<div id="privateshelves" style="display:block;">
-<!-- TMPL_ELSE --> 
-<div id="privateshelves" style="display:none;">
-<!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="loggedinusername" -->
-<table>
-<tr><th>List Name</th><th>Contents</th><th>&nbsp;</th></tr>
-<!-- TMPL_IF NAME="shelveslooppriv" --><!-- TMPL_LOOP Name="shelveslooppriv" -->
-<!-- TMPL_IF name="color" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF --><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td><td><!-- TMPL_IF name="mine" --><a href="opac-shelves.pl?op=modif&amp;shelf=<!-- TMPL_VAR NAME="shelf" -->">Rename</a><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr><!-- /TMPL_LOOP --><!-- TMPL_ELSE --><tr><td colspan="4">Click below to create a new Virtual Shelf!</td></tr><!-- /TMPL_IF --></table>
-<p><form action="opac-shelves.pl" method="get"><input type="hidden" value="1" name="shelves" /><input type="submit" value="Add or Remove Virtual Shelves" class="icon add" /></form></p>
-<!-- TMPL_ELSE -->
-  <p><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create your own private Virtual Shelf</p>
-<!-- /TMPL_IF -->
+  <div id="yui-main">
+   <div class="yui-b">
+       <div class="container">
+<!-- TMPL_IF NAME="paramsloop" -->
+<!-- TMPL_LOOP NAME="paramsloop" -->
+<div class="yui-ge">
+    <div class="yui-u first">
+        <!-- TMPL_IF NAME="already" --><div class="dialog alert">A List named <b><!-- TMPL_VAR NAME="already" --></b> already exists!</div><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="status" --><div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="nobarcode" --><div class="dialog alert">ERROR: No barcode given.</div><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="noshelfnumber" --><div class="dialog alert">ERROR: No shelfnumber given.</div><!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="need_confirm" -->
+        <div class="dialog alert">The list <i><!-- TMPL_VAR NAME="need_confirm" --></i> is not empty.
+            <br />It has <b><!-- TMPL_VAR NAME="count" --></b> entries.
+            <br />Use the "Confirm" button below to confirm deletion. 
+                       <br />
+                       <form action="opac-shelves.pl" method="post">
+                    <input type="hidden" name="shelves" value="1" />
+                    <input type="hidden" name="display" value="<!--TMPL_VAR Name="shelftype"-->shelves" />
+                    <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
+                    <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
+                    <input type="submit" class="confirm" value="Confirm" />
+             </form>
 
+        </div>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="nopermission" -->
+        <div class="dialog alert">ERROR: You do not have adequate permission for that action on list <!-- TMPL_VAR NAME="nopermission" -->.</div>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="failgetitem" -->
+        <div class="dialog alert">ERROR: No item found with barcode <!-- TMPL_VAR NAME="failgetitem" -->.</div>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="duplicatebiblio" -->
+        <div class="dialog alert">A record matching barcode <b><!-- TMPL_VAR NAME="duplicatebiblio" --></b> has already been added.</div>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="delete_ok" -->
+            <div class="dialog message">List <!-- TMPL_VAR NAME="delete_ok" --> Deleted.</div>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="delete_fail" -->
+            <div class="dialog message">ERROR: Database error. Delete (list number <!-- TMPL_VAR NAME="delete_fail" -->) failed.</div>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="unrecognized" -->
+            <div class="dialog message">ERROR: List number <!-- TMPL_VAR NAME="unrecognized" --> unrecognized.</div>
+        <!-- /TMPL_IF -->
+    </div>
 </div>
+<!-- /TMPL_LOOP -->
+<!-- /TMPL_IF --> 
 
-<!-- TMPL_IF name="showpublicshelves" --><div id="publicshelves" style="display:block;"> 
-<!-- TMPL_ELSE -->
-<div id="publicshelves" style="display:none;">
-<!-- /TMPL_IF --><table>
-<tr><th>List Name</th><th>Contents</th></tr>
-<!-- TMPL_LOOP Name="shelvesloop" -->
-<!-- TMPL_IF name="color" --> <tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF --><td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><!-- TMPL_VAR Name="shelfname" --></a></td><td><!-- TMPL_VAR Name="shelfbookcount" --> item(s)</td></tr>
-      <!-- /TMPL_LOOP -->
-    </table></div>
+<div class="yui-u">
+<!-- TMPL_IF NAME="viewshelf" --><!--  Viewing a particular shelf -->
+              <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></h3>
+    <!-- TMPL_IF NAME="itemsloop" -->
+        <div>
+        <!-- TMPL_IF NAME="manageshelf" -->
+                    <span class="checkall"></span>
+                    <span class="clearall"></span>
+                    |
+                    <!-- div id="tag_hides" -->
+                      <a class="editshelf tag_hides" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;op=modif">Edit List</a>
+                      <form method="post" action="opac-shelves.pl" class="tag_hides">
+                        <input type="hidden" value="1" name="shelves"/>
+            <!-- TMPL_IF NAME="showprivateshelves" --> <input type="hidden" name="display" value="privateshelves" /> <!-- /TMPL_IF -->
+                         <input type="hidden" value="1" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->"/>
+                         <input type="submit" class="deleteshelf" value="Delete List" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));"/>
+                      </form>
+       <!-- /TMPL_IF -->
+                  </div>
+                <!-- TMPL_IF NAME="manageshelf" -->
+                  <form action="/cgi-bin/koha/opac-shelves.pl" method="post" name="myform" class="checkboxed">
+                    <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
+                    <input type="hidden" name="modifyshelfcontents" value="1" />
+                <!-- /TMPL_IF -->
+                <!-- TMPL_VAR name='pagination_bar'-->
+                <table id="listcontents">
+                  <thead><tr>
+                    <!-- TMPL_IF NAME="manageshelf" --><th>&nbsp;</th><!-- /TMPL_IF -->
+                    <!-- TMPL_UNLESS NAME="item-level_itypes" --><th>Item Type</th><!-- /TMPL_UNLESS -->
+                    <th>Title</th>
+                    <th>Author</th>
+                    <th>Year</th>
+                  </tr></thead>
+                  <tbody>
+         <!-- TMPL_LOOP NAME="itemsloop" -->
+            <!-- TMPL_UNLESS NAME="__odd__" -->
+                    <tr class="highlight">
+                    <!-- TMPL_ELSE -->
+                    <tr>
+                    <!-- /TMPL_UNLESS --> 
+                       <!-- TMPL_IF NAME="manageshelf" -->
+                                        <td>
+                                       <input type="checkbox" name="REM-<!-- TMPL_VAR NAME="biblionumber" -->" />
+                                        </td>
+                               <!-- /TMPL_IF -->
+            <!-- TMPL_UNLESS NAME="item-level_itypes" -->
+                                                <td>
+                                <!-- TMPL_IF NAME="imageurl" --> <img src="<!-- TMPL_VAR NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->" title="<!-- TMPL_VAR NAME="description" -->" /> <!--/TMPL_IF--> <!-- TMPL_VAR NAME="description" -->
+                                        </td> 
+                       <!-- /TMPL_UNLESS -->
+                                       <td><!-- TMPL_IF NAME="BiblioDefaultViewmarc" --><a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
+              <!-- TMPL_ELSE -->
+              <!-- TMPL_IF NAME="BiblioDefaultViewisbd" --><a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
+              <!-- TMPL_ELSE --><a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
+              <!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_VAR NAME="title" escape="html" --> <!-- TMPL_VAR NAME="subtitle" --></a>
+              <!-- COinS / OpenURL --><span class="Z3988" title="<!-- TMPL_VAR NAME="coins" -->"></span>
+                               </td>
+                               <td><!-- TMPL_VAR NAME="author" --></td>
+                               <td>
+               <!-- TMPL_IF NAME="publicationyear" --> <!-- TMPL_VAR NAME="publicationyear" --> <!-- TMPL_ELSE --> <!-- TMPL_VAR NAME="copyrightdate" --> <!-- /TMPL_IF -->
+                               </td>
+                               </tr>
+       <!-- /TMPL_LOOP -->
+       </tbody><!-- /itemsloop -->
+    </table>
+            <!-- TMPL_ELSE -->
+        <div class="dialog message">This List is empty.  You can add to your lists from the results of any <a href="opac-main.pl">search</a>!</div>
+            <!-- /TMPL_IF --><!-- /itemsloop -->
+    <!-- /TMPL_IF -->
+    <!-- /viewshelf -->
 
-  <!-- /TMPL_IF -->
-<!-- /TMPL_IF -->
+    <!-- TMPL_IF NAME="manageshelf" -->
+    <!-- Editing shelf -->
+        <!-- TMPL_IF NAME="itemsloop" -->
+            <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
+            <input type="hidden" name="modifyshelfcontents" value="1" />
+            <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><input type="submit" value="Remove Selected Items" class="icon delete" onclick="return confirmDelete(_('Are you sure you want to remove these items from the list?'))" />
+        <!-- TMPL_ELSE -->
+<form method="post" action="opac-shelves.pl">
+            <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelfnumber" -->" value="1" />
+            <input type="hidden" name="shelves" value="1" />
+            <input type="submit" class="icon delete" value="Delete this List" onclick="return confirmDelete(_('Are you sure you want to delete this List?'))" />
+        <!-- /TMPL_IF -->
+        </form>
+    <!-- /TMPL_IF -->
 
-</div>
-</div>
-</div>
+    <!-- TMPL_IF NAME="edit" -->
+    <h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelfnumber" -->"><em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Editing</h3>
+        <form method="post" action="/cgi-bin/koha/opac-shelves.pl">
+            <input type="hidden" name="op" value="modifsave" />
+            <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
+            <fieldset class="rows">
+            <ol>
+            <li><label for="shelfname">List Name: </label><input type="text" id="shelfname" name="shelfname" size="60" value="<!-- TMPL_VAR NAME="shelfname" ESCAPE="html" -->" /></li>
+            <li><label for="sortfield" >Sort this list by: </label>
+            <select name="sortfield">
+            <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="sort_year" --><option value="year" selected="selected">Year</option><!-- TMPL_ELSE --><option value="year">Year</option><!-- /TMPL_IF -->
+            </select></li>
+            <li><label for="category">Category: </label>
+                <select name="category" id="category">
+                      <option value="1">Private</option>
+                      <option value="2">Public</option>
+                </select>
+            </li>
+            </ol>
+            </fieldset>
+            <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->">Cancel</a></fieldset>
+        </form>
+    <!-- /TMPL_IF -->
+   <!-- TMPL_UNLESS NAME="edit" --> <!-- TMPL_UNLESS NAME="viewshelf" --> <!-- TMPL_UNLESS NAME="shelves" -->
+        <h2>Lists</h2>
+        <ul class="link-tabs">
+        <!-- TMPL_IF NAME="showprivateshelves" -->
+            <li id="privateshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
+        <!-- TMPL_ELSE -->
+            <li id="privateshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Your Lists</a></li>
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="showpublicshelves" -->
+            <li id="publicshelves_tab" class="on"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
+        <!-- TMPL_ELSE -->
+            <li id="publicshelves_tab" class="off"><a href="/cgi-bin/koha/opac-shelves.pl?display=publicshelves">Public Lists</a></li>
+        <!-- /TMPL_IF -->
+        </ul>
+        <!-- TMPL_IF NAME="showprivateshelves" -->
+        <div id="privateshelves" class="tab-container" style="display:block;">
+        <!-- TMPL_ELSE -->
+        <div id="privateshelves" class="tab-container" style="display:none;">
+        <!-- /TMPL_IF -->
+        
+               <!-- TMPL_IF NAME="loggedinusername" -->
+    <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a>
+            <!-- TMPL_IF NAME="shelveslooppriv" -->
+            <!-- TMPL_VAR name='pagination_bar'-->
+                <table>
+                <tr><th>List Name</th><th>Contents</th><th>Sort by</th><th>Type</th><th>&nbsp;</th></tr>
+                <!-- TMPL_LOOP NAME="shelveslooppriv" -->
+                    <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
+        <td><a href="opac-shelves.pl?display=privateshelves&viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"  --></a></td>
+        <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
+        <td><!-- TMPL_VAR NAME="sortfield" --></td>
+        <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
+            <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
+        </td>
+        <td>
+            <!-- TMPL_IF NAME="mine" -->
+                <form action="opac-shelves.pl" method="get">
+                    <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
+                    <input type="hidden" name="display" value="privateshelves" />
+                    <input type="hidden" name="op" value="modif" />
+                    <input type="submit" class="editshelf" value="Edit" />
+                </form>
+                <form action="opac-shelves.pl" method="post">
+                    <input type="hidden" name="shelves" value="1" />
+                    <input type="hidden" name="display" value="privateshelves" />
+                    <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
+                    <!-- TMPL_IF NAME="confirm" -->
+                    <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
+                    <input type="submit" class="confirm" value="Confirm" />
+                    <!-- TMPL_ELSE -->
+                    <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
+                    <!-- /TMPL_IF -->
+                </form>
+            <!-- /TMPL_IF -->&nbsp;
+            <a href="#" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelf" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100')">Send List</a>
+        </td>
+        </tr>
+                <!-- /TMPL_LOOP -->
+            <!-- TMPL_ELSE -->
+            <tr><td colspan="4">No Private Lists.</td></tr>
+            <!-- /TMPL_IF --><!-- /shelveslooppriv -->
+        </table>
+        <!-- TMPL_ELSE --><!-- /loggedinusername -->
+          <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
+        <!-- /TMPL_IF --><!-- /loggedinusername -->
+        </div><!-- /privateshelves -->
+
+        <!-- TMPL_IF NAME="showpublicshelves" -->
+        <div id="publicshelves" class="tab-container" style="display:block;">
+        <!-- TMPL_ELSE -->
+        <div id="publicshelves" class="tab-container" style="display:none;">
+        <!-- /TMPL_IF -->
+        <!-- TMPL_IF NAME="shelvesloop" -->
+        <!-- TMPL_VAR name='pagination_bar'-->
+        <table>
+        <tr><th>List Name</th><th>Contents</th><th>Type</th><th>&nbsp;</th></tr>
+            <!-- TMPL_LOOP NAME="shelvesloop" -->
+                <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
+        <td><a href="opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelf" -->"><!-- TMPL_VAR NAME="shelfname" ESCAPE="html"  --></a></td>
+        <td><!-- TMPL_VAR NAME="count" --> item(s)</td>
+        <td><!-- TMPL_IF NAME="viewcategory1" -->Private<!-- /TMPL_IF -->
+           <!-- TMPL_IF NAME="viewcategory2" -->Public<!-- /TMPL_IF -->
+           <!-- TMPL_IF NAME="viewcategory3" -->Open<!-- /TMPL_IF -->
+       </td>
+    <td>
+            <!-- TMPL_IF NAME="mine" -->
+        <form action="opac-shelves.pl" method="get">
+          <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
+          <input type="hidden" name="op" value="modif" />
+          <input type="submit" class="editshelf" value="Edit" />
+        </form>
+        <form action="opac-shelves.pl" method="post">
+          <input type="hidden" name="shelves" value="1" />
+          <input type="hidden" name="DEL-<!-- TMPL_VAR NAME="shelf" -->" value="1" />
+          <!-- TMPL_IF NAME="confirm" -->
+          <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
+          <input type="submit" class="confirm" value="Confirm" />
+          <!-- TMPL_ELSE -->
+          <input type="submit" class="deleteshelf" onclick="return confirmDelete(_('Are you sure you want to remove this List?'));" value="Delete" />
+          <!-- /TMPL_IF -->
+        </form>
+      <!-- /TMPL_IF -->&nbsp;
+      <a href="#" class="send" onclick="open(CGIBIN+'opac-sendshelf.pl?shelfid=<!-- TMPL_VAR NAME="shelf" -->','win_form','dependant=yes,scrollbars=no,resizable=no,height=300,width=450,top=50,left=100')">Send List</a>
+    </td>
+               </tr>
+            <!-- /TMPL_LOOP -->
+        </table>
+        <!-- TMPL_ELSE -->
+            <!-- TMPL_IF NAME="showpublicshelves" -->No Public Lists.<!-- /TMPL_IF -->
+        <!-- /TMPL_IF --><!-- /shelvesloop -->
+        </div><!-- /publicshelves -->
+    <!-- /TMPL_UNLESS --><!-- /viewshelf --><!-- /TMPL_UNLESS --><!-- /edit --><!-- /TMPL_UNLESS --><!-- /shelves -->
 
+        <!-- TMPL_IF NAME="shelves" -->
+        <div id="addshelf"><form method="post" action="/cgi-bin/koha/opac-shelves.pl">
+        <fieldset class="rows">
+        <legend>Create a New List</legend>
+            <input type="hidden" name="shelves" value="1" />
+            <ol><li><label for="addshelf">List Name:</label>
+                <!-- TMPL_IF NAME="already" -->
+                <input id="addshelf" type="text" name="addshelf" value="<!-- TMPL_VAR NAME="already" -->" size="60" />
+                <!-- TMPL_ELSE -->
+                <input id="addshelf" type="text" name="addshelf" size="60" />
+                <!-- /TMPL_IF -->
+                <input type="hidden" name="owner" id="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->" /></li>
+                <li><label for="sortfield" >Sort this list by: </label>
+                <select name="sortfield">
+                <!-- TMPL_IF NAME="sort_title" --><option value="title" selected="selected">Title</option><!-- TMPL_ELSE --><option value="title">Title</option><!-- /TMPL_IF -->
+                <!-- TMPL_IF NAME="sort_author" --><option value="author" selected="selected">Author</option><!-- TMPL_ELSE --><option value="author">Author</option><!-- /TMPL_IF -->
+                <!-- TMPL_IF NAME="sort_year" --><option value="year" selected="selected">Year</option><!-- TMPL_ELSE --><option value="year">Year</option><!-- /TMPL_IF -->
+                </select></li>
+                <li><label for="category">Category:</label>
+                <select name="category" id="category">
+                    <option value="1">Private</option>
+                    <option value="2">Public</option>
+                </select></li>
+</ol>
+        </fieldset>
+            <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl">Cancel</a></fieldset>
+        </form>    </div>
+    <!-- /TMPL_IF --><!-- /showadd -->
+    </div></div>
+   </div>
+  </div>
+<!-- TMPL_IF EXPR="OpacNav||loggedinusername" -->
+  <div class="yui-b">
+  <div class="container">
+    <!-- TMPL_INCLUDE NAME="navigation.inc" -->
+    <!-- TMPL_INCLUDE NAME="usermenu.inc" -->
+  </div>
+  </div><!-- /TMPL_IF -->
+ </div>
+<!-- </div> -->
 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->