diff --git a/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/cs/LC_MESSAGES/translations.json b/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/cs/LC_MESSAGES/translations.json index 652bdc6..1c25ec0 100644 --- a/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/cs/LC_MESSAGES/translations.json +++ b/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/cs/LC_MESSAGES/translations.json @@ -1 +1 @@ -{"By Title":"Podle názvu","Best match":"Nejlepší shoda","Newest":"Nejnovější","Oldest":"Nejstarší","Records":"Nahráno","Communities":"Komunity","Requests":"Žádosti","profile":"profil","Search in my communities...":"Hledat v mých komunitách...","Restricted":"Omezený","Filter results":"Filtrovat výsledky","Edit":"Upravit","Uploaded on {{uploadDate}}":"Nahráno dne {{uploadDate}}","No creation date found.":"Nebylo nalezeno žádné datum vytvoření","No description":"Bez popisu","No title":"Bez názvu","Create new...":"Vytvořit nový...","Search in my uploads...":"Hledat v mých záznamech...","Expires at: {{- expiringDate}}":"Vyprší v: {{- expiringDate}}","Opened {{relativeTime}} by":"Otevřeno {{relativeTime}} uživatelem","Open":"Otevřeno","Closed":"Zavřeno","New request":"Nová žádost","My":"Moje","Others":"Ostatní","Search in my requests...":"Hledat v mých žádostech...","Opened by":"Otevřeno {{relativeTime}} uživatelem","Create new draft":"Vytvořit nový koncept","Edit record":"Úprava záznamu","Delete record":"Smazání záznamu","Publish record":"Vypublikování záznamů","Opened by {{creatorName}} on {{created}}.":"Otevřeno uživatelem {{creatorName}} na {{created}}.","Recepient: {{receiver}}.":"Příjemce: {{receiver}}","User Dashboard":"Nástěnka","Create new version of record":"Vytvořit novou verzi záznamu"} \ No newline at end of file +{"By Title":"Podle názvu","Best match":"Nejlepší shoda","Newest":"Nejnovější","Oldest":"Nejstarší","Records":"Nahráno","Communities":"Komunity","Requests":"Žádosti","profile":"profil","Search in my communities...":"Hledat v mých komunitách...","Restricted":"Omezený","Filter results":"Filtrovat výsledky","Edit":"Upravit","Uploaded on {{uploadDate}}":"Nahráno dne {{uploadDate}}","No creation date found.":"Nebylo nalezeno žádné datum vytvoření","No description":"Bez popisu","No title":"Bez názvu","Create new...":"Vytvořit nový...","Search in my uploads...":"Hledat v mých záznamech...","Expires at: {{- expiringDate}}":"Vyprší v: {{- expiringDate}}","Opened {{relativeTime}} by":"Otevřeno {{relativeTime}} uživatelem","Open":"Otevřeno","Closed":"Zavřeno","New request":"Nová žádost","My":"Moje","Others":"Ostatní","Search in my requests...":"Hledat v mých žádostech...","Opened by":"Otevřeno {{relativeTime}} uživatelem","Create new draft":"Vytvořit nový koncept","Edit record":"Úprava záznamu","Delete record":"Smazání záznamu","Publish record":"Vypublikování záznamů","Opened by {{creatorName}} on {{created}}.":"Otevřeno uživatelem {{creatorName}} na {{created}}.","Recepient: {{receiver}}.":"Příjemce: {{receiver}}","User Dashboard":"Nástěnka","Create new version of record":"Vytvořit novou verzi záznamu","All requests":"Všechny"} \ No newline at end of file diff --git a/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/en/LC_MESSAGES/translations.json b/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/en/LC_MESSAGES/translations.json index 547d55f..f8763f3 100644 --- a/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/en/LC_MESSAGES/translations.json +++ b/oarepo_dashboard/i18n/semantic-ui/translations/oarepo_dashboard/messages/en/LC_MESSAGES/translations.json @@ -1 +1 @@ -{"User Dashboard":"Dashboard"} \ No newline at end of file +{"User Dashboard":"Dashboard","All requests":"All"} \ No newline at end of file diff --git a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo index 249f940..51e4bb1 100644 Binary files a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo and b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.mo differ diff --git a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po index 3dc8e7c..454547a 100644 --- a/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po +++ b/oarepo_dashboard/i18n/translations/cs/LC_MESSAGES/messages.po @@ -136,3 +136,9 @@ msgstr "Nástěnka" msgid "Create new version of record" msgstr "Vytvořit novou verzi záznamu" + +msgid "All requests" +msgstr "Všechny" + +msgid "Assign DOI" +msgstr "" diff --git a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo index 3bd5d20..da336bd 100644 Binary files a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo and b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.mo differ diff --git a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po index 1225e08..989b69b 100644 --- a/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po +++ b/oarepo_dashboard/i18n/translations/en/LC_MESSAGES/messages.po @@ -145,3 +145,9 @@ msgstr "Dashboard" msgid "Create new version of record" msgstr "" + +msgid "All requests" +msgstr "All" + +msgid "Assign DOI" +msgstr "" diff --git a/oarepo_dashboard/i18n/translations/messages.mo b/oarepo_dashboard/i18n/translations/messages.mo index 2c23ee1..689dc8b 100644 Binary files a/oarepo_dashboard/i18n/translations/messages.mo and b/oarepo_dashboard/i18n/translations/messages.mo differ diff --git a/oarepo_dashboard/i18n/translations/messages.pot b/oarepo_dashboard/i18n/translations/messages.pot index 7f83d72..f771e68 100644 --- a/oarepo_dashboard/i18n/translations/messages.pot +++ b/oarepo_dashboard/i18n/translations/messages.pot @@ -8,28 +8,28 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-09-10 10:00+0200\n" +"POT-Creation-Date: 2024-12-11 20:03+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.10.3\n" +"Generated-By: Babel 2.15.0\n" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_communities/__init__.py:46 +#: /Users/m/w/cesnet/oarepo-dashboard/oarepo_dashboard/ui/dashboard_communities/__init__.py:46 msgid "Communities" msgstr "" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:52 +#: /Users/m/w/cesnet/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:54 msgid "Records" msgstr "" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:61 +#: /Users/m/w/cesnet/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:63 msgid "User Dashboard" msgstr "" -#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_requests/__init__.py:50 +#: /Users/m/w/cesnet/oarepo-dashboard/oarepo_dashboard/ui/dashboard_requests/__init__.py:51 msgid "Requests" msgstr "" @@ -42,9 +42,6 @@ msgstr "" msgid "Restricted" msgstr "" -msgid "Filter results" -msgstr "" - msgid "Create new draft" msgstr "" @@ -63,6 +60,15 @@ msgstr "" msgid "Expires at: {{- expiringDate}}" msgstr "" +msgid "Open" +msgstr "" + +msgid "Closed" +msgstr "" + +msgid "All requests" +msgstr "" + msgid "My" msgstr "" @@ -83,3 +89,6 @@ msgstr "" msgid "Create new version of record" msgstr "" + +msgid "Assign DOI" +msgstr "" diff --git a/oarepo_dashboard/ui/dashboard_components/search.py b/oarepo_dashboard/ui/dashboard_components/search.py index d90d32e..7024a58 100644 --- a/oarepo_dashboard/ui/dashboard_components/search.py +++ b/oarepo_dashboard/ui/dashboard_components/search.py @@ -1,5 +1,5 @@ -from oarepo_ui.resources.components import UIResourceComponent from flask import current_app +from oarepo_ui.resources.components import UIResourceComponent from oarepo_ui.utils import can_view_deposit_page @@ -15,4 +15,4 @@ def before_ui_search(self, *, search_options, view_args, extra_context, **kwargs class DashboardRequestsSearchComponent(UIResourceComponent): def before_ui_search(self, *, search_options, view_args, **kwargs): - search_options["initial_filters"] = [["is_open", "true"], ["mine", "true"]] + search_options["initial_filters"] = [["is_open", "true"], ["all", "true"]] diff --git a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js index 827d981..0a1e05d 100644 --- a/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js +++ b/oarepo_dashboard/ui/dashboard_requests/semantic-ui/js/dashboard_requests/search/index.js @@ -56,6 +56,7 @@ export const FacetButtons = () => ( ( readme = README.md