View | Details | Raw Unified | Return to bug 15550
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authorities-home.tt (-4 / +4 lines)
Lines 35-45 Link Here
35
                                    <li>
35
                                    <li>
36
                                        <label for="authtypecode">Authority type: </label>
36
                                        <label for="authtypecode">Authority type: </label>
37
                                        <select name="authtypecode" id="authtypecode">
37
                                        <select name="authtypecode" id="authtypecode">
38
                                            [% FOREACH authtypesloo IN authtypesloop %]
38
                                            [% FOREACH authority_type IN authority_types %]
39
                                                [% IF ( authtypesloo.selected ) %]
39
                                                [% IF authority_type.authtypecode == authtypecode %]
40
                                                    <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
40
                                                    <option value="[% authority_type.authtypecode%]" selected="selected">[% authority_type.authtypetext %]</option>
41
                                                [% ELSE %]
41
                                                [% ELSE %]
42
                                                    <option value="[% authtypesloo.value %]"> [% authtypesloo.authtypetext %]</option>
42
                                                    <option value="[% authority_type.authtypecode%]">[% authority_type.authtypetext %]</option>
43
                                                [% END %]
43
                                                [% END %]
44
                                            [% END %]
44
                                            [% END %]
45
                                        </select>
45
                                        </select>
(-)a/opac/opac-authoritiesdetail.pl (-2 / +3 lines)
Lines 47-52 use CGI qw ( -utf8 ); Link Here
47
use MARC::Record;
47
use MARC::Record;
48
use C4::Koha;
48
use C4::Koha;
49
49
50
use Koha::Authorities;
50
use Koha::Authority::Types;
51
use Koha::Authority::Types;
51
52
52
my $query = new CGI;
53
my $query = new CGI;
Lines 75-81 if ( ! $record ) { Link Here
75
    exit;
76
    exit;
76
}
77
}
77
78
78
my $authtypecode = $record->authtypecode;
79
my $authority = Koha::Authorities->find( $authid );
80
my $authtypecode = $authority->authtypecode;
79
81
80
if ($display_hierarchy){
82
if ($display_hierarchy){
81
    $template->{VARS}->{'displayhierarchy'} = $display_hierarchy;
83
    $template->{VARS}->{'displayhierarchy'} = $display_hierarchy;
82
- 

Return to bug 15550