Bugzilla – Attachment 9918 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]
Latest Patch
0001-Bug-7570-Add-Item-availability-status-to-cart.patch (text/plain), 3.26 KB, created by
Meenakshi
on 2012-06-05 10:02:52 UTC
(
hide
)
Description:
Latest Patch
Filename:
MIME Type:
Creator:
Meenakshi
Created:
2012-06-05 10:02:52 UTC
Size:
3.26 KB
patch
obsolete
>From 5882de87989a09c5352ebc030cff4ea0645b8ef0 Mon Sep 17 00:00:00 2001 >From: Meenakshi.R <meenakshi.r@osslabs.biz> >Date: Tue, 5 Jun 2012 12:47:19 +0530 >Subject: [PATCH] Bug 7570 - Add Item availability status to cart. > >Added Item availability status to cart(Location table cell). > >Changes: >-C4/Items.pm: > Sql query to get items full information. >-koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt: > Added code for showing availibility staus in opac-basket page and in "More details" link. > >Test Cases: >-Add records to your cart with different cases like 1 record with different Item status(Lost,Avaliable,Withdrawn,etc). >-Click on your cart and see the results in a new window. >-Click on "More details" link and check the results. >--- > C4/Items.pm | 2 +- > koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 6 ++++-- > 2 files changed, 5 insertions(+), 3 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..71874cb 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt >@@ -308,13 +308,14 @@ function enableCheckboxActions(){ > </tr>[% END %] > > <tr> >- <th scope="row">Location(s)</th> >+ <th scope="row">Location(s)(Status)</th> > <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %] > <li> > <strong>[% ITEM_RESULT.homebranch %]</strong>[% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %] > [% IF ( ITEM_RESULT.itemcallnumber ) %] > ([% ITEM_RESULT.itemcallnumber %]) > [% END %] >+ ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %]) > </li> > [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td> > </tr> >@@ -353,7 +354,7 @@ function enableCheckboxActions(){ > <th>Title</th> > <th>Author</th> > <th>Year</th> >- <th>Location</th> >+ <th>Location(Status)</th> > </tr></thead> > > [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %] >@@ -388,6 +389,7 @@ function enableCheckboxActions(){ > [% IF ( ITEM_RESULT.itemcallnumber ) %] > ([% ITEM_RESULT.itemcallnumber %]) > [% END %] >+ ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %]) > </li> > [% END %]</ul>[% ELSE %]This record has no items.[% END %]</td> > </tr> >-- >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