[Koha-patches] [PATCH] (BUG #4348) parcel.pl: list with duplicates orders after a clearfilter

Alex Arnaud alex.arnaud at biblibre.com
Tue Mar 30 10:01:56 CEST 2010


---
 acqui/parcel.pl                                    |    2 ++
 .../prog/en/modules/acqui/parcel.tmpl              |    9 +++++----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/acqui/parcel.pl b/acqui/parcel.pl
index f4a4b19..247613c 100755
--- a/acqui/parcel.pl
+++ b/acqui/parcel.pl
@@ -109,6 +109,8 @@ if($input->param('format') eq "json"){
             $data->{ordernumber} = $order->{ordernumber};
             $data->{title} = $order->{title};
             $data->{author} = $order->{author};
+            $data->{isbn} = $order->{isbn};
+            $data->{booksellerid} = $order->{booksellerid};
             $data->{biblionumber} = $order->{biblionumber};
             $data->{freight} = $order->{freight};
             $data->{quantity} = $order->{quantity};
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl
index a4775eb..bc71bac 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tmpl
@@ -83,13 +83,13 @@
 
 				for( i = 0 ; i < orders.length ; i++){
 					order = orders[i];
-					$('<tr>'
+					$('<tr class="orderfound">'
                        + '<td class="basketfilterclass"><a href="/cgi-bin/koha/acqui/basket.pl?basketno=' + order.basketno + '">' + order.basketno + '</a></td>'
-                       + '<td class="orderfilterclass"> ' + order.ordernumber + ' </td>'
+                       + '<td class="orderfilterclass"> <a href="neworderempty.pl?ordernumber=' + order.ordernumber + '&booksellerid=' + order.booksellerid + '">' + order.ordernumber + ' </a></td>'
                        + '<td class="summaryfilterclass">'
-                       + '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + order.biblionumber + '">' + order.title + '</a> / ' + order.author + '&ndash;' + order.isbn + '</td>'
+                       + '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + order.biblionumber + '">' + order.title + '</a> by ' + order.author + '&nbsp;&ndash;&nbsp;' + order.isbn + '</td>'
                        + '<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?id=' + order.biblionumber + '" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&amp;id=' + order.biblionumber + '" title="MARC" rel="gb_page_center[600,500]">Card</a></td>'
-                       + '<td>' + order.quantrem + ' / ' + order.quantity + '</td>'
+                       + '<td>' + order.quantity + '</td>'
                        + '<td>' + order.ecost + '</td>'
                        + '<td>' + order.ordertotal + '</td>'
                        + '<td>'
@@ -114,6 +114,7 @@
     function clearFilters() {
 	$("#nothingfoundrow").remove();
         $("#pendingt tbody.filterclass tr").show();
+        $("#pendingt tbody.filterclass tr.orderfound").remove();
 	pendingExpand();
     }
 
-- 
1.6.3.3




More information about the Koha-patches mailing list