From cb7fad20fbe5fba714e7e28bee209421e1a6dcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Mari=C3=A9thoz?= Date: Thu, 3 Feb 2022 16:23:35 +0100 Subject: [PATCH] release: v1.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Uses sonar-ui v1.4.2. * Fixes empty search_query for OAI sets. Co-Authored-by: Johnny MarieĢthoz --- CHANGELOG.md | 48 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- sonar/config_sonar.py | 2 +- sonar/modules/organisations/api.py | 5 +++- sonar/version.py | 2 +- 5 files changed, 55 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79d4234c..824203ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,53 @@ # Changelog +## [v1.5.0](https://github.com/rero/sonar/tree/v1.5.0) (2022-02-03) + +[Full Changelog](https://github.com/rero/sonar/compare/v1.4.2...v1.5.0) + +**Implemented enhancements:** + +- distinguish between thesis supervisor and co-supervisors \[1\] [\#733](https://github.com/rero/sonar/issues/733) +- add popup info to the field `partOf.document.publication.statement` [\#728](https://github.com/rero/sonar/issues/728) +- Allow facet display to be configured for dedicated repositories \[3\] [\#702](https://github.com/rero/sonar/issues/702) +- Make the "Collection" facet hierarchical. [\#545](https://github.com/rero/sonar/issues/545) +- Improve search field in organisation's pages [\#406](https://github.com/rero/sonar/issues/406) +- Highlight search terms in brief view [\#404](https://github.com/rero/sonar/issues/404) + +**Fixed bugs:** + +- Documents in some languages produce a server error [\#748](https://github.com/rero/sonar/issues/748) +- Files in masked records: access rights should be limited to those of its record [\#746](https://github.com/rero/sonar/issues/746) +- The public and professional interfaces switch language unexpectedly [\#741](https://github.com/rero/sonar/issues/741) +- Various problems in the document editor [\#740](https://github.com/rero/sonar/issues/740) +- Problems in the document editor: impossible to save [\#739](https://github.com/rero/sonar/issues/739) +- Bugs in the help editor: impossible to upload a file, impossible to preview a page in the editor \[0\] [\#712](https://github.com/rero/sonar/issues/712) +- Help contents should not redirect to SONAR global for dedicated repositories \[3\] [\#709](https://github.com/rero/sonar/issues/709) + +**Closed issues:** + +- Improve OAI sets creation [\#504](https://github.com/rero/sonar/issues/504) +- Manage controlled affiliations in backend in organisation resource. [\#417](https://github.com/rero/sonar/issues/417) +- In the deposit form, automatic control that the affiliations correspond to organisation. [\#416](https://github.com/rero/sonar/issues/416) +- Login via an organisation with a switch edu-ID account. [\#413](https://github.com/rero/sonar/issues/413) +- Explain to user how to join an organisation in welcome email. [\#410](https://github.com/rero/sonar/issues/410) +- Extract full-text from other types than PDF. [\#408](https://github.com/rero/sonar/issues/408) +- Manage file access with switch AAI scopes [\#405](https://github.com/rero/sonar/issues/405) +- Email template [\#252](https://github.com/rero/sonar/issues/252) + +**Merged pull requests:** + +- safety: Add pillow exclusions [\#762](https://github.com/rero/sonar/pull/762) ([rerowep](https://github.com/rerowep)) +- security: Add config: [\#761](https://github.com/rero/sonar/pull/761) ([rerowep](https://github.com/rerowep)) +- oaiserver: fix sets [\#759](https://github.com/rero/sonar/pull/759) ([rerowep](https://github.com/rerowep)) +- editor: adjust some elements on document jsonschema [\#756](https://github.com/rero/sonar/pull/756) ([Garfield-fr](https://github.com/Garfield-fr)) +- organisation: custom facet implementation for dedicated customers [\#755](https://github.com/rero/sonar/pull/755) ([Garfield-fr](https://github.com/Garfield-fr)) +- files: fix files permissions [\#754](https://github.com/rero/sonar/pull/754) ([jma](https://github.com/jma)) +- tests: fix hardcoded embargo date [\#750](https://github.com/rero/sonar/pull/750) ([jma](https://github.com/jma)) +- languages: add some mapping alpha-3 to alpha-2 [\#749](https://github.com/rero/sonar/pull/749) ([Garfield-fr](https://github.com/Garfield-fr)) +- help: display with the organization's code [\#747](https://github.com/rero/sonar/pull/747) ([Garfield-fr](https://github.com/Garfield-fr)) +- schema: distinguish supervisor co-supervisors [\#745](https://github.com/rero/sonar/pull/745) ([rerowep](https://github.com/rerowep)) +- rerodoc: redirection to the correct views [\#743](https://github.com/rero/sonar/pull/743) ([jma](https://github.com/jma)) + ## [v1.4.2](https://github.com/rero/sonar/tree/v1.4.2) (2021-12-20) [Full Changelog](https://github.com/rero/sonar/compare/v1.4.1...v1.4.2) diff --git a/pyproject.toml b/pyproject.toml index 83e868c0..67fade13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "SONAR" -version = "1.4.2" +version = "1.5.0" description = "SONAR is a future archive of scholarly publications. It intends to collect, promote and preserve the publications of authors affiliated with Swiss public research institutions." authors = ["RERO "] license = "GNU Affero General Public License v3.0" diff --git a/sonar/config_sonar.py b/sonar/config_sonar.py index 3a152450..c0a0013e 100644 --- a/sonar/config_sonar.py +++ b/sonar/config_sonar.py @@ -519,7 +519,7 @@ """Disable permission checks during API calls. Useful when API is test from command line or progams like postman.""" -SONAR_APP_UI_VERSION = '1.4.1' +SONAR_APP_UI_VERSION = '1.4.2' SONAR_APP_DEFAULT_ORGANISATION = 'global' """Default organisation key.""" diff --git a/sonar/modules/organisations/api.py b/sonar/modules/organisations/api.py index ae9b1ae6..961d4056 100644 --- a/sonar/modules/organisations/api.py +++ b/sonar/modules/organisations/api.py @@ -98,7 +98,10 @@ def create(cls, data, id_=None, dbcommit=False, with_bucket=True, **kwargs): """Create organisation record.""" # Create OAI set - oaiset = OAISet(spec=data['code'], name=data['name']) + code = data['code'] + oaiset = OAISet( + spec=code, name=data['name'], + search_pattern=f'organisation.code:"{code}"') db.session.add(oaiset) return super(OrganisationRecord, cls).create(data, diff --git a/sonar/version.py b/sonar/version.py index 4c12a6c6..8605ce99 100644 --- a/sonar/version.py +++ b/sonar/version.py @@ -23,4 +23,4 @@ from __future__ import absolute_import, print_function -__version__ = '1.4.2' +__version__ = '1.5.0'