[Koha-patches] [PATCH 02/11] (BUG #4356) Basket.pl: adding a link to the basketgroup

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Thu Jun 24 19:26:12 CEST 2010


From: Alex Arnaud <alex.arnaud at biblibre.com>

---
 acqui/basket.pl                                    |    1 +
 .../prog/en/modules/acqui/basket.tmpl              |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/acqui/basket.pl b/acqui/basket.pl
index afdc460..005fcb9 100755
--- a/acqui/basket.pl
+++ b/acqui/basket.pl
@@ -205,6 +205,7 @@ if ( $op eq 'delete_confirm' ) {
                            name =>   "No group");
         if ( ! $basket->{basketgroupid} ) {
             $emptygroup{default} = 1;
+            $emptygroup{nogroup} = 1;
         }
         unshift( @$basketgroups, \%emptygroup );
     }
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
index ab9810c..3021681 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
@@ -177,6 +177,8 @@
                         <input type="submit" value="Change basket group" />
                     </p>
                 </form>
+                <!-- TMPL_ELSE -->
+                    <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=<!-- TMPL_VAR name="basketgroups" -->&basketgroupid=<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR name="name" --></a>
                 <!-- /TMPL_IF -->
                 <!-- /TMPL_IF -->
             </div>
-- 
1.7.0.4



More information about the Koha-patches mailing list