Bugzilla – Attachment 3889 Details for
Bug 6162
name missing on reading history in opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Bug-6162-Fix-passing-of-borrower-details-to-reading-.patch (text/plain), 2.76 KB, created by
Colin Campbell
on 2011-04-12 10:50:45 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Colin Campbell
Created:
2011-04-12 10:50:45 UTC
Size:
2.76 KB
patch
obsolete
>From 9339f6f46b1b1d91d2f09c6cc7cb5da100ef35c5 Mon Sep 17 00:00:00 2001 >From: Colin Campbell <colin.campbell@ptfs-europe.com> >Date: Tue, 12 Apr 2011 11:40:57 +0100 >Subject: [PATCH] Bug 6162 Fix passing of borrower details to reading history >Content-Type: text/plain; charset="utf-8" > >script was passing borr details incorrectly and in a fix was >then passing them in a one element array >unnecessary complication tends to go wrong sooner or later >--- > .../prog/en/modules/opac-readingrecord.tt | 4 ++-- > opac/opac-readingrecord.pl | 5 +---- > 2 files changed, 3 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt >index 2734fde..05b50dd 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tt >@@ -1,4 +1,4 @@ >-[% INCLUDE 'doc-head-open.inc' %][% DEFAULT LibraryNameTitle="Koha Online" %] Catalog › Account for [% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %] >+[% INCLUDE 'doc-head-open.inc' %][% DEFAULT LibraryNameTitle="Koha Online" %] Catalog › Account for [% firstname %] [% surname %] > [% INCLUDE 'doc-head-close.inc' %] > <style type="text/css">ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a { padding:0.6em 1em; }</style> > <script type="text/javascript"> >@@ -22,7 +22,7 @@ $(document).ready(function(){ > <div class="yui-b"><div class="yui-g"> > <div id="userreadingrecord" class="container"> > <!--CONTENT--> >-<h3><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt=">" border="0" /> Checkout History</h3> >+<h3><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt=">" border="0" /> Checkout History</h3> > > [% UNLESS ( count ) %] > You have never borrowed anything from this library. >diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl >index c9d5819..00a91db 100755 >--- a/opac/opac-readingrecord.pl >+++ b/opac/opac-readingrecord.pl >@@ -45,7 +45,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > # get borrower information .... > my ( $borr ) = GetMemberDetails( $borrowernumber ); > >-$template->param($borr); >+$template->param(%{$borr}); > > my $itemtypes = GetItemTypes(); > >@@ -74,9 +74,6 @@ else { > > my ( $issues ) = GetAllIssues( $borrowernumber, $order, $limit ); > >-my @bordat; >-$bordat[0] = $borr; >-$template->param( BORROWER_INFO => \@bordat ); > > my @loop_reading; > >-- >1.7.4.2 >
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 6162
:
3869
|
3883
| 3889