diff --git a/CHANGELOG.md b/CHANGELOG.md index a274d9f..7eaade0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v0.7.0](https://github.com/rero/rero-ebooks/tree/v0.7.0) (2024-06-12) + +[Full Changelog](https://github.com/rero/rero-ebooks/compare/v0.6.2...v0.7.0) + +**Fixes:** +* dependencies: fix security issues [\#78](https://github.com/rero/rero-ebooks/pull/78) (by @rerowep) +* bump dependencies, use black for tests, add 008 field [\#83](https://github.com/rero/rero-ebooks/pull/83) (by @rerowep) + ## [v0.6.2](https://github.com/rero/rero-ebooks/tree/v0.6.2) (2023-11-27) [Full Changelog](https://github.com/rero/rero-ebooks/compare/v0.6.1...v0.6.2) diff --git a/pyproject.toml b/pyproject.toml index dfa7ccd..7120bbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "rero-ebooks" -version = "0.6.2" +version = "0.7.0" description = "Ebooks repository for RERO." authors = ["RERO "] license = "GNU Affero General Public License v3.0" diff --git a/rero_ebooks/dojson/json/model.py b/rero_ebooks/dojson/json/model.py index c9d2006..f522758 100644 --- a/rero_ebooks/dojson/json/model.py +++ b/rero_ebooks/dojson/json/model.py @@ -117,8 +117,8 @@ def is_fiction(self, key, value): Fiction is set in Marc21 008 33. """ if value: - self["fixed_length_data_elements"] = GENERIC_008 - self["fixed_length_data_elements"][33] = 1 + fixed_data = f'{GENERIC_008[:33]}1{GENERIC_008[34:]}' + self["fixed_length_data_elements"] = fixed_data @cantook_json.over("language_code", "languages|translated_from") diff --git a/rero_ebooks/version.py b/rero_ebooks/version.py index 20be63d..0250410 100644 --- a/rero_ebooks/version.py +++ b/rero_ebooks/version.py @@ -23,4 +23,4 @@ from __future__ import absolute_import, print_function -__version__ = "0.6.2" +__version__ = "0.7.0"