From 04d52c85bd3332c3e0c09695916f36531050f22b Mon Sep 17 00:00:00 2001 From: Taka Date: Mon, 13 Jun 2022 21:26:16 +1000 Subject: [PATCH] Don't warn about missing page numbers for publisher articles. --- web/src/ArticleSearchResult2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/ArticleSearchResult2.js b/web/src/ArticleSearchResult2.js index 567aa00..9c5b95f 100644 --- a/web/src/ArticleSearchResult2.js +++ b/web/src/ArticleSearchResult2.js @@ -296,7 +296,7 @@ export class ArticleSearchResult2 const optional = [ [ () => 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 ], - [ () => 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 !== "" && !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 ],