Skip to content

Commit 0d533be

Browse files
authored
Update matching (#240) and merge (#232, #244) & validate AlephSeq (#242) & Dependency update (#230) (#231)
* Dependencies (#230) ** Bump @natlibfi/marc-record-serializers from 10.0.6 to 10.0.7 (#229) ** Bump @babel/runtime from 7.22.6 to 7.22.10 (#228) * Update merge (MET-456) (#232) ** Update merge-recucers: v2.0.13-alpha.1 *** Keep f264 $a from non-preferred record in more cases where it's missing from preferred record *** NatLibFi/melinda-marc-record-merge-reducers-js#71 * Update match & Dependency update (#240) ** Update matching: NatLibFi/melinda-record-matching-js#75 *** Use word search without wildcards for short titles (<= 5 characters) in candidateSearch *** Add publisher search if search terms for both author and title are short (<= 5 characters) ** Bump @natlibfi/melinda-marc-record-merge-reducers from 2.0.12 to 2.0.14 (#239) ** Bump @natlibfi/marc-record-serializers from 10.0.7 to 10.1.0 (#238) ** Bump @natlibfi/marc-record-validators-melinda from 10.9.3 to 10.11.1 (#237) * Validate records as AlephSequential (#242) ** Validate records as valid alephSeq *** Error record if record that would be imported is not valid as AlephSequential ie. if it **** contains ASCII control characters (esp. newlines) in field/subfield values **** is too long (>50000) to be a AlephSequentail record * Update merge2 (#244) * Update merge3 (#251) * Update deps * Update merge & validators * Update matchValidator * 3.3.16-alpha.8 * Add inputRecordLog and Dependency update (#255) (#254) ** Add optional feature to log input records *** Use environment variable LOG_INPUT_RECORD (defaults to false) to turn this on * Dependency update (#255) ** Bump @natlibfi/melinda-marc-record-merge-reducers from 2.0.12 to 2.0.14 (#239) ** Bump @natlibfi/marc-record-serializers from 10.0.7 to 10.1.0 (#238) ** Bump @natlibfi/marc-record-validators-melinda from 10.9.3 to 10.11.1 (#237) ** Bump @babel/runtime from 7.22.10 to 7.22.15 (#253) ** Bump actions/checkout from 3 to 4 (#252) ** Bump @natlibfi/melinda-record-matching (#249) ** Bump @natlibfi/melinda-rest-api-commons from 4.0.8-alpha.3 to 4.0.11 (#247) ** Bump mongodb from 4.16.0 to 4.17.1 (#248) * Fix blobSequence in logs (#260) ** Create blobSequence to prio as number * Use validatorOptions.logOptions * Log result record * Add logOptions to README.md * Update deps * 3.4.1-alpha.4
1 parent 3ed3555 commit 0d533be

File tree

10 files changed

+1577
-1351
lines changed

10 files changed

+1577
-1351
lines changed

.github/workflows/melinda-node-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout the code
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
- name: Use Node.js ${{ matrix.node-version }}
2121
uses: actions/setup-node@v3
2222
with:
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
- uses: mikaelvesavuori/[email protected]
3939
with:
4040
exclude_pattern: /^@natlibfi/
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
- name: Checkout the code
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
- name: nodejsscan scan
5050
id: njsscan
5151
uses: ajinabraham/njsscan-action@master
@@ -59,7 +59,7 @@ jobs:
5959
if: github.actor!= 'dependabot[bot]' # ignore the pull request which comes from user dependabot, because it does not access to secrets
6060

6161
steps:
62-
- uses: actions/checkout@v3
62+
- uses: actions/checkout@v4
6363
- name: Docker meta
6464
id: meta
6565
uses: docker/metadata-action@v4

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ While service is in operation:
2626
| VALIDATOR_MATCH_PACKAGES | No | Defaults to `IDS,STANDARD_IDS,CONTENT`. |
2727
| STOP_WHEN_FOUND | No | A numeric presentation of boolean option to stop iterating matchers when a match is found. Defaults to `true`. |
2828
| ACCEPT_ZERO_WITH_MAX_CANDIDATES | No | A numeric presentation of boolean option to accept zero matches result without erroring when matchStatus is false and stopReason is maxCandidates. Defaults to `false`. |
29+
| LOG_NO_MATCHES | No | A numeric presentation of boolean option to keep MATCH_LOG logItems also when record did not find any matches. Defaults to `false`. |
30+
| LOG_INPUT_RECORD | No | A numeric presentation of boolean option to log incoming record in INPUT_RECORD_LOG logItem. Defaults to `false`. Note: logItems are not kept for records that end up with any of SKIPPED -recordStatuses.|
31+
| LOG_RESULT_RECORD | No | A numeric presentation of boolean option to log result record (that is/would be saved to database) in RESULT_RECORD_LOG logItem. Defaults to `false`. Note: logItems are not kept for records that end up with any of SKIPPED -recordStatuses. |
32+
33+
34+
2935

3036

3137
### Mongo

0 commit comments

Comments
 (0)