Bugzilla – Attachment 3619 Details for
Bug 4157
Display of barcode in checked out items in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Signoff 1/2
0001-wr76595-barcode-display.patch (text/plain), 4.21 KB, created by
Matthias Meusburger
on 2011-04-04 12:13:51 UTC
(
hide
)
Description:
Signoff 1/2
Filename:
MIME Type:
Creator:
Matthias Meusburger
Created:
2011-04-04 12:13:51 UTC
Size:
4.21 KB
patch
obsolete
>From 2508b06617da0ec258d11d446d1244b6f78e8590 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Wed, 30 Mar 2011 16:11:32 +1300 >Subject: [PATCH 1/2] [SIGNED-OFF] wr76595: barcode display > > >Signed-off-by: Matthias Meusburger <matthias.meusburger@biblibre.com> >--- > koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 6 +++++- > opac/opac-user.pl | 4 ++-- > 2 files changed, 7 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl >index 4f8ae07..5513f13 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl >@@ -196,11 +196,12 @@ $.tablesorter.addParser({ > <input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->"> > <input type="hidden" name="from" value="opac_user" /> > <table id="checkoutst"> >- <caption><!-- TMPL_VAR NAME="issues_count" --> Items Checked Out</caption> >+ <caption><!-- TMPL_VAR NAME="issues_count" --> Item(s) Checked Out</caption> > <thead><tr> > <!-- TMPL_IF NAME="JacketImages" --><th> </th><!-- /TMPL_IF --> > <th>Title</th> > <!-- TMPL_UNLESS NAME="item_level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS --> >+ <th>Barcode</th> > <th>Call No.</th> > <th>Due</th> > <!-- TMPL_IF name="OpacRenewalAllowed" --> >@@ -241,6 +242,7 @@ $.tablesorter.addParser({ > <!-- TMPL_VAR NAME="author" --> > </span></td> > <!-- TMPL_UNLESS NAME="item_level_itypes" --><td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR name="description" --></td><!-- /TMPL_UNLESS --> >+ <td><!-- TMPL_VAR NAME="barcode" --></td> > <td><!-- TMPL_VAR NAME="itemcallnumber" --></td> > <!-- TMPL_IF NAME="overdue" --> > <td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td> >@@ -292,6 +294,7 @@ $.tablesorter.addParser({ > <!-- TMPL_IF NAME="JacketImages" --><th> </th><!-- /TMPL_IF --> > <th>Title</th> > <!-- TMPL_UNLESS NAME="item_level_itypes" --><th>Item Type</th> <!-- /TMPL_UNLESS --> >+<th>Barcode</th> > <th>Call No.</th> > <th>Due</th> > <!-- TMPL_IF name="OpacRenewalAllowed" --> >@@ -323,6 +326,7 @@ $.tablesorter.addParser({ > <td><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a> <span class="item-details"><!-- TMPL_VAR NAME="author" --></span></td> > > <!-- TMPL_UNLESS NAME="item_level_itypes" --><td><!-- TMPL_IF NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR name="description" --></td><!-- /TMPL_UNLESS --> >+<td><!-- TMPL_VAR NAME="barcode" --></td> > <td><!-- TMPL_VAR NAME="itemcallnumber" --></td> > <td><!-- TMPL_VAR NAME="date_due" --></td> > <!-- TMPL_IF name="OpacRenewalAllowed" --> >diff --git a/opac/opac-user.pl b/opac/opac-user.pl >index 5601e85..23de179 100755 >--- a/opac/opac-user.pl >+++ b/opac/opac-user.pl >@@ -108,7 +108,7 @@ my @issuedat; > my $itemtypes = GetItemTypes(); > my ($issues) = GetPendingIssues($borrowernumber); > if ($issues){ >- foreach my $issue ( sort sort { $b->{'date_due'} cmp $a->{'date_due'} } @$issues ) { >+ foreach my $issue ( sort { $b->{'date_due'} cmp $a->{'date_due'} } @$issues ) { > # check for reserves > my ( $restype, $res ) = CheckReserves( $issue->{'itemnumber'} ); > if ( $restype ) { >@@ -228,7 +228,7 @@ foreach my $res (@reserves) { > $res->{'wait'}= 1; > $res->{'holdingbranch'}=$item->{'holdingbranch'}; > $res->{'biblionumber'}=$item->{'biblionumber'}; >- $res->{'barcodenumber'} = $item->{'barcode'}; >+ $res->{'barcode'} = $item->{'barcode'}; > $res->{'wbrcode'} = $res->{'branchcode'}; > $res->{'itemnumber'} = $res->{'itemnumber'}; > $res->{'wbrname'} = $branches->{$res->{'branchcode'}}->{'branchname'}; >-- >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 4157
:
3568
|
3569
| 3619 |
3620