Bugzilla – Attachment 67767 Details for
Bug 14039
Add patron title to checkout screen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14039: Add the title to all places
Bug-14039-Add-the-title-to-all-places.patch (text/plain), 4.82 KB, created by
Nick Clemens (kidclamp)
on 2017-10-07 00:51:49 UTC
(
hide
)
Description:
Bug 14039: Add the title to all places
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-10-07 00:51:49 UTC
Size:
4.82 KB
patch
obsolete
>From a251c229a7cab4459293fc3f562856ba96eea494 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 9 Aug 2017 16:45:31 -0300 >Subject: [PATCH] Bug 14039: Add the title to all places > >There are other scripts where the borrower variable is not defined and >the fields are passed one by one. >To have a consistent behaviour we should add the title at the different >places. > >Note that this script also add the use of the include file for >statistics.tt and remove the pass of parameters to the template, already >done later: > 99 $template->param(%$borrower); > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc | 8 ++++---- > koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt | 4 ++-- > members/statistics.pl | 3 --- > 3 files changed, 6 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc >index 418ac7f..b2cbfb8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-title.inc >@@ -3,9 +3,9 @@ > [%- borrower.surname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] > [%- ELSE %] > [%- IF invert_name %] >- [%- borrower.surname | html %], [% borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] >+ [% IF borrower.title %]<span class="patron-title">[%- borrower.title | html %]</span> [% END %][%- borrower.surname | html %], [% borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] > [%- ELSE %] >- [% IF borrower.title %] <span class="patron-title">[%- borrower.title | html %] </span>[% END %][%- borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [% borrower.surname | html %] >+ [% IF borrower.title %]<span class="patron-title">[%- borrower.title | html %]</span> [% END %][%- borrower.firstname | html %] [% IF borrower.othernames %] ([% borrower.othernames | html %]) [% END %] [% borrower.surname | html %] > [%- END -%] > [%- END -%] > [%- IF ( borrower.cardnumber ) -%] >@@ -16,9 +16,9 @@ > [%- surname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] > [%- ELSE %] > [%- IF invert_name %] >- [%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] >+ [% IF title %]<span class="patron-title">[%- title | html %]</span> [% END %][%- surname | html %], [% firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] > [%- ELSE %] >- [%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %] >+ [% IF title %]<span class="patron-title">[%- title | html %]</span> [% END %][%- firstname | html %] [% IF othernames %] ([% othernames | html %]) [% END %] [% surname | html %] > [%- END %] > [%- END -%] > [%- IF ( cardnumber ) -%] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt >index 7397339..44a0bca 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/statistics.tt >@@ -26,7 +26,7 @@ Statistics for [% INCLUDE 'patron-title.inc' %] > <div id="breadcrumbs"> > <a href="/cgi-bin/koha/mainpage.pl">Home</a> > › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >-› Statistics for [% firstname %] [% surname %] ([% cardnumber %]) >+› [% IF ( unknowuser ) %]Patron does not exist[% ELSE %]Statistics for [% INCLUDE 'patron-title.inc' invert_name = 1 %][% END %] > </div> > > <div id="doc3" class="yui-t1"> >@@ -36,7 +36,7 @@ Statistics for [% INCLUDE 'patron-title.inc' %] > <div class="yui-b"> > [% INCLUDE 'members-toolbar.inc' %] > >- <h3>Statistics for [% UNLESS ( I ) %][% title %] [% firstname %] [% END %] [% surname %] ([% cardnumber %])</h3> >+ <h3>Statistics for [% INCLUDE 'patron-title.inc' %]</h3> > [% IF ( datas.size ) %] > <table id="statistics"> > <thead> >diff --git a/members/statistics.pl b/members/statistics.pl >index 55d5ed0..07019d3 100755 >--- a/members/statistics.pl >+++ b/members/statistics.pl >@@ -59,9 +59,6 @@ my $borrower= $patron->unblessed; > $borrower->{description} = $category->description; > $borrower->{category_type} = $category->category_type; > >-foreach my $key ( keys %$borrower ) { >- $template->param( $key => $borrower->{$key} ); >-} > $template->param( > categoryname => $borrower->{'description'}, > ); >-- >2.1.4
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 14039
:
38314
|
38495
|
38498
|
38734
|
64069
|
64077
|
65482
|
65496
|
65777
|
67766
| 67767 |
67870