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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-2 lines)
Lines 709-716 Link Here
709
    [% Asset.js("lib/hc-sticky.js") | $raw %]
709
    [% Asset.js("lib/hc-sticky.js") | $raw %]
710
    [% Asset.js("js/coce.js") | $raw %]
710
    [% Asset.js("js/coce.js") | $raw %]
711
    <script>
711
    <script>
712
        var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
713
        var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");
714
        var PREF_AmazonCoverImages = parseInt( "[% Koha.Preference('AmazonCoverImages') | html %]", 10);
712
        var PREF_AmazonCoverImages = parseInt( "[% Koha.Preference('AmazonCoverImages') | html %]", 10);
715
        var q_array = new Array();  // will hold search terms, if present
713
        var q_array = new Array();  // will hold search terms, if present
716
        var PREF_LocalCoverImages = parseInt( "[% Koha.Preference('LocalCoverImages') | html %]", 10);
714
        var PREF_LocalCoverImages = parseInt( "[% Koha.Preference('LocalCoverImages') | html %]", 10);
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js (-8 / +7 lines)
Lines 1-4 Link Here
1
/* global KOHA biblionumber new_results_browser addMultiple vShelfAdd openWindow search_result SEARCH_RESULTS PREF_AmazonCoverImages PREF_LocalCoverImages PREF_IntranetCoce PREF_CoceProviders CoceHost CoceProviders addRecord delSingleRecord PREF_BrowseResultSelection resetSearchContext addBibToContext delBibToContext getContextBiblioNumbers MSG_NO_ITEM_SELECTED MSG_NO_ITEM_SELECTED holdfor_cardnumber holdforclub strQuery MSG_NON_RESERVES_SELECTED PREF_NotHighlightedWords PLACE_HOLD __ */
1
/* global KOHA biblionumber new_results_browser addMultiple vShelfAdd openWindow search_result SEARCH_RESULTS PREF_AmazonCoverImages PREF_LocalCoverImages PREF_IntranetCoce PREF_CoceProviders CoceHost CoceProviders addRecord delSingleRecord PREF_BrowseResultSelection resetSearchContext addBibToContext delBibToContext getContextBiblioNumbers holdfor_cardnumber holdforclub strQuery PREF_NotHighlightedWords PLACE_HOLD __ */
2
2
3
if( PREF_AmazonCoverImages ){
3
if( PREF_AmazonCoverImages ){
4
    $(window).load(function() {
4
    $(window).load(function() {
Lines 223-229 function clearAll () { Link Here
223
function placeHold () {
223
function placeHold () {
224
    var checkedItems = $(".selection:checked");
224
    var checkedItems = $(".selection:checked");
225
    if ($(checkedItems).size() == 0) {
225
    if ($(checkedItems).size() == 0) {
226
        alert(MSG_NO_ITEM_SELECTED);
226
        alert( __("Nothing is selected") );
227
        return false;
227
        return false;
228
    }
228
    }
229
    var bibs = "";
229
    var bibs = "";
Lines 231-237 function placeHold () { Link Here
231
    $(checkedItems).each(function() {
231
    $(checkedItems).each(function() {
232
        var bib = $(this).val();
232
        var bib = $(this).val();
233
        if ($("#reserve_" + bib).size() == 0) {
233
        if ($("#reserve_" + bib).size() == 0) {
234
            alert(MSG_NON_RESERVES_SELECTED);
234
            alert( __("One or more selected items cannot be placed on hold.") );
235
            badBibs = true;
235
            badBibs = true;
236
            return false;
236
            return false;
237
        }
237
        }
Lines 259-265 function browse_selection () { Link Here
259
        browser.create(1, search_result.query_cgi, search_result.limit_cgi, search_result.sort_by, bibnums, bibnums.length);
259
        browser.create(1, search_result.query_cgi, search_result.limit_cgi, search_result.sort_by, bibnums, bibnums.length);
260
        window.location = '/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + bibnums[0] + '&searchid='+browser.searchid;
260
        window.location = '/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + bibnums[0] + '&searchid='+browser.searchid;
261
    } else {
261
    } else {
262
        alert(MSG_NO_ITEM_SELECTED);
262
        alert( __("Nothing is selected") );
263
    }
263
    }
264
    return false;
264
    return false;
265
}
265
}
Lines 267-273 function browse_selection () { Link Here
267
function addToList () {
267
function addToList () {
268
    var checkedItems = $(".selection:checked");
268
    var checkedItems = $(".selection:checked");
269
    if ($(checkedItems).size() == 0) {
269
    if ($(checkedItems).size() == 0) {
270
        alert(MSG_NO_ITEM_SELECTED);
270
        alert( __("Nothing is selected") );
271
        return false;
271
        return false;
272
    }
272
    }
273
    var bibs = "";
273
    var bibs = "";
Lines 310-318 function verify_images() { Link Here
310
            var w = this.width;
310
            var w = this.width;
311
            var h = this.height;
311
            var h = this.height;
312
            if ((w == 1) || (h == 1)) {
312
            if ((w == 1) || (h == 1)) {
313
                $(this).parent().html('<span class="no-image">'+__("No cover image available")+'</span>');
313
                $(this).parent().html('<span class="no-image">'+ __("No cover image available") +'</span>');
314
            } else if ((this.complete != null) && (!this.complete)) {
314
            } else if ((this.complete != null) && (!this.complete)) {
315
                $(this).parent().html('<span class="no-image">'+__("No cover image available")+'</span>');
315
                $(this).parent().html('<span class="no-image">'+ __("No cover image available") +'</span>');
316
            }
316
            }
317
        }
317
        }
318
    });
318
    });
319
- 

Return to bug 26242