From fd03feab5d6da23969c6572db424ca50ecbc0f49 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 31 Jan 2024 10:02:30 -0500 Subject: [PATCH] Bug 34478: Manual fix - change op to action - opac-memberentry Signed-off-by: Jonathan Druart --- .../bootstrap/en/modules/opac-memberentry.tt | 34 +++++------ opac/opac-memberentry.pl | 56 +++++++++---------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index 949227a597..17977aaa15 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -32,12 +32,12 @@ [% END %] [% INCLUDE 'doc-head-open.inc' %] - [% IF action == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog + [% IF op == 'edit' %]Update your personal details[% ELSE %]Register a new account[% END %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] -[% IF action == 'edit' %] +[% IF op == 'edit' %] [% INCLUDE 'bodytag.inc' bodyid='opac-patron-update' %] [% ELSE %] @@ -47,7 +47,7 @@
[% WRAPPER breadcrumbs %] - [% IF action == 'edit' %] + [% IF op == 'edit' %] [% WRAPPER breadcrumb_item %] [% INCLUDE 'patron-title.inc' patron = logged_in_user %] [% END %] @@ -72,13 +72,13 @@

Your personal details

- [% IF action == 'edit' %] + [% IF op == 'edit' %]
[% ELSE %]
[% END %] - [% IF action == 'edit' %] + [% IF op == 'edit' %] [% UNLESS OPACPatronDetails %]
To make changes to your record please contact the library.
[% END %] @@ -209,6 +209,7 @@ [% END %]
+ [% INCLUDE 'csrf-token.inc' %] [% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' 'lang' ] %] [% IF mandatory.defined( field ) %] @@ -229,7 +230,7 @@ - [% IF borrower && !(cardnumber_wrong_length || cardnumber_already_exists) && action == 'edit' %] + [% IF borrower && !(cardnumber_wrong_length || cardnumber_already_exists) && op == 'edit' %] [% borrower.cardnumber | html %] [% ELSE %] [% IF minlength_cardnumber == maxlength_cardnumber %] @@ -253,7 +254,7 @@ [% END %] - [% IF action != 'new' %] + [% IF op != 'new' %] [% UNLESS hidden.defined('userid') %]
  • @@ -596,7 +597,7 @@
    Required
  • - [% IF action != 'edit' and Koha.Preference('PatronSelfRegistrationConfirmEmail') %] + [% IF op != 'edit' and Koha.Preference('PatronSelfRegistrationConfirmEmail') %]
  • @@ -929,7 +930,7 @@
  • [% END %] - [% UNLESS action == 'edit' || hidden.defined('password') %] + [% UNLESS op == 'edit' || hidden.defined('password') %]
    @@ -1032,7 +1033,7 @@
    [% END %] - [% IF Koha.Preference('PrivacyPolicyConsent') && action != 'edit' %] + [% IF Koha.Preference('PrivacyPolicyConsent') && op != 'edit' %]
    [% END %] - [% UNLESS action == 'edit' %] + [% UNLESS op == 'edit' %]
    @@ -1077,17 +1078,16 @@
    - [% IF action == 'edit' %] + [% IF op == 'edit' %] [% IF OPACPatronDetails %]
    - - [% INCLUDE 'csrf-token.inc' %] +
    [% END %] [% ELSE %]
    - +
    [% END %] @@ -1111,7 +1111,7 @@