Bugzilla – Attachment 9874 Details for
Bug 7570
Add item availability status to cart
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Attached Patch.
0001-Bug-7570-Add-Item-availability-status-to-cart.patch (text/plain), 2.03 KB, created by
Meenakshi
on 2012-06-01 10:37:18 UTC
(
hide
)
Description:
Attached Patch.
Filename:
MIME Type:
Creator:
Meenakshi
Created:
2012-06-01 10:37:18 UTC
Size:
2.03 KB
patch
obsolete
>From edc3331c47384faf8b680b2f1f0c5d1b87098515 Mon Sep 17 00:00:00 2001 >From: Meenakshi.R <meenakshi.r@osslabs.biz> >Date: Fri, 1 Jun 2012 14:00:45 +0530 >Subject: [PATCH] Bug 7570 - Add Item availability status to cart > >Added item availability Status to cart in OPAC interface. > >Changes: >-C4/Items.pm to get the items status in GetItemsLocationInfo. >-koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt to show status. > >To Test: >Add some of the records in t into cart and click on cart. >It will display Status along with Title,Author,Location. >--- > C4/Items.pm | 2 +- > koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 2 ++ > 2 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index a6d5a22..6b7d0d1 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -1389,7 +1389,7 @@ sub GetItemsLocationInfo { > my @results; > > my $dbh = C4::Context->dbh; >- my $query = "SELECT a.branchname as homebranch, b.branchname as holdingbranch, >+ my $query = "SELECT items.*,a.branchname as homebranch, b.branchname as holdingbranch, > location, itemcallnumber, cn_sort > FROM items, branches as a, branches as b > WHERE homebranch = a.branchcode AND holdingbranch = b.branchcode >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >index c4d40ed..ec7760c 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >@@ -354,6 +354,7 @@ function enableCheckboxActions(){ > <th>Author</th> > <th>Year</th> > <th>Location</th> >+ <th>Status</th> > </tr></thead> > > [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %] >@@ -390,6 +391,7 @@ function enableCheckboxActions(){ > [% END %] > </li> > [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td> >+ <td>[% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td> > </tr> > [% END %] > </table></form> >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7570
:
9874
|
9878
|
9907
|
9914
|
9918
|
9952
|
9978
|
10112
|
10113
|
10115