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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-14 / +8 lines)
Lines 64-83 Link Here
64
                            [% END %]
64
                            [% END %]
65
65
66
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
66
                            <form action="/cgi-bin/koha/opac-suggestions.pl" method="post" id="add_suggestion_form">
67
                                [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
67
                                <fieldset class="rows">
68
                                <fieldset class="rows well" style="margin-bottom: 3em;padding: 5px;">
69
                                    <ol><li>
70
                                        <label for="isbn">Standard number (ISBN, ISSN or other):</label>
71
                                        <input type="text" id="isbn" name="isbn" maxlength="80" style="margin-right:10px;margin-top:10px;" size="15"/>
72
                                    </li></ol>
73
                                </fieldset>
74
                                [% END %]
75
                                    [% IF Koha.Preference('OPACSuggestionAutoFill') %]
76
                                        <fieldset class="rows well">
77
                                    [% ELSE %]
78
                                        <fieldset class="rows">
79
                                    [% END %]
80
                                    <ol>
68
                                    <ol>
69
                                        [% IF Koha.Preference( 'OPACSuggestionAutoFill' ) %]
70
                                            <li>
71
                                                <label for="isbn">Standard number (ISBN, ISSN or other):</label>
72
                                                <input type="text" id="isbn" name="isbn" maxlength="80" style="margin-right:10px;margin-top:10px;" size="15"/>
73
                                            </li>
74
                                        [% END %]
81
                                        <li>
75
                                        <li>
82
                                            [% IF ( title_required ) %]
76
                                            [% IF ( title_required ) %]
83
                                                <label for="title" class="required">Title:</label>
77
                                                <label for="title" class="required">Title:</label>
Lines 115-121 Link Here
115
                                                </div>
109
                                                </div>
116
                                            </li>
110
                                            </li>
117
                                        [% END %]
111
                                        [% END %]
118
                                        [% UNLESS ( isbn_hidden && Koha.Preference('OPACSuggestionAutoFill' )%]
112
                                        [% UNLESS ( isbn_hidden or Koha.Preference('OPACSuggestionAutoFill') ) %]
119
                                            <li>
113
                                            <li>
120
                                                [% IF ( isbn_required ) %]
114
                                                [% IF ( isbn_required ) %]
121
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
115
                                                    <label for="isbn" class="required">Standard number (ISBN, ISSN or other):</label>
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js (-1 / +5 lines)
Lines 46-51 Link Here
46
        }
46
        }
47
47
48
        self.$fillbtn.click(function(){
48
        self.$fillbtn.click(function(){
49
            /* clear fields first */
50
            for(var key in self.fields) {
51
                var field = self.fields[key];
52
                field.$target.trigger('autofill-undo');
53
            }
49
            /* only allow forced update once every second */
54
            /* only allow forced update once every second */
50
            if(Date.now() - self.lastupdate > 1000) {
55
            if(Date.now() - self.lastupdate > 1000) {
51
                self.$elm.trigger('change');
56
                self.$elm.trigger('change');
52
- 

Return to bug 14242