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 190-198 return false; Link Here
190
        <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
190
        <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
191
        Create authority framework for [% authtypecode %] using
191
        Create authority framework for [% authtypecode %] using
192
        <select name="existingauthtypecode">
192
        <select name="existingauthtypecode">
193
            <option value="">Default</option>
194
        [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
193
        [% FOREACH existingauthtypeloo IN existingauthtypeloop %]
195
            <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
194
            [% IF existingauthtypeloo.value == "" %]
195
              <option value="" selected="selected">[% existingauthtypeloo.authtypetext %]</option>
196
            [% ELSE %]
197
              <option value="[% existingauthtypeloo.value %]">[% existingauthtypeloo.authtypetext %]</option>
198
            [% END %]
196
        [% END %]
199
        [% END %]
197
        </select>
200
        </select>
198
        <input type="submit" value="OK" class="submit" />
201
        <input type="submit" value="OK" class="submit" />
Lines 209-215 return false; Link Here
209
<h2>Select an authority framework</h2>
212
<h2>Select an authority framework</h2>
210
<form action="[% script_name %]" method="post">
213
<form action="[% script_name %]" method="post">
211
    <select name="authtypecode">
214
    <select name="authtypecode">
212
        <option value="">Default</option>
213
    [% FOREACH authtypeloo IN authtypeloop %]
215
    [% FOREACH authtypeloo IN authtypeloop %]
214
        [% IF ( authtypeloo.selected ) %]
216
        [% IF ( authtypeloo.selected ) %]
215
        <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
217
        <option value="[% authtypeloo.value %]" selected="selected">[% authtypeloo.authtypetext %]</option>
216
- 

Return to bug 10038