invenio-app-rdm 13.0.0b2.dev13__py2.py3-none-any.whl → 13.0.0b3.dev1__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.
Files changed (101) hide show
  1. invenio_app_rdm/__init__.py +1 -1
  2. invenio_app_rdm/administration/records/records.py +4 -4
  3. invenio_app_rdm/administration/user_moderation/user_moderation.py +17 -15
  4. invenio_app_rdm/administration/users/users.py +8 -7
  5. invenio_app_rdm/config.py +3 -1
  6. invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html +3 -2
  7. invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/access-form.html +10 -7
  8. invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html +2 -1
  9. invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html +5 -5
  10. invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html +3 -2
  11. invenio_app_rdm/records_ui/views/deposits.py +14 -12
  12. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js +2 -1
  13. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUserForm.js +2 -1
  14. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RestoreConfirmation.js +2 -1
  15. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/TombstoneForm.js +4 -3
  16. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/SearchResultItemLayout.js +2 -1
  17. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js +6 -5
  18. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +12 -7
  19. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/AccessRequestForm.js +14 -5
  20. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js +2 -2
  21. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js +5 -4
  22. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/theme.js +7 -0
  23. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js +6 -1
  24. invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js +8 -7
  25. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html +11 -10
  26. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html +13 -32
  27. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header.html +3 -2
  28. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.sv.html +254 -0
  29. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/statistics.sv.html +196 -0
  30. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/versioning.sv.html +143 -0
  31. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/intro_section.html +13 -15
  32. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/macros/records_list.html +2 -1
  33. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/settings/notifications.html +0 -1
  34. invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/site_footer.html +11 -4
  35. invenio_app_rdm/theme/templates/themes/default/invenio_app_rdm/site_footer.html +12 -19
  36. {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/METADATA +8 -6
  37. {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/RECORD +41 -98
  38. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/af/messages.po +0 -272
  39. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/af/translations.json +0 -263
  40. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de_AT/messages.po +0 -272
  41. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de_DE/messages.po +0 -272
  42. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en_AT/messages.po +0 -272
  43. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en_HU/messages.po +0 -272
  44. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es_CU/messages.po +0 -272
  45. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es_MX/messages.po +0 -272
  46. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et_EE/messages.po +0 -272
  47. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et_EE/translations.json +0 -255
  48. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa_IR/messages.po +0 -272
  49. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr_CI/messages.po +0 -272
  50. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr_FR/messages.po +0 -272
  51. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/gl/messages.po +0 -272
  52. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/gl/translations.json +0 -263
  53. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hi_IN/messages.po +0 -272
  54. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu_HU/messages.po +0 -272
  55. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/index.js +0 -69
  56. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ne/messages.po +0 -272
  57. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/rw/messages.po +0 -272
  58. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/rw/translations.json +0 -255
  59. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv_SE/messages.po +0 -272
  60. invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk_UA/messages.po +0 -272
  61. invenio_app_rdm/translations/.gitkeep +0 -0
  62. invenio_app_rdm/translations/af/LC_MESSAGES/messages.mo +0 -0
  63. invenio_app_rdm/translations/af/LC_MESSAGES/messages.po +0 -728
  64. invenio_app_rdm/translations/de_AT/LC_MESSAGES/messages.mo +0 -0
  65. invenio_app_rdm/translations/de_AT/LC_MESSAGES/messages.po +0 -728
  66. invenio_app_rdm/translations/de_DE/LC_MESSAGES/messages.mo +0 -0
  67. invenio_app_rdm/translations/de_DE/LC_MESSAGES/messages.po +0 -728
  68. invenio_app_rdm/translations/en_AT/LC_MESSAGES/messages.mo +0 -0
  69. invenio_app_rdm/translations/en_AT/LC_MESSAGES/messages.po +0 -728
  70. invenio_app_rdm/translations/en_HU/LC_MESSAGES/messages.mo +0 -0
  71. invenio_app_rdm/translations/en_HU/LC_MESSAGES/messages.po +0 -728
  72. invenio_app_rdm/translations/es_CU/LC_MESSAGES/messages.mo +0 -0
  73. invenio_app_rdm/translations/es_CU/LC_MESSAGES/messages.po +0 -728
  74. invenio_app_rdm/translations/es_MX/LC_MESSAGES/messages.mo +0 -0
  75. invenio_app_rdm/translations/es_MX/LC_MESSAGES/messages.po +0 -728
  76. invenio_app_rdm/translations/et_EE/LC_MESSAGES/messages.mo +0 -0
  77. invenio_app_rdm/translations/et_EE/LC_MESSAGES/messages.po +0 -728
  78. invenio_app_rdm/translations/fa_IR/LC_MESSAGES/messages.mo +0 -0
  79. invenio_app_rdm/translations/fa_IR/LC_MESSAGES/messages.po +0 -728
  80. invenio_app_rdm/translations/fr_CI/LC_MESSAGES/messages.mo +0 -0
  81. invenio_app_rdm/translations/fr_CI/LC_MESSAGES/messages.po +0 -728
  82. invenio_app_rdm/translations/fr_FR/LC_MESSAGES/messages.mo +0 -0
  83. invenio_app_rdm/translations/fr_FR/LC_MESSAGES/messages.po +0 -728
  84. invenio_app_rdm/translations/gl/LC_MESSAGES/messages.mo +0 -0
  85. invenio_app_rdm/translations/gl/LC_MESSAGES/messages.po +0 -728
  86. invenio_app_rdm/translations/hi_IN/LC_MESSAGES/messages.mo +0 -0
  87. invenio_app_rdm/translations/hi_IN/LC_MESSAGES/messages.po +0 -728
  88. invenio_app_rdm/translations/hu_HU/LC_MESSAGES/messages.mo +0 -0
  89. invenio_app_rdm/translations/hu_HU/LC_MESSAGES/messages.po +0 -728
  90. invenio_app_rdm/translations/ne/LC_MESSAGES/messages.mo +0 -0
  91. invenio_app_rdm/translations/ne/LC_MESSAGES/messages.po +0 -728
  92. invenio_app_rdm/translations/rw/LC_MESSAGES/messages.mo +0 -0
  93. invenio_app_rdm/translations/rw/LC_MESSAGES/messages.po +0 -728
  94. invenio_app_rdm/translations/sv_SE/LC_MESSAGES/messages.mo +0 -0
  95. invenio_app_rdm/translations/sv_SE/LC_MESSAGES/messages.po +0 -728
  96. invenio_app_rdm/translations/uk_UA/LC_MESSAGES/messages.mo +0 -0
  97. invenio_app_rdm/translations/uk_UA/LC_MESSAGES/messages.po +0 -728
  98. {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/WHEEL +0 -0
  99. {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/entry_points.txt +0 -0
  100. {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/licenses/LICENSE +0 -0
  101. {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,7 @@
1
1
  /*
2
2
  * This file is part of Invenio.
3
3
  * Copyright (C) 2023-2024 CERN.
4
+ * Copyright (C) 2024 KTH Royal Institute of Technology.
4
5
  *
5
6
  * Invenio is free software; you can redistribute it and/or modify it
6
7
  * under the terms of the MIT License; see LICENSE file for more details.
@@ -97,20 +98,20 @@ export const LinksSearchItem = ({
97
98
 
98
99
  {!error && (
99
100
  <>
100
- <Table.Cell width={3} data-label="Link title">
101
+ <Table.Cell width={3} data-label={i18next.t("Link title")}>
101
102
  {isEmpty(result.description)
102
103
  ? "-"
103
104
  : _truncate(result.description, { length: 60 })}
104
105
  </Table.Cell>
105
- <Table.Cell width={3} data-label="Created">
106
+ <Table.Cell width={3} data-label={i18next.t("Created")}>
106
107
  {timestampToRelativeTime(result.created_at)}
107
108
  </Table.Cell>
108
- <Table.Cell width={3} data-label="Expires at">
109
+ <Table.Cell width={3} data-label={i18next.t("Expires at")}>
109
110
  {isEmpty(result.expires_at)
110
111
  ? i18next.t("Never")
111
112
  : `${timestampToRelativeTime(result.expires_at)} (${result.expires_at})`}
112
113
  </Table.Cell>
113
- <Table.Cell width={3} data-label="Access">
114
+ <Table.Cell width={3} data-label={i18next.t("Access")}>
114
115
  <AccessDropdown
115
116
  updateEndpoint={`${record.links.access_links}/${result.id}`}
116
117
  dropdownOptions={dropdownOptions}
@@ -1,3 +1,10 @@
1
+ // This file is part of InvenioRDM
2
+ // Copyright (C) 2024 CERN.
3
+ // Copyright (C) 2024 KTH Royal Institute of Technology.
4
+ //
5
+ // Invenio RDM Records is free software; you can redistribute it and/or modify it
6
+ // under the terms of the MIT License; see LICENSE file for more details.
7
+
1
8
  import $ from "jquery";
2
9
  import { MultipleOptionsSearchBar } from "@js/invenio_search_ui/components";
3
10
  import { i18next } from "@translations/invenio_app_rdm/i18next";
@@ -3,6 +3,7 @@
3
3
  // Copyright (C) 2020-2021 Northwestern University.
4
4
  // Copyright (C) 2021 Graz University of Technology.
5
5
  // Copyright (C) 2021 New York University.
6
+ // Copyright (C) 2024 KTH Royal Institute of Technology.
6
7
  //
7
8
  // Invenio App RDM is free software; you can redistribute it and/or modify it
8
9
  // under the terms of the MIT License; see LICENSE file for more details.
@@ -106,7 +107,11 @@ RDMRecordResultsListItem.propTypes = {
106
107
  // these components in RDM result broken.
107
108
 
108
109
  export const RDMRecordResultsGridItem = ({ result, index }) => {
109
- const descriptionStripped = _get(result, "ui.description_stripped", "No description");
110
+ const descriptionStripped = _get(
111
+ result,
112
+ "ui.description_stripped",
113
+ i18next.t("No description")
114
+ );
110
115
  return (
111
116
  <Card fluid key={index} href={`/records/${result.id}`}>
112
117
  <Card.Content>
@@ -3,6 +3,7 @@
3
3
  // Copyright (C) 2021 New York University.
4
4
  // Copyright (C) 2022 data-futures.
5
5
  // Copyright (C) 2023 Northwestern University.
6
+ // Copyright (C) 2024 KTH Royal Institute of Technology.
6
7
  //
7
8
  // Invenio RDM Records is free software; you can redistribute it and/or modify it
8
9
  // under the terms of the MIT License; see LICENSE file for more details.
@@ -27,19 +28,19 @@ export function SearchItemCreators({ creators, className, othersLink }) {
27
28
  link = `https://orcid.org/${identifier}`;
28
29
  linkTitle = i18next.t("ORCID profile");
29
30
  icon = "/static/images/orcid.svg";
30
- alt = "ORCID logo";
31
+ alt = i18next.t("ORCID logo");
31
32
  break;
32
33
  case "ror":
33
34
  link = `https://ror.org/${identifier}`;
34
35
  linkTitle = i18next.t("ROR profile");
35
36
  icon = "/static/images/ror-icon.svg";
36
- alt = "ROR logo";
37
+ alt = i18next.t("ROR logo");
37
38
  break;
38
39
  case "gnd":
39
40
  link = `https://d-nb.info/gnd/${identifier}`;
40
41
  linkTitle = i18next.t("GND profile");
41
42
  icon = "/static/images/gnd-icon.svg";
42
- alt = "GND logo";
43
+ alt = i18next.t("GND logo");
43
44
  break;
44
45
  default:
45
46
  return null;
@@ -61,13 +62,13 @@ export function SearchItemCreators({ creators, className, othersLink }) {
61
62
 
62
63
  function getIcons(creator) {
63
64
  let ids = _get(creator, "person_or_org.identifiers", []);
64
- let creatorName = _get(creator, "person_or_org.name", "No name");
65
+ let creatorName = _get(creator, "person_or_org.name", i18next.t("No name"));
65
66
  let icons = ids.map((c) => makeIcon(c.scheme, c.identifier, creatorName));
66
67
  return icons;
67
68
  }
68
69
 
69
70
  function getLink(creator) {
70
- let creatorName = _get(creator, "person_or_org.name", "No name");
71
+ let creatorName = _get(creator, "person_or_org.name", i18next.t("No name"));
71
72
  let link = (
72
73
  <a
73
74
  className="creatibutor-link"
@@ -92,9 +93,9 @@ export function SearchItemCreators({ creators, className, othersLink }) {
92
93
  if (0 < numExtra) {
93
94
  let text;
94
95
  if (numExtra === 1) {
95
- text = "and {{count}} other";
96
+ text = i18next.t("and {{count}} other", { count: numExtra });
96
97
  } else {
97
- text = "and {{count}} others";
98
+ text = i18next.t("and {{count}} others", { count: numExtra });
98
99
  }
99
100
  result.push(
100
101
  <span className={spanClass} key={text}>
@@ -2,6 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
  #
4
4
  # Copyright (C) 2022 CERN.
5
+ # Copyright (C) 2024 KTH Royal Institute of Technology.
5
6
  #
6
7
  # Invenio App RDM is free software; you can redistribute it and/or modify it
7
8
  # under the terms of the MIT License; see LICENSE file for more details.
@@ -9,23 +10,23 @@
9
10
 
10
11
  {% set BASE_URL = config.SITE_UI_URL %}
11
12
 
12
- The following files were flagged as 'unhealthy'. This means that the checksum check failed or timed out. Please take any action if needed.
13
+ {{ _("The following files were flagged as 'unhealthy'. This means that the checksum check failed or timed out. Please take any action if needed.") }}
13
14
 
14
15
  {% for entry in entries -%}
15
- {{ "ID: %s" | format(entry.file.id) }}
16
- {{ "URI: %s" | format(entry.file.uri) }}
16
+ {{ _("ID: %s") | format(entry.file.id) }}
17
+ {{ _("URI: %s") | format(entry.file.uri) }}
17
18
  {%- if 'filename' in entry %}
18
- {{ "Name: %s" | format(entry.filename) }}
19
+ {{ _("Name: %s") | format(entry.filename) }}
19
20
  {%- endif %}
20
- {{ "Created: %s" | format(entry.file.created) }}
21
- {{ "Checksum: %s" | format(entry.file.checksum) }}
22
- {{ "Last check date: %s" | format(entry.file.last_check_at) }}
23
- {{ "Last check FAILED with result: %s" | format(entry.file.last_check) }}
21
+ {{ _("Created: %s") | format(entry.file.created) }}
22
+ {{ _("Checksum: %s") | format(entry.file.checksum) }}
23
+ {{ _("Last check date: %s") | format(entry.file.last_check_at) }}
24
+ {{ _("Last check FAILED with result: %s") | format(entry.file.last_check) }}
24
25
  {%- if 'record' in entry %}
25
- {{ "Record: %s/records/%s" | format(BASE_URL, entry.record.id) }}
26
+ {{ _("Record: %s/records/%s") | format(BASE_URL, entry.record.id) }}
26
27
  {%- endif %}
27
28
  {%- if 'draft' in entry %}
28
- {{ "Draft: %s/uploads/%s" | format(BASE_URL, entry.draft.id) }}
29
+ {{ _("Draft: %s/uploads/%s") | format(BASE_URL, entry.draft.id) }}
29
30
  {%- endif %}
30
31
  {{ "-" * 80 }}
31
32
  {% endfor %}
@@ -3,6 +3,7 @@
3
3
  Copyright (C) 2019-2020 CERN.
4
4
  Copyright (C) 2019-2020 Northwestern University.
5
5
  Copyright (C) 2021 Graz University of Technology.
6
+ Copyright (C) 2024 KTH Royal Institute of Technology.
6
7
 
7
8
  Invenio App RDM is free software; you can redistribute it and/or modify it
8
9
  under the terms of the MIT License; see LICENSE file for more details.
@@ -15,42 +16,22 @@
15
16
  <div class="ui grid app-rdm-footer">
16
17
  <div class="rdm-footer five wide tablet two wide computer column">
17
18
  <h2 class="ui small header">{{ _("About InvenioRDM") }}</h2>
18
- {% trans invenio_rdm="http://inveniosoftware.org/products/rdm" %}
19
- <p><a href="{{ invenio_rdm }}">Product page</a></p>
20
- {% endtrans %}
21
- {% trans invenio_rdm_features="https://inveniosoftware.org/products/rdm/#features" %}
22
- <p><a href="{{ invenio_rdm_features }}">Features</a></p>
23
- {% endtrans %}
24
- {% trans invenio_rdm_roadmap="https://inveniosoftware.org/products/rdm/roadmap/" %}
25
- <p><a href="{{ invenio_rdm_roadmap }}">Roadmap</a></p>
26
- {% endtrans %}
27
- {% trans invenio_rdm_demo_site="http://inveniordm.web.cern.ch" %}
28
- <p><a href="{{ invenio_rdm_demo_site }}">Demo site</a></p>
29
- {% endtrans %}
19
+ <p><a href="http://inveniosoftware.org/products/rdm">{{ _("Product page") }}</a></p>
20
+ <p><a href="https://inveniosoftware.org/products/rdm/#features">{{ _("Features") }}</a></p>
21
+ <p><a href="https://inveniosoftware.org/products/rdm/roadmap/">{{ _("Roadmap") }}</a></p>
22
+ <p><a href="http://inveniordm.web.cern.ch">{{ _("Demo site") }}</a></p>
30
23
  </div>
31
24
  <div class="rdm-footer five wide tablet two wide computer column">
32
- <h2 class="ui small header">{{ _ ("Get involved") }}</h2>
33
- {% trans invenio_rdm_gh="https://github.com/inveniosoftware/invenio-app-rdm" %}
34
- <p><a href="{{ invenio_rdm_gh }}">GitHub</a></p>
35
- {% endtrans %}
36
- {% trans invenio_rdm_milestones="https://github.com/inveniosoftware/product-rdm" %}
37
- <p><a href="{{ invenio_rdm_milestones }}">Project Milestones</a></p>
38
- {% endtrans %}
39
- {% trans invenio_rdm_docs_site="http://inveniordm.docs.cern.ch" %}
40
- <p><a href="{{ invenio_rdm_docs_site }}">Documentation</a></p>
41
- {% endtrans %}
25
+ <h2 class="ui small header">{{ _("Get involved") }}</h2>
26
+ <p><a href="https://github.com/inveniosoftware/invenio-app-rdm">{{ _("GitHub") }}</a></p>
27
+ <p><a href="https://github.com/inveniosoftware/product-rdm">{{ _("Project Milestones") }}</a></p>
28
+ <p><a href="http://inveniordm.docs.cern.ch">{{ _("Documentation") }}</a></p>
42
29
  </div>
43
30
  <div class="rdm-footer five wide tablet two wide computer column">
44
- <h2 class="ui small header">{{ _ ("Community") }}</h2>
45
- {% trans invenio_rdm_chatroom="https://discord.gg/8qatqBC" %}
46
- <p><a href="{{ invenio_rdm_chatroom }}">Chatroom</a></p>
47
- {% endtrans %}
48
- {% trans invenio_rdm_talk="https://invenio-talk.web.cern.ch/c/projects/invenio-rdm" %}
49
- <p><a href="{{ invenio_rdm_talk }}">Forum</a></p>
50
- {% endtrans %}
51
- {% trans invenio_events="https://inveniosoftware.org/events/" %}
52
- <p><a href="{{ invenio_events }}">Events & training</a></p>
53
- {% endtrans %}
31
+ <h2 class="ui small header">{{ _("Community") }}</h2>
32
+ <p><a href="https://discord.gg/8qatqBC">{{ _("Chatroom") }}</a></p>
33
+ <p><a href="https://invenio-talk.web.cern.ch/c/projects/invenio-rdm">{{ _("Forum") }}</a></p>
34
+ <p><a href="https://inveniosoftware.org/events/">{{ _("Events & training") }}</a></p>
54
35
  </div>
55
36
 
56
37
  {%- endblock footer_top_left %}
@@ -3,6 +3,7 @@
3
3
  Copyright (C) 2019-2025 CERN.
4
4
  Copyright (C) 2019-2020 Northwestern University.
5
5
  Copyright (C) 2021 New York University.
6
+ Copyright (C) 2024 KTH Royal Institute of Technology.
6
7
 
7
8
  Invenio App RDM is free software; you can redistribute it and/or modify it
8
9
  under the terms of the MIT License; see LICENSE file for more details.
@@ -15,9 +16,9 @@
15
16
  <div class="ui negative flashed top attached manage m-0 big message">
16
17
  <div class="ui container">
17
18
  <div class="header">
18
- <i class="ui spy big icon"></i><strong>Impersonated session</strong>
19
+ <i class="ui spy big icon"></i><strong>{{ _('Impersonated session') }}</strong>
19
20
  </div>
20
- You must logout after you finish with you inquiry!
21
+ {{ _('You must logout after you finish with you inquiry!') }}
21
22
  </div>
22
23
  </div>
23
24
  {%- endif %}
@@ -0,0 +1,254 @@
1
+ {#
2
+ Copyright (C) 2021 CERN.
3
+ Copyright (C) 2024 KTH Royal Institute of Technology.
4
+
5
+ Invenio App RDM is free software; you can redistribute it and/or modify it
6
+ under the terms of the MIT License; see LICENSE file for more details.
7
+ #}
8
+ {%- set title = _("Search guide") %}
9
+ {%- extends config.BASE_TEMPLATE %}
10
+
11
+ {%- block page_body %}
12
+ <div class="ui container mt-25">
13
+ <h1>Sökguide</h1>
14
+ <p>
15
+ Denna guide förklarar hur man skriver avancerade sökfrågor med hjälp av lättförståeliga exempel.
16
+ </p>
17
+ <h3>Enkel sökning (en eller flera termer)</h3>
18
+ <p>
19
+ <strong>Exempel:</strong>
20
+ <a href="/search?page=1&amp;size=20&amp;q=open%20science"
21
+ ><code>open science</code></a
22
+ >
23
+ </p>
24
+ <p>
25
+ Resultaten kommer att matcha poster som innehåller <em>termerna</em> <code>open</code>
26
+ <em>eller</em> <code>science</code> i <em>något fält</em>. Observera att grundord används, så exempelvis kommer <code>science</code> även att matcha
27
+ <code>sciences</code>. Sökresultaten rankas enligt en algoritm som tar hänsyn till dina söktermer.
28
+ </p>
29
+ <p>
30
+ Du kan kräva att <em>båda termerna är med</em> med hjälp av antingen
31
+ <code>+</code> eller <code>AND</code> operatorn:
32
+ </p>
33
+ <p>
34
+ <strong>Exempel:</strong>
35
+ <a href="/search?page=1&amp;size=20&amp;q=%2Bopen%20%2Bscience"
36
+ ><code>+open +science</code></a
37
+ >
38
+ eller
39
+ <a href="/search?page=1&amp;size=20&amp;q=open%20AND%20science"
40
+ ><code>open AND science</code></a
41
+ >
42
+ </p>
43
+ <p>
44
+ Du kan kräva att en eller flera termer <em>inte är med</em> med hjälp av antingen
45
+ <code>-</code> eller <code>NOT</code> operatorn:
46
+ </p>
47
+ <p>
48
+ <strong>Exempel:</strong>
49
+ <a href="/search?page=1&amp;size=20&amp;q=-open%20%2Bscience"
50
+ ><code>-open +science</code></a
51
+ >
52
+ eller
53
+ <a href="/search?page=1&amp;size=20&amp;q=NOT%20open%20AND%20science"
54
+ ><code>NOT open AND science</code></a
55
+ >
56
+ </p>
57
+ <h3>Frassökning</h3>
58
+ <p>
59
+ <strong>Exempel:</strong>
60
+ <a href="/search?page=1&amp;size=20&amp;q=%22open%20science%22"
61
+ ><code>"open science"</code></a
62
+ >
63
+ </p>
64
+ <p>
65
+ Resultaten kommer att matcha poster som innehåller <em>frasen</em>
66
+ <code>open science</code> i <em>något fält</em>.
67
+ </p>
68
+ <h3>Fältsökning</h3>
69
+ <p>
70
+ <strong>Exempel:</strong>
71
+ <a href="/search?page=1&amp;size=20&amp;q=metadata.title:open"
72
+ ><code>metadata.title:open</code></a
73
+ >
74
+ </p>
75
+ <p>
76
+ Resultaten kommer att matcha poster som innehåller <em>termen</em> <code>open</code> i
77
+ <em>fältet</em> <code>metadata.title</code>. Om du vill söka efter flera termer
78
+ i titeln måste du <strong>gruppera termerna</strong> med parentes:
79
+ </p>
80
+ <p>
81
+ <strong>Exempel:</strong>
82
+ <a href="/search?page=1&amp;size=20&amp;q=metadata.title:(open%20science%29"
83
+ ><code>metadata.title:(open science)</code></a
84
+ >
85
+ </p>
86
+ <p>
87
+ Se <a href="https://inveniordm.docs.cern.ch/reference/metadata/#metadata"
88
+ >InvenioRDM-dokumentationen</a
89
+ > för en fullständig lista över fält du kan söka i.
90
+ </p>
91
+ <h3>Kombinerad enkel-, fras- eller fältsökning</h3>
92
+ <p>
93
+ <strong>Exempel:</strong>
94
+ <a
95
+ href="/search?page=1&amp;size=20&amp;q=%2Bmetadata.title:%22open%20science%22%20-metadata.title:policy"
96
+ ><code>+metadata.title:"open science" -metadata.title:policy</code></a
97
+ >
98
+ eller t.ex.
99
+ <a href="/search?page=1&amp;size=20&amp;q=metadata.title:(-open%20%2Bscience%29"
100
+ ><code>metadata.title:(-open +science)</code></a
101
+ >
102
+ </p>
103
+ <p>
104
+ Du kan kombinera enkel-, fras- och fältsökning för att konstruera avancerade sökfrågor.
105
+ </p>
106
+ <h3>Intervallsökning</h3>
107
+ <p>
108
+ <strong>Exempel:</strong>
109
+ <a
110
+ href="/search?page=1&amp;size=20&amp;q=metadata.publication_date:%5B2017%20TO%202018%5D"
111
+ ><code>metadata.publication_date:[2017 TO 2018]</code></a
112
+ >
113
+ (notera att du måste skriva <code>TO</code> med versaler).
114
+ </p>
115
+ <p>
116
+ Resultaten kommer att matcha alla poster med ett publiceringsdatum mellan 2017-01-01 och
117
+ 2018-01-01 (båda datumen inkluderade).
118
+ </p>
119
+ <p>Observera att partiella datum utökas till fullständiga datum, t.ex.:</p>
120
+ <ul>
121
+ <li>2017 utökas till 2017-01-01</li>
122
+ <li>2017-06 utökas till 2017-06-01</li>
123
+ </ul>
124
+ <p>
125
+ Använd hakparenteser (<code>[]</code>) för <em>inkluderande</em> intervall och
126
+ måsvingar (<code>{}</code>) för <em>exkluderande</em> intervall, t.ex.:
127
+ </p>
128
+ <ul>
129
+ <li>
130
+ <code>[2017 TO 2018}</code> är ekvivalent med
131
+ <code>[2017-01-01 TO 2017-12-31]</code> på grund av datumutökning och exklusivt övre gräns.
132
+ </li>
133
+ </ul>
134
+ <p>Exempel på andra intervall:</p>
135
+ <ul>
136
+ <li>
137
+ <code>metadata.publication_date:{* TO 2017-01-01}</code>: Alla dagar fram till 2017.
138
+ </li>
139
+ <li>
140
+ <code>metadata.publication_date:[2017-01-01 TO *]</code>: Alla dagar från 2017.
141
+ </li>
142
+ </ul>
143
+ <h3>Rankning/Sortering</h3>
144
+ <p>
145
+ Som standard sorteras alla sökningar enligt en intern rankningsalgoritm som poängsätter varje matchning mot din sökfråga. Både i användargränssnittet och REST API är det möjligt att sortera resultaten efter:
146
+ </p>
147
+ <ul>
148
+ <li>Senaste</li>
149
+ <li>Bästa matchning</li>
150
+ <li>Äldsta</li>
151
+ <li>Mest visade</li>
152
+ <li>Mest nedladdade</li>
153
+ </ul>
154
+ <h3>Reguljära uttryck</h3>
155
+ <p>
156
+ Reguljära uttryck är ett kraftfullt mönsterigenkänningsspråk som tillåter dig att
157
+ söka efter specifika mönster i ett fält. Till exempel, om vi vill hitta
158
+ alla poster med DOI-prefixet 10.5281 kan vi använda en sökning med reguljärt uttryck:
159
+ </p>
160
+ <p>
161
+ <strong>Exempel:</strong>
162
+ <a href="/search?page=1&amp;size=20&amp;q=metadata.subjects.identifier:%2F03yrm5c2%5B1%2C6%5D%2F"
163
+ ><code>metadata.subjects.identifier:/03yrm5c2[1,6]/</code></a
164
+ >
165
+ </p>
166
+ <p>
167
+ Var försiktig, det reguljära uttrycket måste matcha <em>hela</em> fältvärdet.
168
+ Se
169
+ <a
170
+ href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html#regexp-syntax"
171
+ >syntax för reguljära uttryck</a
172
+ >
173
+ för ytterligare detaljer.
174
+ </p>
175
+ <h3>Fält som saknar värden</h3>
176
+ <p>
177
+ Det är möjligt att söka efter poster som antingen saknar ett värde eller har
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.
180
+ </p>
181
+ <p>
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
+ >
186
+ (alla poster utan metadata.additional_titles)
187
+ </p>
188
+ <p>
189
+ <strong>Exempel:</strong>
190
+ <a href="/search?page=1&amp;size=20&amp;q=_exists_:metadata.creators"
191
+ ><code>_exists_:metadata.creators</code></a
192
+ >
193
+ (alla poster med metadata.creators)
194
+ </p>
195
+ <h3>Avancerade söktekniker</h3>
196
+ <h4>Boosting</h4>
197
+ <p>
198
+ Du kan använda boost-operatorn <code>^</code> när en term är mer relevant
199
+ än en annan. Till exempel kan du söka efter alla poster med frasen
200
+ <em>open science</em> i antingen <em>titel-</em> eller
201
+ <em>beskrivnings-</em> fältet, men ranka poster med frasen i
202
+ <em>titel</em> fältet högre:
203
+ </p>
204
+ <p>
205
+ <strong>Exempel:</strong>
206
+ <a
207
+ href="/search?page=1&amp;size=20&amp;q=metadata.title:%22open%20science%22%5E5%20metadata.description:%22open%20science%22"
208
+ ><code>metadata.title:"open science"^5 metadata.description:"open science"</code></a
209
+ >
210
+ </p>
211
+ <h4>Fuzzy-sök</h4>
212
+ <p>
213
+ Du kan söka efter termer som är liknande men inte exakt samma som din sökterm
214
+ med hjälp av fuzzy-operatorn <code>~</code>.
215
+ </p>
216
+ <p>
217
+ <strong>Exempel:</strong>
218
+ <a href="/search?page=1&amp;size=20&amp;q=oepn~"><code>oepn~</code></a>
219
+ </p>
220
+ <p>
221
+ Resultaten kommer att matcha poster med termer liknande <code>oepn</code> vilket
222
+ till exempel även skulle matcha <code>open</code>.
223
+ </p>
224
+ <h4>Närhetssökningar</h4>
225
+ <p>
226
+ En frassökning med <code>"open science"</code> förväntar sig som standard att alla termer
227
+ är i exakt samma ordning, och skulle därmed till exempel inte matcha en post
228
+ som innehåller frasen <em>"open access and science"</em>. En närhetssökning
229
+ tillåter att termerna inte är i exakt följd och kan inkludera andra termer
230
+ emellan. Graden av flexibilitet specificeras av ett efterföljande heltal:
231
+ </p>
232
+ <p>
233
+ <strong>Exempel:</strong>
234
+ <a href="/search?page=1&amp;size=20&amp;q=%22open%20science%22~5"
235
+ ><code>"open science"~5</code></a
236
+ >
237
+ </p>
238
+ <h4>Wildcard-tecken</h4>
239
+ <p>
240
+ Du kan använda wildcard-tecken i söktermer för att ersätta ett enda tecken (med
241
+ <code>?</code> operatorn) eller noll eller fler tecken (med
242
+ <code>*</code> operatorn).
243
+ </p>
244
+ <p>
245
+ <strong>Exempel:</strong>
246
+ <a href="/search?page=1&amp;size=20&amp;q=ope%3F%20scien*"
247
+ ><code>ope? scien*</code></a
248
+ >
249
+ </p>
250
+ <p>
251
+ Wildcard-sökningar kan vara långsamma och bör normalt undvikas om möjligt.
252
+ </p>
253
+ </div>
254
+ {%- endblock page_body%}