invenio-app-rdm 13.0.2__py2.py3-none-any.whl → 13.0.3__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.3"
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"):
@@ -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.3
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,11 @@ https://inveniordm.docs.cern.ch
101
101
  Changes
102
102
  =======
103
103
 
104
+ Version v13.0.3 (released 2025-09-25)
105
+
106
+ - help: correct search instructions for missing fields
107
+ - deposit: pass to the form config the published record if we edit one
108
+
104
109
  Version v13.0.2 (released 2025-08-25)
105
110
 
106
111
  - i18n: pulled translations
@@ -1,4 +1,4 @@
1
- invenio_app_rdm/__init__.py,sha256=Dd3S1tXWJqzUf96nC07bGJorqmug_nyQap3xDJMbenI,697
1
+ invenio_app_rdm/__init__.py,sha256=QDaU_ThUe2IDPQHMHXSLf4uDzpiUa9YiT1O5D8vcRbQ,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
@@ -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.3.dist-info/licenses/LICENSE,sha256=AZXFHRrZa5s4m9DV7zZr4bPGTMUvcEPCodeV_AmFI8k,1204
486
+ invenio_app_rdm-13.0.3.dist-info/METADATA,sha256=U97_DuKFefYShxL40a7l4xIDCACFz0xktzMpj1sqvbI,20769
487
+ invenio_app_rdm-13.0.3.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
488
+ invenio_app_rdm-13.0.3.dist-info/entry_points.txt,sha256=rfzEeOEdtGy99NlpWzeW-32CoO5XrEpBvlZwLD2Th88,2158
489
+ invenio_app_rdm-13.0.3.dist-info/top_level.txt,sha256=quZejDUw2vLfKQboNIuVLJ9fxZifdnCT_s2PNf1dfmk,16
490
+ invenio_app_rdm-13.0.3.dist-info/RECORD,,