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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-4 / +4 lines)
Lines 256-279 function testPredictionPattern() { Link Here
256
    var error = 0;
256
    var error = 0;
257
    var error_msg = "";
257
    var error_msg = "";
258
    if(frequencyid == undefined || frequencyid == ""){
258
    if(frequencyid == undefined || frequencyid == ""){
259
        error_msg += _("- Frequency is not defined\n");
259
        error_msg += _("- Frequency is not defined") + "\n");
260
        error ++;
260
        error ++;
261
    }
261
    }
262
    acquidate = $("#acqui_date").val();
262
    acquidate = $("#acqui_date").val();
263
    if(acquidate == undefined || acquidate == ""){
263
    if(acquidate == undefined || acquidate == ""){
264
        error_msg += _("- First publication date is not defined\n");
264
        error_msg += _("- First publication date is not defined") + "\n");
265
        error ++;
265
        error ++;
266
    }
266
    }
267
    [% IF (more_than_one_serial) %]
267
    [% IF (more_than_one_serial) %]
268
      var nextacquidate = $("#nextacquidate").val();
268
      var nextacquidate = $("#nextacquidate").val();
269
      if(nextacquidate == undefined || nextacquidate == ""){
269
      if(nextacquidate == undefined || nextacquidate == ""){
270
        error_msg += _("- Next issue publication date is not defined\n");
270
        error_msg += _("- Next issue publication date is not defined") + "\n");
271
        error ++;
271
        error ++;
272
      }
272
      }
273
    [% END %]
273
    [% END %]
274
274
275
    if(error){
275
    if(error){
276
        alert(_("Cannot test prediction pattern for the following reason(s):\n\n")
276
        alert(_("Cannot test prediction pattern for the following reason(s):") + "\n\n")
277
            + error_msg);
277
            + error_msg);
278
        return false;
278
        return false;
279
    }
279
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt (-4 / +3 lines)
Lines 11-26 Link Here
11
      var error = 0;
11
      var error = 0;
12
      var error_msg = "";
12
      var error_msg = "";
13
      if(frequencyid == undefined || frequencyid == "") {
13
      if(frequencyid == undefined || frequencyid == "") {
14
          error_msg += _("- Frequency is not defined\n");
14
          error_msg += _("- Frequency is not defined") + "\n");
15
          error ++;
15
          error ++;
16
      }
16
      }
17
      if(firstacquidate == undefined || firstacquidate == "") {
17
      if(firstacquidate == undefined || firstacquidate == "") {
18
          error_msg += _("- First publication date is not defined\n");
18
          error_msg += _("- First publication date is not defined") + "\n");
19
          error ++;
19
          error ++;
20
      }
20
      }
21
21
22
      if(error){
22
      if(error){
23
          alert(_("Cannot test prediction pattern for the following reason(s):\n\n")
23
          alert(_("Cannot test prediction pattern for the following reason(s):") + "\n\n")
24
              + error_msg);
24
              + error_msg);
25
          return false;
25
          return false;
26
      }
26
      }
27
- 

Return to bug 11225