diff --git a/src/__tests__/book-package-check.test.js b/src/__tests__/book-package-check.test.js index 8588edd1..1056abe9 100644 --- a/src/__tests__/book-package-check.test.js +++ b/src/__tests__/book-package-check.test.js @@ -10,6 +10,7 @@ const optionalCheckingOptions = { disableAllLinkFetchingFlag: true, // until we can solve localforage error: No available storage method found // disableLinkedTAArticlesCheckFlag: true, // disableLinkedTWArticlesCheckFlag: true, + // disableLexiconLinkFetchingFlag: true, // disableLinkedLexiconEntriesCheckFlag: true, getFile: params => { const { username, repository, path } = params; diff --git a/src/__tests__/tn-tsv7-table-row-check.test.js b/src/__tests__/tn-tsv7-table-row-check.test.js index 39dee937..68771b38 100644 --- a/src/__tests__/tn-tsv7-table-row-check.test.js +++ b/src/__tests__/tn-tsv7-table-row-check.test.js @@ -10,6 +10,7 @@ const optionalCheckingOptions = { disableAllLinkFetchingFlag: true, // until we can solve localforage error: No available storage method found // disableLinkedTAArticlesCheckFlag: true, // disableLinkedTWArticlesCheckFlag: true, + // disableLexiconLinkFetchingFlag: true, // disableLinkedLexiconEntriesCheckFlag: true, getFile: params => { const { username, repository, path } = params; diff --git a/src/__tests__/tn-tsv9-table-row-check.test.js b/src/__tests__/tn-tsv9-table-row-check.test.js index 4acd324e..85b9a5a7 100644 --- a/src/__tests__/tn-tsv9-table-row-check.test.js +++ b/src/__tests__/tn-tsv9-table-row-check.test.js @@ -10,6 +10,7 @@ const optionalCheckingOptions = { disableAllLinkFetchingFlag: true, // until we can solve localforage error: No available storage method found // disableLinkedTAArticlesCheckFlag: true, // disableLinkedTWArticlesCheckFlag: true, + // disableLexiconLinkFetchingFlag: true, // disableLinkedLexiconEntriesCheckFlag: true, getFile: params => { const { username, repository, path } = params; diff --git a/src/core/strongs-field-check.js b/src/core/strongs-field-check.js index 6d8fe362..3c51863c 100644 --- a/src/core/strongs-field-check.js +++ b/src/core/strongs-field-check.js @@ -9,7 +9,7 @@ import { checkLexiconFileContents } from './lexicon-file-contents-check'; import { functionLog, debugLog, parameterAssert, logicAssert, dataAssert, ourParseInt } from './utilities'; -// const STRONGS_FIELD_VALIDATOR_VERSION_STRING = '0.2.1'; +// const STRONGS_FIELD_VALIDATOR_VERSION_STRING = '0.2.2'; /** @@ -209,7 +209,7 @@ export async function checkStrongsField(languageCode, repoCode, fieldName, field } else debugLog(`checkStrongsField doesn’t have a testament for '${bookID}'!`); } if (!haveError) { - if (checkingOptions?.disableAllLinkFetchingFlag !== true) { + if (checkingOptions?.disableAllLinkFetchingFlag !== true && checkingOptions?.disableLexiconLinkFetchingFlag !== true) { // debugLog(`checkStrongsField wants to fetch lexicon entry for ${fieldText}`); let username; try { diff --git a/src/demos/all-book-packages-check/AllBookPackagesCheck.js b/src/demos/all-book-packages-check/AllBookPackagesCheck.js index 33beed9f..b8873732 100644 --- a/src/demos/all-book-packages-check/AllBookPackagesCheck.js +++ b/src/demos/all-book-packages-check/AllBookPackagesCheck.js @@ -9,7 +9,7 @@ import { RenderCheckedFilesList, RenderSuccessesErrorsWarnings, RenderSuccessesS import { logicAssert, userLog, debugLog } from '../../core/utilities'; -// const ALL_BPS_VALIDATOR_VERSION_STRING = '0.3.10'; +// const ALL_BPS_VALIDATOR_VERSION_STRING = '0.3.11'; const OLD_TESTAMENT_BOOK_CODES = 'GEN,EXO,LEV,NUM,DEU,JOS,JDG,RUT,1SA,2SA,1KI,2KI,1CH,2CH,EZR,NEH,EST,JOB,PSA,PRO,ECC,SNG,ISA,JER,LAM,EZK,DAN,HOS,JOL,AMO,OBA,JON,MIC,NAM,HAB,ZEP,HAG,ZEC,MAL'; const NEW_TESTAMENT_BOOK_CODES = 'MAT,MRK,LUK,JHN,ACT,ROM,1CO,2CO,GAL,EPH,PHP,COL,1TH,2TH,1TI,2TI,TIT,PHM,HEB,JAS,1PE,2PE,1JN,2JN,3JN,JUD,REV'; @@ -43,13 +43,13 @@ function AllBookPackagesCheck(/*username, languageCode, bookIDs,*/ props) { if (testament.toUpperCase() === 'OT' || testament.toUpperCase() === 'OLD') { bookIDsString = OLD_TESTAMENT_BOOK_CODES; haveOT = true; - } else if (testament.toUpperCase() === 'NT' || testament.toUpperCase() === 'NEW') { + } else if (testament.toUpperCase() === 'NT' || testament.toUpperCase() === 'NEW') { bookIDsString = NEW_TESTAMENT_BOOK_CODES; haveNT = true; } else if (testament.toUpperCase() === 'ALL' || testament.toUpperCase() === 'BOTH') { bookIDsString = `${OLD_TESTAMENT_BOOK_CODES},${NEW_TESTAMENT_BOOK_CODES}`; haveOT = true; haveNT = true; - }else + } else setResultValue(

No testament selected

); if (includeOBS.toUpperCase() === 'Y' || includeOBS.toUpperCase() === 'YES') bookIDsString += ',OBS'; @@ -70,9 +70,15 @@ function AllBookPackagesCheck(/*username, languageCode, bookIDs,*/ props) { // excerptLength: 25, suppressNoticeDisablingFlag: true, // Leave this one as true (otherwise demo checks are less efficient) }; - // Or this allows the parameters to be specified as a BookPackagesCheck property + // Or this allows the parameters to be specified as a AllBookPackagesCheck property if (props.excerptLength) checkingOptions.excerptLength = ourParseInt(props.excerptLength); if (props.cutoffPriorityLevel) checkingOptions.cutoffPriorityLevel = ourParseInt(props.cutoffPriorityLevel); + if (props.disableAllLinkFetchingFlag) checkingOptions.disableAllLinkFetchingFlag = props.disableAllLinkFetchingFlag.toLowerCase() === 'true'; + if (props.disableLinkedTAArticlesCheckFlag) checkingOptions.disableLinkedTAArticlesCheckFlag = props.disableLinkedTAArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLinkedTWArticlesCheckFlag) checkingOptions.disableLinkedTWArticlesCheckFlag = props.disableLinkedTWArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLexiconLinkFetchingFlag) checkingOptions.disableLexiconLinkFetchingFlag = props.disableLexiconLinkFetchingFlag.toLowerCase() === 'true'; + if (props.disableLinkedLexiconEntriesCheckFlag) checkingOptions.disableLinkedLexiconEntriesCheckFlag = props.disableLinkedLexiconEntriesCheckFlag.toLowerCase() === 'true'; + useEffect(() => { // debugLog("BookPackagesCheck.useEffect() called with ", JSON.stringify(props)); @@ -113,7 +119,7 @@ function AllBookPackagesCheck(/*username, languageCode, bookIDs,*/ props) { // if (haveNT) repoPreloadList.push('UGL'); // UGNT, ULT, UST, TW all have lexicon links repoPreloadList.push('UHAL'); // UHB/UGNT, ULT, UST, TW all have lexicon links repoPreloadList.push('UGL'); // UHB/UGNT, ULT, UST, TW all have lexicon links -} + } if (bookIDList.includes('OBS')) { let obsRepoPreloadList = ['OBS', 'OBS-TWL', 'OBS-TN2', 'OBS-TQ2', 'OBS-SN2', 'OBS-SQ2']; // for DEFAULT if (dataSet === 'OLD') diff --git a/src/demos/all-book-packages-check/README.md b/src/demos/all-book-packages-check/README.md index 39312591..5a4cfd45 100644 --- a/src/demos/all-book-packages-check/README.md +++ b/src/demos/all-book-packages-check/README.md @@ -29,18 +29,19 @@ import AllBookPackagesCheck from './AllBookPackagesCheck'; includeOBS='N' // 'Y' or 'N' for adding Open Bible Stories (OBS) to check testament='NT' // 'OT' (~3 hrs) or 'NT' (1+ hrs) or 'ALL' (~4 hrs) - // Default displayType is 'ErrorsWarnings' - // Alternatives are `SevereMediumLow', 'SingleList' - displayType='SingleList' - // Normally links in files are downloaded to check that they really exist disableAllLinkFetchingFlag='false' // 'true' or 'false' - // The next two are only relevant if the above is 'false' + // The next group are only relevant if the above is 'false' // They control whether the linked articles themselves are also checked or not disableLinkedTAArticlesCheckFlag='false' // 'true' or 'false' disableLinkedTWArticlesCheckFlag='false' // 'true' or 'false' + disableLexiconLinkFetchingFlag='true' // 'true' or 'false' -- there's many thousands of these! disableLinkedLexiconEntriesCheckFlag='true' // 'true' or 'false' -- lexicon entries still have many inconsistencies + // Default displayType is 'ErrorsWarnings' + // Alternatives are `SevereMediumLow', 'SingleList' + displayType='SingleList' + // Lines starting with // are ignored -- you can add or remove // as desired // Specifying maximumSimilarMessages and excerptLength is just to show off options // —those fields are not necessary (or normal) here diff --git a/src/demos/book-package-check/BookPackageCheck.js b/src/demos/book-package-check/BookPackageCheck.js index 239a882a..40810084 100644 --- a/src/demos/book-package-check/BookPackageCheck.js +++ b/src/demos/book-package-check/BookPackageCheck.js @@ -9,7 +9,7 @@ import { checkBookPackage } from './checkBookPackage'; import { userLog, debugLog, parameterAssert, logicAssert } from '../../core/utilities'; -// const BP_VALIDATOR_VERSION_STRING = '0.5.10'; +// const BP_VALIDATOR_VERSION_STRING = '0.5.12'; function BookPackageCheck(/*username, languageCode, bookID,*/ props) { @@ -45,11 +45,13 @@ function BookPackageCheck(/*username, languageCode, bookID,*/ props) { if (props.disableAllLinkFetchingFlag) checkingOptions.disableAllLinkFetchingFlag = props.disableAllLinkFetchingFlag.toLowerCase() === 'true'; if (props.disableLinkedTAArticlesCheckFlag) checkingOptions.disableLinkedTAArticlesCheckFlag = props.disableLinkedTAArticlesCheckFlag.toLowerCase() === 'true'; if (props.disableLinkedTWArticlesCheckFlag) checkingOptions.disableLinkedTWArticlesCheckFlag = props.disableLinkedTWArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLexiconLinkFetchingFlag) checkingOptions.disableLexiconLinkFetchingFlag = props.disableLexiconLinkFetchingFlag.toLowerCase() === 'true'; if (props.disableLinkedLexiconEntriesCheckFlag) checkingOptions.disableLinkedLexiconEntriesCheckFlag = props.disableLinkedLexiconEntriesCheckFlag.toLowerCase() === 'true'; // functionLog(`checkingOptions.disableLinkedTAArticlesCheckFlag ${checkingOptions.disableLinkedTAArticlesCheckFlag} from '${props.disableLinkedTAArticlesCheckFlag}'`); // functionLog(`checkingOptions.disableLinkedTWArticlesCheckFlag ${checkingOptions.disableLinkedTWArticlesCheckFlag} from '${props.disableLinkedTWArticlesCheckFlag}'`); // functionLog(`checkingOptions.disableLinkedLexiconEntriesCheckFlag ${checkingOptions.disableLinkedLexiconEntriesCheckFlag} from '${props.disableLinkedLexiconEntriesCheckFlag}'`); + useEffect(() => { // const newProps = { bookID, branch, checkingOptions, languageCode, cutoffPriorityLevel: props.cutoffPriorityLevel, displayType: props.displayType, errorPriorityLevel: props.errorPriorityLevel, maximumSimilarMessages: props.maximumSimilarMessages, sortBy: props.sortBy, username}; // debugLog("BookPackageCheck.useEffect() called with ", JSON.stringify(newProps)); diff --git a/src/demos/book-package-check/README.md b/src/demos/book-package-check/README.md index 5d36d57b..44b5c0c6 100644 --- a/src/demos/book-package-check/README.md +++ b/src/demos/book-package-check/README.md @@ -37,18 +37,19 @@ import BookPackageCheck from './BookPackageCheck'; // We can choose the forthcoming new TSV formats or the existing formats // dataSet='BOTH' // 'OLD' (Markdown TQ, TSV9 TN, etc.), 'NEW' (TSV7 TQ2, TSV7 TN2, etc.), 'DEFAULT', or 'BOTH' - // Default displayType is 'ErrorsWarnings' - // Alternatives are `SevereMediumLow', 'SingleList' - displayType='SingleList' - // Normally links in files are downloaded to check that they really exist disableAllLinkFetchingFlag='false' // 'true' or 'false' - // The next two are only relevant if the above is 'false' + // The next group are only relevant if the above is 'false' // They control whether the linked articles themselves are also checked or not disableLinkedTAArticlesCheckFlag='false' // 'true' or 'false' disableLinkedTWArticlesCheckFlag='false' // 'true' or 'false' + disableLexiconLinkFetchingFlag='true' // 'true' or 'false' -- there's many thousands of these! disableLinkedLexiconEntriesCheckFlag='true' // 'true' or 'false' -- lexicon entries still have many inconsistencies + // Default displayType is 'ErrorsWarnings' + // Alternatives are `SevereMediumLow', 'SingleList' + displayType='SingleList' + // Lines starting with // are ignored -- you can add or remove // as desired // Specifying excerptLength and maximumSimilarMessages is just to show off options // —those fields are not necessary (or normal) here diff --git a/src/demos/book-packages-check/BookPackagesCheck.js b/src/demos/book-packages-check/BookPackagesCheck.js index 1e8fb3b8..03d6cf8b 100644 --- a/src/demos/book-packages-check/BookPackagesCheck.js +++ b/src/demos/book-packages-check/BookPackagesCheck.js @@ -9,7 +9,7 @@ import { RenderCheckedFilesList, RenderSuccessesErrorsWarnings, RenderSuccessesS import { userLog, debugLog, logicAssert } from '../../core/utilities'; -// const BPS_VALIDATOR_VERSION_STRING = '0.2.10'; +// const BPS_VALIDATOR_VERSION_STRING = '0.2.12'; /** @@ -64,11 +64,13 @@ function BookPackagesCheck(/*username, languageCode, bookIDs,*/ props) { if (props.disableAllLinkFetchingFlag) checkingOptions.disableAllLinkFetchingFlag = props.disableAllLinkFetchingFlag.toLowerCase() === 'true'; if (props.disableLinkedTAArticlesCheckFlag) checkingOptions.disableLinkedTAArticlesCheckFlag = props.disableLinkedTAArticlesCheckFlag.toLowerCase() === 'true'; if (props.disableLinkedTWArticlesCheckFlag) checkingOptions.disableLinkedTWArticlesCheckFlag = props.disableLinkedTWArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLexiconLinkFetchingFlag) checkingOptions.disableLexiconLinkFetchingFlag = props.disableLexiconLinkFetchingFlag.toLowerCase() === 'true'; if (props.disableLinkedLexiconEntriesCheckFlag) checkingOptions.disableLinkedLexiconEntriesCheckFlag = props.disableLinkedLexiconEntriesCheckFlag.toLowerCase() === 'true'; // functionLog(`checkingOptions.disableLinkedTAArticlesCheckFlag ${checkingOptions.disableLinkedTAArticlesCheckFlag} from '${props.disableLinkedTAArticlesCheckFlag}'`); // functionLog(`checkingOptions.disableLinkedTWArticlesCheckFlag ${checkingOptions.disableLinkedTWArticlesCheckFlag} from '${props.disableLinkedTWArticlesCheckFlag}'`); // functionLog(`checkingOptions.disableLinkedLexiconEntriesCheckFlag ${checkingOptions.disableLinkedLexiconEntriesCheckFlag} from '${props.disableLinkedLexiconEntriesCheckFlag}'`); + useEffect(() => { // debugLog("BookPackagesCheck.useEffect() called with ", JSON.stringify(props)); @@ -99,8 +101,8 @@ function BookPackagesCheck(/*username, languageCode, bookIDs,*/ props) { repoPreloadList = ['TWL', 'LT', 'ST', 'TN2', 'TQ2', 'SN', 'SQ']; else if (dataSet === 'BOTH') repoPreloadList = ['TWL', 'LT', 'ST', 'TN', 'TN2', 'TQ', 'TQ2', 'SN', 'SQ']; - if (haveNT) repoPreloadList.unshift('UGNT'); // These go on the front, so do in reverse order - if (haveOT) repoPreloadList.unshift('UHB'); + if (haveNT) repoPreloadList.unshift('UGNT'); // These go on the front, so do in reverse order + if (haveOT) repoPreloadList.unshift('UHB'); if (!checkingOptions.disableAllLinkFetchingFlag) { repoPreloadList.push('TW'); repoPreloadList.push('TA'); @@ -108,7 +110,7 @@ function BookPackagesCheck(/*username, languageCode, bookIDs,*/ props) { // if (haveNT) repoPreloadList.push('UGL'); // UGNT, ULT, UST, TW all have lexicon links repoPreloadList.push('UHAL'); // UHB/UGNT, ULT, UST, TW all have lexicon links repoPreloadList.push('UGL'); // UHB/UGNT, ULT, UST, TW all have lexicon links -} + } if (bookIDList.includes('OBS')) { let obsRepoPreloadList = ['OBS', 'OBS-TWL', 'OBS-TN2', 'OBS-TQ2', 'OBS-SN2', 'OBS-SQ2']; // for DEFAULT if (dataSet === 'OLD') diff --git a/src/demos/book-packages-check/README.md b/src/demos/book-packages-check/README.md index a50fd1f6..e6c48333 100644 --- a/src/demos/book-packages-check/README.md +++ b/src/demos/book-packages-check/README.md @@ -40,18 +40,19 @@ import BookPackagesCheck from './BookPackagesCheck'; // We can choose the forthcoming new TSV formats or the existing formats // dataSet='OLD' // 'OLD' (Markdown TQ, TSV TN, etc.), 'NEW' (TSV TQ2, TN2, etc.), 'DEFAULT', or 'BOTH' - // Default displayType is 'ErrorsWarnings' - // Alternatives are `SevereMediumLow', 'SingleList' - displayType='SingleList' - // Normally links in files are downloaded to check that they really exist disableAllLinkFetchingFlag='false' // 'true' or 'false' - // The next two are only relevant if the above is 'false' + // The next group are only relevant if the above is 'false' // They control whether the linked articles themselves are also checked or not disableLinkedTAArticlesCheckFlag='false' // 'true' or 'false' disableLinkedTWArticlesCheckFlag='false' // 'true' or 'false' + disableLexiconLinkFetchingFlag='true' // 'true' or 'false' -- there's many thousands of these! disableLinkedLexiconEntriesCheckFlag='true' // 'true' or 'false' -- lexicon entries still have many inconsistencies + // Default displayType is 'ErrorsWarnings' + // Alternatives are `SevereMediumLow', 'SingleList' + displayType='SingleList' + // Lines starting with // are ignored -- you can add or remove // as desired // Specifying maximumSimilarMessages and excerptLength is just to show off options // —those fields are not necessary (or normal) here diff --git a/src/demos/file-check/FileCheck.js b/src/demos/file-check/FileCheck.js index cf522de9..5b3518b2 100644 --- a/src/demos/file-check/FileCheck.js +++ b/src/demos/file-check/FileCheck.js @@ -8,7 +8,7 @@ import { checkFileContents } from './checkFileContents'; import { debugLog, userLog } from '../../core/utilities'; -// const FILE_CHECK_VERSION_STRING = '0.3.3'; +// const FILE_CHECK_VERSION_STRING = '0.3.5'; function FileCheck(props) { @@ -218,6 +218,7 @@ function FileCheck(props) { if (props.disableAllLinkFetchingFlag) checkingOptions.disableAllLinkFetchingFlag = props.disableAllLinkFetchingFlag.toLowerCase() === 'true'; if (props.disableLinkedTAArticlesCheckFlag) checkingOptions.disableLinkedTAArticlesCheckFlag = props.disableLinkedTAArticlesCheckFlag.toLowerCase() === 'true'; if (props.disableLinkedTWArticlesCheckFlag) checkingOptions.disableLinkedTWArticlesCheckFlag = props.disableLinkedTWArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLexiconLinkFetchingFlag) checkingOptions.disableLexiconLinkFetchingFlag = props.disableLexiconLinkFetchingFlag.toLowerCase() === 'true'; if (props.disableLinkedLexiconEntriesCheckFlag) checkingOptions.disableLinkedLexiconEntriesCheckFlag = props.disableLinkedLexiconEntriesCheckFlag.toLowerCase() === 'true'; // {/*
*/} diff --git a/src/demos/file-check/README.md b/src/demos/file-check/README.md index 0afe226a..b262888b 100644 --- a/src/demos/file-check/README.md +++ b/src/demos/file-check/README.md @@ -69,24 +69,24 @@ and then validates the content of one file selected from the repo. // The location field appears in check messages to help the user locate the issue location="as specified in FileCheck demo" - // Specifying excerptLength and cutoffPriorityLevel is just to show off options - // —those fields are not necessary (or normal) here - excerptLength='25' // Default is 20 characters - // cutoffPriorityLevel='200' // Default is to detect all errors/warnings - // Normally links in files are downloaded to check that they really exist // disableAllLinkFetchingFlag='false' // 'true' or 'false' disableAllLinkFetchingFlag='false' // 'true' or 'false' - // The next two are only relevant if the above is 'false' + // The next group are only relevant if the above is 'false' // They control whether the linked articles themselves are also checked or not disableLinkedTAArticlesCheckFlag='false' // 'true' or 'false' disableLinkedTWArticlesCheckFlag='false' // 'true' or 'false' + disableLexiconLinkFetchingFlag='true' // 'true' or 'false' -- there's many thousands of these! disableLinkedLexiconEntriesCheckFlag='true' // 'true' or 'false' -- lexicon entries still have many inconsistencies // Default displayType is 'ErrorsWarnings' // Alternatives are `SevereMediumLow', 'SingleList' displayType='SingleList' + // Specifying excerptLength and cutoffPriorityLevel is just to show off options + // —those fields are not necessary (or normal) here + excerptLength='25' // Default is 20 characters + // cutoffPriorityLevel='200' // Default is to detect all errors/warnings // Specifying maximumSimilarMessages is just to show off options // —those fields are not necessary (or normal) here //maximumSimilarMessages='0' // Default is 3 (0 means don’t suppress any) diff --git a/src/demos/gl-book-package-check/GlBookPackageCheck.js b/src/demos/gl-book-package-check/GlBookPackageCheck.js index 09df160f..3b4b7f84 100644 --- a/src/demos/gl-book-package-check/GlBookPackageCheck.js +++ b/src/demos/gl-book-package-check/GlBookPackageCheck.js @@ -8,7 +8,7 @@ import { checkBookPackage } from '../book-package-check/checkBookPackage'; import { userLog, logicAssert } from '../../core/utilities'; -// const GL_BP_VALIDATOR_VERSION_STRING = '0.1.15'; +// const GL_BP_VALIDATOR_VERSION_STRING = '0.1.16'; function GlBookPackageCheck(/*username, languageCode, bookIDs,*/ props) { @@ -41,6 +41,12 @@ function GlBookPackageCheck(/*username, languageCode, bookIDs,*/ props) { // Or this allows the parameters to be specified as a GlBookPackageCheck property if (props.excerptLength) checkingOptions.excerptLength = ourParseInt(props.excerptLength); if (props.cutoffPriorityLevel) checkingOptions.cutoffPriorityLevel = ourParseInt(props.cutoffPriorityLevel); + if (props.disableAllLinkFetchingFlag) checkingOptions.disableAllLinkFetchingFlag = props.disableAllLinkFetchingFlag.toLowerCase() === 'true'; + if (props.disableLinkedTAArticlesCheckFlag) checkingOptions.disableLinkedTAArticlesCheckFlag = props.disableLinkedTAArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLinkedTWArticlesCheckFlag) checkingOptions.disableLinkedTWArticlesCheckFlag = props.disableLinkedTWArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLexiconLinkFetchingFlag) checkingOptions.disableLexiconLinkFetchingFlag = props.disableLexiconLinkFetchingFlag.toLowerCase() === 'true'; + if (props.disableLinkedLexiconEntriesCheckFlag) checkingOptions.disableLinkedLexiconEntriesCheckFlag = props.disableLinkedLexiconEntriesCheckFlag.toLowerCase() === 'true'; + useEffect(() => { // debugLog("GlBookPackageCheck.useEffect() called with ", JSON.stringify(props)); diff --git a/src/demos/gl-book-package-check/README.md b/src/demos/gl-book-package-check/README.md index 88085ff8..dc2bd03e 100644 --- a/src/demos/gl-book-package-check/README.md +++ b/src/demos/gl-book-package-check/README.md @@ -43,18 +43,19 @@ clearCheckedArticleCache(); // and can also be 'OBS' (for Open Bible Stories) bookID='TIT' - // Default displayType is 'ErrorsWarnings' - // Alternatives are `SevereMediumLow', 'SingleList' - displayType='SingleList' - - // Normally links in files are downloaded to check that they really exist + // Normally links in files are downloaded to check that they really exist disableAllLinkFetchingFlag='false' // 'true' or 'false' - // The next two are only relevant if the above is 'false' + // The next group are only relevant if the above is 'false' // They control whether the linked articles themselves are also checked or not disableLinkedTAArticlesCheckFlag='false' // 'true' or 'false' disableLinkedTWArticlesCheckFlag='false' // 'true' or 'false' + disableLexiconLinkFetchingFlag='true' // 'true' or 'false' -- there's many thousands of these! disableLinkedLexiconEntriesCheckFlag='true' // 'true' or 'false' -- lexicon entries still have many inconsistencies + // Default displayType is 'ErrorsWarnings' + // Alternatives are `SevereMediumLow', 'SingleList' + displayType='SingleList' + // Lines starting with // are ignored -- you can add or remove // as desired // Specifying maximumSimilarMessages and excerptLength is just to show off options // —those fields are not necessary (or normal) here diff --git a/src/demos/repo-check/README.md b/src/demos/repo-check/README.md index 849945ef..2977a634 100644 --- a/src/demos/repo-check/README.md +++ b/src/demos/repo-check/README.md @@ -53,6 +53,16 @@ import RepoCheck from './RepoCheck'; // The location field appears in check messages to help the user locate the issue location="as specified in repo-check/README.md" + // Normally links in files are downloaded to check that they really exist + // disableAllLinkFetchingFlag='false' // 'true' or 'false' + disableAllLinkFetchingFlag='false' // 'true' or 'false' + // The next group are only relevant if the above is 'false' + // They control whether the linked articles themselves are also checked or not + disableLinkedTAArticlesCheckFlag='false' // 'true' or 'false' + disableLinkedTWArticlesCheckFlag='false' // 'true' or 'false' + disableLexiconLinkFetchingFlag='true' // 'true' or 'false' -- there's many thousands of these! + disableLinkedLexiconEntriesCheckFlag='true' // 'true' or 'false' -- lexicon entries still have many inconsistencies + // Default displayType is 'ErrorsWarnings' // Alternatives are `SevereMediumLow', 'SingleList' displayType='SingleList' diff --git a/src/demos/repo-check/RepoCheck.js b/src/demos/repo-check/RepoCheck.js index 48e71ce3..144dfe58 100644 --- a/src/demos/repo-check/RepoCheck.js +++ b/src/demos/repo-check/RepoCheck.js @@ -8,7 +8,7 @@ import { checkRepo } from './checkRepo'; import { logicAssert, userLog, debugLog } from '../../core/utilities'; -// const REPO_VALIDATOR_VERSION_STRING = '0.2.5'; +// const REPO_VALIDATOR_VERSION_STRING = '0.2.6'; function RepoCheck(/*username, languageCode,*/ props) { @@ -45,6 +45,11 @@ function RepoCheck(/*username, languageCode,*/ props) { // Or this allows the parameters to be specified as a RepoCheck property if (props.excerptLength) checkingOptions.excerptLength = ourParseInt(props.excerptLength); if (props.cutoffPriorityLevel) checkingOptions.cutoffPriorityLevel = ourParseInt(props.cutoffPriorityLevel); + if (props.disableAllLinkFetchingFlag) checkingOptions.disableAllLinkFetchingFlag = props.disableAllLinkFetchingFlag.toLowerCase() === 'true'; + if (props.disableLinkedTAArticlesCheckFlag) checkingOptions.disableLinkedTAArticlesCheckFlag = props.disableLinkedTAArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLinkedTWArticlesCheckFlag) checkingOptions.disableLinkedTWArticlesCheckFlag = props.disableLinkedTWArticlesCheckFlag.toLowerCase() === 'true'; + if (props.disableLexiconLinkFetchingFlag) checkingOptions.disableLexiconLinkFetchingFlag = props.disableLexiconLinkFetchingFlag.toLowerCase() === 'true'; + if (props.disableLinkedLexiconEntriesCheckFlag) checkingOptions.disableLinkedLexiconEntriesCheckFlag = props.disableLinkedLexiconEntriesCheckFlag.toLowerCase() === 'true'; const [result, setResultValue] = useState("Waiting-checkRepo");