[Koha-patches] [PATCH] Fix Bug #3060

Nicole Engard nce at liblime.com
Sun Apr 19 18:33:58 CEST 2009


This patch adds the item barcode, linked to the item
information to the Holds to Pull Report under the
items available heading instead of just showing the
number 1 under this heading for all items available.
---
 circ/pendingreserves.pl                            |    2 ++
 .../prog/en/modules/circ/pendingreserves.tmpl      |    5 ++++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl
index 1c866eb..1454acd 100755
--- a/circ/pendingreserves.pl
+++ b/circ/pendingreserves.pl
@@ -123,6 +123,7 @@ my $strsth =
         		ORDER BY items.itemnumber SEPARATOR ', ') l_branch,
         items.holdingbranch as branch,
         items.itemcallnumber,
+        items.barcode,
         GROUP_CONCAT(DISTINCT items.itype 
         		ORDER BY items.itemnumber SEPARATOR '<br/>') l_itype,
         GROUP_CONCAT(DISTINCT items.location 
@@ -180,6 +181,7 @@ while ( my $data = $sth->fetchrow_hashref ) {
             author           => $data->{author},
             borrowernumber   => $data->{borrowernumber},
             itemnum          => $data->{itemnumber},
+            barcode          => $data->{barcode},
             phone            => $data->{phone},
             email            => $data->{email},
             biblionumber     => $data->{biblionumber},
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
index a1ffed5..95b7aa9 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tmpl
@@ -87,7 +87,10 @@ $.tablesorter.addParser({
         <tr>
             <!-- TMPL_IF name="borrowernumber" -->
                 <td><p><b><!-- TMPL_VAR NAME="pullcount" --></b></p></td>
-                <td><!-- TMPL_VAR NAME="count" --></td>  
+                <td>
+                	<a href="/cgi-bin/koha/catalogue/moredetail.pl?type=&itemnumber=<!-- TMPL_VAR NAME="itemnum" ESCAPE="URL" -->&biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->&bi=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->#item<!-- TMPL_VAR NAME="itemnum" ESCAPE="URL" -->">
+                	<!-- TMPL_VAR NAME="barcode" -->
+                	</a></td>  
                 <td><!-- TMPL_VAR NAME="rcount" --></td> 
                 <td>
                     <p>
-- 
1.5.6.5




More information about the Koha-patches mailing list