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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-24 / +1 lines)
Lines 136-168 Link Here
136
[% END %]
136
[% END %]
137
137
138
<script>
138
<script>
139
140
    var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again")
141
    var MSG_DELETE_SEARCH_HISTORY = _("Are you sure you want to delete your search history?");
142
    var MSG_NO_SUGGESTION_SELECTED = _("No suggestion was selected");
143
    var MSG_SEARCHING = _("Searching %s...");
139
    var MSG_SEARCHING = _("Searching %s...");
144
    var MSG_ERROR_SEARCHING_COLLECTION = _("Error searching %s collection");
140
    var MSG_ERROR_SEARCHING_COLLECTION = _("Error searching %s collection");
145
    var MSG_NO_RESULTS_FOUND_IN_COLLECTION = _("No results found in the library's %s collection");
141
    var MSG_NO_RESULTS_FOUND_IN_COLLECTION = _("No results found in the library's %s collection");
146
    var MSG_RESULTS_FOUND_IN_COLLECTION = _("Found %s results in the library's %s collection");
142
    var MSG_RESULTS_FOUND_IN_COLLECTION = _("Found %s results in the library's %s collection");
147
    var MSG_BY = _("by");
148
    var MSG_TYPE = _("Type");
149
    var MSG_NEXT = _("Next");
150
    var MSG_PREVIOUS = _("Previous");
151
    var MSG_CHECKOUTS = _("Checkouts");
152
    var MSG_NO_CHECKOUTS = _("No checkouts");
153
    var MSG_CHECK_OUT = _("Check out");
154
    var MSG_CHECK_OUT_CONFIRM = _("Are you sure you want to check out this item?");
155
    var MSG_CHECKED_OUT_UNTIL = _("Checked out until %s");
156
    var MSG_CHECK_IN = _("Check in");
157
    var MSG_CHECK_IN_CONFIRM = _("Are you sure you want to return this item?");
158
    var MSG_NO_CHECKOUTS = _("No checkouts");
159
    var MSG_DOWNLOAD = _("Download");
160
    var MSG_HOLDS = _("Holds");
161
    var MSG_NO_HOLDS = _("No holds");
162
    var MSG_PLACE_HOLD = _("Place hold");
163
    var MSG_CANCEL_HOLD = _("Cancel");
164
    var MSG_CANCEL_HOLD_CONFIRM = _("Are you sure you want to cancel this hold?");
165
    var MSG_ON_HOLD = _("On hold");
166
143
167
    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
144
    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
168
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
145
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
Lines 210-216 Link Here
210
        delSingleRecord( biblionumber );
187
        delSingleRecord( biblionumber );
211
    });
188
    });
212
    $(".clearsh").on("click", function(){
189
    $(".clearsh").on("click", function(){
213
        return confirmDelete(MSG_DELETE_SEARCH_HISTORY);
190
        return confirmDelete( _("Are you sure you want to delete your search history?") );
214
    });
191
    });
215
192
216
</script>
193
</script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt (-3 / +3 lines)
Lines 175-181 Link Here
175
                                <td colspan=7>Immediately delete my checkout history. This action cannot be undone.</td>
175
                                <td colspan=7>Immediately delete my checkout history. This action cannot be undone.</td>
176
                                <td colspan=1>
176
                                <td colspan=1>
177
                                    <fieldset class="action">
177
                                    <fieldset class="action">
178
                                        <input type="submit" value="Delete checkout history" form="opac-privacy-delete-checkouts" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
178
                                        <input type="submit" value="Delete checkout history" form="opac-privacy-delete-checkouts" class="btn btn-danger btn-block" onclick='return confirmDelete(_("Warning: Cannot be undone. Please confirm once again"));' />
179
                                    </fieldset>
179
                                    </fieldset>
180
                                </td>
180
                                </td>
181
                            </tr>
181
                            </tr>
Lines 183-189 Link Here
183
                                <td colspan=7>Immediately delete my hold history. This action cannot be undone.</td>
183
                                <td colspan=7>Immediately delete my hold history. This action cannot be undone.</td>
184
                                <td colspan=1>
184
                                <td colspan=1>
185
                                    <fieldset class="action">
185
                                    <fieldset class="action">
186
                                        <input type="submit" value="Delete hold history" form="opac-privacy-delete-holds" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
186
                                        <input type="submit" value="Delete hold history" form="opac-privacy-delete-holds" class="btn btn-danger btn-block" onclick='return confirmDelete(_("Warning: Cannot be undone. Please confirm once again"));' />
187
                                    </fieldset>
187
                                    </fieldset>
188
                                </td>
188
                                </td>
189
                            </tr>
189
                            </tr>
Lines 191-197 Link Here
191
                                <td colspan=7>Immediately delete my checkout history & my hold history. This action cannot be undone.</td>
191
                                <td colspan=7>Immediately delete my checkout history & my hold history. This action cannot be undone.</td>
192
                                <td colspan=1>
192
                                <td colspan=1>
193
                                    <fieldset class="action">
193
                                    <fieldset class="action">
194
                                        <input type="submit" value="Delete checkout and hold history" form="opac-privacy-delete-all" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
194
                                        <input type="submit" value="Delete checkout and hold history" form="opac-privacy-delete-all" class="btn btn-danger btn-block" onclick='return confirmDelete(_("Warning: Cannot be undone. Please confirm once again"));' />
195
                                    </fieldset>
195
                                    </fieldset>
196
                                </td>
196
                                </td>
197
                            </tr>
197
                            </tr>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-2 / +1 lines)
Lines 603-609 Link Here
603
            var no_label;
603
            var no_label;
604
            var message = "";
604
            var message = "";
605
            if ( selected_titles.size() < 1 ) {
605
            if ( selected_titles.size() < 1 ) {
606
                alert(MSG_NO_SUGGESTION_SELECTED);
606
                alert( _("No suggestion was selected") );
607
                return false;
607
                return false;
608
            } else {
608
            } else {
609
                if( selected_titles.size() > 1 ){
609
                if( selected_titles.size() > 1 ){
610
- 

Return to bug 34031