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
30 lines
1.3 KiB
XML
30 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
|
|
|
|
<form name="NewQuery" type="single" target="query">
|
|
<field name="query" title="${uiLabelMap.QueryString}"><textarea cols="120" rows="5"/></field>
|
|
<field name="search" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit">
|
|
<submit button-type="button"/>
|
|
</field>
|
|
</form>
|
|
</forms> |