invenio-app-rdm 13.0.0b3.dev18__py2.py3-none-any.whl → 13.0.0b4.dev0__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- invenio_app_rdm/__init__.py +2 -2
- invenio_app_rdm/fixtures/pages.py +27 -17
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html +1 -1
- {invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/METADATA +13 -6
- {invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/RECORD +9 -9
- {invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/WHEEL +0 -0
- {invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/entry_points.txt +0 -0
- {invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/licenses/LICENSE +0 -0
- {invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/top_level.txt +0 -0
invenio_app_rdm/__init__.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2019-2025 CERN.
|
|
4
4
|
# Copyright (C) 2019-2022 Northwestern University.
|
|
5
|
-
# Copyright (C) 2024 Graz University of Technology.
|
|
5
|
+
# Copyright (C) 2024-2025 Graz University of Technology.
|
|
6
6
|
#
|
|
7
7
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
8
8
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
#
|
|
18
18
|
# See PEP 0440 for details - https://www.python.org/dev/peps/pep-0440
|
|
19
19
|
|
|
20
|
-
__version__ = "13.0.
|
|
20
|
+
__version__ = "13.0.0b4.dev0"
|
|
21
21
|
|
|
22
22
|
__all__ = ("__version__",)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2022-2024 CERN.
|
|
4
|
+
# Copyright (C) 2025 University of Münster.
|
|
4
5
|
#
|
|
5
6
|
# Invenio App RDM is free software; you can redistribute it and/or modify
|
|
6
7
|
# it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -12,6 +13,7 @@ from pathlib import Path
|
|
|
12
13
|
from flask import current_app
|
|
13
14
|
from invenio_access.permissions import system_identity
|
|
14
15
|
from invenio_db import db
|
|
16
|
+
from invenio_i18n.proxies import current_i18n
|
|
15
17
|
from invenio_pages.proxies import current_pages_service
|
|
16
18
|
from invenio_pages.records.errors import PageNotFoundError
|
|
17
19
|
from invenio_rdm_records.fixtures.fixture import FixtureMixin
|
|
@@ -25,6 +27,7 @@ class StaticPages(FixtureMixin):
|
|
|
25
27
|
super().__init__(search_paths, filename)
|
|
26
28
|
self._force = force
|
|
27
29
|
self._pages_path = pages_path
|
|
30
|
+
self._supported_languages = current_i18n.get_languages()
|
|
28
31
|
|
|
29
32
|
def load(self):
|
|
30
33
|
"""Load the static pages."""
|
|
@@ -34,30 +37,37 @@ class StaticPages(FixtureMixin):
|
|
|
34
37
|
super().load()
|
|
35
38
|
db.session.commit()
|
|
36
39
|
|
|
37
|
-
def page_data(self, page):
|
|
40
|
+
def page_data(self, page, lang):
|
|
38
41
|
"""Returns content of template."""
|
|
39
42
|
for path in self._pages_path:
|
|
40
|
-
filepath = path / page
|
|
43
|
+
filepath = Path(str(path / page) + "." + lang)
|
|
41
44
|
|
|
42
45
|
if not filepath.exists():
|
|
43
|
-
|
|
46
|
+
filepath = path / page
|
|
47
|
+
|
|
48
|
+
if not filepath.exists():
|
|
49
|
+
continue
|
|
44
50
|
|
|
45
51
|
return Path(filepath).read_bytes().decode("utf8")
|
|
46
52
|
|
|
47
53
|
def create(self, entry):
|
|
48
54
|
"""Load a single page."""
|
|
49
55
|
url = entry["url"]
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
for lang in self._supported_languages:
|
|
57
|
+
try:
|
|
58
|
+
current_pages_service.read_by_url(system_identity, url, lang[0])
|
|
59
|
+
except PageNotFoundError:
|
|
60
|
+
data = {
|
|
61
|
+
"url": url,
|
|
62
|
+
"title": entry.get("title", ""),
|
|
63
|
+
# content is optional as it can be added later from the administration panel
|
|
64
|
+
"content": (
|
|
65
|
+
self.page_data(entry["template"], lang[0])
|
|
66
|
+
if entry.get("template")
|
|
67
|
+
else ""
|
|
68
|
+
),
|
|
69
|
+
"lang": lang[0],
|
|
70
|
+
"description": entry.get("description", ""),
|
|
71
|
+
"template_name": current_app.config["PAGES_DEFAULT_TEMPLATE"],
|
|
72
|
+
}
|
|
73
|
+
current_pages_service.create(system_identity, data)
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
{% endif %}
|
|
163
163
|
|
|
164
164
|
{% set ident_val = identifier.identifier|default('') %}
|
|
165
|
-
{% set url = ident_val|pid_url %}
|
|
165
|
+
{% set url = ident_val|pid_url(scheme=identifier.scheme) %}
|
|
166
166
|
{% if url %}
|
|
167
167
|
<a href="{{ url }}" target="_blank" title="{{ _('Opens in new tab') }}">
|
|
168
168
|
{{ ident_val }}
|
{invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: invenio-app-rdm
|
|
3
|
-
Version: 13.0.
|
|
3
|
+
Version: 13.0.0b4.dev0
|
|
4
4
|
Summary: Invenio Research Data Management.
|
|
5
5
|
Home-page: https://github.com/inveniosoftware/invenio-app-rdm
|
|
6
6
|
Author: CERN
|
|
@@ -41,11 +41,11 @@ Requires-Dist: invenio-files-rest<4.0.0,>=3.0.0
|
|
|
41
41
|
Requires-Dist: invenio-previewer<4.0.0,>=3.0.0
|
|
42
42
|
Requires-Dist: invenio-records-files<2.0.0,>=1.2.1
|
|
43
43
|
Requires-Dist: invenio-collections<1.0.0,>=0.4.0
|
|
44
|
-
Requires-Dist: invenio-communities<
|
|
45
|
-
Requires-Dist: invenio-rdm-records<
|
|
44
|
+
Requires-Dist: invenio-communities<20.0.0,>=19.0.0
|
|
45
|
+
Requires-Dist: invenio-rdm-records<20.0.0,>=19.0.0
|
|
46
46
|
Requires-Dist: CairoSVG<3.0.0,>=2.5.2
|
|
47
|
-
Requires-Dist: invenio-banners<
|
|
48
|
-
Requires-Dist: invenio-pages<
|
|
47
|
+
Requires-Dist: invenio-banners<6.0.0,>=5.0.0
|
|
48
|
+
Requires-Dist: invenio-pages<8.0.0,>=7.0.0
|
|
49
49
|
Requires-Dist: invenio-audit-logs<1.0.0,>=0.1.0
|
|
50
50
|
Requires-Dist: invenio-sitemap<2.0.0,>=0.1.0
|
|
51
51
|
Provides-Extra: tests
|
|
@@ -93,7 +93,7 @@ https://inveniordm.docs.cern.ch
|
|
|
93
93
|
Copyright (C) 2019-2024 CERN.
|
|
94
94
|
Copyright (C) 2019-2024 Northwestern University.
|
|
95
95
|
Copyright (C) 2021-2024 TU Wien.
|
|
96
|
-
Copyright (C) 2021-
|
|
96
|
+
Copyright (C) 2021-2025 Graz University of Technology.
|
|
97
97
|
|
|
98
98
|
Invenio App RDM is free software; you can redistribute it and/or modify
|
|
99
99
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -101,6 +101,13 @@ https://inveniordm.docs.cern.ch
|
|
|
101
101
|
Changes
|
|
102
102
|
=======
|
|
103
103
|
|
|
104
|
+
|
|
105
|
+
Version v13.0.0b4.dev0 (released 2025-06-04)
|
|
106
|
+
|
|
107
|
+
- setup: bump major dependencies
|
|
108
|
+
- change: add internationalized page creation
|
|
109
|
+
- details: pass scheme on related identifiers url generator
|
|
110
|
+
|
|
104
111
|
Version v13.0.0b3.dev18 (released 2025-06-02)
|
|
105
112
|
|
|
106
113
|
- installation: add collections dependency
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
invenio_app_rdm/__init__.py,sha256=
|
|
1
|
+
invenio_app_rdm/__init__.py,sha256=92efa9LUOJPNjoZ4zR5u3RaBORYye9rhK9PHtQ9Ye4Q,704
|
|
2
2
|
invenio_app_rdm/cli.py,sha256=G6QqNU2W6n6ICtTMnpeKFXIsdorncDmVXwwwsGH5F2k,2746
|
|
3
3
|
invenio_app_rdm/config.py,sha256=F9VyDXDkiSXYtFkixtFUTw4x4AKaYs26HBSuJpJGDdU,51375
|
|
4
4
|
invenio_app_rdm/ext.py,sha256=PkZhATGJDgYqBJQh41NdvBZWR83mgI3Eej6rj10UVJE,5278
|
|
@@ -36,7 +36,7 @@ invenio_app_rdm/communities_ui/views/communities.py,sha256=21QuhN6m1uWjKrDaxzuZe
|
|
|
36
36
|
invenio_app_rdm/communities_ui/views/ui.py,sha256=YZ9yiZazEutwkpR4xEolLe6mUtiTJrxVdCOtQGAILOw,3007
|
|
37
37
|
invenio_app_rdm/fixtures/__init__.py,sha256=XwWy4U66FkpWOEBFfn5EnXfuTKlXnh3HWZNBMDX4Rgk,1512
|
|
38
38
|
invenio_app_rdm/fixtures/oai_sets.py,sha256=ZoS94FNkIsdEJWHihZRYvFAstp3GBrZ0viDml9mQXOI,621
|
|
39
|
-
invenio_app_rdm/fixtures/pages.py,sha256=
|
|
39
|
+
invenio_app_rdm/fixtures/pages.py,sha256=oWGpcjm8lhV2RQth10zV4VZNGe2qknBJtknFJGglkeg,2531
|
|
40
40
|
invenio_app_rdm/fixtures/data/oai_sets.yaml,sha256=NlkL0Y4AH_HxmO0mfwzOlF7ZYAT0D7EV6aOs-_OLl7Q,256
|
|
41
41
|
invenio_app_rdm/fixtures/data/pages.yaml,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
42
|
invenio_app_rdm/fixtures/pages/.gitkeep,sha256=1HVs32jZTGcMkk-dV9RHGPZm5FdydwFIZDW1epflLF8,68
|
|
@@ -78,7 +78,7 @@ invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details
|
|
|
78
78
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/technical_metadata.html,sha256=ptS8h6orgDhFFGXeZBCNBltELy_g9fUtS1bMTzieCPk,676
|
|
79
79
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/versions.html,sha256=fIa8R0blN2rWkrP0K43qvSTye4Gt6-5yo3HN5FLdLTA,935
|
|
80
80
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html,sha256=N53nwtlEZjxweCx70qFJa1s6uL1pPSzWZgk8p1vodE4,4277
|
|
81
|
-
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html,sha256=
|
|
81
|
+
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html,sha256=NBuuIK1E5zQ_44lnNCPq0UdWyWeivp5TLAl-dgO3zDU,10624
|
|
82
82
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/doi.html,sha256=_i79JuwZFbD9JcLvuryyKIY3mLV1SFnGJ_EFHRnTbbg,1510
|
|
83
83
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/files.html,sha256=Xsq_HiM_cTGKgmoE1HAXje8iYe3d0wIJoesk22Xn7vU,8761
|
|
84
84
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/locations.html,sha256=27-KyPqb05pu-yRXHvxCgZWRSi5bFP6xf7XBn91sbeA,1741
|
|
@@ -479,7 +479,7 @@ invenio_app_rdm/users_ui/views/__init__.py,sha256=SMdY2NJj9GICfr3Xuok7qdNYVtA2bJ
|
|
|
479
479
|
invenio_app_rdm/users_ui/views/dashboard.py,sha256=iUn2PrODAwb8ugmMosJKAjPhUzjCiWiAWoXQr9RUFuc,1793
|
|
480
480
|
invenio_app_rdm/users_ui/views/ui.py,sha256=W_eXM8dLVIrNHQB2UEh37C9BYoHauft6RyvcDNFHovA,1742
|
|
481
481
|
invenio_app_rdm/utils/files.py,sha256=CruDyO2gDVadSlWEJD-WHpWHeOQ0juh-Ei9jz3D9yjc,3923
|
|
482
|
-
invenio_app_rdm-13.0.
|
|
482
|
+
invenio_app_rdm-13.0.0b4.dev0.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
|
|
483
483
|
tests/__init__.py,sha256=yKVf0yYRuxmXvyAtLjmfpHGVCsEkZOhs_FojAAM_w-8,244
|
|
484
484
|
tests/conftest.py,sha256=kxOf2CiULBuE9m-ncNv4AtofUVx7iSnvVljlsdI_iCE,11507
|
|
485
485
|
tests/test_tasks.py,sha256=YAf2mryFK6Vfzk2053XLBA2e92vbNCTWqJ6ThWhGOuQ,6645
|
|
@@ -514,8 +514,8 @@ tests/ui/test_robotstxt.py,sha256=Gn0bVPJTDRQH6DO5GGZyD6iMel1UxWRHP5MnGQZ0j18,11
|
|
|
514
514
|
tests/ui/test_signposting_ui.py,sha256=KCSjQlMD2VKlwQCyZYDwYjtVNL35x3u-ZC4ceD5y21w,3847
|
|
515
515
|
tests/ui/test_sitemaps.py,sha256=hPeGbo9v5Q55swr-ZyudAVYm7aJ6lCKV51Vtupk450Q,3180
|
|
516
516
|
tests/ui/test_stats_ui.py,sha256=LHa_0hjvpYvliSk_jknWy-90CO82jVElUfK5Ua_ZmfA,3554
|
|
517
|
-
invenio_app_rdm-13.0.
|
|
518
|
-
invenio_app_rdm-13.0.
|
|
519
|
-
invenio_app_rdm-13.0.
|
|
520
|
-
invenio_app_rdm-13.0.
|
|
521
|
-
invenio_app_rdm-13.0.
|
|
517
|
+
invenio_app_rdm-13.0.0b4.dev0.dist-info/METADATA,sha256=zp8c5Ayz7bd6RxzUlfNqHR7QkOrOkzfAUAldNZlsezY,14817
|
|
518
|
+
invenio_app_rdm-13.0.0b4.dev0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
519
|
+
invenio_app_rdm-13.0.0b4.dev0.dist-info/entry_points.txt,sha256=rfzEeOEdtGy99NlpWzeW-32CoO5XrEpBvlZwLD2Th88,2158
|
|
520
|
+
invenio_app_rdm-13.0.0b4.dev0.dist-info/top_level.txt,sha256=NqTqrntInEAci7EXcNBvouXFMqwyjVQhEI0b7izYRBY,22
|
|
521
|
+
invenio_app_rdm-13.0.0b4.dev0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{invenio_app_rdm-13.0.0b3.dev18.dist-info → invenio_app_rdm-13.0.0b4.dev0.dist-info}/top_level.txt
RENAMED
|
File without changes
|