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 132-164 Link Here
132
[% END %]
132
[% END %]
133
133
134
<script>
134
<script>
135
136
    var MSG_CONFIRM_AGAIN = _("Warning: Cannot be undone. Please confirm once again")
137
    var MSG_DELETE_SEARCH_HISTORY = _("Are you sure you want to delete your search history?");
138
    var MSG_NO_SUGGESTION_SELECTED = _("No suggestion was selected");
139
    var MSG_SEARCHING = _("Searching %s...");
135
    var MSG_SEARCHING = _("Searching %s...");
140
    var MSG_ERROR_SEARCHING_COLLECTION = _("Error searching %s collection");
136
    var MSG_ERROR_SEARCHING_COLLECTION = _("Error searching %s collection");
141
    var MSG_NO_RESULTS_FOUND_IN_COLLECTION = _("No results found in the library's %s collection");
137
    var MSG_NO_RESULTS_FOUND_IN_COLLECTION = _("No results found in the library's %s collection");
142
    var MSG_RESULTS_FOUND_IN_COLLECTION = _("Found %s results in the library's %s collection");
138
    var MSG_RESULTS_FOUND_IN_COLLECTION = _("Found %s results in the library's %s collection");
143
    var MSG_BY = _("by");
144
    var MSG_TYPE = _("Type");
145
    var MSG_NEXT = _("Next");
146
    var MSG_PREVIOUS = _("Previous");
147
    var MSG_CHECKOUTS = _("Checkouts");
148
    var MSG_NO_CHECKOUTS = _("No checkouts");
149
    var MSG_CHECK_OUT = _("Check out");
150
    var MSG_CHECK_OUT_CONFIRM = _("Are you sure you want to check out this item?");
151
    var MSG_CHECKED_OUT_UNTIL = _("Checked out until %s");
152
    var MSG_CHECK_IN = _("Check in");
153
    var MSG_CHECK_IN_CONFIRM = _("Are you sure you want to return this item?");
154
    var MSG_NO_CHECKOUTS = _("No checkouts");
155
    var MSG_DOWNLOAD = _("Download");
156
    var MSG_HOLDS = _("Holds");
157
    var MSG_NO_HOLDS = _("No holds");
158
    var MSG_PLACE_HOLD = _("Place hold");
159
    var MSG_CANCEL_HOLD = _("Cancel");
160
    var MSG_CANCEL_HOLD_CONFIRM = _("Are you sure you want to cancel this hold?");
161
    var MSG_ON_HOLD = _("On hold");
162
139
163
    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
140
    [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) %]
164
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
141
        var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system.");
Lines 206-212 Link Here
206
        delSingleRecord( biblionumber );
183
        delSingleRecord( biblionumber );
207
    });
184
    });
208
    $(".clearsh").on("click", function(){
185
    $(".clearsh").on("click", function(){
209
        return confirmDelete(MSG_DELETE_SEARCH_HISTORY);
186
        return confirmDelete( _("Are you sure you want to delete your search history?") );
210
    });
187
    });
211
188
212
</script>
189
</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