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

Alex Arnaud alex.arnaud at biblibre.com
Wed Mar 31 10:05:21 CEST 2010


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

diff --git a/acqui/basket.pl b/acqui/basket.pl
index 1e27d8f..51ea00a 100755
--- a/acqui/basket.pl
+++ b/acqui/basket.pl
@@ -207,6 +207,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 e67e838..5a2a853 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tmpl
@@ -162,7 +162,15 @@
                 <form action="/cgi-bin/koha/acqui/basketgroup.pl" method="post">
                 <p>Closed on:  <!-- TMPL_VAR name="closedate" --></p>
                 <!-- TMPL_IF name="basketgroups" -->
-                    <p> basketgroup: <select id="basketgroupid" name="basketgroupid">
+                    <p> basketgroup:
+                    <!-- TMPL_LOOP name="basketgroups" -->
+                    <!-- TMPL_IF name="default" -->
+                    <!-- TMPL_UNLESS name="nogroup" --> 
+                    <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_UNLESS --> 
+                    <!-- /TMPL_IF -->
+                    <!-- /TMPL_LOOP -->
+                        <select id="basketgroupid" name="basketgroupid">
                         <!-- TMPL_LOOP name="basketgroups" -->
                             <!-- TMPL_IF name="default" -->
                             <option value="<!-- TMPL_VAR name="id" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
-- 
1.6.3.3




More information about the Koha-patches mailing list