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

rero / sonar / 30921952003
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: rep-cache
DEFAULT BRANCH: master
Ran 04 Aug 2026 03:13PM UTC
Jobs 1
Files 287
Run time 1min
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

04 Aug 2026 03:01PM UTC coverage: 94.689% (+0.2%) from 94.528%
30921952003

push

github

Garfield-fr
feat(documents): add BibTeX, RIS serializers and export

* Add BibTeX and RIS serializers with COAR type mapping, shared
  metadata extraction helpers (year, dissertation, identifiers,
  permalink), and LaTeX escaping for BibTeX free-text fields.
* Register bibtex/ris/dc/json_export via content negotiation
  (record_serializers/search_serializers) in config, reusing the
  existing GET /documents/<pid_value>?format=<alias> endpoint
  instead of a dedicated export route.
* record_responsify/search_responsify accept an optional extension
  and set a Content-Disposition attachment filename
  ("{pid}-{revision}{extension}" for a single record,
  "documents-export-{date}-{time}{extension}" for search results)
  without affecting the plain application/json response the UI
  consumes on the same endpoint.
* Extract get_document_serializers() (label, icon per format,
  excluding json/rero) into documents/utils.py so it can be shared
  between logged_user() and the document detail view.
* Add an export menu to the document detail page (_export.html),
  listing the downloadable formats with their icon and label.
* Add unit and API tests for the serializers, helpers and
  Content-Disposition behavior.
* Closes #401.

Co-Authored-By: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>

266 of 276 new or added lines in 7 files covered. (96.38%)

7595 of 8021 relevant lines covered (94.69%)

0.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
95.0
sonar/modules/documents/serializers/bibtex.py
4
93.85
sonar/modules/documents/serializers/ris.py
2
94.12
sonar/modules/documents/serializers/response.py
Jobs
ID Job ID Ran Files Coverage
1 30921952003.1 04 Aug 2026 03:13PM UTC 287
94.69
GitHub Action Run
Source Files on build 30921952003
  • Tree
  • List 287
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30921952003
  • 7ab632e0 on github
  • Prev Build on staging (#30919301905)
  • Next Build on staging (#30979734691)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc