From 833705631a3721b7073840b53ff2f51f65a2672d Mon Sep 17 00:00:00 2001 From: PascalRepond Date: Wed, 12 Jun 2024 11:40:16 +0200 Subject: [PATCH] release: v0.7.0 Co-Authored-by: Pascal Repond --- CHANGELOG.md | 8 ++++++++ README.rst | 17 ++++++++++++----- pyproject.toml | 2 +- rero_ebooks/dojson/json/model.py | 4 ++-- rero_ebooks/version.py | 2 +- 5 files changed, 24 insertions(+), 9 deletions(-) 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/README.rst b/README.rst index d714da4..295443d 100644 --- a/README.rst +++ b/README.rst @@ -19,14 +19,21 @@ RERO Ebooks ============= -.. image:: https://img.shields.io/travis/rero/rero-ebooks.svg - :target: https://travis-ci.org/rero/rero-ebooks +.. image:: https://github.com/rero/rero-ebooks/workflows/build/badge.svg + :alt: Github actions status + :target: https://github.com/rero/rero-ebooks/actions?query=workflow%3Abuild .. image:: https://img.shields.io/coveralls/rero/rero-ebooks.svg - :target: https://coveralls.io/r/rero/rero-ebooks + :alt: Coveralls + :target: https://coveralls.io/rero/rero-ebooks -.. image:: https://img.shields.io/github/license/rero/rero-ebooks.svg - :target: https://github.com/rero/rero-ebooks/blob/master/LICENSE +.. image:: https://img.shields.io/github/tag/rero/rero-ebooks.svg + :alt: Release Number + :target: https://github.com/rero/rero-ebooks/releases/latest + +.. image:: https://img.shields.io/badge/License-AGPL%20v3-blue.svg + :alt: License + :target: http://www.gnu.org/licenses/agpl-3.0.html Ebooks repository for RERO. 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"