Bugzilla – Attachment 120841 Details for
Bug 18112
Add street type to main address in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18112: Use GetAuthValueDropbox from the template
Bug-18112-Use-GetAuthValueDropbox-from-the-templat.patch (text/plain), 3.81 KB, created by
Jonathan Druart
on 2021-05-11 13:36:34 UTC
(
hide
)
Description:
Bug 18112: Use GetAuthValueDropbox from the template
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-05-11 13:36:34 UTC
Size:
3.81 KB
patch
obsolete
>From ec962e3a06c59271239a06cbad2935c633bfc15b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 11 May 2021 15:36:13 +0200 >Subject: [PATCH] Bug 18112: Use GetAuthValueDropbox from the template > >--- > .../prog/en/includes/member-alt-address-style.inc | 2 ++ > .../prog/en/includes/member-main-address-style.inc | 2 ++ > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 1 + > members/memberentry.pl | 2 -- > opac/opac-memberentry.pl | 5 ----- > 5 files changed, 5 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc >index f31f379d842..17c1d99fc39 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc >@@ -1,4 +1,5 @@ > [% USE Koha %] >+[% USE AuthorisedValues %] > [% BLOCK 'alt-address-style' %] > <fieldset class="rows" id="memberentry_address"> > <legend id="alt_address_lgd">Alternate address</legend> >@@ -55,6 +56,7 @@ > [% END %] > > [% BLOCK 'alt-address-style_roadtypes' %] >+ [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] > [% IF roadtypes %] > <li> > [% IF ( mandatoryB_streettype ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc >index 8ed3792d913..609509c9431 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc >@@ -1,4 +1,5 @@ > [% USE Koha %] >+[% USE AuthorisedValues %] > [% BLOCK 'main-address-style' %] > <fieldset class="rows" id="memberentry_mainaddress"> > <legend id="main_address_lgd">Main address</legend> >@@ -46,6 +47,7 @@ > [% END %] > > [% BLOCK 'address-style_roadtypes' %] >+ [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] > [% IF roadtypes %] > <li> > [% IF ( mandatorystreettype ) %] >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 ada23ef25b9..2a97dff6e7d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -425,6 +425,7 @@ > <ol> > [% IF Koha.Preference('AddressFormat') != 'de' %][% INCLUDE streetnumber %][% END %] > >+ [% SET roadtypes = AuthorisedValues.GetAuthValueDropbox('ROADTYPE') %] > [% IF roadtypes %] > [% UNLESS hidden.defined('streettype') %] > <li> >diff --git a/members/memberentry.pl b/members/memberentry.pl >index fca1996b527..da8a324c784 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -701,9 +701,7 @@ $template->param( > ); > > my $cities = Koha::Cities->search( {}, { order_by => 'city_name' } ); >-my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' ); > $template->param( >- roadtypes => $roadtypes, > cities => $cities, > ); > >diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl >index 0cd16d90a1b..c9a4790efd3 100755 >--- a/opac/opac-memberentry.pl >+++ b/opac/opac-memberentry.pl >@@ -118,11 +118,6 @@ foreach my $attr (@$attributes) { > } > } > >-my $roadtypes = C4::Koha::GetAuthorisedValues( 'ROADTYPE' ); >-$template->param( >- roadtypes => $roadtypes, >-); >- > if ( $action eq 'create' ) { > > my %borrower = ParseCgiForBorrower($cgi); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18112
:
120476
|
120720
|
120770
|
120771
|
120809
|
120810
| 120841