Selaa lähdekoodia

Bug 18112: Use GetAuthValueDropbox from the template

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 3 vuotta sitten
vanhempi
commit
a98759e3b7
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/member-alt-address-style.inc
  2. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/member-main-address-style.inc
  3. 1
      koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt
  4. 2
      members/memberentry.pl
  5. 5
      opac/opac-memberentry.pl

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

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

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

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

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

Ladataan…
Peruuta
Tallenna