From 532ad6151717ade5ceabb7746d5259f3fb618f82 Mon Sep 17 00:00:00 2001 From: lbownik Date: Wed, 20 May 2026 12:24:16 +0200 Subject: [PATCH 1/2] Closes #3294 Remodel the header of search results list --- .../src/main/resources/Bundle_en.properties | 4 ++-- .../src/main/resources/Bundle_pl.properties | 4 ++-- .../main/webapp/search-include-fragment.xhtml | 21 ++++++++++++------- .../src/main/webapp/search-results-list.xhtml | 4 +++- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/fairchive-persistence/src/main/resources/Bundle_en.properties b/fairchive-persistence/src/main/resources/Bundle_en.properties index cbddaf38e0..2af817130a 100755 --- a/fairchive-persistence/src/main/resources/Bundle_en.properties +++ b/fairchive-persistence/src/main/resources/Bundle_en.properties @@ -1043,7 +1043,7 @@ dataverse.results.btn.addData=Add Data dataverse.results.btn.addData.newDataverse=New Collection dataverse.results.btn.addData.newDataset=New Dataset dataverse.results.btn.saveToFile=Save to File -dataverse.results.msg.tooManyResults=There are too many results to save them to a file. Try to limit the number of results to a maximum of {0}. +dataverse.results.msg.tooManyResults=There are too many items to save them to a file. Try to limit them to a maximum of {0}. dataverse.results.dialog.addDataGuest.header=Add Data dataverse.results.dialog.addDataGuest.msg=You need to Log In to create a collection or add a dataset. dataverse.results.dialog.addDataGuest.msg.signup=You need to Log In/Sign Up to create a collection or add a dataset. @@ -1065,7 +1065,7 @@ account.results.empty.browse.loggedin.perms.zero=Here you will see your collecti dataverse.results.empty.browse.loggedin.perms.hidden=There are no collections within this collection. You can add to it by using the Add Data button on this page. dataverse.results.empty.link.technicalDetails=More technical details dataverse.search.facet.error=There was an error with your search parameters. Please clear your search and try again. -dataverse.results.count.toofresults={0} to {1} of {2} {2, choice, 0#Results|1#Result|2#Results} +dataverse.results.count.toofresults={0} to {1} of {2} {2, choice, 0#Items|1#Item|2#Items} dataverse.results.paginator.current=(Current) dataverse.results.btn.sort=Sort dataverse.results.btn.sort.option.nameAZ=Name (From A To Z) diff --git a/fairchive-persistence/src/main/resources/Bundle_pl.properties b/fairchive-persistence/src/main/resources/Bundle_pl.properties index 5143ca6a54..23b72e298f 100644 --- a/fairchive-persistence/src/main/resources/Bundle_pl.properties +++ b/fairchive-persistence/src/main/resources/Bundle_pl.properties @@ -1018,7 +1018,7 @@ dataverse.results.btn.addData=Dodaj dane dataverse.results.btn.addData.newDataverse=Nowa kolekcja dataverse.results.btn.addData.newDataset=Nowy zbi\u00F3r danych dataverse.results.btn.saveToFile=Zapisz do pliku -dataverse.results.msg.tooManyResults=Wynik\u00F3w jest zbyt wiele aby zapisa\u0107 je do pliku. Spr\u00F3buj ograniczy\u0107 ich liczb\u0119 do maksymalnie {0}. +dataverse.results.msg.tooManyResults=Za du\u017Co elementów, aby zapisa\u0107 je do pliku. Spr\u00F3buj ograniczy\u0107 ich liczb\u0119 do maksymalnie {0}. dataverse.results.dialog.addDataGuest.header=Dodaj dane dataverse.results.dialog.addDataGuest.msg=By utworzy\u0107 kolekcj\u0119 lub doda\u0107 zbi\u00F3r danych musisz si\u0119 zalogowa\u0107 . dataverse.results.dialog.addDataGuest.msg.signup=By utworzy\u0107 kolekcj\u0119 lub doda\u0107 zbi\u00F3r danych, musisz si\u0119 zalogowa\u0107/zarejestrowa\u0107. @@ -1040,7 +1040,7 @@ account.results.empty.browse.loggedin.perms.zero=W tym miejscu zobaczysz swoje k dataverse.results.empty.browse.loggedin.perms.hidden=Ta kolekcja nie zawiera \u017Cadnych kolekcji. Mo\u017Cesz je doda\u0107 korzystaj\u0105c z przycisku "Dodaj dane" na tej stronie. dataverse.results.empty.link.technicalDetails=Wi\u0119cej szczeg\u00F3\u0142\u00F3w technicznych dataverse.search.facet.error=Wyst\u0105pi\u0142 b\u0142\u0105d dotycz\u0105cy Twoich parametr\u00F3w wyszukiwania. Usu\u0144 parametry wyszukiwania i spr\u00F3buj ponownie. -dataverse.results.count.toofresults=Od {0} do {1} z {2} {2,choice,0#Wynik\u00F3w|1#Wyniku|1Od A Do Zet) diff --git a/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml b/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml index c7f00e6862..5ae5151102 100644 --- a/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml +++ b/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml @@ -242,13 +242,14 @@

-

#{bundle['dataverse.results.header']}

- -
+
-

+

@@ -257,16 +258,22 @@ -

+

- [+] #{bundle['dataverse.results.empty.link.technicalDetails']} + [+] #{bundle['dataverse.results.empty.link.technicalDetails']}

-
+
diff --git a/fairchive-webapp/src/main/webapp/search-results-list.xhtml b/fairchive-webapp/src/main/webapp/search-results-list.xhtml index 84048a7090..5e583987d4 100644 --- a/fairchive-webapp/src/main/webapp/search-results-list.xhtml +++ b/fairchive-webapp/src/main/webapp/search-results-list.xhtml @@ -23,7 +23,9 @@
-
+
From 0e35581efbf621840285afdadab85e1127ec1c80 Mon Sep 17 00:00:00 2001 From: lbownik Date: Wed, 20 May 2026 13:04:56 +0200 Subject: [PATCH 2/2] manual formattinh --- .../main/webapp/search-include-fragment.xhtml | 273 ++++++--- .../main/webapp/search-include-pager.xhtml | 68 ++- .../src/main/webapp/search-results-list.xhtml | 548 +++++++++++++----- 3 files changed, 628 insertions(+), 261 deletions(-) diff --git a/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml b/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml index 5ae5151102..5af99cf507 100644 --- a/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml +++ b/fairchive-webapp/src/main/webapp/search-include-fragment.xhtml @@ -10,37 +10,55 @@ xmlns:jsf="http://xmlns.jcp.org/jsf" xmlns:dv="http://dataverse.org/facelets"> - - - + + + -
+
- - - - + + + + #{bundle['dataverse.search.btn.find']} - +
- - + + - +
-
+
- -
- -