|
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 |
} |