@natlibfi/melinda-record-matching 1.0.10 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/candidate-search/candidate-search-utils.js +3 -2
  2. package/dist/candidate-search/candidate-search-utils.js.map +1 -1
  3. package/dist/candidate-search/index.js +3 -3
  4. package/dist/candidate-search/index.js.map +1 -1
  5. package/dist/candidate-search/index.spec.js +2 -2
  6. package/dist/candidate-search/index.spec.js.map +1 -1
  7. package/dist/candidate-search/query-list/bib.js +8 -4
  8. package/dist/candidate-search/query-list/bib.js.map +1 -1
  9. package/dist/candidate-search/query-list/bib.spec.js +2 -2
  10. package/dist/candidate-search/query-list/bib.spec.js.map +1 -1
  11. package/dist/candidate-search/query-list/index.js +3 -3
  12. package/dist/candidate-search/query-list/index.js.map +1 -1
  13. package/dist/index.js +3 -3
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.spec.js +2 -2
  16. package/dist/index.spec.js.map +1 -1
  17. package/dist/match-detection/features/bib/all-source-ids.js.map +1 -1
  18. package/dist/match-detection/features/bib/authors.js.map +1 -1
  19. package/dist/match-detection/features/bib/bibliographic-level.js.map +1 -1
  20. package/dist/match-detection/features/bib/host-component.js.map +1 -1
  21. package/dist/match-detection/features/bib/index.js +24 -24
  22. package/dist/match-detection/features/bib/index.spec.js +2 -2
  23. package/dist/match-detection/features/bib/index.spec.js.map +1 -1
  24. package/dist/match-detection/features/bib/isbn.js.map +1 -1
  25. package/dist/match-detection/features/bib/issn.js.map +1 -1
  26. package/dist/match-detection/features/bib/language.js.map +1 -1
  27. package/dist/match-detection/features/bib/melinda-id.js.map +1 -1
  28. package/dist/match-detection/features/bib/melinda-identifier-factory.js.map +1 -1
  29. package/dist/match-detection/features/bib/other-standard-identifier.js.map +1 -1
  30. package/dist/match-detection/features/bib/publication-time.js.map +1 -1
  31. package/dist/match-detection/features/bib/record-type.js.map +1 -1
  32. package/dist/match-detection/features/bib/standard-identifier-factory.js.map +1 -1
  33. package/dist/match-detection/features/bib/title.js.map +1 -1
  34. package/dist/match-detection/features/index.js +2 -2
  35. package/dist/match-detection/index.js +2 -2
  36. package/dist/match-detection/index.js.map +1 -1
  37. package/dist/match-detection/index.spec.js +2 -2
  38. package/dist/match-detection/index.spec.js.map +1 -1
  39. package/dist/matching-utils.js +1 -1
  40. package/dist/matching-utils.js.map +1 -1
  41. package/package.json +26 -29
  42. package/src/candidate-search/candidate-search-utils.js +3 -1
  43. package/src/candidate-search/query-list/bib.js +5 -0
@@ -39,12 +39,15 @@ export function bibSourceIds(record) {
39
39
  SID__ $c 123457 $b helka
40
40
  SID__ $c (ANDL100020)1077305 $b sata
41
41
  SID__ $c VER999999 $ FI-KV
42
+ SID__ $c /10024/508126 $ REPO_THESEUS
42
43
 
43
44
  In melinda.sourceid -index case is kept, sourceprefixes in brackets and hyphens are normalized away:
45
+ Note: slashes are not normalized away, but a SRU-search-string including slashes needs to be quoted
44
46
 
45
47
  1234567helka
46
48
  1077305sata
47
49
  VER999999FIKV
50
+ /10024/508126REPO_THESEUS
48
51
 
49
52
  Note: All Melinda records that have a matching records in a local db do NOT have SID for that local records,
50
53
  existence of a SID field depends on how the record has been added to Melinda and how it has been handled
@@ -56,6 +59,8 @@ export function bibSourceIds(record) {
56
59
 
57
60
  const debug = createDebugLogger('@natlibfi/melinda-record-matching:candidate-search:query:source-ids');
58
61
  const debugData = debug.extend('data');
62
+ //const debugInfo = debug.extend('info');
63
+
59
64
  debug(`Creating queries for sourceid's`);
60
65
 
61
66
  const fSids = record.get('SID');