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

(-)a/admin/auth_tag_structure.pl (-1 / +2 lines)
Lines 57-63 my ($template, $loggedinuser, $cookie) Link Here
57
# get authtype list
57
# get authtype list
58
my $authtypes     = getauthtypes;
58
my $authtypes     = getauthtypes;
59
my @authtypesloop = ();
59
my @authtypesloop = ();
60
foreach my $thisauthtype ( keys %{$authtypes} ) {
60
foreach my $thisauthtype ( sort keys %{$authtypes} ) {
61
    push @authtypesloop,
61
    push @authtypesloop,
62
      { value        => $thisauthtype,
62
      { value        => $thisauthtype,
63
        selected     => $thisauthtype eq $authtypecode,
63
        selected     => $thisauthtype eq $authtypecode,
Lines 209-214 if ($op eq 'add_form') { Link Here
209
			push @existingauthtypeloop,\%line;
209
			push @existingauthtypeloop,\%line;
210
		}
210
		}
211
	}
211
	}
212
    @existingauthtypeloop = sort { lc($a->{authtypetext}) cmp lc($b->{authtypetext}) }@existingauthtypeloop;
212
	$template->param(existingauthtypeloop => \@existingauthtypeloop,
213
	$template->param(existingauthtypeloop => \@existingauthtypeloop,
213
					authtypecode => $authtypecode,
214
					authtypecode => $authtypecode,
214
					);
215
					);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt (-4 / +5 lines)
Lines 192-200 return false; Link Here
192
        <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
192
        <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
193
        Create authority framework for [% authtypecode %] using
193
        Create authority framework for [% authtypecode %] using
194
        <select name="existingauthtypecode">
194
        <select name="existingauthtypecode">
195
            <option value="">Default</option>
196
        [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
195
        [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
197
            <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
196
            [% IF existingauthtypeloo.value == "" %]
197
              <option value="" selected="selected">[% existingauthtypeloo.authtypetext %]</option>
198
            [% ELSE %]
199
              <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
200
            [% END %]
198
        [% END %]
201
        [% END %]
199
        </select>
202
        </select>
200
        <input type="submit" value="OK" class="submit" />
203
        <input type="submit" value="OK" class="submit" />
Lines 211-217 return false; Link Here
211
<h2>Select an authority framework</h2>
214
<h2>Select an authority framework</h2>
212
<form action="[% script_name %]" method="post">
215
<form action="[% script_name %]" method="post">
213
    <select name="authtypecode">
216
    <select name="authtypecode">
214
        <option value="">Default</option>
215
    [% FOREACH authtypeloo IN authtypeloop %]
217
    [% FOREACH authtypeloo IN authtypeloop %]
216
        [% IF ( authtypeloo.selected ) %]
218
        [% IF ( authtypeloo.selected ) %]
217
        <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
219
        <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
218
- 

Return to bug 10038