From 8520f8957ff3de7a479ffe7bd59894fb93e97ddd Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Wed, 27 Mar 2024 11:51:04 +0100 Subject: [PATCH] some improvements --- .../resources/bundle/messages_de.properties | 8 +- .../resources/bundle/messages_en.properties | 9 +- .../webapp/pages/workitems/worklist.xhtml | 173 ++++++++++-------- .../pages/workitems/worklist_header.xhtml | 67 +++---- .../office/views/SearchController.java | 5 +- pom.xml | 6 +- 6 files changed, 147 insertions(+), 121 deletions(-) diff --git a/imixs-office-workflow-app/src/main/resources/bundle/messages_de.properties b/imixs-office-workflow-app/src/main/resources/bundle/messages_de.properties index 9bc9ed3b..12228a53 100644 --- a/imixs-office-workflow-app/src/main/resources/bundle/messages_de.properties +++ b/imixs-office-workflow-app/src/main/resources/bundle/messages_de.properties @@ -149,8 +149,6 @@ hourly=Stündlich type=Typ summary=Zusammenfassung - - #################### # Month #################### @@ -238,6 +236,12 @@ worklist.all=Alle worklist.in_progress=in Bearbeitung worklist.archive=Archiv worklist.archive_selection=Nur archivierte Vorgänge anzeigen +worklist.type=Vorgänge +worklist.type_workitem=Aktuell in Bearbeitung +worklist.type_workitemarchive=Archiviert +worklist.tasklist_by=Aufgaben von +worklist.created_by=Erstellt von +worklist.edited_by=Bearbeitet von worklist.deletions=Gelöscht worklist.search_phrase=Suchbegriff worklist.workflowgroup=Workflow diff --git a/imixs-office-workflow-app/src/main/resources/bundle/messages_en.properties b/imixs-office-workflow-app/src/main/resources/bundle/messages_en.properties index 1c3f4400..0be7f3c3 100644 --- a/imixs-office-workflow-app/src/main/resources/bundle/messages_en.properties +++ b/imixs-office-workflow-app/src/main/resources/bundle/messages_en.properties @@ -147,8 +147,7 @@ yearly=Yearly daily=Daily hourly=Hourly type=Type - - +summary=Summary #################### # Month @@ -237,6 +236,12 @@ worklist.all=All worklist.in_progress=in progress worklist.archive=Archive worklist.archive_selection=Show archive only +worklist.type=Requests +worklist.type_workitem=Currently in progress +worklist.type_workitemarchive=Archived +worklist.tasklist_by=Tasks of +worklist.created_by=Created by +worklist.edited_by=Edited by worklist.deletions=Deleted worklist.search_phrase=Search phrase worklist.workflowgroup=Workflow diff --git a/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml b/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml index 3f68b3ba..a8cd412a 100644 --- a/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml +++ b/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml @@ -1,7 +1,5 @@ - @@ -12,43 +10,46 @@ - + - - + + - - - - - + + + + +

- + + + - - + +

- - - + + +
@@ -56,43 +57,68 @@
- - - -
- - - - - - - - - - - -
- - - - - - + + +
+ + + + + + + + + + + +
+
+ + + + + +
+ + + + + + + + +
- + value="#{(empty searchresult) and (empty searchController.searchFilter.item['phrase'])}"> + + - - -
#{message.total_result} #{searchresultCount} #{message.serach_hits}
+ + +
#{message.total_result} #{searchresultCount} + #{message.serach_hits}
@@ -100,18 +126,17 @@ - - + +

#{message.empty_worklist}

- - + + - +

@@ -124,35 +149,33 @@

- - + + - +
- +
- + - - - - + + + + - + \ No newline at end of file diff --git a/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist_header.xhtml b/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist_header.xhtml index cefbc709..0e9d5992 100644 --- a/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist_header.xhtml +++ b/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist_header.xhtml @@ -1,27 +1,23 @@ - + + - - - + + - - - - + + + +
- +
@@ -30,50 +26,47 @@ value="#{message['worklist.date_range']}: " />
- - + - - - +
-
- - - - +
+ + + + +
- +
-
#{message['worklist.archive']}:
+
#{message['worklist.type']}:
- - - + - +
diff --git a/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java b/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java index d13713ab..8771484b 100644 --- a/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java +++ b/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java @@ -393,9 +393,8 @@ public String getQuery() { List typeList = searchFilter.getItemValue("Type"); if (typeList.isEmpty() || "".equals(typeList.get(0))) { - // typeList = Arrays.asList(new String[] { "workitem", "workitemarchive" }); // default restrict to workitem - typeList = Arrays.asList(new String[] { "workitem" }); + typeList = Arrays.asList(new String[] { "workitem", "workitemarchive" }); } // convert type list into comma separated list @@ -505,7 +504,7 @@ public String getQuery() { SearchEvent event = new SearchEvent(searchFilter, SearchEvent.ON_QUERY); searchEvents.fire(event); // extend query String customQuery = event.getQuery(); - if (customQuery!=null && !customQuery.isEmpty()) { + if (customQuery != null && !customQuery.isEmpty()) { if (!customQuery.trim().endsWith("AND")) { customQuery = customQuery + " AND"; } diff --git a/pom.xml b/pom.xml index 202d61b8..820bedaa 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,6 @@ - + 4.0.0 org.imixs.workflow imixs-office-workflow @@ -83,7 +85,7 @@ 10.0.0 - 6.0.4 + 6.0.6-SNAPSHOT 3.0.1 5.0.0