Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
Expand All @@ -29,6 +30,7 @@
import org.kitodo.data.database.exceptions.DAOException;
import org.kitodo.data.database.persistence.ListColumnDAO;
import org.kitodo.production.helper.Helper;
import org.kitodo.production.helper.LocaleHelper;
import org.kitodo.production.services.ServiceManager;
import org.primefaces.model.SortOrder;

Expand Down Expand Up @@ -88,11 +90,12 @@ public Long countResults(Map filters) {
*/
public SelectItemGroup getListColumnsForListAsSelectItemGroup(String listTitle) throws DAOException {
SelectItemGroup itemGroup = new SelectItemGroup(Helper.getTranslation(listTitle));
Locale currentLocale = LocaleHelper.getCurrentLocale();

itemGroup.setSelectItems(getAll().stream()
.filter(listColumn -> listColumn.getTitle().startsWith(listTitle + "."))
.map(listColumn -> new SelectItem(listColumn,
Helper.getTranslation(listColumn.getTitle().replace(listTitle + ".", ""))))
Helper.getString(currentLocale, listColumn.getTitle().replace(listTitle + ".", ""))))
.toArray(SelectItem[]::new));

return itemGroup;
Expand Down
1 change: 1 addition & 0 deletions Kitodo/src/main/resources/messages/messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ startIndexing=Indexierung starten
startIndexingAll=Komplette Indexierung starten
startPage=Startseite
statisticalEvaluation=Statistische Auswertung
state=Status
stateOfVolume=Status der Bände
status=Status
statusDone=Abgeschlossen
Expand Down
1 change: 1 addition & 0 deletions Kitodo/src/main/resources/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,7 @@ startIndexing=Start indexing
startIndexingAll=Start indexing for all
startPage=Home page
statisticalEvaluation=Statistical evaluation
state=Status
stateOfVolume=State of volumes
status=Status
statusDone=Completed
Expand Down
1 change: 1 addition & 0 deletions Kitodo/src/main/resources/messages/messages_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,7 @@ startIndexing=Iniciar la indexación
startIndexingAll=Iniciar la indexación completa
startPage=Página de inicio
statisticalEvaluation=Análisis estadístico
state=Estado
stateOfVolume=Estado de los volúmenes
status=Estado
statusDone=Completado
Expand Down