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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-4 / +3 lines)
Lines 100-112 Link Here
100
                                            <li>
100
                                            <li>
101
                                                <div title="Copyright or publication year, for example: 2016">
101
                                                <div title="Copyright or publication year, for example: 2016">
102
                                                    [% IF ( copyrightdate_required ) %]
102
                                                    [% IF ( copyrightdate_required ) %]
103
                                                        <label for="copyrightdate" class="required">Copyright date:</label>
103
                                                        <label for="copyrightdate" class="required">Publication year:</label>
104
                                                        <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" required="required" />
104
                                                        <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" required="required" />
105
                                                        <span class="required">Required</span>
105
                                                        <span class="required">Required</span>
106
                                                    [% ELSE %]
106
                                                    [% ELSE %]
107
                                                        <label for="copyrightdate">Copyright date:</label>
107
                                                        <label for="copyrightdate">Publication year:</label>
108
                                                        <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" />
108
                                                        <input type="text" id="copyrightdate" name="copyrightdate" pattern="[12]\d{3}" size="10" maxlength="4" value="[% copyrightdate | html %]" />
109
                                                    [% END %]
109
                                                    [% END %]
110
                                                    <span class="hint">Copyright or publication year, for example: 2016</span>
110
                                                </div>
111
                                                </div>
111
                                            </li>
112
                                            </li>
112
                                        [% END %]
113
                                        [% END %]
Lines 478-485 Link Here
478
[% END %]
479
[% END %]
479
[% INCLUDE 'datatables.inc' %]
480
[% INCLUDE 'datatables.inc' %]
480
<script>
481
<script>
481
    var MSG_UNDO_AUTOFILL_SUGGESTION =  _("Undo");
482
    var MSG_SEARCH_GOOGLE_BOOKS = _("Search Google Books");
483
    [% IF ( loggedinusername ) %]
482
    [% IF ( loggedinusername ) %]
484
        function enableCheckboxActions(){
483
        function enableCheckboxActions(){
485
            // Enable/disable controls if checkboxes are checked
484
            // Enable/disable controls if checkboxes are checked
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js (-2 / +4 lines)
Lines 27-32 Link Here
27
        self.$elm = $(elm);
27
        self.$elm = $(elm);
28
        self.fields = fields;
28
        self.fields = fields;
29
29
30
        var MSG_UNDO_AUTOFILL_SUGGESTION =  __("Clear form");
31
        var MSG_SEARCH_GOOGLE_BOOKS = __("Search Google Books");
32
30
        /* decorate element as autofiller */
33
        /* decorate element as autofiller */
31
        self.$undo = $('<input type="button" class="btn" style="display:none;margin-left:5px;" value="' + MSG_UNDO_AUTOFILL_SUGGESTION + '" />');
34
        self.$undo = $('<input type="button" class="btn" style="display:none;margin-left:5px;" value="' + MSG_UNDO_AUTOFILL_SUGGESTION + '" />');
32
        self.$fillbtn = $('<input type="button" class="btn" value="' + MSG_SEARCH_GOOGLE_BOOKS + '" />');
35
        self.$fillbtn = $('<input type="button" class="btn" value="' + MSG_SEARCH_GOOGLE_BOOKS + '" />');
Lines 69-75 Link Here
69
                gAPI += '&maxResults=1';
72
                gAPI += '&maxResults=1';
70
                $.getJSON(gAPI, function (response) {
73
                $.getJSON(gAPI, function (response) {
71
                    if(response.totalItems == 0) {
74
                    if(response.totalItems == 0) {
72
                        self.$error.html(_('Sorry, nothing found.'));
75
                        self.$error.html(__('Sorry, nothing found.'));
73
                        self.$error.show();
76
                        self.$error.show();
74
                        return;
77
                        return;
75
                    }
78
                    }
76
- 

Return to bug 14242