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

(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-3 / +15 lines)
Lines 52-63 function Check_page1() { Link Here
52
            return false;
52
            return false;
53
        }
53
        }
54
    }
54
    }
55
    if ($("#biblionumber").val().length == 0) {
55
56
    var biblionumber = $("#biblionumber").val()
57
    if ( biblionumber.length == 0 ) {
56
        alert( MSG_LINK_BIBLIO );
58
        alert( MSG_LINK_BIBLIO );
57
        return false;
59
        return false;
58
    }
60
    }
59
61
60
    return true;
62
    var bib_exists;
63
    $.ajax({
64
        url: '/cgi-bin/koha/svc/bib/' + biblionumber,
65
        async: false,
66
    }
67
    ).done(
68
        function(){ bib_exists = true; }
69
    ).fail (
70
        function(){ alert(_("Bibliographic record does not exist!")); bib_exists = false; }
71
    );
72
73
    return bib_exists;
61
}
74
}
62
75
63
function Check_page2(){
76
function Check_page2(){
64
- 

Return to bug 21232