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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt (-1 / +1 lines)
Lines 137-143 $(document).ready(function() { Link Here
137
          [% ELSE %]
137
          [% ELSE %]
138
            <input type="checkbox" id="opac_editable" name="opac_editable" />
138
            <input type="checkbox" id="opac_editable" name="opac_editable" />
139
          [% END %]
139
          [% END %]
140
            <span>Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above.)</span>
140
            <span>Check to allow patrons to edit this attribute from their details page in the OPAC. (Requires above, does not work with <a href="/cgi-bin/koha/admin/preferences.pl?op=search&amp;searchfield=PatronSelfRegistrationVerifyByEmail" target="_blank">PatronSelfRegistrationVerifyByEmail</a>.)</span>
141
       </li>
141
       </li>
142
       <li><label for="staff_searchable">Searchable: </label>
142
       <li><label for="staff_searchable">Searchable: </label>
143
          [% IF ( staff_searchable_checked ) %]
143
          [% IF ( staff_searchable_checked ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt (-7 / +7 lines)
Lines 890-896 Link Here
890
                    </fieldset>
890
                    </fieldset>
891
               [% END %]
891
               [% END %]
892
892
893
                [% IF ( Koha.Preference('ExtendedPatronAttributes') && patron_attribute_classes.size ) %]
893
                [% IF ( Koha.Preference('ExtendedPatronAttributes') && patron_attribute_classes.size && !Koha.Preference('PatronSelfRegistrationVerifyByEmail') ) %]
894
                    [% FOREACH pa_class IN patron_attribute_classes %]
894
                    [% FOREACH pa_class IN patron_attribute_classes %]
895
                        [% IF pa_class.class %]
895
                        [% IF pa_class.class %]
896
                            <fieldset id="aai_[% pa_loo.class %]" class="rows patron-attributes">
896
                            <fieldset id="aai_[% pa_loo.class %]" class="rows patron-attributes">
Lines 927-943 Link Here
927
                                            [% ELSE %]
927
                                            [% ELSE %]
928
                                                <textarea rows="2" cols="30" id="[% form_id %]" name="patron_attribute_value">[% pa_value.value %]</textarea>
928
                                                <textarea rows="2" cols="30" id="[% form_id %]" name="patron_attribute_value">[% pa_value.value %]</textarea>
929
                                            [% END %]
929
                                            [% END %]
930
                                            <a href="#" class="clear-attribute">Clear</a>
931
                                            [% IF ( pa.type.repeatable ) %]
932
                                            <a href="#" class="clone-attribute">New</a>
933
                                            [% END %]
930
                                            [% IF ( pa.type.password_allowed ) %]
934
                                            [% IF ( pa.type.password_allowed ) %]
931
                                                (<label class="lradio" for="[% form_id %]_password">Password:</label>
935
                                                </li><li><label for="[% form_id %]_password">Password:</label>
932
                                                <input type="password" maxlength="64" value="[% pa_value.password %]" id="[% form_id %]_password" name="patron_attribute_password" />)
936
                                                <input type="password" maxlength="64" value="[% pa_value.password %]" id="[% form_id %]_password" name="patron_attribute_password" />
933
                                            [% ELSE %]
937
                                            [% ELSE %]
934
                                                [%# To keep the form inputs lined up in the POST %]
938
                                                [%# To keep the form inputs lined up in the POST %]
935
                                                <input type="hidden" name="patron_attribute_password" value="" />
939
                                                <input type="hidden" name="patron_attribute_password" value="" />
936
                                            [% END %]
940
                                            [% END %]
937
                                            <a href="#" class="clear-attribute">Clear</a>
938
                                            [% IF ( pa.type.repeatable ) %]
939
                                            <a href="#" class="clone-attribute">New</a>
940
                                            [% END %]
941
                                        [% ELSE %]
941
                                        [% ELSE %]
942
                                            [% IF ( pa.type.authorised_value_category ) %]
942
                                            [% IF ( pa.type.authorised_value_category ) %]
943
                                                [% AuthorisedValues.GetByCode( pa.type.authorised_value, pa_value.value, 1 ) %]
943
                                                [% AuthorisedValues.GetByCode( pa.type.authorised_value, pa_value.value, 1 ) %]
(-)a/opac/opac-memberentry.pl (-5 lines)
Lines 464-471 sub DelEmptyFields { Link Here
464
sub GeneratePatronAttributesForm {
464
sub GeneratePatronAttributesForm {
465
    my ( $borrower, $entered_attributes ) = @_;
465
    my ( $borrower, $entered_attributes ) = @_;
466
466
467
    use Data::Dumper; warn Dumper( $entered_attributes );
468
469
    # Get all attribute types and the values for this patron (if applicable)
467
    # Get all attribute types and the values for this patron (if applicable)
470
    my @types = C4::Members::AttributeTypes::GetAttributeTypes();
468
    my @types = C4::Members::AttributeTypes::GetAttributeTypes();
471
469
Lines 510-517 sub GeneratePatronAttributesForm { Link Here
510
        };
508
        };
511
    }
509
    }
512
510
513
    use Data::Dumper; warn Dumper( \%items_by_class );
514
515
    # Finally, build a list of containing classes
511
    # Finally, build a list of containing classes
516
    my @class_loop;
512
    my @class_loop;
517
    foreach my $class (@classes) {
513
    foreach my $class (@classes) {
518
- 

Return to bug 13757