Bugzilla – Attachment 71679 Details for
Bug 18789
Send a Koha::Patron object to the templates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18789: Send Koha::Patron object to the templates
Bug-18789-Send-KohaPatron-object-to-the-templates.patch (text/plain), 209.09 KB, created by
Jonathan Druart
on 2018-02-15 18:49:12 UTC
(
hide
)
Description:
Bug 18789: Send Koha::Patron object to the templates
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-15 18:49:12 UTC
Size:
209.09 KB
patch
obsolete
>From a90bd1812a7dc8bd2d2155446a580beab3ad5152 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 1 Jun 2017 14:47:40 -0300 >Subject: [PATCH] Bug 18789: Send Koha::Patron object to the templates > >In order to simplify and make uniform the code, the controller scripts send >a Koha::Patron object to the templates instead of all attributes of a patron. > >That will make the code much more easier to maintain and will be less >error-prone. > >The variable "patron" sent to the templates is supposed to represent the >patron the librarian is editing the detail. > >In the members module and some scripts of the circulation module, the >patron's detail are sent one by one to the template. That leads to >frustration from developpers (making sure everything is passed from all >scripts) and to regression (we got tone of bugs in the last year because >of this way to do). >With this patch set it will be easy access patron's detail, passing only >1 variable from the controllers. > >Test plan: >Play with the patron and circulation module and make sur the detail of >the patron you are editing/seeing info are correctly displayed. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > acqui/acqui-home.pl | 5 +- > acqui/booksellers.pl | 3 +- > admin/aqbudgets.pl | 3 +- > circ/branchtransfers.pl | 5 +- > circ/overdue.pl | 15 --- > circ/transferstoreceive.pl | 8 +- > circ/waitingreserves.pl | 6 +- > .../prog/en/includes/borrower_debarments.inc | 4 +- > .../intranet-tmpl/prog/en/includes/circ-menu.inc | 66 ++++++------ > .../en/includes/member-alt-address-style-de.inc | 22 ++-- > .../en/includes/member-alt-address-style-fr.inc | 22 ++-- > .../en/includes/member-alt-address-style-us.inc | 20 ++-- > .../en/includes/member-alt-contact-style-de.inc | 18 ++-- > .../en/includes/member-alt-contact-style-fr.inc | 18 ++-- > .../en/includes/member-alt-contact-style-us.inc | 18 ++-- > .../includes/member-display-address-style-de.inc | 20 ++-- > .../includes/member-display-address-style-fr.inc | 22 ++-- > .../includes/member-display-address-style-us.inc | 20 ++-- > .../member-display-alt-address-style-de.inc | 20 ++-- > .../member-display-alt-address-style-fr.inc | 26 ++--- > .../member-display-alt-address-style-us.inc | 20 ++-- > .../en/includes/member-main-address-style-de.inc | 18 ++-- > .../en/includes/member-main-address-style-fr.inc | 18 ++-- > .../en/includes/member-main-address-style-us.inc | 18 ++-- > .../prog/en/includes/members-toolbar.inc | 22 ++-- > .../prog/en/modules/acqui/acqui-home.tt | 4 +- > .../prog/en/modules/acqui/booksellers.tt | 6 +- > .../prog/en/modules/admin/aqbudgets.tt | 8 +- > .../prog/en/modules/circ/branchtransfers.tt | 6 +- > .../prog/en/modules/circ/printslip.tt | 2 +- > .../prog/en/modules/circ/transferstoreceive.tt | 14 +-- > .../prog/en/modules/circ/waitingreserves.tt | 14 +-- > .../prog/en/modules/members/boraccount.tt | 10 +- > .../prog/en/modules/members/deletemem.tt | 14 +-- > .../prog/en/modules/members/discharge.tt | 8 +- > .../prog/en/modules/members/housebound.tt | 16 +-- > .../prog/en/modules/members/mancredit.tt | 12 +-- > .../prog/en/modules/members/maninvoice.tt | 12 +-- > .../prog/en/modules/members/member-flags.tt | 10 +- > .../prog/en/modules/members/member-password.tt | 14 +-- > .../prog/en/modules/members/memberentrygen.tt | 2 +- > .../prog/en/modules/members/moremember-print.tt | 20 ++-- > .../prog/en/modules/members/moremember.tt | 118 ++++++++++----------- > .../intranet-tmpl/prog/en/modules/members/pay.tt | 21 ++-- > .../prog/en/modules/members/paycollect.tt | 26 ++--- > .../prog/en/modules/members/printfeercpt.tt | 9 +- > .../prog/en/modules/members/printinvoice.tt | 9 +- > .../en/modules/members/purchase-suggestions.tt | 2 +- > .../prog/en/modules/members/readingrec.tt | 4 +- > .../prog/en/modules/members/routing-lists.tt | 4 +- > .../prog/en/modules/reserve/request.tt | 50 ++++----- > .../prog/en/modules/reviews/reviewswaiting.tt | 2 +- > .../intranet-tmpl/prog/en/modules/tools/viewlog.tt | 12 ++- > members/boraccount.pl | 4 +- > members/deletemem.pl | 18 +--- > members/discharge.pl | 26 +---- > members/files.pl | 6 +- > members/housebound.pl | 7 +- > members/mancredit.pl | 4 +- > members/maninvoice.pl | 5 +- > members/member-flags.pl | 22 +--- > members/member-password.pl | 24 +---- > members/moremember.pl | 15 +-- > members/notices.pl | 4 +- > members/pay.pl | 13 +-- > members/paycollect.pl | 5 +- > members/printfeercpt.pl | 26 +---- > members/printinvoice.pl | 25 +---- > members/purchase-suggestions.pl | 8 +- > members/readingrec.pl | 35 +++--- > members/routing-lists.pl | 15 +-- > members/statistics.pl | 11 +- > members/summary-print.pl | 9 +- > opac/opac-detail.pl | 2 +- > opac/opac-reserve.pl | 4 - > reserve/request.pl | 22 +--- > reviews/reviewswaiting.pl | 3 +- > tools/viewlog.pl | 10 +- > 78 files changed, 475 insertions(+), 714 deletions(-) > >diff --git a/acqui/acqui-home.pl b/acqui/acqui-home.pl >index cbb8896804..d23f082187 100755 >--- a/acqui/acqui-home.pl >+++ b/acqui/acqui-home.pl >@@ -72,10 +72,7 @@ foreach my $budget ( @{$budget_arr} ) { > > my $patron = Koha::Patrons->find( $budget->{budget_owner_id} ); > if ( $patron ) { >- # FIXME should pass the entire object into budget_owner >- $budget->{budget_owner_firstname} = $patron->firstname; >- $budget->{budget_owner_surname} = $patron->surname; >- $budget->{budget_owner_borrowernumber} = $patron->borrowernumber; >+ $budget->{budget_owner} = $patron; > } > > if ( !defined $budget->{budget_amount} ) { >diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl >index b0ec7285b1..99da78cb9f 100755 >--- a/acqui/booksellers.pl >+++ b/acqui/booksellers.pl >@@ -138,8 +138,7 @@ for my $vendor (@suppliers) { > $basket->{$_} ||= 0; > } > if ( $patron ) { >- $basket->{authorisedby_firstname} = $patron->firstname; >- $basket->{authorisedby_surname} = $patron->surname; >+ $basket->{authorisedby} = $patron; > } > if ($basket->{basketgroupid}) { > my $basketgroup = C4::Acquisition::GetBasketgroup($basket->{basketgroupid}); >diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl >index f106a86415..5aeb8b9786 100755 >--- a/admin/aqbudgets.pl >+++ b/admin/aqbudgets.pl >@@ -117,8 +117,7 @@ if ($op eq 'add_form') { > exit; > } > $dropbox_disabled = BudgetHasChildren($budget_id); >- my $patron = Koha::Patrons->find( $budget->{budget_owner_id} ); >- $budget->{budget_owner_name} = ( $patron ? $patron->firstname . ' ' . $patron->surname : '' ); >+ $budget->{budget_owner} = Koha::Patrons->find( $budget->{budget_owner_id} ); > } > > # build budget hierarchy >diff --git a/circ/branchtransfers.pl b/circ/branchtransfers.pl >index 1305c82803..b9d357c97f 100755 >--- a/circ/branchtransfers.pl >+++ b/circ/branchtransfers.pl >@@ -210,10 +210,7 @@ foreach my $code ( keys %$messages ) { > $err{borrowernumber} = $messages->{'WasReturned'}; > my $patron = Koha::Patrons->find( $messages->{'WasReturned'} ); > if ( $patron ) { # Just in case... >- $err{title} = $patron->title; >- $err{firstname} = $patron->firstname; >- $err{surname} = $patron->surname; >- $err{cardnumber} = $patron->cardnumber; >+ $err{patron} = $patron; > } > } > $err{errdesteqholding} = ( $code eq 'DestinationEqualsHolding' ); >diff --git a/circ/overdue.pl b/circ/overdue.pl >index ff65712d2a..fe3fdd021f 100755 >--- a/circ/overdue.pl >+++ b/circ/overdue.pl >@@ -300,27 +300,12 @@ if ($noreport) { > push @overduedata, { > patron => scalar Koha::Patrons->find( $data->{borrowernumber} ), > duedate => $data->{date_due}, >- borrowernumber => $data->{borrowernumber}, > barcode => $data->{barcode}, >- cardnumber => $data->{cardnumber}, > itemnum => $data->{itemnumber}, > issuedate => output_pref({ dt => dt_from_string( $data->{issuedate} ), dateonly => 1 }), >- borrowertitle => $data->{borrowertitle}, >- surname => $data->{surname}, >- firstname => $data->{firstname}, >- streetnumber => $data->{streetnumber}, >- streettype => $data->{streettype}, >- address => $data->{address}, >- address2 => $data->{address2}, >- city => $data->{city}, >- zipcode => $data->{zipcode}, >- country => $data->{country}, >- phone => $data->{phone}, >- email => $data->{email}, > biblionumber => $data->{biblionumber}, > title => $data->{title}, > author => $data->{author}, >- branchcode => $data->{branchcode}, > homebranchcode => $data->{homebranchcode}, > holdingbranchcode => $data->{holdingbranchcode}, > itemcallnumber => $data->{itemcallnumber}, >diff --git a/circ/transferstoreceive.pl b/circ/transferstoreceive.pl >index de6a89aa22..10df07df07 100755 >--- a/circ/transferstoreceive.pl >+++ b/circ/transferstoreceive.pl >@@ -114,13 +114,7 @@ while ( my $library = $libraries->next ) { > # we check if we have a reserv for this transfer > my $holds = $item->current_holds; > if ( my $first_hold = $holds->next ) { >- my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); >- # FIXME The full patron object should be passed to the template >- $getransf{'borrowernum'} = $patron->borrowernumber; >- $getransf{'borrowername'} = $patron->surname; >- $getransf{'borrowerfirstname'} = $patron->firstname; >- $getransf{'borrowermail'} = $patron->email if $patron->email; >- $getransf{'borrowerphone'} = $patron->phone; >+ $getransf{patron} = Koha::Patrons->find( $first_hold->borrowernumber ); > } > push( @transferloop, \%getransf ); > } >diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl >index 24e03475ab..5943ea5673 100755 >--- a/circ/waitingreserves.pl >+++ b/circ/waitingreserves.pl >@@ -130,11 +130,7 @@ while ( my $hold = $holds->next ) { > $getreserv{'dotransfer'} = 1; > } > >- my $borEmail = $patron->first_valid_email_address; >- >- if ( $borEmail ) { >- $getreserv{'borrowermail'} = $borEmail; >- } >+ $getreserv{patron} = $patron; > > if ($today > $calcDate) { > if ($cancelall) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc >index e8e22e8c66..92dda54b34 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc >@@ -40,7 +40,7 @@ > <td>[% d.created | $KohaDates %]</td> > [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] > <td> >- <a class="remove_restriction btn btn-default btn-xs" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del"> >+ <a class="remove_restriction btn btn-default btn-xs" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% patron.borrowernumber %]&borrower_debarment_id=[% d.borrower_debarment_id %]&action=del"> > <i class="fa fa-trash"></i> Remove > </a> > </td> >@@ -53,7 +53,7 @@ > [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] > <p><a href="#" id="add_manual_restriction"><i class="fa fa-plus"></i> Add manual restriction</a></p> > <form method="post" action="/cgi-bin/koha/members/mod_debarment.pl" class="clearfix"> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="action" value="add" /> > <fieldset class="rows" id="manual_restriction_form"> > <legend>Add manual restriction</legend> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index bdcc8afb63..2b29bfcb9e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -1,5 +1,5 @@ > [% USE Koha %] >-[% IF ( borrowernumber ) %] >+[% IF ( patron.borrowernumber ) %] > <div class="patroninfo"><h5>[% INCLUDE 'patron-title.inc' %]</h5> > <!--[if IE 6]> > <style type="tex/css">img { width: expression(this.width > 140 ? 140: true); >@@ -9,7 +9,7 @@ > [% IF ( patronimages ) %] > [% IF ( picture ) %] > <li> >- <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% borrowernumber | uri %]" id="patronimage" alt="[% firstname | html %] [% surname | html %] ([% cardnumber | html %])" /> >+ <img src="/cgi-bin/koha/members/patronimage.pl?borrowernumber=[% patron.borrowernumber | uri %]" id="patronimage" alt="[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])" /> > </li> > [% ELSE %] > <li id="patronbasics"> >@@ -23,36 +23,36 @@ > [% INCLUDE 'member-display-address-style-us.inc' %] > [% END %] > >- [% IF ( phone || mobile || phonepro ) %]<li class="patronphone"> >- [% IF ( phone ) %] >- <a href="tel:[% phone | url %]">[% phone | html %]</a> >+ [% IF ( patron.phone || patron.mobile || patron.phonepro ) %]<li class="patronphone"> >+ [% IF ( patron.phone ) %] >+ <a href="tel:[% patron.phone | url %]">[% patron.phone | html %]</a> > [% ELSE %] >- [% IF ( mobile ) %] >- <a href="tel:[% mobile | url %]">[% mobile | html %]</a> >+ [% IF ( patron.mobile ) %] >+ <a href="tel:[% patron.mobile | url %]">[% patron.mobile | html %]</a> > [% ELSE %] >- [% IF ( phonepro ) %] >- <a href="tel:[% phonepro | url %]">[% phonepro | html %]</a> >+ [% IF ( patron.phonepro ) %] >+ <a href="tel:[% patron.phonepro | url %]">[% patron.phonepro | html %]</a> > [% END %] > [% END %] > [% END %]</li>[% END %] >- [% IF ( email ) %] >- <li class="email"> <a href="mailto:[% email | url %]" title="[% email | html %]">[% email | html %]</a></li> >+ [% IF ( patron.email ) %] >+ <li class="email"> <a href="mailto:[% patron.email | url %]" title="[% patron.email | html %]">[% patron.email | html %]</a></li> > [% ELSE %] >- [% IF ( emailpro ) %] >- <li class="email"> <a href="mailto:[% emailpro | url %]" title="[% emailpro | html %]">[% emailpro | html %]</a></li> >+ [% IF ( patron.emailpro ) %] >+ <li class="email"> <a href="mailto:[% patron.emailpro | url %]" title="[% patron.emailpro | html %]">[% patron.emailpro | html %]</a></li> > [% END %] > [% END %] > >- [% UNLESS ( address or address2 ) %] >+ [% UNLESS ( patron.address or patron.address2 ) %] > <li><span class="empty" id="noaddressstored">No address stored.</span></li> > [% END %] >- [% UNLESS ( city ) %] >+ [% UNLESS ( patron.city ) %] > <li><span class="empty" id="nocitystored">No city stored.</span></li> > [% END %] >- [% UNLESS ( phone or mobile or phonepro) %] >+ [% UNLESS ( patron.phone or patron.mobile or patron.phonepro) %] > <li> <span class="empty">No phone stored.</span></li> > [% END %] >- [% UNLESS ( email or emailpro) %] >+ [% UNLESS ( patron.email or patron.emailpro) %] > <li> <span class="empty">No email stored.</span></li> > [% END %] > >@@ -63,29 +63,29 @@ > [% END %] > [% END %] > [% END %][% END %] >- <li class="patroncategory">Category: [% categoryname %] ([% categorycode %])</li> >- <li class="patronlibrary">Home library: [% Branches.GetName( branchcode ) %]</li> >+ <li class="patroncategory">Category: [% patron.category.description %] ([% patron.categorycode %])</li> >+ <li class="patronlibrary">Home library: [% Branches.GetName( patron.branchcode ) %]</li> > </ul></div> > <div id="menu"> > <ul> > [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] >- [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li> >- [% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ categorycode _ '$').size > 0 %] >- [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]&batch=1">Batch check out</a></li> >+ [% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber %]">Check out</a></li> >+ [% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ patron.categorycode _ '$').size > 0 %] >+ [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber %]&batch=1">Batch check out</a></li> > [% END %] > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] >- [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li> >+ [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Details</a></li> > [% END %] > [% IF ( CAN_user_updatecharges ) %] >- [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">Fines</a></li> >+ [% IF ( finesview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Fines</a></li> > [% END %] > [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] >- [% IF Koha.Preference("RoutingSerials") %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %] >+ [% IF Koha.Preference("RoutingSerials") %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% patron.borrowernumber %]">Routing lists</a></li>[% END %] > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] > [% IF ( intranetreadinghistory ) %] >- [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li> >+ [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% patron.borrowernumber %]">Circulation history</a></li> > [% END %] > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] >@@ -94,28 +94,28 @@ > [% END %] > [% END %] > [% IF ( CAN_user_parameters ) %] >- [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=[% borrowernumber %]&src=circ">Modification log</a></li> >+ [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=[% patron.borrowernumber %]&src=circ">Modification log</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] >- [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li> >+ [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber %]">Notices</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] >- [% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li> >+ [% IF ( statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% patron.borrowernumber %]">Statistics</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] > [% IF ( EnableBorrowerFiles ) %] >- [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li> >+ [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber %]">Files</a></li> > [% END %] > [% END %] > > [% IF CAN_user_borrowers_edit_borrowers %] >- [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li> >+ [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% patron.borrowernumber %]">Purchase suggestions</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers && useDischarge %] >- [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharges</a></li> >+ [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber %]">Discharges</a></li> > [% END %] > [% IF Koha.Preference('HouseboundModule') %] >- [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% borrowernumber %]">Housebound</a></li> >+ [% IF houseboundview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]">Housebound</a></li> > [% END %] > [% IF Koha.Preference('ILLModule') %] > <li><a href="/cgi-bin/koha/ill/ill-requests.pl?borrowernumber=[% borrowernumber %]">Interlibrary loans</a></li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc >index dba4222675..7856fc11df 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-de.inc >@@ -8,7 +8,7 @@ > <label for="B_address"> > [% END %] > Address: </label> >- <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" /> >+ <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address %]" /> > [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -24,7 +24,7 @@ > <select name="B_streettype"> > <option value=""></option> > [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == B_streettype %] >+ [% IF roadtype.authorised_value == patron.B_streettype %] > <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> > [% ELSE %] > <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >@@ -43,7 +43,7 @@ > <label for="B_streetnumber"> > [% END %] > Street Number: </label> >- <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% B_streetnumber %]" /> >+ <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber %]" /> > [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -56,7 +56,7 @@ > <label for="B_address2"> > [% END %] > Address 2: </label> >- <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" /> >+ <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 %]" /> > [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -68,7 +68,7 @@ > <label for="B_zipcode"> > [% END %] > ZIP/Postal code: </label> >- <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" /> >+ <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode %]" /> > [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -80,7 +80,7 @@ > <label for="B_city"> > [% END %] > City: </label> >- <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" /> >+ <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city %]" /> > [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -92,7 +92,7 @@ > <label for="B_state"> > [% END %] > State: </label> >- <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" /> >+ <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state %]" /> > [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -104,7 +104,7 @@ > <label for="B_country"> > [% END %] > Country: </label> >- <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" /> >+ <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country %]" /> > [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -116,7 +116,7 @@ > <label for="B_phone"> > [% END %] > Phone: </label> >- <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" /> >+ <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone %]" /> > [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -128,7 +128,7 @@ > <label for="B_email"> > [% END %] > Email: </label> >- <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" /> >+ <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email %]" /> > [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li> > [% END %] > [% UNLESS nocontactnote %] >@@ -139,7 +139,7 @@ > <label for="contactnote"> > [% END %] > Contact note: </label> >- <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea> >+ <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote %]</textarea> > [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-fr.inc >index 9c000fa356..94f1dd7bb7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-fr.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-fr.inc >@@ -9,7 +9,7 @@ > <label for="B_streetnumber"> > [% END %] > Street Number: </label> >- <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% B_streetnumber %]" /> >+ <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber %]" /> > [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -25,7 +25,7 @@ > <select name="B_streettype"> > <option value=""></option> > [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == B_streettype %] >+ [% IF roadtype.authorised_value == patron.B_streettype %] > <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> > [% ELSE %] > <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >@@ -44,7 +44,7 @@ > <label for="B_address"> > [% END %] > Address: </label> >- <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" /> >+ <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address %]" /> > [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -57,7 +57,7 @@ > <label for="B_address2"> > [% END %] > Address 2: </label> >- <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" /> >+ <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 %]" /> > [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -69,7 +69,7 @@ > <label for="B_zipcode"> > [% END %] > ZIP/Postal code: </label> >- <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" /> >+ <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode %]" /> > [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -81,7 +81,7 @@ > <label for="B_city"> > [% END %] > City: </label> >- <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" /> >+ <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city %]" /> > [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -93,7 +93,7 @@ > <label for="B_state"> > [% END %] > State: </label> >- <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" /> >+ <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state %]" /> > [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -105,7 +105,7 @@ > <label for="B_country"> > [% END %] > Country: </label> >- <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" /> >+ <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country %]" /> > [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -117,7 +117,7 @@ > <label for="B_phone"> > [% END %] > Phone: </label> >- <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" /> >+ <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone %]" /> > [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -129,7 +129,7 @@ > <label for="B_email"> > [% END %] > Email: </label> >- <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" /> >+ <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email %]" /> > [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li> > [% END %] > [% UNLESS nocontactnote %] >@@ -140,7 +140,7 @@ > <label for="contactnote"> > [% END %] > Contact note: </label> >- <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% contactnote %]</textarea> >+ <textarea id="contactnote" name="contactnote" cols="40" rows="2">[% patron.contactnote %]</textarea> > [% IF ( mandatorycontactnote ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc >index 9ae71c1b24..a4d77c3b37 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style-us.inc >@@ -8,7 +8,7 @@ > <label for="B_streetnumber"> > [% END %] > Street Number: </label> >- <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% B_streetnumber %]" /> >+ <input type="text" id="B_streetnumber" name="B_streetnumber" size="5" value="[% patron.B_streetnumber %]" /> > [% IF ( mandatoryB_streetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -24,7 +24,7 @@ > <select name="B_streettype"> > <option value=""></option> > [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == B_streettype %] >+ [% IF roadtype.authorised_value == patron.B_streettype %] > <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> > [% ELSE %] > <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >@@ -43,7 +43,7 @@ > <label for="B_address"> > [% END %] > Address: </label> >- <input type="text" id="B_address" name="B_address" size="40" value="[% B_address %]" /> >+ <input type="text" id="B_address" name="B_address" size="40" value="[% patron.B_address %]" /> > [% IF ( mandatoryB_address ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -55,7 +55,7 @@ > <label for="B_address2"> > [% END %] > Address 2: </label> >- <input type="text" id="B_address2" name="B_address2" size="40" value="[% B_address2 %]" /> >+ <input type="text" id="B_address2" name="B_address2" size="40" value="[% patron.B_address2 %]" /> > [% IF ( mandatoryB_address2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -67,7 +67,7 @@ > <label for="B_city"> > [% END %] > City: </label> >- <input type="text" id="B_city" name="B_city" size="20" value="[% B_city %]" /> >+ <input type="text" id="B_city" name="B_city" size="20" value="[% patron.B_city %]" /> > [% IF ( mandatoryB_city ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -79,7 +79,7 @@ > <label for="B_state"> > [% END %] > State: </label> >- <input type="text" id="B_state" name="B_state" size="20" value="[% B_state %]" /> >+ <input type="text" id="B_state" name="B_state" size="20" value="[% patron.B_state %]" /> > [% IF ( mandatoryB_state ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -91,7 +91,7 @@ > <label for="B_zipcode"> > [% END %] > ZIP/Postal code: </label> >- <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% B_zipcode %]" /> >+ <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="[% patron.B_zipcode %]" /> > [% IF ( mandatoryB_zipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -103,7 +103,7 @@ > <label for="B_country"> > [% END %] > Country: </label> >- <input type="text" id="B_country" name="B_country" size="20" value="[% B_country %]" /> >+ <input type="text" id="B_country" name="B_country" size="20" value="[% patron.B_country %]" /> > [% IF ( mandatoryB_country ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -115,7 +115,7 @@ > <label for="B_phone"> > [% END %] > Phone: </label> >- <input type="text" id="B_phone" name="B_phone" value="[% B_phone %]" /> >+ <input type="text" id="B_phone" name="B_phone" value="[% patron.B_phone %]" /> > [% IF ( mandatoryB_phone ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -127,7 +127,7 @@ > <label for="B_email"> > [% END %] > Email: </label> >- <input type="text" id="B_email" name="B_email" size="45" value="[% B_email %]" /> >+ <input type="text" id="B_email" name="B_email" size="45" value="[% patron.B_email %]" /> > [% IF ( mandatoryB_email ) %]<span class="required">Required</span>[% END %] </li> > [% END %] > [% UNLESS nocontactnote %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc >index 2b9fb715b9..2f3e4c309d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-de.inc >@@ -8,7 +8,7 @@ > <label for="altcontactsurname"> > [% END %] > Surname:</label> >- <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" /> >+ <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname %]" /> > [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -20,7 +20,7 @@ > <label for="altcontactfirstname"> > [% END %] > First name:</label> >- <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" /> >+ <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname %]" /> > [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -32,7 +32,7 @@ > <label for="altcontactaddress1"> > [% END %] > Address:</label> >- <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" /> >+ <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 %]" size="40" /> > [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -44,7 +44,7 @@ > <label for="altcontactaddress2"> > [% END %] > Address 2:</label> >- <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" /> >+ <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 %]" size="40" /> > [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -56,7 +56,7 @@ > <label for="altcontactzipcode"> > [% END %] > ZIP/Postal code:</label> >- <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" /> >+ <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode %]" size="5" /> > [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -68,7 +68,7 @@ > <label for="altcontactaddress3"> > [% END %] > City:</label> >- <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" /> >+ <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% patron.altcontactaddress3 %]" size="20" /> > [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -80,7 +80,7 @@ > <label for="altcontactstate"> > [% END %] > State:</label> >- <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" /> >+ <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate %]" size="20" /> > [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -92,7 +92,7 @@ > <label for="altcontactcountry"> > [% END %] > Country:</label> >- <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" /> >+ <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry %]" size="20" /> > [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -104,7 +104,7 @@ > <label for="altcontactphone"> > [% END %] > Phone:</label> >- <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" /> >+ <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone %]" /> > [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-fr.inc >index ad3d4cdab7..50c1921af2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-fr.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-fr.inc >@@ -8,7 +8,7 @@ > <label for="altcontactsurname"> > [% END %] > Surname:</label> >- <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" /> >+ <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname %]" /> > [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -20,7 +20,7 @@ > <label for="altcontactfirstname"> > [% END %] > First name:</label> >- <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" /> >+ <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname %]" /> > [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -32,7 +32,7 @@ > <label for="altcontactaddress1"> > [% END %] > Address:</label> >- <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" /> >+ <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 %]" size="40" /> > [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -44,7 +44,7 @@ > <label for="altcontactaddress2"> > [% END %] > Address 2:</label> >- <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" /> >+ <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 %]" size="40" /> > [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -56,7 +56,7 @@ > <label for="altcontactzipcode"> > [% END %] > ZIP/Postal code:</label> >- <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" /> >+ <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode %]" size="5" /> > [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -68,7 +68,7 @@ > <label for="altcontactaddress3"> > [% END %] > City:</label> >- <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" /> >+ <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% patron.altcontactaddress3 %]" size="20" /> > [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -80,7 +80,7 @@ > <label for="altcontactstate"> > [% END %] > State:</label> >- <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" /> >+ <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate %]" size="20" /> > [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -92,7 +92,7 @@ > <label for="altcontactcountry"> > [% END %] > Country:</label> >- <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" /> >+ <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry %]" size="20" /> > [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -104,7 +104,7 @@ > <label for="altcontactphone"> > [% END %] > Phone:</label> >- <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" /> >+ <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone %]" /> > [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-us.inc >index 25fd731d1a..7e7e790ea1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-contact-style-us.inc >@@ -8,7 +8,7 @@ > <label for="altcontactsurname"> > [% END %] > Surname:</label> >- <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% altcontactsurname %]" /> >+ <input type="text" name="altcontactsurname" id="altcontactsurname" value="[% patron.altcontactsurname %]" /> > [% IF ( mandatoryaltcontactsurname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -20,7 +20,7 @@ > <label for="altcontactfirstname"> > [% END %] > First name:</label> >- <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% altcontactfirstname %]" /> >+ <input type="text" name="altcontactfirstname" id="altcontactfirstname" value="[% patron.altcontactfirstname %]" /> > [% IF ( mandatoryaltcontactfirstname ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -32,7 +32,7 @@ > <label for="altcontactaddress1"> > [% END %] > Address:</label> >- <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% altcontactaddress1 %]" size="40" /> >+ <input type="text" name="altcontactaddress1" id="altcontactaddress1" value="[% patron.altcontactaddress1 %]" size="40" /> > [% IF ( mandatoryaltcontactaddress1 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -44,7 +44,7 @@ > <label for="altcontactaddress2"> > [% END %] > Address 2:</label> >- <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% altcontactaddress2 %]" size="40" /> >+ <input type="text" name="altcontactaddress2" id="altcontactaddress2" value="[% patron.altcontactaddress2 %]" size="40" /> > [% IF ( mandatoryaltcontactaddress2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -56,7 +56,7 @@ > <label for="altcontactaddress3"> > [% END %] > City:</label> >- <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% altcontactaddress3 %]" size="20" /> >+ <input type="text" name="altcontactaddress3" id="altcontactaddress3" value="[% patron.altcontactaddress3 %]" size="20" /> > [% IF ( mandatoryaltcontactaddress3 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -68,7 +68,7 @@ > <label for="altcontactstate"> > [% END %] > State:</label> >- <input type="text" name="altcontactstate" id="altcontactstate" value="[% altcontactstate %]" size="20" /> >+ <input type="text" name="altcontactstate" id="altcontactstate" value="[% patron.altcontactstate %]" size="20" /> > [% IF ( mandatoryaltcontactstate ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -80,7 +80,7 @@ > <label for="altcontactzipcode"> > [% END %] > ZIP/Postal code:</label> >- <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% altcontactzipcode %]" size="5" /> >+ <input type="text" name="altcontactzipcode" id="altcontactzipcode" value="[% patron.altcontactzipcode %]" size="5" /> > [% IF ( mandatoryaltcontactzipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -92,7 +92,7 @@ > <label for="altcontactcountry"> > [% END %] > Country:</label> >- <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% altcontactcountry %]" size="20" /> >+ <input type="text" name="altcontactcountry" id="altcontactcountry" value="[% patron.altcontactcountry %]" size="20" /> > [% IF ( mandatoryaltcontactcountry ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -104,7 +104,7 @@ > <label for="altcontactphone"> > [% END %] > Phone:</label> >- <input type="text" name="altcontactphone" id="altcontactphone" value="[% altcontactphone %]" /> >+ <input type="text" name="altcontactphone" id="altcontactphone" value="[% patron.altcontactphone %]" /> > [% IF ( mandatoryaltcontactphone ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-de.inc >index 3d65a4228a..b287c1259c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-de.inc >@@ -1,16 +1,16 @@ >-[% IF ( address or address2 ) %] >- [% IF ( address ) %] >+[% IF ( patron.address or patron.address2 ) %] >+ [% IF ( patron.address ) %] > [% SET roadtype_desc = '' %] >- [% IF streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', streettype) %] >+ [% IF patron.streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) %] > [% END %] >- <li class="patronaddress1">[% address %][%IF roadtype_desc %] [% roadtype_desc %][% END %][% IF streetnumber %] [% streetnumber %][% END %]</li> >+ <li class="patronaddress1">[% patron.address %][%IF roadtype_desc %] [% roadtype_desc %][% END %][% IF patron.streetnumber %] [% patron.streetnumber %][% END %]</li> > [% END %] >- [% IF ( address2 ) %] >- <li class="patronaddress2">[% address2 %]</li> >+ [% IF ( patron.address2 ) %] >+ <li class="patronaddress2">[% patron.address2 %]</li> > [% END %] > [% END %] >-[% IF ( city ) %]<li class="patroncity"> >- [%IF (zipcode ) %][% zipcode %] [% END %][% city %][% IF ( state ) %]</br>[% state %][% END %] >- [% IF ( country ) %]<br />[% country %][% END %]</li> >+[% IF ( patron.city ) %]<li class="patroncity"> >+ [%IF ( patron.zipcode ) %][% patron.zipcode %] [% END %][% patron.city %][% IF ( patron.state ) %]</br>[% patron.state %][% END %] >+ [% IF ( patron.country ) %]<br />[% patron.country %][% END %]</li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-fr.inc >index 14cc17be92..494bd25c8e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-fr.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-fr.inc >@@ -1,19 +1,19 @@ >-[% IF ( address or address2 ) %] >- [% IF ( address ) %] >+[% IF ( patron.address or patron.address2 ) %] >+ [% IF ( patron.address ) %] > [% SET roadtype_desc = '' %] >- [% IF streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', streettype) %] >+ [% IF patron.streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) %] > [% END %] >- <li class="patronaddress1">[% IF streetnumber %][% streetnumber %] [% END %] >+ <li class="patronaddress1">[% IF patron.streetnumber %][% patron.streetnumber %] [% END %] > [%IF roadtype_desc %][% roadtype_desc %] [% END %] >- [% address %] >+ [% patron.address %] > </li> > [% END %] >- [% IF ( address2 ) %] >- <li class="patronaddress2">[% address2 %]</li> >+ [% IF ( patron.address2 ) %] >+ <li class="patronaddress2">[% patron.address2 %]</li> > [% END %] > [% END %] >-[% IF ( city ) %] >- <li class="patroncity">[%IF (zipcode ) %][% zipcode %] [% END %][% city %][% IF ( state ) %]</br>[% state %][% END %] >- [% IF ( country ) %]<br />[% country %][% END %]</li> >+[% IF ( patron.city ) %] >+ <li class="patroncity">[%IF ( patron.zipcode ) %][% patron.zipcode %] [% END %][% patron.city %][% IF ( patron.state ) %]</br>[% patron.state %][% END %] >+ [% IF ( patron.country ) %]<br />[% patron.country %][% END %]</li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-us.inc >index 2e80d33f88..d7fb581744 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-address-style-us.inc >@@ -1,16 +1,16 @@ >-[% IF ( address or address2 ) %] >- [% IF ( address ) %] >+[% IF ( patron.address or patron.address2 ) %] >+ [% IF ( patron.address ) %] > [% SET roadtype_desc = '' %] >- [% IF streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', streettype) %] >+ [% IF patron.streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.streettype) %] > [% END %] >- <li class="patronaddress1">[% if (streetnumber) %][% streetnumber |html %][% end %] [% address |html %] [% IF roadtype_desc %][% roadtype_desc |html %] [% END %][% end %]</li> >+ <li class="patronaddress1">[% if (patron.streetnumber) %][% patron.streetnumber |html %][% end %] [% patron.address |html %] [% IF roadtype_desc %][% roadtype_desc |html %] [% END %][% end %]</li> > [% END %] >- [% IF ( address2 ) %] >- <li class="patronaddress2">[% address2 |html %]</li> >+ [% IF ( patron.address2 ) %] >+ <li class="patronaddress2">[% patron.address2 |html %]</li> > [% END %] > [% END %] >-[% IF ( city ) %]<li class="patroncity"> >- [% city |html %][% IF ( state ) %], [% state |html %][% END %] >- [% zipcode |html %][% IF ( country ) %], [% country |html %][% END %]</li> >+[% IF ( patron.city ) %]<li class="patroncity"> >+ [% patron.city |html %][% IF ( patron.state ) %], [% patron.state |html %][% END %] >+ [% patron.zipcode |html %][% IF ( patron.country ) %], [% patron.country |html %][% END %]</li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc >index fc36c94c27..28ae475c74 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-de.inc >@@ -1,16 +1,16 @@ >-[% IF ( B_address or B_address2 ) %] >- [% IF ( B_address ) %] >+[% IF ( patron.B_address or patron.B_address2 ) %] >+ [% IF ( patron.B_address ) %] > [% SET roadtype_desc = '' %] >- [% IF B_streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', B_streettype) %] >+ [% IF patron.B_streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] > [% END %] >- <li class="patronaddress1">[% B_address %][%IF roadtype_desc %] [% roadtype_desc %][% END %][% IF B_streetnumber %] [% B_streetnumber %][% END %]</li> >+ <li class="patronaddress1">[% patron.B_address %][%IF roadtype_desc %] [% roadtype_desc %][% END %][% IF patron.B_streetnumber %] [% patron.B_streetnumber %][% END %]</li> > [% END %] >- [% IF ( B_address2 ) %] >- <li class="patronaddress2">[% B_address2 %]</li> >+ [% IF ( patron.B_address2 ) %] >+ <li class="patronaddress2">[% patron.B_address2 %]</li> > [% END %] > [% END %] >-[% IF ( B_city ) %]<li class="patroncity"> >- [%IF ( B_zipcode ) %][% B_zipcode %] [% END %][% B_city %][% IF ( B_state ) %]</br>[% B_state %][% END %] >- [% IF ( B_country ) %]<br />[% B_country %][% END %]</li> >+[% IF ( patron.B_city ) %]<li class="patroncity"> >+ [%IF ( patron.B_zipcode ) %][% patron.B_zipcode %] [% END %][% patron.B_city %][% IF ( patron.B_state ) %]</br>[% patron.B_state %][% END %] >+ [% IF ( patron.B_country ) %]<br />[% patron.B_country %][% END %]</li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc >index f2625bd5ae..cad604cc5a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-fr.inc >@@ -1,21 +1,21 @@ >-[% IF ( B_address or B_address2 ) %] >- [% IF ( B_address ) %] >+[% IF ( patron.B_address or patron.B_address2 ) %] >+ [% IF ( patron.B_address ) %] > [% SET roadtype_desc = '' %] >- [% IF B_streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', B_streettype) %] >+ [% IF patron.B_streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] > [% END %] >- <li class="patronaddress1">[% IF B_streetnumber %][% B_streetnumber %][% END %] >+ <li class="patronaddress1">[% IF patron.B_streetnumber %][% patron.B_streetnumber %][% END %] > [%IF roadtype_desc %][% roadtype_desc %] [% END %] >- [% B_address %] >+ [% patron.B_address %] > </li> > [% END %] >- [% IF ( B_address2 ) %] >- <li class="patronaddress2">[% B_address2 %]</li> >+ [% IF ( patron.B_address2 ) %] >+ <li class="patronaddress2">[% patron.B_address2 %]</li> > [% END %] > [% END %] >-[% IF ( B_city ) %] >- <li class="patroncity">[%IF ( B_zipcode ) %][% B_zipcode %] [% END %] >- [% B_city %] >- [% IF ( B_state ) %]</br>[% B_state %][% END %] >- [% IF ( B_country ) %]<br />[% B_country %][% END %]</li> >+[% IF ( patron.B_city ) %] >+ <li class="patroncity">[%IF ( patron.B_zipcode ) %][% patron.B_zipcode %] [% END %] >+ [% patron.B_city %] >+ [% IF ( patron.B_state ) %]</br>[% patron.B_state %][% END %] >+ [% IF ( patron.B_country ) %]<br />[% patron.B_country %][% END %]</li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc >index 78830ff30e..f2c38aa85e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-display-alt-address-style-us.inc >@@ -1,16 +1,16 @@ >-[% IF ( B_address or B_address2 ) %] >- [% IF ( B_address ) %] >+[% IF ( patron.B_address or patron.B_address2 ) %] >+ [% IF ( patron.B_address ) %] > [% SET roadtype_desc = '' %] >- [% IF B_streettype %] >- [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', B_streettype) %] >+ [% IF patron.B_streettype %] >+ [% SET roadtype_desc = AuthorisedValues.GetByCode('ROADTYPE', patron.B_streettype) %] > [% END %] >- <li class="patronaddress1">[% if (B_streetnumber) %][% B_streetnumber |html %][% end %] [% B_address |html %] [% IF roadtype_desc %][% roadtype_desc |html %] [% END %][% end %]</li> >+ <li class="patronaddress1">[% if (patron.B_streetnumber) %][% patron.B_streetnumber |html %][% end %] [% patron.B_address |html %] [% IF roadtype_desc %][% roadtype_desc |html %] [% END %][% end %]</li> > [% END %] >- [% IF ( B_address2 ) %] >- <li class="patronaddress2">[% B_address2 |html %]</li> >+ [% IF ( patron.B_address2 ) %] >+ <li class="patronaddress2">[% patron.B_address2 |html %]</li> > [% END %] > [% END %] >-[% IF ( B_city ) %]<li class="patroncity"> >- [% B_city |html %][% IF ( B_state ) %], [% B_state |html %][% END %] >- [% B_zipcode |html %][% IF ( B_country ) %], [% B_country |html %][% END %]</li> >+[% IF ( patron.B_city ) %]<li class="patroncity"> >+ [% patron.B_city |html %][% IF ( patron.B_state ) %], [% patron.B_state |html %][% END %] >+ [% patron.B_zipcode |html %][% IF ( patron.B_country ) %], [% patron.B_country |html %][% END %]</li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >index 754b37cd2d..6bebd13ba5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-de.inc >@@ -12,7 +12,7 @@ > <select name="streettype"> > <option value=""></option> > [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == streettype %] >+ [% IF roadtype.authorised_value == patron.streettype %] > <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> > [% ELSE %] > <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >@@ -31,7 +31,7 @@ > <label for="address"> > [% END %] > Address: </label> >- <input type="text" id="address" name="address" size="35" value="[% address %]" /> >+ <input type="text" id="address" name="address" size="35" value="[% patron.address %]" /> > [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -43,7 +43,7 @@ > <label for="streetnumber"> > [% END %] > Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" /> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber %]" /> > [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -55,7 +55,7 @@ > <label for="address2"> > [% END %] > Address 2: </label> >- <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" /> >+ <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 %]" /> > [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -67,7 +67,7 @@ > <label for="zipcode"> > [% END %] > ZIP/Postal code: </label> >- <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" /> >+ <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode %]" /> > [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -79,12 +79,12 @@ > <label for="city"> > [% END %] > City: </label> >- <input type="text" id="city" name="city" size="20" value="[% city %]" /> >+ <input type="text" id="city" name="city" size="20" value="[% patron.city %]" /> > [% IF cities.count %]or choose > <select id="select_city" name="select_city"> > <option value="|||"></option> > [% FOREACH c IN cities %] >- [% IF c.city_name == city && c.city_state == state && c.city_zipcode == zipcode %] >+ [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %] > <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected"> > [% ELSE %] > <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]"> >@@ -105,7 +105,7 @@ > <label for="state"> > [% END %] > State: </label> >- <input type="text" name="state" id="state" size="20" value="[% state %]" /> >+ <input type="text" name="state" id="state" size="20" value="[% patron.state %]" /> > [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -117,7 +117,7 @@ > <label for="country"> > [% END %] > Country: </label> >- <input type="text" name="country" id="country" size="20" value="[% country %]" /> >+ <input type="text" name="country" id="country" size="20" value="[% patron.country %]" /> > [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >index b67d96b281..696b327974 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-fr.inc >@@ -8,7 +8,7 @@ > <label for="streetnumber"> > [% END %] > Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" /> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber %]" /> > [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] > [% END %] > >@@ -23,7 +23,7 @@ > <select name="streettype"> > <option value=""></option> > [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == streettype %] >+ [% IF roadtype.authorised_value == patron.streettype %] > <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> > [% ELSE %] > <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >@@ -42,7 +42,7 @@ > <label for="address"> > [% END %] > Address: </label> >- <input type="text" id="address" name="address" size="35" value="[% address %]" /> >+ <input type="text" id="address" name="address" size="35" value="[% patron.address %]" /> > [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -54,7 +54,7 @@ > <label for="address2"> > [% END %] > Address 2: </label> >- <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" /> >+ <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 %]" /> > [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -66,7 +66,7 @@ > <label for="zipcode"> > [% END %] > ZIP/Postal code: </label> >- <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" /> >+ <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode %]" /> > [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -78,12 +78,12 @@ > <label for="city"> > [% END %] > City: </label> >- <input type="text" id="city" name="city" size="20" value="[% city %]" /> >+ <input type="text" id="city" name="city" size="20" value="[% patron.city %]" /> > [% IF cities.count %]or choose > <select id="select_city" name="select_city"> > <option value="|||"></option> > [% FOREACH c IN cities %] >- [% IF c.city_name == city && c.city_state == state && c.city_zipcode == zipcode %] >+ [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %] > <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected"> > [% ELSE %] > <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]"> >@@ -104,7 +104,7 @@ > <label for="state"> > [% END %] > State: </label> >- <input type="text" name="state" id="state" size="20" value="[% state %]" /> >+ <input type="text" name="state" id="state" size="20" value="[% patron.state %]" /> > [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -116,7 +116,7 @@ > <label for="country"> > [% END %] > Country: </label> >- <input type="text" name="country" id="country" size="20" value="[% country %]" /> >+ <input type="text" name="country" id="country" size="20" value="[% patron.country %]" /> > [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >index f50d816645..f76d3fdbf1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style-us.inc >@@ -8,7 +8,7 @@ > <label for="streetnumber"> > [% END %] > Street number: </label> >- <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% streetnumber %]" /> >+ <input type="text" id="streetnumber" name="streetnumber" size="5" value="[% patron.streetnumber %]" /> > [% IF ( mandatorystreetnumber ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -24,7 +24,7 @@ > <select name="streettype"> > <option value=""></option> > [% FOR roadtype IN roadtypes %] >- [% IF roadtype.authorised_value == streettype%] >+ [% IF roadtype.authorised_value == patron.streettype %] > <option value="[% roadtype.authorised_value %]" selected="selected">[% roadtype.lib %]</option> > [% ELSE %] > <option value="[% roadtype.authorised_value %]">[% roadtype.lib %]</option> >@@ -43,7 +43,7 @@ > <label for="address"> > [% END %] > Address: </label> >- <input type="text" id="address" name="address" size="35" value="[% address %]" /> >+ <input type="text" id="address" name="address" size="35" value="[% patron.address %]" /> > [% IF ( mandatoryaddress ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -55,7 +55,7 @@ > <label for="address2"> > [% END %] > Address 2: </label> >- <input type="text" id="address2" name="address2" size="35" value="[% address2 %]" /> >+ <input type="text" id="address2" name="address2" size="35" value="[% patron.address2 %]" /> > [% IF ( mandatoryaddress2 ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -67,12 +67,12 @@ > <label for="city"> > [% END %] > City: </label> >- <input type="text" id="city" name="city" size="20" value="[% city %]" /> >+ <input type="text" id="city" name="city" size="20" value="[% patron.city %]" /> > [% IF cities.count %]or choose > <select id="select_city" name="select_city"> > <option value="|||"></option> > [% FOREACH c IN cities %] >- [% IF c.city_name == city && c.city_state == state && c.city_zipcode == zipcode %] >+ [% IF c.city_name == patron.city && c.city_state == patron.state && c.city_zipcode == patron.zipcode %] > <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]" selected="selected"> > [% ELSE %] > <option value="[% c.city_zipcode %]|[% c.city_name %]|[% c.city_state %]|[% c.city_country %]"> >@@ -93,7 +93,7 @@ > <label for="state"> > [% END %] > State: </label> >- <input type="text" name="state" id="state" size="20" value="[% state %]" /> >+ <input type="text" name="state" id="state" size="20" value="[% patron.state %]" /> > [% IF ( mandatorystate ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -105,7 +105,7 @@ > <label for="zipcode"> > [% END %] > ZIP/Postal code: </label> >- <input type="text" name="zipcode" id="zipcode" size="10" value="[% zipcode %]" /> >+ <input type="text" name="zipcode" id="zipcode" size="10" value="[% patron.zipcode %]" /> > [% IF ( mandatoryzipcode ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >@@ -117,7 +117,7 @@ > <label for="country"> > [% END %] > Country: </label> >- <input type="text" name="country" id="country" size="20" value="[% country %]" /> >+ <input type="text" name="country" id="country" size="20" value="[% patron.country %]" /> > [% IF ( mandatorycountry ) %]<span class="required">Required</span>[% END %] > </li> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >index 4269613681..be1682bd3c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -7,21 +7,21 @@ > <div id="toolbar" class="btn-toolbar"> > [% IF CAN_user_borrowers_edit_borrowers %] > [% IF ( guarantor ) %] >- <a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&guarantorid=[% guarantor.borrowernumber %]&categorycode=[% categorycode %]"> >+ <a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber %]&guarantorid=[% guarantor.borrowernumber %]&categorycode=[% patron.categorycode %]"> > [% ELSE %] >- <a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]"> >+ <a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber %]&categorycode=[% patron.categorycode %]"> > [% END %] > <i class="fa fa-pencil"></i> Edit</a> > [% END %] > > [% IF CAN_user_borrowers_edit_borrowers %] > [% IF adultborrower AND Koha.Preference("borrowerRelationship") %] >- <a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% borrowernumber %]"><i class="fa fa-plus"></i> Add child</a> >+ <a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&guarantorid=[% patron.borrowernumber %]"><i class="fa fa-plus"></i> Add child</a> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] >- <a id="changepassword" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]"><i class="fa fa-lock"></i> Change password</a> >+ <a id="changepassword" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]"><i class="fa fa-lock"></i> Change password</a> > [% END %] >- <a id="duplicate" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% borrowernumber %]&categorycode=[% categorycode %]"><i class="fa fa-copy"></i> Duplicate</a> >+ <a id="duplicate" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&borrowernumber=[% patron.borrowernumber %]&categorycode=[% patron.categorycode %]"><i class="fa fa-copy"></i> Duplicate</a> > [% END %] > > <div class="btn-group"> >@@ -30,7 +30,7 @@ > [% IF CAN_user_borrowers_edit_borrowers %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %] > <li><a id="printslip" href="#">Print slip</a></li> > <li><a id="printquickslip" href="#">Print quick slip</a></li> >- [% IF Borrowers.HasOverdues( borrowernumber ) %] >+ [% IF Borrowers.HasOverdues( patron.borrowernumber ) %] > <li><a id="print_overdues" href="#">Print overdues</a></li> > [% END %] > </ul> >@@ -46,17 +46,17 @@ > <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button> > <ul class="dropdown-menu"> > [% IF CAN_user_borrowers_edit_borrowers %] >- <li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&destination=[% destination %]&reregistration=y">Renew patron</a></li> >+ <li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber %]&destination=[% destination %]&reregistration=y">Renew patron</a></li> > [% ELSE %] > <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li> > [% END %] > [% IF ( CAN_user_permissions ) %] >- <li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% borrowernumber %]">Set permissions</a></li> >+ <li><a id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% patron.borrowernumber %]">Set permissions</a></li> > [% ELSE %] > <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers && useDischarge %] >- <li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li> >+ <li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% patron.borrowernumber %]">Discharge</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] > [% IF ( NorwegianPatronDBEnable == 1 ) %] >@@ -98,7 +98,7 @@ > <label for="message_type">Add a message for:</label> > <select name="message_type" id="message_type"> > <option value="L">Staff - Internal note</option> >- <option value="B">OPAC - [% firstname | html %] [% surname | html %]</option> >+ <option value="B">OPAC - [% patron.firstname | html %] [% patron.surname | html %]</option> > </select> > </div> > [% bor_notes = AuthorisedValues.Get( 'BOR_NOTES' ) %] >@@ -116,7 +116,7 @@ > <div class="form-group"> > <textarea rows="3" class="modal-textarea" name="borrower_message" id="borrower_message" ></textarea> > </div> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="batch" value="[% batch %]" /> > <input type="hidden" name="branchcode" value="[% LoginBranchcode %]" /> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >index 815745786d..b4c47d0f2c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt >@@ -114,8 +114,8 @@ > [% END %] > </td> > <td>[% loop_budge.budget_name %]</td> >- <td>[% IF ( loop_budge.budget_owner_borrowernumber ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner_borrowernumber %]">[% loop_budge.budget_owner_surname %], [% loop_budge.budget_owner_firstname %]</a> >+ <td>[% IF ( loop_budge.budget_owner ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loop_budge.budget_owner.borrowernumber %]">[% loop_budge.budget_owner.surname %], [% loop_budge.budget_owner.firstname %]</a> > [% ELSE %] > > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index c0f31aeed3..302d07f03c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -119,8 +119,10 @@ > </td> > <td>[% basket.expected_items %]</td> > <td> >- [% basket.authorisedby_firstname %] >- [% basket.authorisedby_surname %] >+ [% IF basket.authorisedby %] >+ [% basket.authorisedby.firstname %] >+ [% basket.authorisedbysurname %] >+ [% END %] > </td> > <td><span title="[% basket.creationdate %]">[% basket.creationdate | $KohaDates %]</span></td> > <td> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index aa0e733958..76c3da7dbc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -248,17 +248,17 @@ > > <li> > <span class="label">Owner: </span> >- [% IF ( budget_owner_name ) %] >+ [% IF budget_owner %] > <span id="budget_owner_name"> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner_id %]"> >- [% budget_owner_name %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber %]"> >+ [% budget_owner.firstname %] [% budget_owner.surname %] > </a> | > </span> > [% END %] > <a id="edit_owner" class="new_window" href="#"><i class="fa fa-search"></i> Select owner</a> > <a id="remove_owner" href="#"><i class="fa fa-trash"></i> Remove owner</a> > <input type="hidden" name="budget_owner_id" id="budget_owner_id" >- value="[% budget_owner_id %]" /> >+ value="[% budget_owner.borrowernumber %]" /> > </li> > > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >index 3fc491cf2d..451f25221f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >@@ -130,9 +130,9 @@ > <li>Item is already at destination library.</li> > [% END %] > [% IF ( errmsgloo.errwasreturned ) %] >- <li>Item was on loan to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% errmsgloo.borrowernumber %]"> >- [% errmsgloo.firstname %] [% errmsgloo.surname %] >- ([% errmsgloo.cardnumber %])</a> and has been returned.</li> >+ <li>Item was on loan to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% errmsgloo.patron.borrowernumber %]"> >+ [% errmsgloo.patron.firstname %] [% errmsgloo.patron.surname %] >+ ([% errmsgloo.patron.cardnumber %])</a> and has been returned.</li> > [% END %] > [% END %] > </ul> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >index 8395e7ffc8..315f835de9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >@@ -6,7 +6,7 @@ > <title>Koha › Circulation › Transfers print receipt</title> > [% ELSIF ( caller == 'members' ) %] > <title>Koha › Patrons › Print receipt for [% borrowernumber %]</title> >-[% ELSIF ( title ) %] >+[% ELSIF ( title ) %][%# FIXME title is never defined %] > <title>Koha › Patrons › [% title %]</title> > [% END %] > [% INCLUDE 'doc-head-close.inc' %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt >index d18c3f491a..24326185c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt >@@ -50,16 +50,16 @@ > [% IF ( reser.itemtype ) %] (<b>[% reser.itemtype %]</b>)[% END %] > <br />Barcode: [% reser.barcode %] > </td> >- <td>[% IF ( reser.borrowername ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.borrowernum %]"> >- [% reser.borrowername %][%IF ( reser.borrowerfirstname ) %], [% reser.borrowerfirstname %][% END %] >+ <td>[% IF ( reser.patron ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reser.patron.borrowernumber %]"> >+ [% reser.patron.surname %][%IF ( reser.patron.firstname ) %], [% reser.patron.firstname %][% END %] > </a> >- [% IF ( reser.borrowerphone ) %]<br />[% reser.borrowerphone %][% END %] >- [% IF ( reser.borrowermail ) %] >+ [% IF ( reser.patron.phone ) %]<br />[% reser.patron.phone %][% END %] >+ [% IF ( reser.patron.email ) %] > <br /> > [% BLOCK subject %]Hold:[% END %] >- <a href="mailto:[% reser.borrowermail %]?subject=[% INCLUDE subject %] [% reser.title |html %]"> >- [% reser.borrowermail %] >+ <a href="mailto:[% reser.patron.email %]?subject=[% INCLUDE subject %] [% reser.title |html %]"> >+ [% reser.patron.email %] > </a> > [% END %] > [% ELSE %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt >index 8a6efa73b9..c2ada8386b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt >@@ -90,10 +90,10 @@ > [% UNLESS ( item_level_itypes ) %][% IF ( reserveloo.itemtype ) %] (<b>[% reserveloo.itemtype %]</b>)[% END %][% END %] > <br />Barcode: [% reserveloo.barcode %] > </td> >- <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.borrowernum %]">[% reserveloo.borrowername %], [% reserveloo.borrowerfirstname %]</a> >- [% IF ( reserveloo.borrowerphone ) %]<br />[% reserveloo.borrowerphone %][% END %] >- [% IF ( reserveloo.borrowermail ) %]<br /><a href="mailto:[% reserveloo.borrowermail %]?subject=Hold waiting: [% reserveloo.title %]"> >- [% reserveloo.borrowermail %]</a>[% END %] >+ <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% reserveloo.patron.borrowernumber %]">[% reserveloo.patron.surname%], [% reserveloo.patron.firstname %]</a> >+ [% IF ( reserveloo.patron.phone ) %]<br />[% reserveloo.patron.phone %][% END %] >+ [% IF ( reserveloo.patron.first_valid_email_address ) %]<br /><a href="mailto:[% reserveloo.patron.first_valid_email_address %]?subject=Hold waiting: [% reserveloo.title %]"> >+ [% reserveloo.patron.first_valid_email_address %]</a>[% END %] > </td> > <td>[% Branches.GetName( reserveloo.homebranch ) %]</td> > <td>[% Branches.GetName( reserveloo.holdingbranch ) %]</td> >@@ -161,9 +161,9 @@ > [% UNLESS ( item_level_itypes ) %][% IF ( overloo.itemtype ) %] (<b>[% overloo.itemtype %]</b>)[% END %][% END %] > <br />Barcode: [% overloo.barcode %] > </td> >- <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overloo.borrowernum %]">[% overloo.borrowername %], [% overloo.borrowerfirstname %]</a><br />[% overloo.borrowerphone %]<br /> >- [% IF ( overloo.borrowermail ) %]<a href="mailto:[% overloo.borrowermail %]?subject=Reservation: [% overloo.title |url %]"> >- [% overloo.borrowermail %]</a>[% END %] >+ <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% overloo.patron.borrowernumber %]">[% overloo.patron.surname %], [% overloo.patron.firstname %]</a><br />[% overloo.patron.phone %]<br /> >+ [% IF ( overloo.patron.first_valid_email_address ) %]<a href="mailto:[% overloo.patron.first_valid_email_address %]?subject=Reservation: [% overloo.title |url %]"> >+ [% overloo.patron.first_valid_email_address %]</a>[% END %] > </td> > <td>[% Branches.GetName( overloo.homebranch ) %]</td> > <td>[% Branches.GetName( overloo.holdingbranch ) %]</td> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >index aef11d34b3..c13bbbbdeb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -20,15 +20,15 @@ > <div id="yui-main"> > <div class="yui-b"> > [% INCLUDE 'members-toolbar.inc' %] >-<form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form> >+<form action="/cgi-bin/koha/members/boraccount.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /></form> > > <!-- The manual invoice and credit buttons --> > <div class="statictabs"> > <ul> >- <li class="active"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li> >- <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li> >- <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li> >- <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li> >+ <li class="active"><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li> >+ <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li> >+ <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li> >+ <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li> > </ul> > <div class="tabs-container"> > <!-- The table with the account items --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tt >index 660fd93a7b..76b7bcdb9d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tt >@@ -1,13 +1,13 @@ > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Delete patron [% firstname %] [% surname %]</title> >+<title>Koha › Delete patron [% patron.firstname %] [% patron.surname %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="pat_deletemem" class="pat"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'patron-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Delete patron [% firstname %] [% surname %]</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Delete patron [% patron.firstname %] [% patron.surname %]</div> > <div id="doc3" class="yui-t2"> > > <div id="bd"> >@@ -29,18 +29,18 @@ > [% END %] > </ul> > </div> >- [% ELSIF op == 'delete_confirm' and borrowernumber %] >- [%# TODO add "patron does not exist" unless borrowernumber %] >+ [% ELSIF op == 'delete_confirm' and patron %] >+ [%# TODO add "patron does not exist" unless patron %] > <div class="dialog alert"> >- <h3>Are you sure you want to delete the patron [% firstname %] [% surname %]? This cannot be undone.</h3> >+ <h3>Are you sure you want to delete the patron [% patron.firstname %] [% patron.surname %]? This cannot be undone.</h3> > <form action="/cgi-bin/koha/members/deletemem.pl"> > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> >- <input type="hidden" name="member" value="[% borrowernumber %]"/> >+ <input type="hidden" name="member" value="[% patron.borrowernumber %]"/> > <input type="hidden" name="op" value="delete_confirmed" /> > <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete</button> > </form> > <form action="/cgi-bin/koha/members/moremember.pl"> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]"/> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]"/> > <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt >index 960fc620d8..01b2e9d4f3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt >@@ -3,7 +3,7 @@ > [% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Patrons › [% UNLESS blocking_error %]Discharge for [% firstname %] [% surname %] ([% cardnumber %])[% END %]</title> >+<title>Koha › Patrons › [% UNLESS blocking_error %]Discharge for [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > <body id="discharge" class="discharge"> >@@ -13,7 +13,7 @@ > <div id="breadcrumbs"> > <a href="/cgi-bin/koha/mainpage.pl">Home</a> > › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> >-› [% UNLESS blocking_error %]Discharge for [% firstname %] [% surname %] ([% cardnumber %])[% END %] >+› [% UNLESS blocking_error %]Discharge for [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])[% END %] > </div> > > <div id="doc3" class="yui-t1"> >@@ -33,12 +33,12 @@ > [% UNLESS can_be_discharged %] > <p>Cannot edit discharge: the patron has checked out items.</p> > [% ELSE %] >- [% IF has_reserves %] >+ [% IF patron.holds.count %] > <p>Borrower has reserves: they will be canceled if the discharge is generated.</p> > [% END %] > <form method="post"> > <input type="submit" value="Generate discharge" name="discharge" /> >- <input type="hidden" value="[% borrowernumber %]" name="borrowernumber" /> >+ <input type="hidden" value="[% patron.borrowernumber %]" name="borrowernumber" /> > </form> > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt >index ae36321bf2..cfbb3b388a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/housebound.tt >@@ -57,7 +57,7 @@ > <h4>Manage housebound profile</h4> > <form id="editform" method="post" name="editform" > action="/cgi-bin/koha/members/housebound.pl"> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > [% IF ( housebound_profile ) %] > <input type="hidden" name="method" value="updateconfirm" /> > [% ELSE %] >@@ -188,7 +188,7 @@ > <fieldset class="action"> > <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save changes</button> > <a class="cancel btn btn-link btn-sm" >- href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% borrowernumber %]"> >+ href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]"> > Cancel > </a> > </fieldset> >@@ -205,7 +205,7 @@ > [% ELSE %] > <input type="hidden" name="method" value="addvisitconfirm" /> > [% END %] >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <fieldset class="rows" id="instance"> > <legend>Delivery details</legend> > <ol> >@@ -314,7 +314,7 @@ > <fieldset class="action"> > <button type="submit" class="btn btn-default btn-sm"><i class="fa fa-save"></i> Save</button> > <a class="cancel" >- href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% borrowernumber %]"> >+ href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]"> > Cancel > </a> > </fieldset> >@@ -371,7 +371,7 @@ > </li> > </ol> > <div class="action"> >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% borrowernumber %]&method=update_or_create"><i class="fa fa-pencil"></i> Edit</a> >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?borrowernumber=[% patron.borrowernumber %]&method=update_or_create"><i class="fa fa-pencil"></i> Edit</a> > </div> > </div> > <div> >@@ -397,15 +397,15 @@ > </a> > </td> > <td class="actions"> >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&visit_id=[% entry.id %]&borrowernumber=[% borrowernumber %]"><i class="fa fa-pencil"></i> Edit</a> >- <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_delete&visit_id=[% entry.id %]&borrowernumber=[% borrowernumber %]"><i class="fa fa-trash"></i> Delete</a> >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&visit_id=[% entry.id %]&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-pencil"></i> Edit</a> >+ <a class="delete btn btn-default btn-xs" href="/cgi-bin/koha/members/housebound.pl?method=visit_delete&visit_id=[% entry.id %]&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-trash"></i> Delete</a> > </td> > </tr> > [% END %] > </table> > [% END %] > <div class="action"> >- <a href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&borrowernumber=[% borrowernumber %]" >+ <a href="/cgi-bin/koha/members/housebound.pl?method=visit_update_or_create&borrowernumber=[% patron.borrowernumber %]" > class="btn btn-default btn-sm"> > <i class="fa fa-plus"></i> Add a new delivery > </a> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt >index 72adcf6d06..5f68a4c6fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt >@@ -21,15 +21,15 @@ > <!-- The manual invoice and credit buttons --> > <div class="statictabs"> > <ul> >- <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li> >- <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li> >- <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li> >- <li class="active"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li> >+ <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li> >+ <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li> >+ <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li> >+ <li class="active"><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li> > </ul> > <div class="tabs-container"> > > <form action="/cgi-bin/koha/members/mancredit.pl" method="post" id="mancredit"> >-<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> >+<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > > <fieldset class="rows"> > <legend>Manual credit</legend><ol> >@@ -43,7 +43,7 @@ > <li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li> > </ol></fieldset> > >-<fieldset class="action"><input type="submit" name="add" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset> >+<fieldset class="action"><input type="submit" name="add" value="Add credit" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset> > </form> > > </div></div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >index 7817042d51..71eeb78176 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt >@@ -21,10 +21,10 @@ > <!-- The manual invoice and credit buttons --> > <div class="statictabs"> > <ul> >- <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Account</a></li> >- <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]" >Pay fines</a></li> >- <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrowernumber %]" >Create manual invoice</a></li> >- <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrowernumber %]" >Create manual credit</a></li> >+ <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li> >+ <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li> >+ <li class="active"><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li> >+ <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li> > </ul> > <div class="tabs-container"> > >@@ -33,7 +33,7 @@ > ERROR an invalid itemnumber was entered, please hit back and try again > [% END %] > [% ELSE %] >-<form action="/cgi-bin/koha/members/maninvoice.pl" method="post" id="maninvoice"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> >+<form action="/cgi-bin/koha/members/maninvoice.pl" method="post" id="maninvoice"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > <fieldset class="rows"> > <legend>Manual invoice</legend> > <ol> >@@ -55,7 +55,7 @@ > <li><label for="note">Note: </label><input type="text" name="note" size="50" id="note" /></li> > <li><label for="amount">Amount: </label><input type="number" name="amount" id="amount" required="required" value="" step="any" min="0" /> Example: 5.00</li> > </ol></fieldset> >-<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset> >+<fieldset class="action"><input type="submit" name="add" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset> > </form> > > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >index f63db2293e..5c1bbf0f98 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt >@@ -2,7 +2,7 @@ > [% SET footerjs = 1 %] > [% PROCESS 'permissions.inc' %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Patrons › Set permissions for [% surname %], [% firstname %]</title> >+<title>Koha › Patrons › Set permissions for [% patron.surname %], [% patron.firstname %]</title> > <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/treeview/jquery.treeview_[% KOHA_VERSION %].css"/> > [% INCLUDE 'doc-head-close.inc' %] > </head> >@@ -11,7 +11,7 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'patron-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Set permissions for [% surname %], [% firstname %]</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Set permissions for [% patron.surname %], [% patron.firstname %]</div> > > <div id="doc3" class="yui-t2"> > >@@ -22,9 +22,9 @@ > > <form method="post" action="/cgi-bin/koha/members/member-flags.pl"> > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> >- <input type="hidden" name="member" id="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="member" id="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="newflags" value="1" /> >- <h1>Set permissions for [% surname %], [% firstname %]</h1> >+ <h1>Set permissions for [% patron.surname %], [% patron.firstname %]</h1> > <!-- <ul id="permissionstree"><li class="root">All privileges<ul> --> > <ul id="permissionstree" class="treeview-grey"> > <!-- <li class="folder-close">One level down<ul> --> >@@ -64,7 +64,7 @@ > <!-- </ul></li></ul> --> > </ul> > >-<fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a></fieldset> >+<fieldset class="action"><input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></fieldset> > > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >index d27001deae..c32bdfffe8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-password.tt >@@ -2,7 +2,7 @@ > [% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Patrons › [% IF ( newpassword ) %]Password updated [% ELSE %]Update password for [% surname %], [% firstname %][% END %]</title> >+<title>Koha › Patrons › [% IF ( newpassword ) %]Password updated [% ELSE %]Update password for [% patron.surname %], [% patron.firstname %][% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >@@ -10,7 +10,7 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'patron-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% firstname %] [% surname %]</a> › [% IF ( newpassword ) %]Password Updated[% ELSE %]Change username and/or password[% END %]</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> › [% IF ( newpassword ) %]Password Updated[% ELSE %]Change username and/or password[% END %]</div> > > <div id="doc3" class="yui-t2"> > >@@ -26,8 +26,8 @@ > > <form method="post" id="changepasswordf" action="/cgi-bin/koha/members/member-password.pl"> > <input type="hidden" name="destination" value="[% destination %]" /> >-<input type="hidden" name="cardnumber" value="[% cardnumber %]" /> >-<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /> >+<input type="hidden" name="cardnumber" value="[% patron.cardnumber %]" /> >+<input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > [% IF ( errormsg ) %] > <div class="dialog alert"> > <h4>The following errors have occurred:</h4> >@@ -55,10 +55,10 @@ > [% END %] > > >- <fieldset class="brief"><legend>Change username and/or password for [% firstname %] [% surname %]</legend> >+ <fieldset class="brief"><legend>Change username and/or password for [% patron.firstname %] [% patron.surname %]</legend> > <ol> > <li><label for="newuserid">New username:</label> >- <input type="hidden" name="member" value="[% borrowernumber %]" /><input type="text" id="newuserid" name="newuserid" size="20" value="[% userid %]" /></li> >+ <input type="hidden" name="member" value="[% patron.borrowernumber %]" /><input type="text" id="newuserid" name="newuserid" size="20" value="[% patron.userid %]" /></li> > [% SET password_pattern = ".{" _ Koha.Preference('minPasswordLength') _ ",}" %] > [% IF Koha.Preference('RequireStrongPassword') %] > [% SET password_pattern = '(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{' _ Koha.Preference('minPasswordLength') _ ',}' %] >@@ -77,7 +77,7 @@ > <fieldset class="action"> > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> > <input type="submit" value="Save" /> >- <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Cancel</a> >+ <a class="cancel" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a> > </fieldset> > </form>[% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index d373666892..607217ad70 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -3,7 +3,7 @@ > [% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Patrons › [% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</title> >+<title>Koha › Patrons › [% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF patron %][% patron.category.description %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >index 35a841056d..32e75334e2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt >@@ -4,13 +4,13 @@ > [% USE Price %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >- <title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title> >+ <title>Summary for [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > > <body id="pat_moremember-print" class="pat"> > <div id="main"> >- <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber %]">Account summary: [% firstname %] [% surname %] ([% cardnumber %])</a></h3> >+ <h3><a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% patron.cardnumber %]">Account summary: [% patron.firstname %] [% patron.surname %] ([% patron.cardnumber %])</a></h3> > > <ul> > [% IF Koha.Preference( 'AddressFormat' ) %] >@@ -18,15 +18,15 @@ > [% ELSE %] > [% INCLUDE 'member-display-address-style-us.inc' %] > [% END %] >- <li>[% IF ( phone ) %][% phone %][% ELSE %](no phone number on file)[% END %]</li> >- <li>[% IF ( email ) %][% email %][% ELSE %](no primary email on file)[% END %]</li> >- [% IF ( emailpro ) %] >- <li>[% emailpro %]</li> >+ <li>[% IF ( patron.phone ) %][% patron.phone %][% ELSE %](no phone number on file)[% END %]</li> >+ <li>[% IF ( patron.email ) %][% patron.email %][% ELSE %](no primary email on file)[% END %]</li> >+ [% IF ( patron.emailpro ) %] >+ <li>[% patron.emailpro %]</li> > [% END %] >- <li>Registration date: [% dateenrolled | $KohaDates %]</li> >- <li>Expiration date: [% dateexpiry | $KohaDates %]</li> >- <li>Library: [% Branches.GetName( branchcode ) %]</li> >- <li>Category: [% description %]</li> >+ <li>Registration date: [% patron.dateenrolled | $KohaDates %]</li> >+ <li>Expiration date: [% patron.dateexpiry | $KohaDates %]</li> >+ <li>Library: [% Branches.GetName( patron.branchcode ) %]</li> >+ <li>Category: [% patron.category.description %]</li> > </ul> > > [% IF ( issues ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 83bcff0408..e1af48d5b2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -54,7 +54,7 @@ > [% END %] > <div class="yui-g"> > >- [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry | $KohaDates %]</div>[% END %] >+ [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% patron.dateexpiry | $KohaDates %]</div>[% END %] > > [% IF fines %] > <div id="circmessages" class="circmessage attention"> >@@ -110,17 +110,17 @@ > <a href="#reldebarments" id="view_restrictions">View restrictions</a> > </li> > [% END %] >- [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %] >+ [% IF ( patron.gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %] > [% IF ( lost ) %]<li class="blocker">Patron's card has been reported lost.</li>[% END %] > </ul> > </div> > [% END %] > <h3>[% UNLESS ( I ) %] >- [% title | html %] [% firstname | html %] [% END %] [% surname | html %] ([% cardnumber | html %])</h3> >+ [% patron.title | html %] [% patron.firstname | html %] [% END %] [% patron.surname | html %] ([% patron.cardnumber | html %])</h3> > <div class="yui-u first"> > <div id="patron-information" style="padding : .5em;"> > >- [% IF ( othernames ) %]“[% othernames | html %]”[% END %] >+ [% IF ( patron.othernames ) %]“[% patron.othernames | html %]”[% END %] > > <div class = "address"> > [% IF Koha.Preference( 'AddressFormat' ) %] >@@ -132,17 +132,17 @@ > > <div class="rows"> > <ol> >- [% IF ( phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% phone %]">[% phone | html %]</a></li>[% END %] >- [% IF ( phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% phonepro %]">[% phonepro | html %]</a></li>[% END %] >- [% IF ( mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% mobile %]">[% mobile | html %]</a></li>[% END %] >- [% IF ( fax ) %]<li><span class="label">Fax: </span>[% fax |html %]</li>[% END %] >- [% IF ( email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% email %]" href="mailto:[% email | url %]">[% email | html %]</a></li>[% END %] >- [% IF ( emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% emailpro %]" href="mailto:[% emailpro | url %]">[% emailpro | html %]</a></li>[% END %] >+ [% IF ( patron.phone ) %]<li><span class="label">Primary phone: </span><a href="tel:[% patron.phone %]">[% patron.phone | html %]</a></li>[% END %] >+ [% IF ( patron.phonepro ) %]<li><span class="label">Secondary phone: </span><a href="tel:[% patron.phonepro %]">[% patron.phonepro | html %]</a></li>[% END %] >+ [% IF ( patron.mobile ) %]<li><span class="label">Other phone: </span><a href="tel:[% patron.mobile %]">[% patron.mobile | html %]</a></li>[% END %] >+ [% IF ( patron.fax ) %]<li><span class="label">Fax: </span>[% patron.fax |html %]</li>[% END %] >+ [% IF ( patron.email ) %]<li class="email"><span class="label">Primary email:</span><a title="[% patron.email %]" href="mailto:[% patron.email | url %]">[% patron.email | html %]</a></li>[% END %] >+ [% IF ( patron.emailpro ) %]<li class="email"><span class="label">Secondary email: </span><a title="[% patron.emailpro %]" href="mailto:[% patron.emailpro | url %]">[% patron.emailpro | html %]</a></li>[% END %] > [% UNLESS ( I ) %] >- [% IF ( initials ) %]<li><span class="label">Initials: </span>[% initials | html %]</li>[% END %] >- [% IF ( dateofbirth ) %]<li><span class="label">Date of birth:</span>[% dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %] >- [% IF ( sex ) %]<li><span class="label">Gender:</span> >- [% IF ( sex == 'F' ) %]Female[% ELSIF ( sex == 'M' ) %]Male[% ELSE %][% sex %][% END %] >+ [% IF ( patron.initials ) %]<li><span class="label">Initials: </span>[% patron.initials | html %]</li>[% END %] >+ [% IF ( patron.dateofbirth ) %]<li><span class="label">Date of birth:</span>[% patron.dateofbirth | $KohaDates %] ([% age %] years)</li>[% END %] >+ [% IF ( patron.sex ) %]<li><span class="label">Gender:</span> >+ [% IF ( patron.sex == 'F' ) %]Female[% ELSIF ( patron.sex == 'M' ) %]Male[% ELSE %][% patron.sex %][% END %] > </li>[% END %] > [% END %] > [% IF guarantees %] >@@ -172,9 +172,9 @@ > </div> > <div class="action"> > [% IF ( guarantor.borrowernumber ) %] >- <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1&guarantorid=[% guarantor.borrowernumber %]">Edit</a> >+ <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1&guarantorid=[% guarantor.borrowernumber %]">Edit</a> > [% ELSE %] >- <a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=1">Edit</a> >+ <a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=1">Edit</a> > [% END %]</div> > > </div> >@@ -188,16 +188,16 @@ > <fieldset class="brief"> > [% IF ( picture ) %] > <legend>Manage patron image</legend> >- <div class="hint">To update the image for [% title | html %] [% surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image. >+ <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image. > [% ELSE %] > <legend>Upload patron image</legend> >- <div class="hint">[% title %] [% firstname | html %] [% surname | html %] does not currently have an image available. To import an image for [% title %] [% surname | html %], enter the name of an image file to upload. >+ <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload. > [% END %] > <br />Only PNG, GIF, JPEG, XPM formats are supported. > </div> > <input type="hidden" id="image" name="filetype" value="image" /> >- <input type="hidden" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" /> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <ol> > <li> > <label for="uploadfile">Select the file to upload: </label><input type="file" id="uploadfile" name="uploadfile" /> >@@ -207,7 +207,7 @@ > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> > <input type="submit" value="Upload" class="submit" /> > <input name="op" type="hidden" value="Upload" /> >- [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %] >+ [% IF ( picture ) %]<a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&borrowernumber=[% patron.borrowernumber %]&csrf_token=[% csrf_token %]" class="delete">Delete</a>[% END %] > </fieldset> > </fieldset> > </form> >@@ -241,7 +241,7 @@ > </ol> > </div> > </div> >-<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=4">Edit</a></div> >+<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a></div> > [% END %] > > [% IF ( ExtendedPatronAttributes ) %] >@@ -270,7 +270,7 @@ > </div> > [% END %] > </div> >-<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=4">Edit</a></div> >+<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=4">Edit</a></div> > [% END %] > [% END %] > >@@ -280,11 +280,11 @@ > <h3>Patron messaging preferences</h3> > [% INCLUDE 'messaging-preference-form.inc' %] > [% IF ( SMSSendDriver ) %] >- <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% SMSnumber %]">[% SMSnumber %]</a> >+ <div class="rows"> <ol><li><span class="label">SMS number:</span><a href="sms:[% patron.smsalertnumber %]">[% patron.smsalertnumber %]</a> > </li></ol></div> > [% END %] > </div> >-<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=5">Edit</a></div> >+<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=5">Edit</a></div> > [% END %] > > </div> >@@ -293,16 +293,16 @@ > <h3>Library use</h3> > <div class="rows"> > <ol> >- <li><span class="label">Card number: </span>[% cardnumber %]</li> >- <li><span class="label">Borrowernumber: </span> [% borrowernumber %]</li> >- <li><span class="label">Category: </span>[% categoryname %] ([% categorycode %])</li> >- <li><span class="label">Registration date: </span>[% dateenrolled | $KohaDates %]</li> >+ <li><span class="label">Card number: </span>[% patron.cardnumber %]</li> >+ <li><span class="label">Borrowernumber: </span> [% patron.borrowernumber %]</li> >+ <li><span class="label">Category: </span>[% patron.category.description %] ([% patron.categorycode %])</li> >+ <li><span class="label">Registration date: </span>[% patron.dateenrolled | $KohaDates %]</li> > > <li><span class="label">Expiration date: </span> > [% IF ( was_renewed ) %] >- <strong class="reregistrinfo">[% dateexpiry | $KohaDates %]</strong> >+ <strong class="reregistrinfo">[% patron.dateexpiry | $KohaDates %]</strong> > [% ELSE %] >- [% dateexpiry | $KohaDates %] >+ [% patron.dateexpiry | $KohaDates %] > [% END %] > </li> > >@@ -323,18 +323,18 @@ > [% END %] > </li> > >- [% IF ( sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', sort1) |html %]</li>[% END %] >- [% IF ( sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', sort2) |html %]</li>[% END %] >- <li><span class="label">Username: </span>[% userid |html %]</li> >+ [% IF ( patron.sort1 ) %]<li><span class="label">Sort field 1:</span>[% AuthorisedValues.GetByCode('Bsort1', patron.sort1) |html %]</li>[% END %] >+ [% IF ( patron.sort2 ) %]<li><span class="label">Sort field 2:</span>[% AuthorisedValues.GetByCode('Bsort2', patron.sort2) |html %]</li>[% END %] >+ <li><span class="label">Username: </span>[% patron.userid |html %]</li> > <li><span class="label">Password: </span> >- [% IF ( password ) %] >+ [% IF ( patron.password ) %] > ******* > [% ELSE %] >- <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]">Undefined</a></span> >+ <span class="problem"><a href="/cgi-bin/koha/members/member-password.pl?member=[% patron.borrowernumber %]">Undefined</a></span> > [% END %] > </li> >- [% IF ( borrowernotes ) %]<li><span class="label">Circulation note: </span>[% borrowernotes |html %]</li>[% END %] >- [% IF ( opacnote ) %]<li><span class="label">OPAC note:</span>[% opacnote |html %]</li>[% END %] >+ [% IF ( patron.borrowernotes ) %]<li><span class="label">Circulation note: </span>[% patron.borrowernotes |html %]</li>[% END %] >+ [% IF ( patron.opacnote ) %]<li><span class="label">OPAC note:</span>[% patron.opacnote |html %]</li>[% END %] > [% IF Koha.Preference( 'NorwegianPatronDBEnable' ) == 1 %] > [% IF ( sync == 1 ) %] > <li><span class="label">Activate sync: </span>Yes</li> >@@ -346,9 +346,9 @@ > [% END %] > [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] > <li><span class="label">Check previous checkouts: </span> >- [% IF ( checkprevcheckout == 'yes' ) %] >+ [% IF ( patron.checkprevcheckout == 'yes' ) %] > Yes >- [% ELSIF ( checkprevcheckout == 'no' ) %] >+ [% ELSIF ( patron.checkprevcheckout == 'no' ) %] > No > [% ELSE %] > Inherited >@@ -358,13 +358,13 @@ > [% IF Koha.Preference('TranslateNotices') %] > <li> > <span class="label">Preferred language for notices: </span> >- [% translated_language %] >+ [% patron.translated_language %] > </li> > [% END %] > </ol> > </div> > </div> >- <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=3">Edit</a></div> >+ <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=3">Edit</a></div> > > <div id="patron-alternate-address" style="padding-top: 1em;"> > <h3>Alternate address</h3> >@@ -376,28 +376,28 @@ > [% END %] > > <div class="rows"> <ol> >- [% IF ( B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% B_phone %]">[% B_phone |html %]</a></li>[% END %] >- [% IF ( B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% B_email %]" href="mailto:[% B_email | url %]">[% B_email |html %]</a></li>[% END %] >- [% IF ( contactnote ) %]<li><span class="label">Contact note: </span> [% contactnote |html %]</li>[% END %] >+ [% IF ( patron.B_phone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.B_phone %]">[% patron.B_phone |html %]</a></li>[% END %] >+ [% IF ( patron.B_email ) %]<li class="email"><span class="label">Email: </span><a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a></li>[% END %] >+ [% IF ( patron.contactnote ) %]<li><span class="label">Contact note: </span> [% patron.contactnote |html %]</li>[% END %] > </ol> > </div> > </div> >-<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=6">Edit</a></div> >+<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=6">Edit</a></div> > > <div id="patron-alternative-contact" style="padding-top: 1em;"> > <h3>Alternative contact</h3> >- <div class="rows"> <ol><li><span class="label">Surname: </span>[% altcontactsurname | html %]</li> >- <li><span class="label">First name: </span>[% altcontactfirstname | html %]</li> >- <li><span class="label">Address: </span>[% altcontactaddress1 | html %]</li> >- <li><span class="label">Address 2: </span>[% altcontactaddress2 | html %]</li> >- <li><span class="label">City: </span>[% altcontactaddress3 | html %]</li> >- [% IF ( altcontactstate ) %]<li><span class="label">State: </span>[% altcontactstate | html %]</li>[% END %] >- <li><span class="label">ZIP/Postal code: </span>[% altcontactzipcode | html %]</li> >- [% IF ( altcontactcountry ) %]<li><span class="label">Country: </span>[% altcontactcountry | html %]</li>[% END %] >- [% IF ( altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% altcontactphone | url %]">[% altcontactphone | html %]</a></li>[% END %] >+ <div class="rows"> <ol><li><span class="label">Surname: </span>[% patron.altcontactsurname | html %]</li> >+ <li><span class="label">First name: </span>[% patron.altcontactfirstname | html %]</li> >+ <li><span class="label">Address: </span>[% patron.altcontactaddress1 | html %]</li> >+ <li><span class="label">Address 2: </span>[% patron.altcontactaddress2 | html %]</li> >+ <li><span class="label">City: </span>[% patron.altcontactaddress3 | html %]</li> >+ [% IF ( patron.altcontactstate ) %]<li><span class="label">State: </span>[% patron.altcontactstate | html %]</li>[% END %] >+ <li><span class="label">ZIP/Postal code: </span>[% patron.altcontactzipcode | html %]</li> >+ [% IF ( patron.altcontactcountry ) %]<li><span class="label">Country: </span>[% patron.altcontactcountry | html %]</li>[% END %] >+ [% IF ( patron.altcontactphone ) %]<li><span class="label">Phone: </span><a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a></li>[% END %] > </ol></div> > </div> >-<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% borrowernumber %]&step=2">Edit</a></div> >+<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber %]&step=2">Edit</a></div> > > </div> > </div> >@@ -503,7 +503,7 @@ > <fieldset class="action"> > <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> > <input type="hidden" name="from" value="borrower" /> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="submit" value="Suspend all holds" /> > > [% IF Koha.Preference('AutoResumeSuspendedHolds') %] >@@ -517,7 +517,7 @@ > <fieldset class="action"> > <form action="/cgi-bin/koha/reserve/modrequest_suspendall.pl" method="post"> > <input type="hidden" name="from" value="borrower" /> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="suspend" value="0" /> > <input type="submit" value="Resume all suspended holds" /> > </form> >@@ -559,7 +559,7 @@ > /* Set some variable needed in circulation.js */ > var interface = "[% interface %]"; > var theme = "[% theme %]"; >- var borrowernumber = "[% borrowernumber %]"; >+ var borrowernumber = "[% patron.borrowernumber %]"; > var branchcode = "[% Branches.GetLoggedInBranchcode() %]"; > var exports_enabled = "[% Koha.Preference('ExportCircHistory') %]"; > var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >index ba6b33e489..18e64fcdd9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >@@ -4,7 +4,7 @@ > [% USE Price %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Patrons › Pay Fines for [% borrower.firstname |html %] [% borrower.surname |html %]</title> >+<title>Koha › Patrons › Pay Fines for [% patron.firstname |html %] [% patron.surname |html %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > >@@ -12,28 +12,28 @@ > [% INCLUDE 'header.inc' %] > [% INCLUDE 'patron-search.inc' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Pay fines for [% borrower.firstname |html %] [% borrower.surname |html %]</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Pay fines for [% patron.firstname |html %] [% patron.surname |html %]</div> > > <div id="doc3" class="yui-t2"> > > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >-[% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %] >+[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %] > > <!-- The manual invoice and credit buttons --> > <div class="statictabs"> > <ul> >- <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Account</a></li> >- <li class="active"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]" >Pay fines</a></li> >- <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual invoice</a></li> >- <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual credit</a></li> >+ <li><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a></li> >+ <li class="active"><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a></li> >+ <li><a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a></li> >+ <li><a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a></li> > </ul> > <div class="tabs-container"> > > [% IF ( accounts ) %] > <form action="/cgi-bin/koha/members/pay.pl" method="post" id="pay-fines-form"> >- <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > <p><span class="checkall"><a id="CheckAll" href="#"><i class="fa fa-check"></i> Select all</a></span> | <span class="clearall"><a id="CheckNone" href="#"><i class="fa fa-remove"></i> Clear all</a></span></p> > <table id="finest"> > <thead> >@@ -120,11 +120,10 @@ > <input type="submit" id="paycollect" name="paycollect" value="Pay amount" class="submit" /> > [% IF CAN_user_updatecharges_writeoff %]<input type="submit" name="woall" id="woall" value="Write off all" class="submit" />[% END %] > <input type="submit" id="payselected" name="payselected" value="Pay selected" class="submit" /> >-<a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a> >+<a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a> > </fieldset> > </form> >-[% ELSE %] >- <p>[% borrower.firstname |html %] [% borrower.surname |html %] has no outstanding fines.</p> >+ <p>[% patron.firstname |html %] [% patron.surname |html %] has no outstanding fines.</p> > [% END %] > </div></div> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >index 5813babaa9..39df1437c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt >@@ -2,37 +2,37 @@ > [% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Koha › Patrons › Collect fine payment for [% borrower.firstname %] [% borrower.surname %]</title> >+<title>Koha › Patrons › Collect fine payment for [% patron.firstname %] [% patron.surname %]</title> > [% INCLUDE 'doc-head-close.inc' %] > </head> > > <body id="pat_paycollect" class="pat"> > [% INCLUDE 'header.inc' %] > [% INCLUDE 'patron-search.inc' %] >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Pay fines for [% borrower.firstname %] [% borrower.surname %]</a> › [% IF ( pay_individual ) %]Pay an individual fine[% ELSIF ( writeoff_individual ) %]Write off an individual fine[% ELSE %][% IF ( selected_accts ) %]Pay an amount toward selected fines[% ELSE %]Pay an amount toward all fines[% END %][% END %]</div> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Pay fines for [% patron.firstname %] [% patron.surname %]</a> › [% IF ( pay_individual ) %]Pay an individual fine[% ELSIF ( writeoff_individual ) %]Write off an individual fine[% ELSE %][% IF ( selected_accts ) %]Pay an amount toward selected fines[% ELSE %]Pay an amount toward all fines[% END %][% END %]</div> > > <div id="doc3" class="yui-t2"> > > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >-[% INCLUDE 'members-toolbar.inc' borrowernumber=borrower.borrowernumber %] >+[% INCLUDE 'members-toolbar.inc' borrowernumber=patron.borrowernumber %] > > > <!-- The manual invoice and credit buttons --> > <div class="statictabs"> > <ul> > <li> >- <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Account</a> >+ <a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Account</a> > </li> > <li class="active"> >- <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]" >Pay fines</a> >+ <a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]" >Pay fines</a> > </li> > <li> >- <a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual invoice</a> >+ <a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual invoice</a> > </li> > <li> >- <a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% borrower.borrowernumber %]" >Create manual credit</a> >+ <a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber %]" >Create manual credit</a> > </li> > </ul> > <div class="tabs-container"> >@@ -45,7 +45,7 @@ > [% IF ( pay_individual ) %] > <form name="payindivfine" id="payindivfine" method="post" action="/cgi-bin/koha/members/paycollect.pl"> > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> >- <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" /> > <input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" /> > <input type="hidden" name="description" id="description" value="[% description %]" /> >@@ -89,14 +89,14 @@ > </fieldset> > > <div class="action"><input type="submit" name="submitbutton" value="Confirm" /> >- <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a></div> >+ <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></div> > </form> > [% ELSIF ( writeoff_individual ) %] > <form name="woindivfine" id="woindivfine" action="/cgi-bin/koha/members/pay.pl" method="post" > > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> > <fieldset class="rows"> > <legend>Write off an individual fine</legend> >- <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="pay_individual" id="pay_individual" value="[% pay_individual %]" /> > <input type="hidden" name="itemnumber" id="itemnumber" value="[% itemnumber %]" /> > <input type="hidden" name="description" id="description" value="[% description %]" /> >@@ -130,13 +130,13 @@ > </ol> > </fieldset> > <div class="action"><input type="submit" name="confirm_writeoff" id="confirm_writeoff" value="Write off this charge" /> >- <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a></div> >+ <a class="cancel" href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></div> > </form> > [% ELSE %] > > <form name="payfine" id="payfine" method="post" action="/cgi-bin/koha/members/paycollect.pl"> > <input type="hidden" name="csrf_token" value="[% csrf_token %]" /> >- <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrower.borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="selected_accts" id="selected_accts" value="[% selected_accts %]" /> > <input type="hidden" name="total" id="total" value="[% total %]" /> > >@@ -159,7 +159,7 @@ > </ol> > </fieldset> > <div class="action"><input type="submit" name="submitbutton" value="Confirm" /> >- <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% borrower.borrowernumber %]">Cancel</a></div> >+ <a class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[% patron.borrowernumber %]">Cancel</a></div> > </form> > [% END %] > </div></div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >index 5027672afb..a6c5a3ad74 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >@@ -1,8 +1,9 @@ > [% USE Koha %] > [% USE KohaDates %] >+[% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Print receipt for [% cardnumber %]</title> >+<title>Print receipt for [% patron.cardnumber %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice_[% KOHA_VERSION %].css" /> > [% INCLUDE 'blocking_errors.inc' %] >@@ -27,13 +28,13 @@ > </tr> > <tr> > <th colspan=4 class="centerednames"> >- [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %] >+ <h2>[% Branches.GetName( patron.branchcode ) %]</h2> > </th> > </tr> > <tr> > <th colspan=4 > >- Received with thanks from [% firstname %] [% surname %] <br /> >- Card number : [% cardnumber %]<br /> >+ Received with thanks from [% patron.firstname %] [% patron.surname %] <br /> >+ Card number : [% patron.cardnumber %]<br /> > </th> > </tr> > <tr> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt >index acb8fd25de..62fb69d5ab 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt >@@ -1,7 +1,8 @@ > [% USE Koha %] >+[% USE Branches %] > [% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] >-<title>Print receipt for [% cardnumber %]</title> >+<title>Print receipt for [% patron.cardnumber %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice_[% KOHA_VERSION %].css" /> > </head> >@@ -25,13 +26,13 @@ > </tr> > <tr> > <th colspan="5" class="centerednames"> >- [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %] >+ <h2>[% Branches.GetName( patron.branchcode ) %]</h2> > </th> > </tr> > <tr> > <th colspan="5" > >- Bill to: [% firstname %] [% surname %] <br /> >- Card number: [% cardnumber %]<br /> >+ Bill to: [% patron.firstname %] [% patron.surname %] <br /> >+ Card number: [% patron.cardnumber %]<br /> > </th> > </tr> > <tr> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt >index 5484c2fc95..f95c0097b3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/purchase-suggestions.tt >@@ -27,7 +27,7 @@ > <h2>Purchase suggestions</h2> > > <div id="toolbar" class="btn-toolbar"> >- <a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% borrowernumber %]"><i class="fa fa-plus"></i> New purchase suggestion</a> >+ <a class="btn btn-default btn-sm" id="newsuggestion" href="/cgi-bin/koha/suggestion/suggestion.pl?op=add&suggestedby=[% patron.borrowernumber %]&redirect=purchase_suggestions&borrowernumber=[% patron.borrowernumber %]"><i class="fa fa-plus"></i> New purchase suggestion</a> > </div> > > [% IF suggestions %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >index 8ca27f46e1..dd32e0c7d8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt >@@ -27,12 +27,12 @@ > <div class="dialog alert">Staff members are not allowed to access patron's checkout history</div> > [% ELSIF is_anonymous %] > <div class="dialog alert">This is the anonymous patron, so no circulation history is displayed. To get a list of anonymized loans, please run a report.</div> >-[% ELSIF ( privacy == 2) %] >+[% ELSIF ( patron.privacy == 2) %] > <div class="dialog message">This patron has set the privacy rules to never keeping a circulation history.</div> > [% ELSIF ( !loop_reading ) %] > <div class="dialog message">This patron has no circulation history.</div> > [% ELSE %] >-<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" /></form> >+<form action="/cgi-bin/koha/members/readingrec.pl" method="get"><input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber %]" /></form> > > > <div id="tabs" class="toptabs"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt >index 1cec765411..1959e2f6d1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/routing-lists.tt >@@ -57,7 +57,7 @@ > </strong> > </a> > <input type="hidden" name="biblionumber" value="[% biblionumber %]" /> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > </td> > </tr> > [% END %] >@@ -67,7 +67,7 @@ > [% ELSE %] > <p>Patron does not belong to any subscription routing lists.</p> > <input type="hidden" name="biblionumber" value="[% biblionumber %]" /> >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > [% END %] > > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >index 7b1c873974..e326bc2bf6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt >@@ -16,7 +16,7 @@ > <script type="text/javascript"> > // <![CDATA[ > var MSG_CONFIRM_DELETE_HOLD = _("Are you sure you want to cancel this hold?"); >-var patron_homebranch = "[% Branches.GetName( borrower_branchcode ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]"; >+var patron_homebranch = "[% Branches.GetName( patron.branchcode ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]"; > var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %] > [% itemloo.itemnumber %]: { > homebranch: "[% Branches.GetName( itemloo.homebranch ) |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]", >@@ -194,7 +194,7 @@ function checkMultiHold() { > }); > > >-[% UNLESS ( borrowernumber || borrowers || noitems ) %] >+[% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %] > [% IF ( CircAutocompl ) %] > $( "#patron" ).autocomplete({ > source: "/cgi-bin/koha/circ/ysearch.pl", >@@ -264,7 +264,7 @@ function checkMultiHold() { > <h1>Confirm holds</h1> > [% END %] > >- [% UNLESS borrowernumber OR noitems %] >+ [% UNLESS patron OR patron.borrowernumber OR noitems %] > [% IF ( messageborrower ) %] > <div class="dialog alert"><h3>Patron not found</h3><p>No patron with this name, please, try another</p> </div> > [% END %] >@@ -297,29 +297,29 @@ function checkMultiHold() { > <h3>Cannot place hold</h3> > <ul> > [% IF ( exceeded_maxreserves ) %] >- <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> can only place a maximum of [% maxreserves %] total holds.</li> >+ <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can only place a maximum of [% maxreserves %] total holds.</li> > [% ELSIF ( exceeded_holds_per_record ) %] >- <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> can only place a maximum of [% max_holds_for_record %] hold(s) on this record.</li> >+ <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can only place a maximum of [% max_holds_for_record %] hold(s) on this record.</li> > [% ELSIF ( alreadypossession ) %] >- <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>is already in possession</strong> of one item.</li> >+ <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> <strong>is already in possession</strong> of one item.</li> > [% ELSIF ( alreadyreserved ) %] >- <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>already has a hold</strong> on this item.</li> >+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> <strong>already has a hold</strong> on this item.</li> > [% ELSIF ( ageRestricted ) %] > <li><strong>Age restricted</strong></li> > [% ELSIF ( none_available ) %] > <li> <strong>No items are available</strong> to be placed on hold.</li> > [% ELSIF ( maxreserves ) %] >- <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> has too many holds.</li> >+ <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> has too many holds.</li> > [% END %] > </ul> > [% ELSE %] > <h3>Cannot place hold on some items</h3> > [% IF ( exceeded_maxreserves ) %] >- <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> can place [% new_reserves_allowed %] of the requested [% new_reserves_count %] holds for a maximum of [% maxreserves %] total holds.</li> >+ <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can place [% new_reserves_allowed %] of the requested [% new_reserves_count %] holds for a maximum of [% maxreserves %] total holds.</li> > [% ELSIF ( exceeded_holds_per_record ) %] > [% FOREACH biblioloo IN biblioloop %] > [% IF (biblioloo.tooManyHoldsForThisRecord) %] >- <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]"> [% biblioloo.title %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] </a> can only place a maximum of [% max_holds_for_record %] hold(s) on this record.</li> >+ <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber %]"> [% biblioloo.title %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] </a> can only place a maximum of [% max_holds_for_record %] hold(s) on this record.</li> > [% END %] > [% END %] > [% END %] >@@ -328,22 +328,22 @@ function checkMultiHold() { > </div> > [% END %] > >-[% IF ( expiry || diffbranch || restricted || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %] >+[% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %] > <div class="dialog message"><ul> > [% IF ( expiry ) %] >- <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a>: <strong>Account has expired</strong></li> >+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron,surname %]</a>: <strong>Account has expired</strong></li> > [% END %] > >- [% IF restricted %] >- <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]#reldebarments">[% borrowerfirstname %] [% borrowersurname %]</a>: <strong>Patron has restrictions</strong></li> >+ [% IF patron.is_debarred %] >+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]#reldebarments">[% patron.firstname %] [% patron.surname %]</a>: <strong>Patron has restrictions</strong></li> > [% END %] > > [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %] >- <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a>: <strong>Patron has outstanding fines: [% amount_outstanding | format('%.2f') %]</strong></li> >+ <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a>: <strong>Patron has outstanding fines: [% amount_outstanding | format('%.2f') %]</strong></li> > [% END %] > > [% IF ( diffbranch ) %] >- <li> <strong>Pickup library is different. </strong>Patron: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> Patron's home library: ([% Branches.GetName(borrower_branchcode) %] / [% borrower_branchcode %] )</li> >+ <li> <strong>Pickup library is different. </strong>Patron: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> Patron's home library: ([% Branches.GetName(patron.branchcode) %] / [% patron.branchcode %] )</li> > [% END %] > > </ul></div> >@@ -361,7 +361,7 @@ function checkMultiHold() { > <form action="placerequest.pl" method="post" onsubmit="return checkMultiHold();" name="form"> > [% END %] > >- <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" /> >+ <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" /> > <input type="hidden" name="type" value="str8" /> > > [% IF ( multi_hold ) %] >@@ -380,8 +380,8 @@ function checkMultiHold() { > [% END %] > > <ol> <li><span class="label">Patron:</span> >- [% IF ( borrowernumber ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %] ([% cardnumber %])</a> >+ [% IF ( patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %] ([% cardnumber %])</a> > [% ELSE %] > Not defined yet > [% END %] >@@ -458,7 +458,7 @@ function checkMultiHold() { > </ol> > [% UNLESS ( multi_hold ) %] > <fieldset class="action"> >- [% IF ( borrowernumber ) %] >+ [% IF ( patron.borrowernumber ) %] > [% IF ( override_required ) %] > <input type="submit" class="warning" value="Place hold" /> > [% ELSIF ( none_available ) %] >@@ -595,9 +595,9 @@ function checkMultiHold() { > Can't be cancelled when item is in transit > [% ELSE %] > [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %] >- [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedForBorrowernumber %]">[% itemloo.ReservedForFirstname %] [% itemloo.ReservedForSurname %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% Branches.GetName( itemloo.ExpectedAtLibrary ) %] >+ [% IF ( itemloo.canreservefromotherbranches ) %]for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber %]">[% itemloo.ReservedFor.firstname %] [% itemloo.ReservedFor.surname %]</a>[% END %] [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %] [% Branches.GetName( itemloo.ExpectedAtLibrary ) %] > since >- [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %][% END %]. <a class="info" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber %]&CancelBorrowerNumber=[% itemloo.ReservedForBorrowernumber %]&CancelItemnumber=[% itemloo.itemnumber %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);">Cancel hold</a> >+ [% IF ( itemloo.waitingdate ) %][% itemloo.waitingdate | $KohaDates %][% ELSE %][% IF ( itemloo.reservedate ) %][% itemloo.reservedate %][% END %][% END %]. <a class="info" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber %]&CancelItemnumber=[% itemloo.itemnumber %]" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);">Cancel hold</a> > > [% END %] > [% ELSE %] >@@ -671,7 +671,7 @@ function checkMultiHold() { > [% END %] > > [% IF ( biblioloo.alreadyres ) %] >- <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">[% borrowerfirstname %] [% borrowersurname %]</a> <strong>already has a hold</strong> on this item </li> >+ <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">[% patron.firstname %] [% patron.surname %]</a> <strong>already has a hold</strong> on this item </li> > [% END %] > [% IF ( biblioloo.none_avail ) %] > <li> <strong>No items are available</strong> to be placed on hold</li> >@@ -693,7 +693,7 @@ function checkMultiHold() { > [% END %]<!-- /multi_hold --> > > <fieldset class="action"> >- [% IF ( borrowernumber ) %] >+ [% IF ( patron AND patron.borrowernumber ) %] > [% IF ( override_required ) %] > <input type="submit" class="warning" value="Place hold" /> > [% ELSIF ( none_available ) %] >@@ -707,7 +707,7 @@ function checkMultiHold() { > </fieldset> > [% END %] > >-[% UNLESS ( borrowernumber ) %] >+[% UNLESS ( patron ) %] > [% IF ( reserveloop ) %] > <form name="T[% time %]" action="modrequest.pl" method="post"> > [% IF ( multi_hold ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt >index 453d71c61e..5cf457bb4d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt >@@ -45,7 +45,7 @@ > <tbody>[% FOREACH review IN reviews %] > <tr> > <td> >- [% IF ( review.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% review.borrowernumber %]">[% review.surname %], [% review.firstname %]</a>[% ELSE %](deleted patron)[% END %] >+ [% IF ( review.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% review.borrowernumber %]">[% review.patron.surname %], [% review.patron.firstname %]</a>[% ELSE %](deleted patron)[% END %] > </td> > <td> > <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% review.biblionumber %]">[% review.bibliotitle %]</a> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >index e47214634d..02238440b4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >@@ -209,13 +209,21 @@ > <tr> > <td>[% loopro.timestamp %]</td> > <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.user %]" title="display detail for this librarian."> [% IF ( loopro.userfirstname ) || ( loopro.usersurname ) %][% loopro.userfirstname %] [% loopro.usersurname %] ([% loopro.user %]) [% ELSE %][% loopro.user %][% END %]</a> >+ [% IF loopro.librarian %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.librarian.borrowernumber %]" title="display detail for this librarian."> [% IF ( loopro.librarian.firstname ) || ( loopro.librarian.surname ) %][% loopro.librarian.firstname %] [% loopro.librarian.surname %] ([% loopro.librarian.borrowernumber %]) [% ELSE %][% loopro.librarian.borrowernumber %][% END %]</a> >+ [% ELSE %] >+ [% loopro.user %] >+ [% END %] > </td> > <td>[% PROCESS translate_log_module module=loopro.module %]</td> > <td>[% PROCESS translate_log_action action=loopro.action %]</td> > <td> > [% IF ( loopro.module == 'MEMBERS' ) || ( loopro.module == 'CIRCULATION' ) || ( loopro.module == 'FINES' ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> [% IF ( loopro.object ) %][% IF ( loopro.borrowerfirstname ) || ( loopro.borrowersurname ) %][% loopro.borrowerfirstname %] [% loopro.borrowersurname %] ([% loopro.object %]) [% ELSE %]Member [% loopro.object %][% END %][% END %] </a> >+ [% IF loopro.patron %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.object %]" title="Display member details."> [% IF ( loopro.object ) %][% IF ( loopro.patron.firstname ) || ( loopro.patron.surname ) %][% loopro.patron.firstname %] [% loopro.patron.surname %] ([% loopro.object %]) [% ELSE %]Member [% loopro.object %][% END %][% END %] </a> >+ [% ELSE %] >+ [% loopro.object %] >+ [% END %] > [% ELSE %] > [% IF ( loopro.module == 'CATALOGUING' ) %] > [% IF ( loopro.info.substr(0, 4) == 'item' ) %] >diff --git a/members/boraccount.pl b/members/boraccount.pl >index 7f6bfda11c..c07239a711 100755 >--- a/members/boraccount.pl >+++ b/members/boraccount.pl >@@ -108,11 +108,9 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { > ); > } > >-$template->param(%{ $patron->unblessed }); >- > $template->param( >+ patron => $patron, > finesview => 1, >- borrowernumber => $borrowernumber, > total => sprintf("%.2f",$total), > totalcredit => $totalcredit, > is_child => ($patron->category->category_type eq 'C'), >diff --git a/members/deletemem.pl b/members/deletemem.pl >index 5a1e3f5cb7..c67586f3cf 100755 >--- a/members/deletemem.pl >+++ b/members/deletemem.pl >@@ -113,23 +113,7 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_ > $template->param( adultborrower => 1 ) if $patron->category->category_type =~ /^(A|I)$/; > > $template->param( >- # FIXME The patron object should be passed to the template >- borrowernumber => $patron->borrowernumber, >- surname => $patron->surname, >- title => $patron->title, >- cardnumber => $patron->cardnumber, >- firstname => $patron->firstname, >- categorycode => $patron->categorycode, >- category_type => $patron->category->category_type, >- categoryname => $patron->category->description, >- address => $patron->address, >- address2 => $patron->address2, >- city => $patron->city, >- zipcode => $patron->zipcode, >- country => $patron->country, >- phone => $patron->phone, >- email => $patron->email, >- branchcode => $patron->branchcode, >+ patron => $patron, > ); > if ($countissues >0) { > $template->param(ItemsOnIssues => $countissues); >diff --git a/members/discharge.pl b/members/discharge.pl >index ca7c44f45e..bd425684f9 100755 >--- a/members/discharge.pl >+++ b/members/discharge.pl >@@ -66,9 +66,6 @@ my $can_be_discharged = Koha::Patron::Discharge::can_be_discharged({ > borrowernumber => $borrowernumber > }); > >-my $holds = $patron->holds; >-my $has_reserves = $holds->count; >- > # Generating discharge if needed > if ( $input->param('discharge') and $can_be_discharged ) { > my $is_discharged = Koha::Patron::Discharge::is_discharged({ >@@ -109,28 +106,7 @@ my @validated_discharges = Koha::Patron::Discharge::get_validated({ > $template->param( picture => 1 ) if $patron->image; > > $template->param( >- # FIXME The patron object should be passed to the template >- borrowernumber => $borrowernumber, >- title => $patron->title, >- initials => $patron->initials, >- surname => $patron->surname, >- borrowernumber => $borrowernumber, >- firstname => $patron->firstname, >- cardnumber => $patron->cardnumber, >- categorycode => $patron->categorycode, >- category_type => $patron->category->category_type, >- categoryname => $patron->category->description, >- address => $patron->address, >- streetnumber => $patron->streetnumber, >- streettype => $patron->streettype, >- address2 => $patron->address2, >- city => $patron->city, >- zipcode => $patron->zipcode, >- country => $patron->country, >- phone => $patron->phone, >- email => $patron->email, >- branchcode => $patron->branchcode, >- has_reserves => $has_reserves, >+ patron => $patron, > can_be_discharged => $can_be_discharged, > validated_discharges => \@validated_discharges, > ); >diff --git a/members/files.pl b/members/files.pl >index 40d4c65a9a..8a1f66d740 100755 >--- a/members/files.pl >+++ b/members/files.pl >@@ -69,7 +69,7 @@ if ( $op eq 'download' ) { > else { > > my $patron_category = $patron->category; >- $template->param(%{ $patron->unblessed}); >+ $template->param( patron => $patron ); > > my %errors; > >@@ -106,10 +106,6 @@ else { > $bf->DelFile( id => scalar $cgi->param('file_id') ); > } > >- $template->param( >- categoryname => $patron_category->description, >- ); >- > if (C4::Context->preference('ExtendedPatronAttributes')) { > my $attributes = GetBorrowerAttributes($borrowernumber); > $template->param( >diff --git a/members/housebound.pl b/members/housebound.pl >index 64f4c54136..c659d0c14e 100755 >--- a/members/housebound.pl >+++ b/members/housebound.pl >@@ -63,9 +63,8 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log > > # Get supporting cast > my ( $branch, $category, $houseboundprofile, $visit, $patron_image ); >-if ( $patron ) { >+if ( $patron ) { # FIXME This test is not needed - output_and_exit_if_error handles it > $patron_image = $patron->image; >- $branch = Koha::Libraries->new->find($patron->branchcode); > $category = Koha::Patron::Categories->new->find($patron->categorycode); > $houseboundprofile = $patron->housebound_profile; > } >@@ -158,7 +157,7 @@ if ( $method eq 'updateconfirm' and $houseboundprofile ) { > $method = 'update_or_create' if ( !$houseboundprofile ); > > # Ensure template has all patron details. >-$template->param(%{$patron->unblessed}) if ( $patron ); >+$template->param( patron => $patron ); > > # Load extended patron attributes if necessary (taken from members/files.pl). > if ( C4::Context->preference('ExtendedPatronAttributes') and $patron ) { >@@ -174,8 +173,6 @@ $template->param( > picture => $patron_image, > housebound_profile => $houseboundprofile, > visit => $houseboundvisit, >- branch => $branch, >- category => $category, > messages => \@messages, > method => $method, > choosers => $choosers, >diff --git a/members/mancredit.pl b/members/mancredit.pl >index a8e3b87dd5..ac6df223f6 100755 >--- a/members/mancredit.pl >+++ b/members/mancredit.pl >@@ -96,12 +96,10 @@ if ($add){ > ); > } > >- $template->param(%{ $patron->unblessed}); >+ $template->param( patron => $patron ); > > $template->param( > finesview => 1, >- borrowernumber => $borrowernumber, >- categoryname => $patron->category->description, > is_child => ($patron->category->category_type eq 'C'), # FIXME is_child should be a Koha::Patron method > ); > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/members/maninvoice.pl b/members/maninvoice.pl >index d3de811b0b..117a7ae21d 100755 >--- a/members/maninvoice.pl >+++ b/members/maninvoice.pl >@@ -95,7 +95,6 @@ if ($add){ > }); > > my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"; >- my $patron = Koha::Patrons->find($borrowernumber); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > # get authorised values with type of MANUAL_INV >@@ -125,11 +124,9 @@ if ($add){ > ); > } > >- $template->param(%{ $patron->unblessed }); > $template->param( >+ patron => $patron, > finesview => 1, >- borrowernumber => $borrowernumber, >- categoryname => $patron->category->description, > is_child => ($patron->category->category_type eq 'C'), > ); > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/members/member-flags.pl b/members/member-flags.pl >index 178415fb61..be9dc08653 100755 >--- a/members/member-flags.pl >+++ b/members/member-flags.pl >@@ -200,27 +200,7 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { > } > > $template->param( >- borrowernumber => $bor->{'borrowernumber'}, >- cardnumber => $bor->{'cardnumber'}, >- surname => $bor->{'surname'}, >- firstname => $bor->{'firstname'}, >- othernames => $bor->{'othernames'}, >- categorycode => $bor->{'categorycode'}, >- category_type => $category_type, >- categoryname => $bor->{'description'}, >- address => $bor->{address}, >- address2 => $bor->{'address2'}, >- streettype => $bor->{streettype}, >- city => $bor->{'city'}, >- state => $bor->{'state'}, >- zipcode => $bor->{'zipcode'}, >- country => $bor->{'country'}, >- phone => $bor->{'phone'}, >- phonepro => $bor->{'phonepro'}, >- mobile => $bor->{'mobile'}, >- email => $bor->{'email'}, >- emailpro => $bor->{'emailpro'}, >- branchcode => $bor->{'branchcode'}, >+ patron => $patron, > loop => \@loop, > is_child => ( $category_type eq 'C' ), > csrf_token => >diff --git a/members/member-password.pl b/members/member-password.pl >index 374d17a7c2..3d72349d10 100755 >--- a/members/member-password.pl >+++ b/members/member-password.pl >@@ -114,29 +114,7 @@ if ( C4::Context->preference('ExtendedPatronAttributes') ) { > } > > $template->param( >- othernames => $bor->{'othernames'}, >- surname => $bor->{'surname'}, >- firstname => $bor->{'firstname'}, >- borrowernumber => $bor->{'borrowernumber'}, >- cardnumber => $bor->{'cardnumber'}, >- categorycode => $bor->{'categorycode'}, >- category_type => $category_type, >- categoryname => $bor->{'description'}, >- address => $bor->{address}, >- address2 => $bor->{'address2'}, >- streettype => $bor->{streettype}, >- city => $bor->{'city'}, >- state => $bor->{'state'}, >- zipcode => $bor->{'zipcode'}, >- country => $bor->{'country'}, >- phone => $bor->{'phone'}, >- phonepro => $bor->{'phonepro'}, >- streetnumber => $bor->{'streetnumber'}, >- mobile => $bor->{'mobile'}, >- email => $bor->{'email'}, >- emailpro => $bor->{'emailpro'}, >- branchcode => $bor->{'branchcode'}, >- userid => $bor->{'userid'}, >+ patron => $patron, > destination => $destination, > is_child => ( $category_type eq 'C' ), > csrf_token => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }), >diff --git a/members/moremember.pl b/members/moremember.pl >index 29eea1fe4e..888fe914e6 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -139,7 +139,7 @@ my $category_type = $patron->category->category_type; > my $data = $patron->unblessed; > > $debug and printf STDERR "dates (enrolled,expiry,birthdate) raw: (%s, %s, %s)\n", map {$data->{$_}} qw(dateenrolled dateexpiry dateofbirth); >-foreach (qw(dateenrolled dateexpiry dateofbirth)) { >+foreach (qw(dateenrolled dateexpiry dateofbirth)) { # FIXME This should be removed > my $userdate = $data->{$_}; > unless ($userdate) { > $debug and warn sprintf "Empty \$data{%12s}", $_; >@@ -156,7 +156,7 @@ for (qw(gonenoaddress lost borrowernotes)) { > > if ( $patron->is_debarred ) { > $template->param( >- userdebarred => 1, >+ userdebarred => 1, # FIXME Template should use patron->is_debarred > flagged => 1, > debarments => scalar GetDebarments({ borrowernumber => $borrowernumber }), > ); >@@ -216,7 +216,7 @@ else { > $samebranch = 1; > } > my $library = Koha::Libraries->find( $data->{branchcode})->unblessed; >-@{$data}{keys %$library} = values %$library; # merge in all branch columns >+@{$data}{keys %$library} = values %$library; # merge in all branch columns # FIXME This is really ugly, we should pass the library instead > > my ( $total, $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber ); > >@@ -234,7 +234,7 @@ if ($print eq "page") { > } > > # Show OPAC privacy preference is system preference is set >-if ( C4::Context->preference('OPACPrivacy') ) { >+if ( C4::Context->preference('OPACPrivacy') ) { # FIXME Should be moved the the template > $template->param( OPACPrivacy => 1); > $template->param( "privacy".$data->{'privacy'} => 1); > } >@@ -285,7 +285,7 @@ $template->param( > ); > > >-$template->param(%$data); >+$template->param(%$data); # FIXME This should be removed and used $patron instead, but too many things are processed above > > if (C4::Context->preference('ExtendedPatronAttributes')) { > my $attributes = C4::Members::Attributes::GetBorrowerAttributes($borrowernumber); >@@ -323,7 +323,6 @@ if (C4::Context->preference('EnhancedMessagingPreferences')) { > C4::Form::MessagingPreferences::set_form_values({ borrowernumber => $borrowernumber }, $template); > $template->param(messaging_form_inactive => 1); > $template->param(SMSSendDriver => C4::Context->preference("SMSSendDriver")); >- $template->param(SMSnumber => $data->{'smsalertnumber'}); > $template->param(TalkingTechItivaPhone => C4::Context->preference("TalkingTechItivaPhoneNotification")); > } > >@@ -352,9 +351,6 @@ $template->param( > patron => $patron, > translated_language => $translated_language, > detailview => 1, >- borrowernumber => $borrowernumber, >- othernames => $data->{'othernames'}, >- categoryname => $patron->category->description, > was_renewed => scalar $input->param('was_renewed') ? 1 : 0, > todaysdate => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), > totalprice => sprintf("%.2f", $totalprice), >@@ -367,7 +363,6 @@ $template->param( > samebranch => $samebranch, > quickslip => $quickslip, > housebound_role => scalar $patron->housebound_role, >- privacy_guarantor_checkouts => $data->{'privacy_guarantor_checkouts'}, > PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20, > relatives_issues_count => $relatives_issues_count, > relatives_borrowernumbers => \@relatives, >diff --git a/members/notices.pl b/members/notices.pl >index 4b1abb73e8..4537138203 100755 >--- a/members/notices.pl >+++ b/members/notices.pl >@@ -51,7 +51,6 @@ my ($template, $loggedinuser, $cookie) > my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"; > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > >-$template->param( $borrower ); > $template->param( picture => 1 ) if $patron->image; > > # Allow resending of messages in Notices tab >@@ -77,13 +76,12 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { > ); > } > >-$template->param(%$borrower); > $template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' ); > $template->param( >+ patron => $patron, > QUEUED_MESSAGES => $queued_messages, > borrowernumber => $borrowernumber, > sentnotices => 1, >- categoryname => $patron->category->description, > ); > output_html_with_http_headers $input, $cookie, $template->output; > >diff --git a/members/pay.pl b/members/pay.pl >index f51d56d551..cb612315d8 100755 >--- a/members/pay.pl >+++ b/members/pay.pl >@@ -67,13 +67,9 @@ if ( !$borrowernumber ) { > > # get borrower details > my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"; >-my $patron = Koha::Patrons->find($borrowernumber); >+our $patron = Koha::Patrons->find($borrowernumber); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > >-my $category = $patron->category; >-our $borrower = $patron->unblessed; >-$borrower->{description} = $category->description; >-$borrower->{category_type} = $category->category_type; > our $user = $input->remote_user; > $user ||= q{}; > >@@ -142,16 +138,13 @@ sub add_accounts_to_template { > } > push @accounts, $account_line; > } >- borrower_add_additional_fields($borrower); >- >- $template->param(%$borrower); >+ borrower_add_additional_fields($patron->unblessed); > > my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber}); > $template->param( picture => 1 ) if $patron_image; > $template->param( >+ patron => $patron, > accounts => \@accounts, >- borrower => $borrower, >- categoryname => $borrower->{'description'}, > total => $total, > ); > return; >diff --git a/members/paycollect.pl b/members/paycollect.pl >index 1eb418437f..9a14284aba 100755 >--- a/members/paycollect.pl >+++ b/members/paycollect.pl >@@ -55,8 +55,6 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log > > my $borrower = $patron->unblessed; > my $category = $patron->category; >-$borrower->{description} = $category->description; >-$borrower->{category_type} = $category->category_type; > my $user = $input->remote_user; > > my $branch = C4::Context->userenv->{'branch'}; >@@ -179,8 +177,7 @@ $template->param(%$borrower); > > $template->param( > borrowernumber => $borrowernumber, # some templates require global >- borrower => $borrower, >- categoryname => $borrower->{description}, >+ patron => $patron, > total => $total_due, > ExtendedPatronAttributes => C4::Context->preference('ExtendedPatronAttributes'), > >diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl >index 748242f530..36a0aa4131 100755 >--- a/members/printfeercpt.pl >+++ b/members/printfeercpt.pl >@@ -54,15 +54,12 @@ my $patron = Koha::Patrons->find( $borrowernumber ); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > my $category = $patron->category; >-my $data = $patron->unblessed; >-$data->{description} = $category->description; >-$data->{category_type} = $category->category_type; > > if ( $action eq 'print' ) { > # ReversePayment( $borrowernumber, $input->param('accountno') ); > } > >-if ( $data->{'category_type'} eq 'C') { >+if ( $category->category_type eq 'C') { > my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); > $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; > $template->param( 'catcode' => $patron_categories->next->categorycde ) if $patron_categories->count == 1; >@@ -117,31 +114,16 @@ for (my $i=0;$i<$numaccts;$i++){ > push(@accountrows, \%row); > } > >-$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' ); >+$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' ); > > $template->param( picture => 1 ) if $patron->image; > > $template->param( >+ patron => $patron, > finesview => 1, >- firstname => $data->{'firstname'}, >- surname => $data->{'surname'}, >- borrowernumber => $borrowernumber, >- cardnumber => $data->{'cardnumber'}, >- categorycode => $data->{'categorycode'}, >- category_type => $data->{'category_type'}, >- # category_description => $data->{'description'}, >- categoryname => $data->{'description'}, >- address => $data->{'address'}, >- address2 => $data->{'address2'}, >- city => $data->{'city'}, >- zipcode => $data->{'zipcode'}, >- country => $data->{'country'}, >- phone => $data->{'phone'}, >- email => $data->{'email'}, >- branchcode => $data->{'branchcode'}, > total => sprintf("%.2f",$total), > totalcredit => $totalcredit, >- is_child => ($data->{'category_type'} eq 'C'), >+ is_child => ($category->category_type eq 'C'), > accounts => \@accountrows ); > > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/members/printinvoice.pl b/members/printinvoice.pl >index 66c19c2a0b..d553713cd8 100755 >--- a/members/printinvoice.pl >+++ b/members/printinvoice.pl >@@ -53,11 +53,8 @@ my $patron = Koha::Patrons->find( $borrowernumber ); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > my $category = $patron->category; >-my $data = $patron->unblessed; >-$data->{description} = $category->description; >-$data->{category_type} = $category->category_type; > >-if ( $data->{'category_type'} eq 'C' ) { >+if ( $category->category_type eq 'C' ) { > my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); > $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; > $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; >@@ -117,30 +114,16 @@ for ( my $i = 0 ; $i < $numaccts ; $i++ ) { > push( @accountrows, \%row ); > } > >-$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' ); >+$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' ); > > $template->param( picture => 1 ) if $patron->image; > > $template->param( >+ patron => $patron, > finesview => 1, >- firstname => $data->{'firstname'}, >- surname => $data->{'surname'}, >- borrowernumber => $borrowernumber, >- cardnumber => $data->{'cardnumber'}, >- categorycode => $data->{'categorycode'}, >- category_type => $data->{'category_type'}, >- categoryname => $data->{'description'}, >- address => $data->{'address'}, >- address2 => $data->{'address2'}, >- city => $data->{'city'}, >- zipcode => $data->{'zipcode'}, >- country => $data->{'country'}, >- phone => $data->{'phone'}, >- email => $data->{'email'}, >- branchcode => $data->{'branchcode'}, > total => sprintf( "%.2f", $total ), > totalcredit => $totalcredit, >- is_child => ( $data->{'category_type'} eq 'C' ), >+ is_child => ( $category->category_type eq 'C' ), > accounts => \@accountrows > ); > >diff --git a/members/purchase-suggestions.pl b/members/purchase-suggestions.pl >index 21e656d970..74ca8f7bb1 100755 >--- a/members/purchase-suggestions.pl >+++ b/members/purchase-suggestions.pl >@@ -47,15 +47,9 @@ my $patron = Koha::Patrons->find( $borrowernumber ); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > my $category = $patron->category; >-my $data = $patron->unblessed; >-$data->{description} = $category->description; >-$data->{category_type} = $category->category_type; >-foreach my $key ( keys %$data ) { >- $template->param( $key => $data->{$key} ); >-} > $template->param( >+ patron => $patron, > suggestionsview => 1, >- categoryname => $data->{'description'}, > ); > > if (C4::Context->preference('ExtendedPatronAttributes')) { >diff --git a/members/readingrec.pl b/members/readingrec.pl >index 90157b52bb..295a43cd42 100755 >--- a/members/readingrec.pl >+++ b/members/readingrec.pl >@@ -36,11 +36,6 @@ use Koha::Patron::Categories; > > my $input = CGI->new; > >-#get borrower details >-my $data = undef; >-my $borrowernumber = undef; >-my $cardnumber = undef; >- > my ($template, $loggedinuser, $cookie)= get_template_and_user({template_name => "members/readingrec.tt", > query => $input, > type => "intranet", >@@ -52,40 +47,37 @@ my ($template, $loggedinuser, $cookie)= get_template_and_user({template_name => > my $op = $input->param('op') || ''; > my $patron; > if ($input->param('cardnumber')) { >- $cardnumber = $input->param('cardnumber'); >+ my $cardnumber = $input->param('cardnumber'); > $patron = Koha::Patrons->find( { cardnumber => $cardnumber } ); > } > if ($input->param('borrowernumber')) { >- $borrowernumber = $input->param('borrowernumber'); >+ my $borrowernumber = $input->param('borrowernumber'); > $patron = Koha::Patrons->find( $borrowernumber ); > } > > my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"; > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > >-$data = $patron->unblessed; >-$borrowernumber = $patron->borrowernumber; >- > my $order = 'date_due desc'; > my $limit = 0; > my $issues = (); > # Do not request the old issues of anonymous patron >-if ( $borrowernumber eq C4::Context->preference('AnonymousPatron') ){ >+if ( $patron->borrowernumber eq C4::Context->preference('AnonymousPatron') ){ > # use of 'eq' in the above comparison is intentional -- the > # system preference value could be blank > $template->param( is_anonymous => 1 ); > } else { >- $issues = GetAllIssues($borrowernumber,$order,$limit); >+ $issues = GetAllIssues($patron->borrowernumber,$order,$limit); > } > > # barcode export > if ( $op eq 'export_barcodes' ) { > # FIXME This should be moved out of this script >- if ( $data->{'privacy'} < 2) { >+ if ( $patron->privacy < 2) { > my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }); > my @barcodes = > map { $_->{barcode} } grep { $_->{returndate} =~ m/^$today/o } @{$issues}; >- my $borrowercardnumber = $data->{cardnumber}; >+ my $borrowercardnumber = $patron->cardnumber; > my $delimiter = "\n"; > binmode( STDOUT, ":encoding(UTF-8)" ); > print $input->header( >@@ -100,13 +92,14 @@ if ( $op eq 'export_barcodes' ) { > } > } > >-if ( $data->{'category_type'} eq 'C') { >+my $category = $patron->category; >+if ( $category->category_type eq 'C') { > my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); > $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; > $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; > } > >-$template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' || $data->{'category_type'} eq 'I' ); >+$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' ); > if (! $limit){ > $limit = 'full'; > } >@@ -114,21 +107,17 @@ if (! $limit){ > $template->param( picture => 1 ) if $patron->image; > > if (C4::Context->preference('ExtendedPatronAttributes')) { >- my $attributes = GetBorrowerAttributes($borrowernumber); >+ my $attributes = GetBorrowerAttributes($patron->borrowernumber); > $template->param( > ExtendedPatronAttributes => 1, > extendedattributes => $attributes > ); > } > >-$template->param(%$data); >- > $template->param( >+ patron => $patron, > readingrecordview => 1, >- borrowernumber => $borrowernumber, >- privacy => $data->{'privacy'}, >- categoryname => $data->{description}, >- is_child => ( $data->{category_type} eq 'C' ), >+ is_child => ( $category->category_type eq 'C' ), > loop_reading => $issues, > ); > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/members/routing-lists.pl b/members/routing-lists.pl >index d298a95b1e..28d4d1cb10 100755 >--- a/members/routing-lists.pl >+++ b/members/routing-lists.pl >@@ -52,9 +52,6 @@ my $patron = Koha::Patrons->find( $borrowernumber ); > output_and_exit_if_error( $query, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > my $category = $patron->category; >-my $patron_info = $patron->unblessed; >-$patron_info->{description} = $category->description; >-$patron_info->{category_type} = $category->category_type; > > my $count; > my @borrowerSubscriptions; >@@ -75,18 +72,12 @@ $template->param( > routinglistview => 1 > ); > >-$template->param( adultborrower => 1 ) if ( $patron_info->{category_type} =~ /^(A|I)$/ ); >- >-################################################################################## >- >-$template->param(%$patron_info); >+$template->param( adultborrower => 1 ) if ( $category->category_type =~ /^(A|I)$/ ); > > $template->param( >+ patron => $patron, > findborrower => $findborrower, >- borrower => $patron_info, >- borrowernumber => $borrowernumber, >- branch => $branch, >- categoryname => $patron_info->{description}, >+ branch => $branch, # FIXME This is confusing > ); > > if (C4::Context->preference('ExtendedPatronAttributes')) { >diff --git a/members/statistics.pl b/members/statistics.pl >index 616449603a..c268f0ef7f 100755 >--- a/members/statistics.pl >+++ b/members/statistics.pl >@@ -52,13 +52,7 @@ my $patron = Koha::Patrons->find( $borrowernumber ); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > my $category = $patron->category; >-my $borrower= $patron->unblessed; >-$borrower->{description} = $category->description; >-$borrower->{category_type} = $category->category_type; > >-$template->param( >- categoryname => $borrower->{'description'}, >-); > # Construct column names > my $fields = C4::Members::Statistics::get_fields(); > our @statistic_column_names = split '\|', $fields; >@@ -92,11 +86,10 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { > > $template->param( picture => 1 ) if $patron->image; > >-$template->param(%$borrower); >- >-$template->param( adultborrower => 1 ) if ( $borrower->{category_type} eq 'A' || $borrower->{category_type} eq 'I' ); >+$template->param( adultborrower => 1 ) if ( $category->category_type eq 'A' || $category->category_type eq 'I' ); > > $template->param( >+ patron => $patron, > statisticsview => 1, > datas => $datas, > column_names => \@statistic_column_names, >diff --git a/members/summary-print.pl b/members/summary-print.pl >index 9c1c6122eb..01dcf22b3f 100755 >--- a/members/summary-print.pl >+++ b/members/summary-print.pl >@@ -47,11 +47,6 @@ my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in" > my $patron = Koha::Patrons->find( $borrowernumber ); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > >-my $category = $patron->category; >-my $data = $patron->unblessed; >-$data->{description} = $category->description; >-$data->{category_type} = $category->category_type; >- > my ( $total, $accts, $numaccts ) = GetMemberAccountRecords($borrowernumber); > foreach my $accountline (@$accts) { > if ( $accountline->{accounttype} ne 'F' >@@ -68,9 +63,7 @@ my $holds_rs = Koha::Holds->search( > ); > > $template->param( >- %$data, >- >- borrowernumber => $borrowernumber, >+ patron => $patron, > > accounts => $accts, > totaldue => $total, >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 2f32e4449f..e7653d9310 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -848,7 +848,7 @@ if ( C4::Context->preference('reviewson') ) { > } > } > for my $review (@$reviews) { >- my $patron = Koha::Patrons->find( $review->{borrowernumber} ); >+ my $patron = Koha::Patrons->find( $review->{borrowernumber} ); # FIXME Should be Koha::Review->reviewer or similar > > # setting some borrower info into this hash > if ( $patron ) { >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index dcaec358af..2e4532ee02 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -480,12 +480,8 @@ foreach my $biblioNum (@biblionumbers) { > my $holds = $item->current_holds; > > if ( my $first_hold = $holds->next ) { >- my $patron = Koha::Patrons->find( $first_hold->borrowernumber ); > $itemLoopIter->{backgroundcolor} = 'reserved'; > $itemLoopIter->{reservedate} = output_pref({ dt => dt_from_string($first_hold->reservedate), dateonly => 1 }); # FIXME Should be formatted in the template >- $itemLoopIter->{ReservedForBorrowernumber} = $first_hold->borrowernumber; >- $itemLoopIter->{ReservedForSurname} = $patron->surname; >- $itemLoopIter->{ReservedForFirstname} = $patron->firstname; > $itemLoopIter->{ExpectedAtLibrary} = $first_hold->branchcode; > $itemLoopIter->{waitingdate} = $first_hold->waitingdate; > } >diff --git a/reserve/request.pl b/reserve/request.pl >index d66be33a1c..67161317be 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -179,25 +179,11 @@ if ($borrowernumber_hold && !$action) { > $diffbranch = 1; > } > >- my $is_debarred = $patron->is_debarred; > $template->param( >- borrowernumber => $patron->borrowernumber, >- borrowersurname => $patron->surname, >- borrowerfirstname => $patron->firstname, >- borrowerstreetaddress => $patron->address, >- borrowercity => $patron->city, >- borrowerphone => $patron->phone, >- borrowermobile => $patron->mobile, >- borrowerfax => $patron->fax, >- borrowerphonepro => $patron->phonepro, >- borroweremail => $patron->email, >- borroweremailpro => $patron->emailpro, >- cardnumber => $patron->cardnumber, > expiry => $expiry, > diffbranch => $diffbranch, > messages => $messages, > warnings => $warnings, >- restricted => $is_debarred, > amount_outstanding => GetMemberAccountRecords($patron->borrowernumber), > ); > } >@@ -403,9 +389,7 @@ foreach my $biblionumber (@biblionumbers) { > > $item->{backgroundcolor} = 'reserved'; > $item->{reservedate} = output_pref({ dt => dt_from_string( $first_hold->reservedate ), dateonly => 1 }); # FIXME Should be formatted in the template >- $item->{ReservedForBorrowernumber} = $p->borrowernumber; >- $item->{ReservedForSurname} = $p->surname; >- $item->{ReservedForFirstname} = $p->firstname; >+ $item->{ReservedFor} = $p; > $item->{ExpectedAtLibrary} = $first_hold->branchcode; > $item->{waitingdate} = $first_hold->waitingdate; > } >@@ -615,9 +599,6 @@ foreach my $biblionumber (@biblionumbers) { > holdsview => 1, > C4::Search::enabled_staff_search_views, > ); >- if ( $patron ) { >- $template->param( borrower_branchcode => $patron->branchcode ); >- } > > $biblioloopiter{biblionumber} = $biblionumber; > $biblioloopiter{title} = $biblio->title; >@@ -645,6 +626,7 @@ if ( C4::Context->preference( 'AllowHoldDateInFuture' ) ) { > } > > $template->param( >+ patron => $patron, > SuspendHoldsIntranet => C4::Context->preference('SuspendHoldsIntranet'), > AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), > ); >diff --git a/reviews/reviewswaiting.pl b/reviews/reviewswaiting.pl >index 783748a167..6dc51f1349 100755 >--- a/reviews/reviewswaiting.pl >+++ b/reviews/reviewswaiting.pl >@@ -75,8 +75,7 @@ for my $review ( @$reviews ) { > my $borrowernumber = $review->{borrowernumber}; > my $patron = Koha::Patrons->find( $borrowernumber); > if ( $patron ) { >- $review->{surname} = $patron->surname; >- $review->{firstname} = $patron->firstname; >+ $review->{patron} = $patron; > } > } > >diff --git a/tools/viewlog.pl b/tools/viewlog.pl >index 0b11aac94a..54082dff98 100755 >--- a/tools/viewlog.pl >+++ b/tools/viewlog.pl >@@ -119,10 +119,6 @@ if ($do_it) { > $result->{'biblionumber'} = q{}; > $result->{'biblioitemnumber'} = q{}; > $result->{'barcode'} = q{}; >- $result->{'userfirstname'} = q{}; >- $result->{'usersurname'} = q{}; >- $result->{'borrowerfirstname'} = q{}; >- $result->{'borrowersurname'} = q{}; > > if ( substr( $result->{'info'}, 0, 4 ) eq 'item' || $result->{module} eq "CIRCULATION" ) { > >@@ -141,8 +137,7 @@ if ($do_it) { > if ( $result->{'user'} ) { > my $patron = Koha::Patrons->find( $result->{'user'} ); > if ($patron) { >- $result->{'userfirstname'} = $patron->firstname; >- $result->{'usersurname'} = $patron->surname; >+ $result->{librarian} = $patron; > } > } > >@@ -151,8 +146,7 @@ if ($do_it) { > if ( $result->{'object'} ) { > my $patron = Koha::Patrons->find( $result->{'object'} ); > if ($patron) { >- $result->{'borrowerfirstname'} = $patron->firstname; >- $result->{'borrowersurname'} = $patron->surname; >+ $result->{patron} = $patron; > } > } > } >-- >2.11.0
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 18789
:
64211
|
64212
|
64213
|
64214
|
64215
|
64216
|
64218
|
64219
|
64221
|
64229
|
71301
|
71302
|
71303
|
71304
|
71305
|
71306
|
71307
|
71308
|
71309
|
71310
|
71311
|
71485
|
71486
|
71487
|
71488
|
71489
|
71490
|
71491
|
71492
|
71493
|
71494
|
71495
|
71496
|
71679
|
71680
|
71681
|
71682
|
71683
|
71684
|
71685
|
71686
|
71687
|
71688
|
71689
|
71690
|
71691
|
71713
|
71714
|
71715
|
71716
|
71717
|
71718
|
71719
|
71720
|
71721
|
71722
|
71723
|
71724
|
71725
|
71726
|
71727
|
71728
|
71729
|
71730
|
71731
|
71732
|
71733
|
71734
|
71735
|
71736
|
71827
|
71838
|
71841
|
73293
|
73890
|
75237