Skip to content

Commit

Permalink
release: v1.5.0
Browse files Browse the repository at this point in the history
* Uses sonar-ui v1.4.2.
* Fixes empty search_query for OAI sets.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
  • Loading branch information
jma committed Feb 7, 2022
1 parent 59f091e commit cb7fad2
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <software@rero.ch>"]
license = "GNU Affero General Public License v3.0"
Expand Down
2 changes: 1 addition & 1 deletion sonar/config_sonar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
5 changes: 4 additions & 1 deletion sonar/modules/organisations/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion sonar/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

from __future__ import absolute_import, print_function

__version__ = '1.4.2'
__version__ = '1.5.0'

0 comments on commit cb7fad2

Please sign in to comment.