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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (+3 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE To %]
2
[% USE Asset %]
3
[% USE Asset %]
3
[% USE KohaDates %]
4
[% USE KohaDates %]
4
[% USE Branches %]
5
[% USE Branches %]
Lines 554-559 fieldset.rows table { clear: none; margin: 0; } Link Here
554
        var MSG_MANA_SHOW_DETAILS = _("Show Mana results");
555
        var MSG_MANA_SHOW_DETAILS = _("Show Mana results");
555
        var MSG_MANA_NO_SUBSCRIPTION_FOUND = _("No subscription found on Mana Knowledge Base");
556
        var MSG_MANA_NO_SUBSCRIPTION_FOUND = _("No subscription found on Mana Knowledge Base");
556
        var MSG_MANA_SHARE_PATTERN = _("Please feel free to share your pattern with all others librarians once you are done");
557
        var MSG_MANA_SHARE_PATTERN = _("Please feel free to share your pattern with all others librarians once you are done");
558
559
        var BOOKSELLER_IDS = [% To.json( bookseller_ids ) || '[]' | $raw %];
557
    </script>
560
    </script>
558
    [% Asset.js("js/subscription-add.js") | $raw %]
561
    [% Asset.js("js/subscription-add.js") | $raw %]
559
    [% Asset.js("js/showpredictionpattern.js") | $raw %]
562
    [% Asset.js("js/showpredictionpattern.js") | $raw %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-1 / +8 lines)
Lines 46-56 function Clear(id) { Link Here
46
}
46
}
47
47
48
function Check_page1() {
48
function Check_page1() {
49
    if ( $("#aqbooksellerid").val().length == 0) {
49
    var bookseller_id = $("#aqbooksellerid").val();
50
    if ( bookseller_id.length == 0) {
50
        input_box = confirm( MSG_LINK_TO_VENDOR );
51
        input_box = confirm( MSG_LINK_TO_VENDOR );
51
        if (input_box==false) {
52
        if (input_box==false) {
52
            return false;
53
            return false;
53
        }
54
        }
55
    } else {
56
        var bookseller_ids = BOOKSELLER_IDS;
57
        if ( $.inArray(Number(bookseller_id), bookseller_ids) == -1 ) {
58
            alert ("The vendor does not exist");
59
            return false;
60
        }
54
    }
61
    }
55
62
56
    var biblionumber = $("#biblionumber").val()
63
    var biblionumber = $("#biblionumber").val()
(-)a/serials/subscription-add.pl (-1 / +3 lines)
Lines 244-249 if ($op eq 'addsubscription') { Link Here
244
244
245
    $template->param( locales => $languages );
245
    $template->param( locales => $languages );
246
246
247
    my @bookseller_ids = Koha::Acquisition::Booksellers->search->get_column('id');
248
    $template->param( bookseller_ids => \@bookseller_ids );
249
247
    output_html_with_http_headers $query, $cookie, $template->output;
250
    output_html_with_http_headers $query, $cookie, $template->output;
248
}
251
}
249
252
250
- 

Return to bug 23888