@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt | 1 + koha-tmpl/intranet-tmpl/prog/js/subscription-add.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt @@ -534,6 +534,7 @@ fieldset.rows table { clear: none; margin: 0; } [%- END -%] var MSG_LINK_TO_VENDOR = _("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor"); var MSG_LINK_BIBLIO = _("You must choose or create a bibliographic record"); + var MSG_BIBLIO_NOT_EXIST = _("Bibliographic record does not exist!"); var MSG_REQUIRED_SUB_LENGTH = _("You must choose a subscription length or an end date."); var MSG_TEST_PREDICTION = _("Please click on 'Test prediction pattern' before saving subscription."); var MSG_REQUIRED_PUB_DATE = _("You must choose a first publication date"); --- a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js +++ a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js @@ -1,4 +1,4 @@ -/* global _ irregularity more_than_one_serial subscriptionid tags interface theme mana_enabled MSG_FREQUENCY_LENGTH_ERROR */ +/* global _ irregularity more_than_one_serial subscriptionid tags interface theme mana_enabled MSG_FREQUENCY_LENGTH_ERROR MSG_BIBLIO_NOT_EXIST */ var globalnumpatterndata; var globalfreqdata; @@ -61,7 +61,7 @@ function Check_page1() { var bib_exists = $("input[name='title']").val().length; - if (!bib_exists) alert(_("Bibliographic record does not exist!")); + if (!bib_exists) alert(MSG_BIBLIO_NOT_EXIST); return bib_exists; } --