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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-12 / +5 lines)
Lines 1-3 Link Here
1
[% USE AuthorisedValues %]
1
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
2
[% IF ( opduplicate ) %][% SET focusAction = "clearDupe" %][% END %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
Lines 958-969 Link Here
958
        <label for="sort1">
959
        <label for="sort1">
959
      [% END %]
960
      [% END %]
960
      Sort 1: </label>
961
      Sort 1: </label>
961
      [% IF ( CGIsort1 ) %] 
962
      [% AuthorisedValues.BuildDropbox("sort1", "Bsort1", sort1, { class => focusAction, size => 20 } ) %]
962
        [% CGIsort1 %]
963
      [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
963
      [% ELSE %]
964
            <input type="text" id="sort1" name="sort1" size="20" value="[% sort1 %]" class="[% focusAction %]" />
965
	  [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %]
966
      [% END %]   
967
    </li>
964
    </li>
968
        [% END %]
965
        [% END %]
969
        [% UNLESS nosort2 %]
966
        [% UNLESS nosort2 %]
Lines 974-985 Link Here
974
    <label for="sort2">
971
    <label for="sort2">
975
    [% END %]
972
    [% END %]
976
    Sort 2: </label>
973
    Sort 2: </label>
977
    [% IF ( CGIsort2 ) %] 
974
    [% AuthorisedValues.BuildDropbox("sort2", "Bsort2", sort2, { class => focusAction, size => 20 } ) %]
978
      [% CGIsort2 %]
975
    [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
979
    [% ELSE %]
980
        <input type="text" id="sort2" name="sort2" size="20" value="[% sort2 %]" class="[% focusAction %]" />
981
	  [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %]
982
    [% END %] 
983
    </li>
976
    </li>
984
        [% END %]
977
        [% END %]
985
	</ol>
978
	</ol>
(-)a/members/memberentry.pl (-3 / +1 lines)
Lines 630-638 $template->param( sort1 => $data{'sort1'}); # shouldn't this be in an "else" st Link Here
630
$CGIsort = buildCGIsort("Bsort2","sort2",$data{'sort2'});
630
$CGIsort = buildCGIsort("Bsort2","sort2",$data{'sort2'});
631
if ($CGIsort) {
631
if ($CGIsort) {
632
    $template->param(CGIsort2 => $CGIsort);
632
    $template->param(CGIsort2 => $CGIsort);
633
} else {
634
    $template->param( sort2 => $data{'sort2'});
635
}
633
}
634
$template->param( sort2 => $data{'sort2'});
636
635
637
if ($nok) {
636
if ($nok) {
638
    foreach my $error (@errors) {
637
    foreach my $error (@errors) {
639
- 

Return to bug 766