Skip to content

Conversation

@rerowep
Copy link
Contributor

@rerowep rerowep commented Feb 6, 2026

  • SRU CQL Parser (cql_parser.py):

    • Add 4 new Dublin Core search indexes:
      • dc.note → note.label (MARC 500)
      • dc.tableofcontents → tableOfContents (MARC 505)
      • dc.abstract → summary.label (MARC 520)
      • dc.dissertation → dissertation.label (MARC 502)
    • Add ES_SORT_MODIFIERS for sort order mapping (ascending/descending)
    • Add ES_SORT_INDEX_MAPPINGS for sortable field mappings
    • Add SUPPORTED_RELATION_MODIFIERS and UNSUPPORTED_RELATION_MODIFIERS
    • Fix typos: SERVER_CHOISE → SERVER_CHOICE
  • SRU Explain (explaine.py):

    • Add _ES_MAPPINGS_CACHE module-level dictionary for caching
    • Implement ES mappings caching in init to avoid repeated file I/O
    • Fix unsafe open() call by using context manager
  • SRU Views (views.py):

    • Add EXPLAIN_CACHE_MAX_AGE (3600s) and SEARCH_CACHE_MAX_AGE (60s) constants
    • Add hashlib import for cache key generation
  • MARC 21 Serializer (marc.py):

    • Add authority control numbers ($0) to MARC 650__ and 655__ fields
    • Extract $ref from TOPIC and genreForm entities for authority links

@rerowep rerowep self-assigned this Feb 6, 2026
@github-actions github-actions bot added the f: data About data model, importation, transformation, exportation of data, specific for bibliographic data label Feb 6, 2026
@rerowep rerowep force-pushed the wep-sru branch 2 times, most recently from de2994c to d094c64 Compare February 6, 2026 13:19
@github-actions github-actions bot added the developers From a developer point of view. label Feb 6, 2026
@coveralls
Copy link

coveralls commented Feb 6, 2026

Coverage Status

coverage: 91.863% (-0.2%) from 92.038%
when pulling e8ebf4c on rerowep:wep-sru
into 8bef0bf on rero:staging.

* SRU CQL Parser (cql_parser.py):
  - Add 4 new Dublin Core search indexes:
    - dc.note → note.label (MARC 500)
    - dc.tableofcontents → tableOfContents (MARC 505)
    - dc.abstract → summary.label (MARC 520)
    - dc.dissertation → dissertation.label (MARC 502)
  - Add ES_SORT_MODIFIERS for sort order mapping (ascending/descending)
  - Add ES_SORT_INDEX_MAPPINGS for sortable field mappings
  - Add SUPPORTED_RELATION_MODIFIERS and UNSUPPORTED_RELATION_MODIFIERS
  - Fix typos: SERVER_CHOISE → SERVER_CHOICE

* SRU Explain (explaine.py):
  - Add _ES_MAPPINGS_CACHE module-level dictionary for caching
  - Implement ES mappings caching in __init__ to avoid repeated file I/O
  - Fix unsafe open() call by using context manager

* SRU Views (views.py):
  - Add EXPLAIN_CACHE_MAX_AGE (3600s) and SEARCH_CACHE_MAX_AGE (60s) constants
  - Add hashlib import for cache key generation

* MARC 21 Serializer (marc.py):
  - Add authority control numbers ($0) to MARC 650__ and 655__ fields
  - Extract $ref from TOPIC and genreForm entities for authority links

Co-Authored-By: Peter Weber <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developers From a developer point of view. f: data About data model, importation, transformation, exportation of data, specific for bibliographic data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants