invenio-app-rdm 13.0.2__py2.py3-none-any.whl → 13.0.4__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.
@@ -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.2"
20
+ __version__ = "13.0.4"
21
21
 
22
22
  __all__ = ("__version__",)
@@ -521,6 +521,12 @@ def deposit_edit(pid_value, draft=None, draft_files=None, files_locked=True):
521
521
  ui_serializer = UIJSONSerializer()
522
522
  record = ui_serializer.dump_obj(draft.to_dict())
523
523
 
524
+ published_record = None
525
+ # if editing draft of a published record
526
+ if record.get("status") == "published":
527
+ _record = service.read(g.identity, id_=record["id"]).to_dict()
528
+ published_record = ui_serializer.dump_obj(_record)
529
+
524
530
  community_ui = None
525
531
  community_theme = None
526
532
  community = record.get("expanded", {}).get("parent", {}).get("review", {}).get(
@@ -559,6 +565,7 @@ def deposit_edit(pid_value, draft=None, draft_files=None, files_locked=True):
559
565
  hide_community_selection=community_use_jinja_header,
560
566
  is_doi_required=is_doi_required,
561
567
  record=draft._record,
568
+ published_record=published_record,
562
569
  )
563
570
 
564
571
  if is_doi_required and not record.get("pids", {}).get("doi"):
@@ -46,7 +46,7 @@ export class AccessRequestTimelineEdit extends Component {
46
46
  links: { self: selfLink },
47
47
  } = request;
48
48
  const { secret_link_expiration: secretLinkExpiration } = values;
49
- if (secretLinkExpiration === null) {
49
+ if (secretLinkExpiration === null || secretLinkExpiration === "") {
50
50
  payload["secret_link_expiration"] = "0";
51
51
  } else {
52
52
  const date = DateTime.fromISO(secretLinkExpiration);
@@ -76,17 +76,17 @@ export class AccessRequestTimelineEdit extends Component {
76
76
  initFormValues = () => {
77
77
  const {
78
78
  request: {
79
- payload: { secret_link_expiration },
79
+ payload: { secret_link_expiration: secretLinkExpiration },
80
80
  },
81
81
  } = this.props;
82
82
 
83
- if (parseInt(secret_link_expiration) === 0) {
83
+ if (parseInt(secretLinkExpiration) === 0 || secretLinkExpiration === "NaN") {
84
84
  return {
85
85
  secret_link_expiration: "",
86
86
  };
87
87
  }
88
88
  const dateFromDays = DateTime.now().plus({
89
- days: parseInt(secret_link_expiration),
89
+ days: parseInt(secretLinkExpiration),
90
90
  });
91
91
  return {
92
92
  secret_link_expiration: dateFromDays.toISODate(),
@@ -20,7 +20,7 @@ export class AccessRequestTimelineRead extends Component {
20
20
  } = this.props;
21
21
 
22
22
  const expirationDate =
23
- secretLinkExpiration === 0
23
+ parseInt(secretLinkExpiration) === 0
24
24
  ? i18next.t("Never")
25
25
  : DateTime.fromISO(updated)
26
26
  .plus({
@@ -7,9 +7,13 @@
7
7
  under the terms of the MIT License; see LICENSE file for more details.
8
8
  #}
9
9
 
10
- {%- extends "invenio_theme/page.html" -%}
10
+ {% if base_template|default(false) %}
11
+ {%- extends base_template %}
12
+ {% else %}
13
+ {%- extends config.BASE_TEMPLATE %}
14
+ {% endif %}
11
15
 
12
16
  {%- block css %}
13
17
  {{ super()}}
14
18
  <link rel="stylesheet" href="/static/css/json-diff-kit.css">
15
- {%- endblock css %}
19
+ {%- endblock css %}
@@ -156,13 +156,13 @@
156
156
  <h3>Fehlende Werte</h3>
157
157
  <p>
158
158
  Es ist möglich, mit den Feldnamen <code>_exists_</code> und
159
- <code>_missing_</code> nach Datensätzen zu suchen,
159
+ <code>NOT _exists_</code> nach Datensätzen zu suchen,
160
160
  in denen entweder ein Wert fehlt oder die einen Wert in einem bestimmten Feld haben.
161
161
  </p>
162
162
  <p>
163
163
  <strong>Beispiel:</strong>
164
164
  <a
165
- href="/search?page=1&amp;size=20&amp;q=_missing_:metadata.additional_titles"><code>_missing_:metadata.additional_titles</code></a>
165
+ href="/search?page=1&amp;size=20&amp;q=NOT%20_exists_:metadata.additional_titles"><code>NOT _exists_:metadata.additional_titles</code></a>
166
166
  (alle Datensätze ohne metadata.additional_titles)
167
167
  </p>
168
168
  <p>
@@ -184,13 +184,13 @@
184
184
  <p>
185
185
  It is possible to search for records that either are missing a value or have
186
186
  a value in a specific field using the <code>_exists_</code> and
187
- <code> not _exists_</code> field names.
187
+ <code>NOT _exists_</code> field names.
188
188
  </p>
189
189
  <p>
190
190
  <strong>Example:</strong>
191
- <a href="/search?page=1&amp;size=20&amp;q=_missing_:metadata.additional_titles"
192
- ><code>not _exists_:metadata.additional_titles</code></a
193
- >
191
+ <a href="/search?page=1&amp;size=20&amp;q=NOT%20_exists_:metadata.additional_titles">
192
+ <code>NOT _exists_:metadata.additional_titles</code>
193
+ </a>
194
194
  (all records without metadata.additional_titles)
195
195
  </p>
196
196
  <p>
@@ -176,13 +176,13 @@
176
176
  <p>
177
177
  Det är möjligt att söka efter poster som antingen saknar ett värde eller har
178
178
  ett värde i ett specifikt fält med hjälp av <code>_exists_</code> och
179
- <code>not _exists_</code> i kombination med fältnamn.
179
+ <code>NOT _exists_</code> i kombination med fältnamn.
180
180
  </p>
181
181
  <p>
182
182
  <strong>Exempel:</strong>
183
- <a href="/search?page=1&amp;size=20&amp;q=_missing_:metadata.additional_titles"
184
- ><code>not _exists_:metadata.additional_titles</code></a
185
- >
183
+ <a href="/search?page=1&amp;size=20&amp;q=NOT%20_exists_:metadata.additional_titles">
184
+ <code>NOT _exists_:metadata.additional_titles</code>
185
+ </a>
186
186
  (alla poster utan metadata.additional_titles)
187
187
  </p>
188
188
  <p>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: invenio-app-rdm
3
- Version: 13.0.2
3
+ Version: 13.0.4
4
4
  Summary: Invenio Research Data Management.
5
5
  Home-page: https://github.com/inveniosoftware/invenio-app-rdm
6
6
  Author: CERN
@@ -101,6 +101,16 @@ https://inveniordm.docs.cern.ch
101
101
  Changes
102
102
  =======
103
103
 
104
+ Version v13.0.4 (released 2025-10-16)
105
+
106
+ - guest access requests: handle values in JS that appear in use but were not handled correctly before
107
+ - admin: use configured base template for administration panel instead of hard-coded value
108
+
109
+ Version v13.0.3 (released 2025-09-25)
110
+
111
+ - help: correct search instructions for missing fields
112
+ - deposit: pass to the form config the published record if we edit one
113
+
104
114
  Version v13.0.2 (released 2025-08-25)
105
115
 
106
116
  - i18n: pulled translations
@@ -1,4 +1,4 @@
1
- invenio_app_rdm/__init__.py,sha256=Dd3S1tXWJqzUf96nC07bGJorqmug_nyQap3xDJMbenI,697
1
+ invenio_app_rdm/__init__.py,sha256=vFN0ZRDXOTAcC151xYgIMTq8PbkC1V-j2j45gdCdnwQ,697
2
2
  invenio_app_rdm/cli.py,sha256=G6QqNU2W6n6ICtTMnpeKFXIsdorncDmVXwwwsGH5F2k,2746
3
3
  invenio_app_rdm/config.py,sha256=T5pTzoBAAsxyp4ACAnfIhHcMowVkAnk8fWXlHR2OrRA,52107
4
4
  invenio_app_rdm/ext.py,sha256=K7syn5CU5If7yOclFeNOCZX_u5q6VB7NJEQVm41mlng,5286
@@ -86,7 +86,7 @@ invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/
86
86
  invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html,sha256=eA8-n81XUezkwPXvcG5v2sgLPQNTgr7hB36-_Gr-tVI,758
87
87
  invenio_app_rdm/records_ui/views/__init__.py,sha256=9DaDls04IQv7fYttDjLofIWGsRRjk-FwUYnIfxV3OWk,5840
88
88
  invenio_app_rdm/records_ui/views/decorators.py,sha256=-GdyPh2qIxV_wacAv5uChNx-HW2LiKjHQiRujiu42B4,16510
89
- invenio_app_rdm/records_ui/views/deposits.py,sha256=W5H6QxIcxAopDCt7IAQ--l2d0VaZPEv5uwwTEon8MyU,22790
89
+ invenio_app_rdm/records_ui/views/deposits.py,sha256=NGdnAz1VLdVryuV4mOti51TwFW07ZjmrXjT0SkwmxWU,23081
90
90
  invenio_app_rdm/records_ui/views/filters.py,sha256=zKuqjM_Yb9MmBmloStjasASYCwVG7mUe0eolI2MtPXg,6998
91
91
  invenio_app_rdm/records_ui/views/records.py,sha256=9QGRSHeuL89TdO90RPO8NMQ0ML81IRthJ6OWBgaO70c,16504
92
92
  invenio_app_rdm/redirector/__init__.py,sha256=AYCTGmfbmkHW3YJXMqXlWBXcBrUsta-QmL9ULX2bjwA,243
@@ -217,8 +217,8 @@ invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/
217
217
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/mapping.js,sha256=kRIVYx1pkzq6kNry3M6Cn5hykDkNJAaG7sQ0BdwGSj8,434
218
218
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/AccessRequestExpiration.js,sha256=rakfZqfulHvuW60i3oTF0ptQvFChDoacPEw5iJkMq9U,1721
219
219
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/index.js,sha256=FZ_XVB-5V7k_wOYeiI06RXQn3aIeh7beyBhcK5AIvCg,75
220
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineEdit.js,sha256=rM5iSICtNsqXgOzNAWSpV61qJf8oE7XxqVTHMmhqkFk,5639
221
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineRead.js,sha256=ezxgh43UbgthNNGL2hoh1YwNBlPl1fC_TI0RcnFHd1w,1389
220
+ invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineEdit.js,sha256=p5lz2bGonq3L7vGb2flBHDNJ3_06aOwVpcQMNf3ZwC8,5722
221
+ invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineRead.js,sha256=Se0C9IMoRg0bAIHHCKAEvQEsrcUnIa-UDdHZqP07DRE,1399
222
222
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/overrides/TimelineFeedHeader.js,sha256=vU_D4F5jabAghjfPtpC3JvErrBVy39Je-PARgqwMD4w,1164
223
223
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/components.js,sha256=UKGEY8Fba36cJcNr-bo-jSM6c9oAKGdzxz1iQkY4YP4,7234
224
224
  invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/index.js,sha256=xvc8dtcPsTABiSpbt8azBVuZJuhXi39Nj4N8mPiFd40,2190
@@ -370,7 +370,7 @@ invenio_app_rdm/theme/static/images/icons8-web-design-80.png,sha256=lRi5Dfc01unG
370
370
  invenio_app_rdm/theme/static/images/invenio-rdm.svg,sha256=UPCbTYMkSmnFj0SqQ2o_oJdybZtH_Q4HguqS0x-FS2U,6831
371
371
  invenio_app_rdm/theme/static/images/orcid.svg,sha256=D79IRA7Ul2mfO9deW-Xocz_FTR-Ol5q3Nepya34pjWY,1117
372
372
  invenio_app_rdm/theme/static/images/ror-icon.svg,sha256=aIth5_-aYB7yx1nswjM6XgHAFW6dvJc5khkR9khWCZM,3712
373
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/administration_page.html,sha256=KkfcHLi4vx-Pd4K0ZZvgPBx6lGK5l9xCLV3hkklvYVw,394
373
+ invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/administration_page.html,sha256=9AKvzldVAhInYLCeWgvhWga5RyvnfQOulsP7JZPUdAA,483
374
374
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html,sha256=Un6KtaKmNlM-R7Qu1eeh0FFckgym3mq1zHV-AOew5pY,1178
375
375
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html,sha256=I6Y9xoTe7J2aLOSU9ZDBOb-jbFr-Cd_ZbqnwyjE3AB0,2193
376
376
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/frontpage.html,sha256=l-u25QOE2OkkPt-f7Cce469u4W2TnBdB_HVXpSZx3DE,1605
@@ -385,9 +385,9 @@ invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/robots.txt,sha256=Kl
385
385
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/searchbar.html,sha256=tvzez_2CE86wl_lipD44MD1swZcZw5uYqXEvvPMkBIo,2222
386
386
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/site_footer.html,sha256=C0xluZe7KCkvRKeeMIt6P8v_EfWyuMCQ_JQvlI0M9Xw,1037
387
387
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html,sha256=mwbLrf2xabxq0dLQzUNWGHeYVoySo9GaaydT-FKC9g8,1237
388
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.de.html,sha256=gefXaGv-ylkBUbvXXJe5EcTS66qoY0-v0XesXICX5_E,9310
389
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.en.html,sha256=-EZdjhc4JslSq37_QN3KRL01LBwLJENkRtwBJ-PLSzc,8792
390
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.sv.html,sha256=PHSLAuYtRTtsDgArshe5SIDs_M-dw8MUrSIrnNky2gw,9123
388
+ invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.de.html,sha256=2T90KVwy4ldNrkFuMUQ21TkQMPRO52--RslxBGDWA4Q,9321
389
+ invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.en.html,sha256=n6fa9WSuiS4sNaGJ3Thw9E9ZqWBA1QTh-DkvhMnAx4Q,8796
390
+ invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.sv.html,sha256=wbUp8gs4TFEjGuE8d-2A-qywOppntd8tu1ExNut7T3M,9128
391
391
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/statistics.en.html,sha256=gQSJsmsXaLLA8KqEjkyxn7j299Kc0hnjA0sXq0oXeuI,7780
392
392
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/statistics.sv.html,sha256=YauDJm4zKxaSUmAIStlODMKS7eM68SbImJfk8vJj1C0,8081
393
393
  invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/versioning.en.html,sha256=Rfd4-1vpU92VxppMTLGlS7uzqXWZUtGBARJTalUFuxg,6066
@@ -482,9 +482,9 @@ invenio_app_rdm/users_ui/views/__init__.py,sha256=SMdY2NJj9GICfr3Xuok7qdNYVtA2bJ
482
482
  invenio_app_rdm/users_ui/views/dashboard.py,sha256=iUn2PrODAwb8ugmMosJKAjPhUzjCiWiAWoXQr9RUFuc,1793
483
483
  invenio_app_rdm/users_ui/views/ui.py,sha256=W_eXM8dLVIrNHQB2UEh37C9BYoHauft6RyvcDNFHovA,1742
484
484
  invenio_app_rdm/utils/files.py,sha256=CruDyO2gDVadSlWEJD-WHpWHeOQ0juh-Ei9jz3D9yjc,3923
485
- invenio_app_rdm-13.0.2.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
486
- invenio_app_rdm-13.0.2.dist-info/METADATA,sha256=Z_153_ynI9xX6xFptMpRkxolyM1Doxk4GMVbiTXdAd4,20602
487
- invenio_app_rdm-13.0.2.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
488
- invenio_app_rdm-13.0.2.dist-info/entry_points.txt,sha256=rfzEeOEdtGy99NlpWzeW-32CoO5XrEpBvlZwLD2Th88,2158
489
- invenio_app_rdm-13.0.2.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
490
- invenio_app_rdm-13.0.2.dist-info/RECORD,,
485
+ invenio_app_rdm-13.0.4.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
486
+ invenio_app_rdm-13.0.4.dist-info/METADATA,sha256=7KDjPY3x8gzpisTmU_CMYULiiDBrN2sSG9hXqzatj8M,21001
487
+ invenio_app_rdm-13.0.4.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
488
+ invenio_app_rdm-13.0.4.dist-info/entry_points.txt,sha256=rfzEeOEdtGy99NlpWzeW-32CoO5XrEpBvlZwLD2Th88,2158
489
+ invenio_app_rdm-13.0.4.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
490
+ invenio_app_rdm-13.0.4.dist-info/RECORD,,