-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mirekys/fe-247-implement-reusable-suggestion…
…-api-query-hookcomponent
- Loading branch information
Showing
11 changed files
with
186 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from functools import wraps | ||
|
||
|
||
def response_header_signposting(f): | ||
"""Add signposting link to view's reponse headers. | ||
:param headers: response headers | ||
:type headers: dict | ||
:return: updated response headers | ||
:rtype: dict | ||
""" | ||
|
||
@wraps(f) | ||
def inner(*args, **kwargs): | ||
response = f(*args, **kwargs) | ||
if response.status_code != 200: | ||
return response | ||
if not hasattr(response, "_api_record"): | ||
return response | ||
|
||
signposting_link = response._api_record.links['self'] | ||
response.headers.update( | ||
{ | ||
"Link": f'<{signposting_link}> ; rel="linkset" ; type="application/linkset+json"', # noqa | ||
} | ||
) | ||
|
||
return response | ||
|
||
return inner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
oarepo_ui/theme/assets/semantic-ui/less/oarepo_ui/themes/default/elements/image.overrides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...theme/assets/semantic-ui/translations/oarepo_ui/messages/cs/LC_MESSAGES/translations.json
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PROJECT VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2024-08-26 11:34+0200\n" | ||
"POT-Creation-Date: 2024-09-15 21:51+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -77,6 +77,30 @@ msgstr "" | |
msgid "Edit item" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifierBadge.jinja:7 | ||
msgid "ORCID profile" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifierBadge.jinja:12 | ||
msgid "Scopus ID profile" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifierBadge.jinja:17 | ||
msgid "ROR profile" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifierBadge.jinja:22 | ||
msgid "WOS Researcher ID" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifierBadge.jinja:27 | ||
msgid "DOI profile" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifierBadge.jinja:32 | ||
msgid "GND profile" | ||
msgstr "" | ||
|
||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifiersAndLinks.jinja:3 | ||
#: /home/dusanst/oarepo-ui/oarepo-ui/oarepo_ui/templates/components/IdentifiersAndLinks.jinja:4 | ||
msgid "Identifiers and links" | ||
|
@@ -248,9 +272,6 @@ msgstr "" | |
msgid "Remove field" | ||
msgstr "" | ||
|
||
msgid "Community website" | ||
msgstr "" | ||
|
||
msgid "Community selection" | ||
msgstr "" | ||
|
||
|
@@ -276,16 +297,8 @@ msgstr "" | |
|
||
msgid "" | ||
"Your work will be saved in the following community. Please note that after " | ||
"saving it will not be possible to transfer it to another community." | ||
msgstr "" | ||
|
||
msgid "Community home page" | ||
msgstr "" | ||
|
||
msgid "Change" | ||
msgstr "" | ||
|
||
msgid "Community website." | ||
"saving it will not be possible to transfer it to another community. " | ||
"Click<1>here</1>to change the selection." | ||
msgstr "" | ||
|
||
msgid "Delete" | ||
|