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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js-biblio-format.inc (-1 / +1 lines)
Lines 23-29 Link Here
23
                if (biblio.title != null && biblio.title != '') {
23
                if (biblio.title != null && biblio.title != '') {
24
                    title += escape_str(biblio.title);
24
                    title += escape_str(biblio.title);
25
                } else {
25
                } else {
26
                    title += __("No title");
26
                    title += _("No title");
27
                }
27
                }
28
                title += '</span>';
28
                title += '</span>';
29
29
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +2 lines)
Lines 1984-1990 Link Here
1984
                          } else if (response.error_code === 'checked_out') {
1984
                          } else if (response.error_code === 'checked_out') {
1985
                              const button = $('<button type="button">')
1985
                              const button = $('<button type="button">')
1986
                                .addClass('btn btn-xs')
1986
                                .addClass('btn btn-xs')
1987
                                .text(__("Check in and add to bundle"))
1987
                                .text(_("Check in and add to bundle"))
1988
                                .on('click', function () {
1988
                                .on('click', function () {
1989
                                    addToBundle(url, { external_id: barcode, force_checkin: true });
1989
                                    addToBundle(url, { external_id: barcode, force_checkin: true });
1990
                                });
1990
                                });
Lines 2001-2007 Link Here
2001
                          } else if (response.error_code === 'reserved') {
2001
                          } else if (response.error_code === 'reserved') {
2002
                              const button = $('<button type="button">')
2002
                              const button = $('<button type="button">')
2003
                                .addClass('btn btn-xs')
2003
                                .addClass('btn btn-xs')
2004
                                .text(__("Ignore holds and add to bundle"))
2004
                                .text(_("Ignore holds and add to bundle"))
2005
                                .on('click', function () {
2005
                                .on('click', function () {
2006
                                    addToBundle(url, { external_id: barcode, ignore_holds: true });
2006
                                    addToBundle(url, { external_id: barcode, ignore_holds: true });
2007
                                });
2007
                                });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt (-1 / +1 lines)
Lines 84-90 Link Here
84
            $("input[type='submit']").click(function(e){
84
            $("input[type='submit']").click(function(e){
85
                if ( $("#biblionumber").val().length > 0 && $("#barcode").val().length > 0 ) {
85
                if ( $("#biblionumber").val().length > 0 && $("#barcode").val().length > 0 ) {
86
                    e.preventDefault();
86
                    e.preventDefault();
87
                    alert(__("Please enter only a barcode, or only a biblionumber."));
87
                    alert(_("Please enter only a barcode, or only a biblionumber."));
88
                }
88
                }
89
            });
89
            });
90
        });
90
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt (-1 / +1 lines)
Lines 230-236 Link Here
230
            $("input[type='submit']").click(function(e){
230
            $("input[type='submit']").click(function(e){
231
                if ( $("#biblionumbers").val().length > 0 && $("#barcodes").val().length > 0 ) {
231
                if ( $("#biblionumbers").val().length > 0 && $("#barcodes").val().length > 0 ) {
232
                    e.preventDefault();
232
                    e.preventDefault();
233
                    alert(__("Please enter only barcodes, or only biblionumbers."));
233
                    alert(_("Please enter only barcodes, or only biblionumbers."));
234
                }
234
                }
235
            });
235
            });
236
        });
236
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +1 lines)
Lines 646-652 Link Here
646
                            [% END %]
646
                            [% END %]
647
647
648
                            if ( ! content.length > 0 ) {
648
                            if ( ! content.length > 0 ) {
649
                                alert(__("Please specify a content for 'Default'"));
649
                                alert(_("Please specify a content for 'Default'"));
650
                                return false;
650
                                return false;
651
                            }
651
                            }
652
                        }
652
                        }
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/calendar.inc (-1 / +1 lines)
Lines 101-107 Link Here
101
        },
101
        },
102
    });
102
    });
103
103
104
    var MSG_PLEASE_ENTER_A_VALID_DATE = ( __("Please enter a valid date (should match %s).") );
104
    var MSG_PLEASE_ENTER_A_VALID_DATE = ( _("Please enter a valid date (should match %s).") );
105
105
106
    function is_valid_date(date) {
106
    function is_valid_date(date) {
107
        // An empty string is considered as a valid date for convenient reasons.
107
        // An empty string is considered as a valid date for convenient reasons.
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-basket.tt (-2 / +2 lines)
Lines 374-380 Link Here
374
                        $("#tag_hides").hide();
374
                        $("#tag_hides").hide();
375
                        $("#tagsel_form").show();
375
                        $("#tagsel_form").show();
376
                    } else {
376
                    } else {
377
                        alert( __("No item was selected") );
377
                        alert( _("No item was selected") );
378
                    }
378
                    }
379
                }
379
                }
380
380
Lines 389-395 Link Here
389
                function tagAdded() {
389
                function tagAdded() {
390
                    var checkedBoxes = $("input:checkbox:checked");
390
                    var checkedBoxes = $("input:checkbox:checked");
391
                    if (!$(checkedBoxes).size()) {
391
                    if (!$(checkedBoxes).size()) {
392
                        alert( __("No item was selected") );
392
                        alert( _("No item was selected") );
393
                        return false;
393
                        return false;
394
                    }
394
                    }
395
395
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-1 / +1 lines)
Lines 656-662 Link Here
656
            [% END %]
656
            [% END %]
657
657
658
            if ($(".confirmjs:checked").size() == 0) {
658
            if ($(".confirmjs:checked").size() == 0) {
659
                alert( __("No item was selected") );
659
                alert( _("No item was selected") );
660
                return false;
660
                return false;
661
            }
661
            }
662
662
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +3 lines)
Lines 607-613 Link Here
607
                if (checkedCount > 0) {
607
                if (checkedCount > 0) {
608
                    holdBiblioNums(checkedBiblioNums);
608
                    holdBiblioNums(checkedBiblioNums);
609
                } else {
609
                } else {
610
                    alert( __("No item was selected") );
610
                    alert( _("No item was selected") );
611
                }
611
                }
612
            }
612
            }
613
613
Lines 622-628 Link Here
622
            function tagSelected() {
622
            function tagSelected() {
623
                var checkedBoxes = $(".searchresults :checkbox:checked");
623
                var checkedBoxes = $(".searchresults :checkbox:checked");
624
                if ($(checkedBoxes).size() == 0) {
624
                if ($(checkedBoxes).size() == 0) {
625
                    alert( __("No item was selected") );
625
                    alert( _("No item was selected") );
626
                } else {
626
                } else {
627
                    $("#tagsel_tag").hide();
627
                    $("#tagsel_tag").hide();
628
                    $(".resort").hide();
628
                    $(".resort").hide();
Lines 641-647 Link Here
641
            function tagAdded() {
641
            function tagAdded() {
642
                var checkedBoxes = $(".searchresults :checkbox:checked");
642
                var checkedBoxes = $(".searchresults :checkbox:checked");
643
                if ($(checkedBoxes).size() == 0) {
643
                if ($(checkedBoxes).size() == 0) {
644
                    alert( __("No item was selected") );
644
                    alert( _("No item was selected") );
645
                    return false;
645
                    return false;
646
                }
646
                }
647
647
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-5 / +4 lines)
Lines 843-849 var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); Link Here
843
    function holdSelections() {
843
    function holdSelections() {
844
        var checkedBoxes = $("input:checkbox:checked");
844
        var checkedBoxes = $("input:checkbox:checked");
845
        if ($(checkedBoxes).size() == 0) {
845
        if ($(checkedBoxes).size() == 0) {
846
            alert( __("No item was selected") );
846
            alert( _("No item was selected") );
847
        } else {
847
        } else {
848
            var bibs = "";
848
            var bibs = "";
849
            $(checkedBoxes).each(function(){
849
            $(checkedBoxes).each(function(){
Lines 861-867 var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); Link Here
861
            $(".tag_hides").hide();
861
            $(".tag_hides").hide();
862
            $("#tagsel_form").show();
862
            $("#tagsel_form").show();
863
        } else {
863
        } else {
864
            alert( __("No item was selected") );
864
            alert( _("No item was selected") );
865
        }
865
        }
866
    }
866
    }
867
867
Lines 876-882 var MSG_CONFIRM_REMOVE_SHARE = _("Are you sure you want to remove this share?"); Link Here
876
    function tagAdded() {
876
    function tagAdded() {
877
        var checkedBoxes = $("input:checkbox:checked");
877
        var checkedBoxes = $("input:checkbox:checked");
878
        if (!$(checkedBoxes).size()) {
878
        if (!$(checkedBoxes).size()) {
879
            alert( __("No item was selected") );
879
            alert( _("No item was selected") );
880
            return false;
880
            return false;
881
        }
881
        }
882
882
Lines 998-1004 $(function() { Link Here
998
                    return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
998
                    return confirmDelete(MSG_REMOVE_ONE_FROM_LIST);
999
                }
999
                }
1000
            } else {
1000
            } else {
1001
                alert( __("No item was selected") );
1001
                alert( _("No item was selected") );
1002
                return false;
1002
                return false;
1003
            }
1003
            }
1004
        });
1004
        });
1005
- 

Return to bug 34038