Browse Source

Bug 18112: Use GetAuthValueDropbox from the template

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
tags/v21.05.00
Jonathan Druart 1 month ago
parent
commit
a98759e3b7
5 changed files with 5 additions and 7 deletions
  1. +2
    -0
      koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc
  2. +2
    -0
      koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc
  3. +1
    -0
      koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
  4. +0
    -2
      members/memberentry.pl
  5. +0
    -5
      opac/opac-memberentry.pl

+ 2
- 0
koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc View File

@@ -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 ) %]


+ 2
- 0
koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc View File

@@ -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 ) %]


+ 1
- 0
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt View File

@@ -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>


+ 0
- 2
members/memberentry.pl View File

@@ -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,
);



+ 0
- 5
opac/opac-memberentry.pl View File

@@ -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);


Loading…
Cancel
Save