[Koha-patches] [PATCH] Bug Fix : 2686
henridamien.laurent at biblibre.com
henridamien.laurent at biblibre.com
Wed Nov 12 16:32:29 CET 2008
From: Laurent Henri-Damien <hdlaurent at localhost.(none)>
---
.../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 27 +++++++++++++++++---
1 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
index ac0c7fd..317efeb 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
@@ -201,6 +201,7 @@ $.tablesorter.addParser({
<!-- /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>
@@ -239,11 +240,10 @@ $.tablesorter.addParser({
<tr><td colspan="4">No Private Lists.</td></tr>
<!-- /TMPL_IF --><!-- /shelveslooppriv -->
</table>
- <a class="newshelf" href="/cgi-bin/koha/opac-shelves.pl?shelves=1">New List</a>
+ </div><!-- /privateshelves -->
<!-- TMPL_ELSE --><!-- /loggedinusername -->
- <div><a href="/cgi-bin/koha/opac-user.pl">Log in</a> to create new Lists.</div>
+ <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;">
@@ -253,7 +253,7 @@ $.tablesorter.addParser({
<!-- TMPL_IF NAME="shelvesloop" -->
<!-- TMPL_VAR name='pagination_bar'-->
<table>
- <tr><th>List Name</th><th>Contents</th><th>Type</th></tr>
+ <tr><th>List Name</th><th>Contents</th><th>Type</th><th> </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>
@@ -262,6 +262,25 @@ $.tablesorter.addParser({
<!-- 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 -->
+ </td>
</tr>
<!-- /TMPL_LOOP -->
</table>
--
1.6.0.2
More information about the Koha-patches
mailing list