invenio-vocabularies 3.3.0__py2.py3-none-any.whl → 3.4.1__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.

Potentially problematic release.


This version of invenio-vocabularies might be problematic. Click here for more details.

@@ -10,6 +10,6 @@
10
10
 
11
11
  from .ext import InvenioVocabularies
12
12
 
13
- __version__ = "3.3.0"
13
+ __version__ = "3.4.1"
14
14
 
15
15
  __all__ = ("__version__", "InvenioVocabularies")
@@ -103,7 +103,7 @@ DATASTREAM_CONFIG = {
103
103
  {
104
104
  "type": "tar",
105
105
  "args": {
106
- "regex": ".json.gz$",
106
+ "regex": "\\.json.gz$",
107
107
  "mode": "r",
108
108
  },
109
109
  },
@@ -96,7 +96,7 @@ DATASTREAM_CONFIG = {
96
96
  {
97
97
  "type": "zip",
98
98
  "args": {
99
- "regex": ".json$",
99
+ "regex": "(?<!_schema_v2)\\.json$",
100
100
  },
101
101
  },
102
102
  {"type": "json"},
@@ -109,7 +109,7 @@ DATASTREAM_CONFIG = {
109
109
  {
110
110
  "type": "tar",
111
111
  "args": {
112
- "regex": ".xml$",
112
+ "regex": "\\.xml$",
113
113
  },
114
114
  },
115
115
  {"type": "xml"},
@@ -65,6 +65,7 @@ SUBJECT_FIELDS_UI = [
65
65
  clearable=True,
66
66
  allowAdditions=False,
67
67
  ),
68
+ template="invenio_vocabularies/subjects.html",
68
69
  )
69
70
  ],
70
71
  }
@@ -0,0 +1,23 @@
1
+ {#
2
+ Copyright (C) 2024-2024 CERN.
3
+
4
+ Invenio RDM Records is free software; you can redistribute it and/or modify
5
+ it under the terms of the MIT License; see LICENSE file for more details.
6
+ #}
7
+
8
+ {%- set subjects = field_value -%}
9
+ {% if subjects %}
10
+ <ul class="ui horizontal list no-bullets subjects">
11
+ {%- for subject in subjects %}
12
+ <li class="item">
13
+ {%- set q = 'metadata.subjects.subject:"' + subject.subject + '"' %}
14
+ <a href="{{ url_for('invenio_search_ui.search', q=q) }}"
15
+ class="subject"
16
+ title="{{ _('Search results for ') + subject.subject }}"
17
+ >
18
+ {{ subject.subject }}
19
+ </a>
20
+ </li>
21
+ {%- endfor %}
22
+ </ul>
23
+ {% endif %}
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2020-2022 CERN.
3
+ # Copyright (C) 2020-2024 CERN.
4
4
  # Copyright (C) 2023 Graz University of Technology.
5
5
  #
6
6
  # Invenio-Vocabularies is free software; you can redistribute it and/or
@@ -11,7 +11,9 @@
11
11
 
12
12
  from flask import Blueprint
13
13
 
14
- blueprint = Blueprint("invenio_vocabularies_ext", __name__)
14
+ blueprint = Blueprint(
15
+ "invenio_vocabularies_ext", __name__, template_folder="./templates"
16
+ )
15
17
 
16
18
 
17
19
  def create_blueprint_from_app(app):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invenio-vocabularies
3
- Version: 3.3.0
3
+ Version: 3.4.1
4
4
  Summary: "Invenio module for managing vocabularies."
5
5
  Home-page: https://github.com/inveniosoftware/invenio-vocabularies
6
6
  Author: CERN
@@ -74,6 +74,15 @@ https://invenio-vocabularies.readthedocs.io/
74
74
  Changes
75
75
  =======
76
76
 
77
+ Version 3.4.1 (released 2024-04-19)
78
+
79
+ - funders: exclude ROR schema v2 json (#309)
80
+
81
+
82
+ Version 3.4.0 (released 2024-04-19)
83
+
84
+ - templates: add subject fields UI template (#303)
85
+
77
86
  Version 3.3.0 (released 2024-04-16)
78
87
 
79
88
  - assets: add overridable awards and funding
@@ -1,10 +1,10 @@
1
- invenio_vocabularies/__init__.py,sha256=tQFCf91BM4aB3XPviHFG0TfPMsFrW4DQIJ4RMO2dIkA,377
1
+ invenio_vocabularies/__init__.py,sha256=XQVii6AE-S9xrNhp1WfDG0rzm6QbbjbisAMnQix5Qt4,377
2
2
  invenio_vocabularies/cli.py,sha256=Ymuy0l846eJXIA4UybunSqq7P9m2N0OdTtj6nEgd1-0,6355
3
3
  invenio_vocabularies/config.py,sha256=mLypkeVrPKZPtokvHSF-_Q7YcV4sCVONiyhGhu-34hI,3772
4
4
  invenio_vocabularies/ext.py,sha256=ukuvkhkLPBy2AITFLojLYTIUlP2qcbHNkt6ES8i1TwY,5310
5
5
  invenio_vocabularies/fixtures.py,sha256=nNWwH04HFASjfj1oy5kMdcQGKmVjzUuA5wSw-ER1QAg,1585
6
6
  invenio_vocabularies/proxies.py,sha256=H_bcJXPTwGbErx-pF89ChayOZcXJXJGZW7O0xkJkYQ4,693
7
- invenio_vocabularies/views.py,sha256=fo71zH5c-YkkNq0mBXqVdXQ52xieku1gVQEyp3ww-dM,1344
7
+ invenio_vocabularies/views.py,sha256=JCUA6yzF_160U1oAFUIgGt4MigsLQ9MiHOInHBQw98M,1381
8
8
  invenio_vocabularies/webpack.py,sha256=aLRm0ut3rXPb8D87pVA9mO_ODq7WOSZdsJQyU4iMLoI,1891
9
9
  invenio_vocabularies/alembic/17c703ce1eb7_create_names_table.py,sha256=2QGs0Ofi6yd93VzIBqghNi47hrZtuLf0DylKyvVzskI,1572
10
10
  invenio_vocabularies/alembic/4a9a4fd235f8_create_vocabulary_schemes.py,sha256=Ywtp8qOFcI3PxUXemHdvy_VwdcUVtMFV1sFgNAmYrms,1054
@@ -60,7 +60,7 @@ invenio_vocabularies/contrib/awards/__init__.py,sha256=KwCmwFalz-3pDs9iTa5TKUidB
60
60
  invenio_vocabularies/contrib/awards/api.py,sha256=OXukE7PLXs45BTtqVrhvGBNqLmQaI-CgXmHTCi36LZk,303
61
61
  invenio_vocabularies/contrib/awards/awards.py,sha256=N-BNE2ffUu-IlfKFBjMjfYqxL0vmpO8YMPe4q4e-rTo,2695
62
62
  invenio_vocabularies/contrib/awards/config.py,sha256=PlDHabkWDUzwa1Fvk_U2hG83kQYBqM1IyChg8Yg_VlY,1630
63
- invenio_vocabularies/contrib/awards/datastreams.py,sha256=lJDokc72MA6s5YvfwExBVNdqVnnIVajFzagB9YitQxk,3847
63
+ invenio_vocabularies/contrib/awards/datastreams.py,sha256=wsr-H2qJ2TjFBGoHDx1eLkoDh1DcH9UOAKzXgMdtUpg,3849
64
64
  invenio_vocabularies/contrib/awards/models.py,sha256=mM-kSNf7kDH3oIbV8epxxbUi7muYqi4JreXxgWXlVzw,318
65
65
  invenio_vocabularies/contrib/awards/resources.py,sha256=_9YTqbhz8axFXGhG5y4WyjE27p9n-7e3c6HoBRditPA,411
66
66
  invenio_vocabularies/contrib/awards/schema.py,sha256=bg-09nvhEn-ipzaztK1iNbKc59saAM8v8hAW9zpKDAc,2786
@@ -78,7 +78,7 @@ invenio_vocabularies/contrib/awards/mappings/v7/awards/award-v1.0.0.json,sha256=
78
78
  invenio_vocabularies/contrib/funders/__init__.py,sha256=YxFXBDnT7NM8rFwxT_Ge3xXR2n17EM0alknQq7r_Bt8,478
79
79
  invenio_vocabularies/contrib/funders/api.py,sha256=QKGGeSnPHSoBfucvpaVruXT_txYidofZ080G3IxFkIo,306
80
80
  invenio_vocabularies/contrib/funders/config.py,sha256=-GncyorRv86fbM1WXi-w7X9QW7GqJz_uqs75Icx5Y3w,1704
81
- invenio_vocabularies/contrib/funders/datastreams.py,sha256=4DWM5K1CQlS_X61ftnFtIl68QFyspitZHPbvWSRSn7E,3525
81
+ invenio_vocabularies/contrib/funders/datastreams.py,sha256=3jDLhRD_tAjvgwY_kEQMi4GLROKycgq3wURnZRJLmP0,3542
82
82
  invenio_vocabularies/contrib/funders/facets.py,sha256=a068TVtt74Ncu0latb177LFK8EdnpbMOWecAKozA04M,1245
83
83
  invenio_vocabularies/contrib/funders/funders.py,sha256=nHqUoyRRW9oruN-ghmwzb9QIz_jyBgxNUpk41yvcso8,2292
84
84
  invenio_vocabularies/contrib/funders/models.py,sha256=RAU-_YVOUNVCn03_XGJ2czcVwXTaZPk5w7X_bMAgMOk,314
@@ -98,7 +98,7 @@ invenio_vocabularies/contrib/funders/mappings/v7/funders/funder-v1.0.0.json,sha2
98
98
  invenio_vocabularies/contrib/names/__init__.py,sha256=DBfsM7JMETZGaV5QmXEwE7zhCaAXvc2SZN6uXnW_V-c,451
99
99
  invenio_vocabularies/contrib/names/api.py,sha256=sEPn_jFX3gyoxgbdEUSIvOoPCUI8pocI6qCZO6mzCgQ,300
100
100
  invenio_vocabularies/contrib/names/config.py,sha256=hKDTEEBYGYOY6sMOArZjjkq2HJ6MJtRZp1geGLAFgRg,1735
101
- invenio_vocabularies/contrib/names/datastreams.py,sha256=qcNgCLT57M99IL2yZxyfEIdi5AbkBGOMmSoE0e4vEJM,3661
101
+ invenio_vocabularies/contrib/names/datastreams.py,sha256=iyXhm5dYOjjx5oTqkso1ymRnJWyjG3MsGb-j2Dfc5KY,3663
102
102
  invenio_vocabularies/contrib/names/models.py,sha256=SYdtDDG-y5Wq_d06YhiVO5n8gfxPW_mx-tECsIcv5H8,308
103
103
  invenio_vocabularies/contrib/names/names.py,sha256=fRNZW3yTmIE3FBB8zAcTdt1CXH6O8p6Ggz_7k9e8QTk,1987
104
104
  invenio_vocabularies/contrib/names/resources.py,sha256=Z8XqLKfFKE69zdTTvcTDmpEZ6wqiqjIH5tp0LzXTSwQ,1588
@@ -169,8 +169,9 @@ invenio_vocabularies/services/schema.py,sha256=ShnnH_ILHZGxE546J6Jsdwdeix6jLubSR
169
169
  invenio_vocabularies/services/service.py,sha256=W3wtKOttQjOr8Nkaus6m3KRuCMBqBsWUCAVv7Dj8bvM,7392
170
170
  invenio_vocabularies/services/tasks.py,sha256=zTAWdnI5celWBKrF986wQzCmkOTGOwTghtN7U5FMZ5Q,783
171
171
  invenio_vocabularies/services/custom_fields/__init__.py,sha256=QgvSsn-S1xLzbZ57pjjGTt5oI3HqzXHVjwGTtuPgzN8,421
172
- invenio_vocabularies/services/custom_fields/subject.py,sha256=BQxvfZLqGpv3uSHCfzaCBjceZnynHeXNS4lDcYi8S-k,2171
172
+ invenio_vocabularies/services/custom_fields/subject.py,sha256=k-qXbCjXPTk-Xo_W5sojFpQbkntv50odROiNyJHMzL8,2234
173
173
  invenio_vocabularies/services/custom_fields/vocabulary.py,sha256=eCvqrNloMMCCvqR49IQwzk2p4xapx5_bmQhd6ByJZFM,3019
174
+ invenio_vocabularies/templates/semantic-ui/invenio_vocabularies/subjects.html,sha256=h9syHkwZ6ltgjWw_0M5UoR6h6Re2imJ7uQ6M6peOyhk,686
174
175
  invenio_vocabularies/translations/messages.pot,sha256=IzTTWdWknzmKKtl1UNUxPOwHjfBB_iidm_eeEY2kV-M,3907
175
176
  invenio_vocabularies/translations/af/LC_MESSAGES/messages.mo,sha256=HokSco2JpukLl_j07yQ2wjKmUf8_Zzru6KQtYdyLtEo,523
176
177
  invenio_vocabularies/translations/af/LC_MESSAGES/messages.po,sha256=XXoiqCtGELaxl6hxRj31D3DCdgBUrz0oD3MYJUpcklM,3976
@@ -266,10 +267,10 @@ invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.mo,sha256=g1I5aNO8r
266
267
  invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.po,sha256=vg8qC8ofpAdJ3mQz7mWM1ylKDpiNWXFs7rlMdSPkgKk,4629
267
268
  invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.mo,sha256=cqSm8NtMAwrP9O6qbmtkDtRT1e9D93qpsJN5X9_PPVw,600
268
269
  invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.po,sha256=9ACePz_EpB-LfcIJajZ2kp8Q04tcdrQLOtug162ZUss,4115
269
- invenio_vocabularies-3.3.0.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
270
- invenio_vocabularies-3.3.0.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
271
- invenio_vocabularies-3.3.0.dist-info/METADATA,sha256=Pfbhxq_NJ2hyIoBF4N4sRWmRWXsxlukEUkhT4QD3H2M,6454
272
- invenio_vocabularies-3.3.0.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
273
- invenio_vocabularies-3.3.0.dist-info/entry_points.txt,sha256=Cca3c5XGXkQItZ2-1oeN5xffwM8I1J3XjSvdq9-l_Bw,2497
274
- invenio_vocabularies-3.3.0.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
275
- invenio_vocabularies-3.3.0.dist-info/RECORD,,
270
+ invenio_vocabularies-3.4.1.dist-info/AUTHORS.rst,sha256=8d0p_WWE1r9DavvzMDi2D4YIGBHiMYcN3LYxqQOj8sY,291
271
+ invenio_vocabularies-3.4.1.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
272
+ invenio_vocabularies-3.4.1.dist-info/METADATA,sha256=uBy7poGYcqlln0zyJcfHFu_wsECKRyt9E-jcmzOlWA4,6627
273
+ invenio_vocabularies-3.4.1.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
274
+ invenio_vocabularies-3.4.1.dist-info/entry_points.txt,sha256=Cca3c5XGXkQItZ2-1oeN5xffwM8I1J3XjSvdq9-l_Bw,2497
275
+ invenio_vocabularies-3.4.1.dist-info/top_level.txt,sha256=x1gRNbaODF_bCD0SBLM3nVOFPGi06cmGX5X94WKrFKk,21
276
+ invenio_vocabularies-3.4.1.dist-info/RECORD,,