fix the private shelf deletion in opac
authorNahuel Angelinetti <nahuel.angelinetti@biblibre.com>
Thu, 6 Nov 2008 08:34:06 +0000 (09:34 +0100)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 6 Nov 2008 20:48:14 +0000 (14:48 -0600)
this patch add an "hidden" field in the template, that permit in C4::VirtualShelves::Pages to get the right(privates) shelves with
GetShelves in$
of always public shelves.
So when a private shelf is wanted to be deleted, the script watch only in public shelves if the shelf exists, and doesn't work.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl

index ac0c7fd..c70b7c0 100644 (file)
@@ -224,6 +224,7 @@ $.tablesorter.addParser({
                                <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" />
+                                       <input type="hidden" name="display" value="privateshelves" />
                                        <!-- TMPL_IF NAME="confirm" -->
                                        <input type="hidden" name="CONFIRM-<!-- TMPL_VAR NAME="confirm" -->" value="1" />
                                        <input type="submit" class="confirm" value="Confirm" />