|
|
@ -296,7 +296,7 @@ export class ArticleSearchResult2 |
|
|
|
const optional = [ |
|
|
|
const optional = [ |
|
|
|
[ () => parentMode === "publication" && newVals.pub_id === null, "No publication was specified.", refs.pub_id ], |
|
|
|
[ () => parentMode === "publication" && newVals.pub_id === null, "No publication was specified.", refs.pub_id ], |
|
|
|
[ () => parentMode === "publisher" && newVals.publ_id === null, "No publisher was specified.", refs.pub_id ], |
|
|
|
[ () => parentMode === "publisher" && newVals.publ_id === null, "No publisher was specified.", refs.pub_id ], |
|
|
|
[ () => newVals.article_pageno === "" && newVals.pub_id !== null, "No page number was specified.", refs.article_pageno ], |
|
|
|
[ () => parentMode === "publication" && newVals.article_pageno === "" && newVals.pub_id !== null, "No page number was specified.", refs.article_pageno ], |
|
|
|
[ () => newVals.article_pageno !== "" && newVals.pub_id === null, "A page number was specified but no publication.", refs.pub_id ], |
|
|
|
[ () => newVals.article_pageno !== "" && newVals.pub_id === null, "A page number was specified but no publication.", refs.pub_id ], |
|
|
|
[ () => newVals.article_pageno !== "" && !isNumeric(newVals.article_pageno), "The page number is not numeric.", refs.article_pageno ], |
|
|
|
[ () => newVals.article_pageno !== "" && !isNumeric(newVals.article_pageno), "The page number is not numeric.", refs.article_pageno ], |
|
|
|
[ () => newVals.publ_id && newVals.article_date === "", "The article date was not specified.", refs.article_date ], |
|
|
|
[ () => newVals.publ_id && newVals.article_date === "", "The article date was not specified.", refs.article_date ], |
|
|
|