From 59dea3abf4e361e9e04790b9178d7301d1b2fdaa Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 28 Mar 2016 12:15:15 +0000 Subject: [PATCH] A 1st patch from Pierre Smits for <> https://issues.apache.org/jira/browse/OFBIZ-6595 Adding widgest (screens, forms, etc) so that an end-user can execute a search against the data indexed would enhance the applicability of the application. This patch is the first increment to address the issue. Please feel free to test drive and provide feedback Currently it includes the following aspects: SolrMenus.xml - providing the application menu, items: main - opening the start screen of the app admin - opening the Solr admin page in a new target newquery - opening the query screen SolrScreens.xml - defining Solr specific screen widgets CommonScreens.xml - defining the common screens for Solr specific screen widgets SolrUiLabels.xml - defining Solr app specific labels SolrForms.xml - defining Solr specific form widgets controller.xml - (re)defining request-map and view-map re widgets This file also includes a modification to web.xml of the Solr component, changing the mainDecoratorLocation This patch currently doesn't include functionality to execute a query through widgets and show the result. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1736878 13f79535-47bb-0310-9956-ffa450edef68 --- solr/config/SolrUiLabels.xml | 30 +++++++++++++ solr/webapp/solr/WEB-INF/controller.xml | 14 ++++-- solr/webapp/solr/WEB-INF/web.xml | 2 +- solr/widget/CommonScreens.xml | 60 +++++++++++++++++++++++++ solr/widget/SolrMenus.xml | 35 +++++++++++++++ solr/widget/SolrScreens.xml | 46 +++++++++++++++++++ solr/widget/forms/SolrForms.xml | 30 +++++++++++++ 7 files changed, 212 insertions(+), 5 deletions(-) create mode 100644 solr/config/SolrUiLabels.xml create mode 100644 solr/widget/CommonScreens.xml create mode 100644 solr/widget/SolrMenus.xml create mode 100644 solr/widget/SolrScreens.xml create mode 100644 solr/widget/forms/SolrForms.xml diff --git a/solr/config/SolrUiLabels.xml b/solr/config/SolrUiLabels.xml new file mode 100644 index 000000000..435f8e929 --- /dev/null +++ b/solr/config/SolrUiLabels.xml @@ -0,0 +1,30 @@ + + + + + + Apache Solr Integration + + + + OFBIz - Solr Integration + + + \ No newline at end of file diff --git a/solr/webapp/solr/WEB-INF/controller.xml b/solr/webapp/solr/WEB-INF/controller.xml index bbf4a34d8..98924c27e 100644 --- a/solr/webapp/solr/WEB-INF/controller.xml +++ b/solr/webapp/solr/WEB-INF/controller.xml @@ -40,9 +40,15 @@ - - - + - + + + + + + + + + \ No newline at end of file diff --git a/solr/webapp/solr/WEB-INF/web.xml b/solr/webapp/solr/WEB-INF/web.xml index 49998052d..859c0296e 100644 --- a/solr/webapp/solr/WEB-INF/web.xml +++ b/solr/webapp/solr/WEB-INF/web.xml @@ -33,7 +33,7 @@ mainDecoratorLocation - component://content/widget/CommonScreens.xml + component://solr/widget/CommonScreens.xml diff --git a/solr/widget/CommonScreens.xml b/solr/widget/CommonScreens.xml new file mode 100644 index 000000000..d1509b2e0 --- /dev/null +++ b/solr/widget/CommonScreens.xml @@ -0,0 +1,60 @@ + + + + + +
+ + + + + + + + + + + + + + +
+
+ + +
+ + + +
+ + + + + + +
+
+
+
+
+
+
\ No newline at end of file diff --git a/solr/widget/SolrMenus.xml b/solr/widget/SolrMenus.xml new file mode 100644 index 000000000..82749af51 --- /dev/null +++ b/solr/widget/SolrMenus.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/solr/widget/SolrScreens.xml b/solr/widget/SolrScreens.xml new file mode 100644 index 000000000..62dce4cde --- /dev/null +++ b/solr/widget/SolrScreens.xml @@ -0,0 +1,46 @@ + + + + + + +
+ + + + + + +
+
+ + +
+ + + + + + + +
+
+
\ No newline at end of file diff --git a/solr/widget/forms/SolrForms.xml b/solr/widget/forms/SolrForms.xml new file mode 100644 index 000000000..43870ada4 --- /dev/null +++ b/solr/widget/forms/SolrForms.xml @@ -0,0 +1,30 @@ + + + + + +
+