• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rero / rero-ils / 23195483389 / 1
91%
staging: 91%

Build:
DEFAULT BRANCH: staging
Ran 17 Mar 2026 02:19PM UTC
Files 608
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Mar 2026 01:02PM UTC coverage: 91.825% (-0.2%) from 92.057%
23195483389.1

push

github

rerowep
feat(sru): enhance CQL search capabilities and performance

* 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
  - Fix recordPosition element casing (RecordPosition → recordPosition)
  - Add <version>1.1</version> to echoedSearchRetrieveRequest (SRU 1.1 compliance)

* Tests (test_sru_rest.py):
  - Update echoedSearchRetrieveRequest assertion to include zs:version

Co-Authored-By: Peter Weber <peter.weber@rero.ch>

23655 of 25761 relevant lines covered (91.82%)

0.92 hits per line

Source Files on job 23195483389.1
  • Tree
  • List 608
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23195483389
  • 935f06d8 on github
  • Prev Job for on staging (#23191090658.1)
  • Next Job for on staging (#23888611000.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc