No functional changes
At http://markmail.org/message/ffmyw773p65fndey I wrote: I'd like to follow the suggestion I made in the last message of the linked thread. In other words, use http://subversion.apache.org/docs/release-notes/1.8.html#repos-dictated-config http://blogs.collab.net/subversion/the-road-to-repository-dictated-configuration-day-2-autoprops Then this problem would be over. No longer need to check from time to time that concerned files, have svn:eol-style=native property set This imply that all OFBiz users use svn > 1.7, but we can inform them, et voilà Then at markmail.org/message/h3q2yvj4db544ro7 I wrote: Actually, since we get new committers now and then and their are able to create new files I have a warning every 6 months which says "Check Java files, have all svn:eol-style=native" (I totally forgot that because I assume the machine knows it and warns me ;)) I could extend that to all files (at least the most prominent types), I'll see... This does what the last sentence said for Groovy, XML and few new Birt Java files. I'll see if I can implement the svn 1.8 repos-dictated-config ASAP! git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781219 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,47 +1,47 @@
|
||||
<?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.
|
||||
-->
|
||||
<entity-engine-xml>
|
||||
<DataResource dataResourceId="DR_MASTER_EXAMPLE" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FORM_COMBINED" />
|
||||
<ElectronicText dataResourceId="DR_MASTER_EXAMPLE">
|
||||
<textData><![CDATA[<!--default domain form-->
|
||||
<form name="${masterContentId}_${contentId}" type="single" extends="${masterContentId}" extends-resource="component://birt/widget/birt/BirtMasterForms.xml">
|
||||
</form>]]>
|
||||
</textData>
|
||||
</ElectronicText>
|
||||
<Content contentId="CTNT_MASTER_EXAMPLE" contentTypeId="REPORT_MASTER" dataResourceId="DR_MASTER_EXAMPLE" statusId="CTNT_PUBLISHED" contentName="Example" description="Master Content for Example" />
|
||||
<!-- Data retrieval will be done using perform find on entity Example-->
|
||||
<ContentAttribute contentId="CTNT_MASTER_EXAMPLE" attrName="Entity" attrValue="Example"/>
|
||||
|
||||
<CustomMethod customMethodId="CM_FB_TURNOVER" customMethodTypeId="FLEXIBLE_BIRT" customMethodName="flexibleReportTurnOver" description="service to resolve invoice for turnover report domain"/>
|
||||
<DataResource dataResourceId="DR_MASTER_TURNOVER" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FORM_COMBINED" />
|
||||
<ElectronicText dataResourceId="DR_MASTER_TURNOVER">
|
||||
<textData><![CDATA[<!--default domain form-->
|
||||
<form name="${masterContentId}_${contentId}" type="single" extends="${masterContentId}" extends-resource="component://birt/widget/birt/BirtMasterForms.xml">
|
||||
</form>]]>
|
||||
</textData>
|
||||
</ElectronicText>
|
||||
<Content contentId="CTNT_MASTER_TURNOVER" customMethodId="CM_FB_TURNOVER" contentTypeId="REPORT_MASTER" dataResourceId="DR_MASTER_TURNOVER" statusId="CTNT_PUBLISHED" contentName="Turnover" description="Master Content for TURNOVER domain" />
|
||||
<!-- Data retrieval will be done using two service calls. First the contentAttribute Service gives the service that will define which data and label will be retrieved,
|
||||
and which filter and label are supported by the report design (default value will call the second service with "prepareField" suffix).
|
||||
Second, the custom method gives the service to retrieve all data in the report design.
|
||||
Here : flexibleReportTurnOverPrepareFields (customMethodName + "prepareFields") then flexibleReportTurnOver-->
|
||||
<ContentAttribute contentId="CTNT_MASTER_TURNOVER" attrName="Service" attrValue="default"/>
|
||||
|
||||
<?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.
|
||||
-->
|
||||
<entity-engine-xml>
|
||||
<DataResource dataResourceId="DR_MASTER_EXAMPLE" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FORM_COMBINED" />
|
||||
<ElectronicText dataResourceId="DR_MASTER_EXAMPLE">
|
||||
<textData><![CDATA[<!--default domain form-->
|
||||
<form name="${masterContentId}_${contentId}" type="single" extends="${masterContentId}" extends-resource="component://birt/widget/birt/BirtMasterForms.xml">
|
||||
</form>]]>
|
||||
</textData>
|
||||
</ElectronicText>
|
||||
<Content contentId="CTNT_MASTER_EXAMPLE" contentTypeId="REPORT_MASTER" dataResourceId="DR_MASTER_EXAMPLE" statusId="CTNT_PUBLISHED" contentName="Example" description="Master Content for Example" />
|
||||
<!-- Data retrieval will be done using perform find on entity Example-->
|
||||
<ContentAttribute contentId="CTNT_MASTER_EXAMPLE" attrName="Entity" attrValue="Example"/>
|
||||
|
||||
<CustomMethod customMethodId="CM_FB_TURNOVER" customMethodTypeId="FLEXIBLE_BIRT" customMethodName="flexibleReportTurnOver" description="service to resolve invoice for turnover report domain"/>
|
||||
<DataResource dataResourceId="DR_MASTER_TURNOVER" dataResourceTypeId="ELECTRONIC_TEXT" dataTemplateTypeId="FORM_COMBINED" />
|
||||
<ElectronicText dataResourceId="DR_MASTER_TURNOVER">
|
||||
<textData><![CDATA[<!--default domain form-->
|
||||
<form name="${masterContentId}_${contentId}" type="single" extends="${masterContentId}" extends-resource="component://birt/widget/birt/BirtMasterForms.xml">
|
||||
</form>]]>
|
||||
</textData>
|
||||
</ElectronicText>
|
||||
<Content contentId="CTNT_MASTER_TURNOVER" customMethodId="CM_FB_TURNOVER" contentTypeId="REPORT_MASTER" dataResourceId="DR_MASTER_TURNOVER" statusId="CTNT_PUBLISHED" contentName="Turnover" description="Master Content for TURNOVER domain" />
|
||||
<!-- Data retrieval will be done using two service calls. First the contentAttribute Service gives the service that will define which data and label will be retrieved,
|
||||
and which filter and label are supported by the report design (default value will call the second service with "prepareField" suffix).
|
||||
Second, the custom method gives the service to retrieve all data in the report design.
|
||||
Here : flexibleReportTurnOverPrepareFields (customMethodName + "prepareFields") then flexibleReportTurnOver-->
|
||||
<ContentAttribute contentId="CTNT_MASTER_TURNOVER" attrName="Service" attrValue="default"/>
|
||||
|
||||
</entity-engine-xml>
|
||||
File diff suppressed because it is too large
Load Diff
+291
-291
@@ -1,291 +1,291 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<display-name>Apache OFBiz - BIRT Component</display-name>
|
||||
<description>BIRT Component of the Apache OFBiz Project</description>
|
||||
|
||||
<context-param>
|
||||
<description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
|
||||
<param-name>localDispatcherName</param-name><param-value>birt</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
|
||||
<param-name>entityDelegatorName</param-name><param-value>default</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
|
||||
<param-name>mainDecoratorLocation</param-name>
|
||||
<param-value>component://birt/widget/birt/BirtScreens.xml</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Enable widget boundary comments. See org.apache.ofbiz.widget.model.ModelWidget.widgetBoundaryCommentsEnabled().</description>
|
||||
<param-name>widgetVerbose</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Remove unnecessary whitespace from HTML output.</description>
|
||||
<param-name>compressHTML</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Default locale setting.-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_LOCALE</param-name>
|
||||
<param-value>en-US</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Default timezone setting.
|
||||
Examples: "Europe/Paris", "GMT+1".
|
||||
Defaults to the container's timezone.
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_TIMEZONE</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Report resources directory for preview. Defaults to ${birt home}
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Temporary document files directory. Defaults to ${birt home}/documents
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles/documents</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Flag whether the report resources can only be accessed under the
|
||||
working folder. Defaults to true
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Temporary image/chart directory. Defaults to ${birt home}/report/images
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles/images</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Engine log directory. Defaults to ${birt home}/logs -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/logs</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Report engine log level -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
|
||||
<param-value>WARNING</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Directory where to store all the birt report script libraries (JARs).
|
||||
Defaults to ${birt home}/scriptlib
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
|
||||
<param-value>${ofbiz.home}/plugins/birt/lib/scriptlib</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Resource location directory. Defaults to ${birt home} -->
|
||||
<context-param>
|
||||
<param-name>BIRT_RESOURCE_PATH</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Preview report rows limit. An empty value means no limit. -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Max cube fetch levels limit for report preview (Only used when
|
||||
previewing a report design file using the preview pattern)
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Memory size in MB for creating a cube. -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Defines the BIRT viewer configuration file -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
|
||||
<param-value>WEB-INF/viewer.properties</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Flag whether to allow server-side printing. Possible values are "ON"
|
||||
and "OFF". Defaults to "ON".
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
|
||||
<param-value>ON</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Flag whether to force browser-optimized HTML output. Defaults to true
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Filename generator class/factory to use for the exported reports.
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_FILENAME_GENERATOR_CLASS</param-name>
|
||||
<param-value>org.eclipse.birt.report.utility.filename.DefaultFilenameGenerator</param-value>
|
||||
</context-param>
|
||||
|
||||
<filter>
|
||||
<display-name>ControlFilter</display-name>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ControlFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>allowedPaths</param-name>
|
||||
<param-value>/error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/frameset:/run:/preview:/download:/parameter:/document:/output:/extract:/webcontent:/CancelTask.jsp</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>redirectPath</param-name>
|
||||
<param-value>/control/main</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>ContextFilter</display-name>
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
<!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
|
||||
<!-- <listener><listener-class>org.apache.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
|
||||
|
||||
<!-- Viewer HttpSession Listener -->
|
||||
<listener>
|
||||
<listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<servlet>
|
||||
<description>Main Control Servlet</description>
|
||||
<display-name>ControlServlet</display-name>
|
||||
<servlet-name>ControlServlet</servlet-name>
|
||||
<servlet-class>org.apache.ofbiz.webapp.control.ControlServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<!-- Viewer Servlet, Supports SOAP -->
|
||||
<servlet>
|
||||
<servlet-name>ViewerServlet</servlet-name>
|
||||
<servlet-class>org.apache.ofbiz.birt.report.servlet.BirtViewerServlet</servlet-class>
|
||||
</servlet>
|
||||
<!-- Engine Servlet -->
|
||||
<servlet>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<servlet-class>org.apache.ofbiz.birt.report.servlet.BirtEngineServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping><servlet-name>ControlServlet</servlet-name><url-pattern>/control/*</url-pattern></servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ViewerServlet</servlet-name>
|
||||
<url-pattern>/frameset</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ViewerServlet</servlet-name>
|
||||
<url-pattern>/run</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/preview</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/download</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/parameter</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/document</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/output</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/extract</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<session-config>
|
||||
<session-timeout>60</session-timeout><!-- in minutes -->
|
||||
<cookie-config>
|
||||
<http-only>true</http-only>
|
||||
<secure>true</secure>
|
||||
</cookie-config>
|
||||
<tracking-mode>COOKIE</tracking-mode>
|
||||
</session-config>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<display-name>Apache OFBiz - BIRT Component</display-name>
|
||||
<description>BIRT Component of the Apache OFBiz Project</description>
|
||||
|
||||
<context-param>
|
||||
<description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
|
||||
<param-name>localDispatcherName</param-name><param-value>birt</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
|
||||
<param-name>entityDelegatorName</param-name><param-value>default</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
|
||||
<param-name>mainDecoratorLocation</param-name>
|
||||
<param-value>component://birt/widget/birt/BirtScreens.xml</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Enable widget boundary comments. See org.apache.ofbiz.widget.model.ModelWidget.widgetBoundaryCommentsEnabled().</description>
|
||||
<param-name>widgetVerbose</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<description>Remove unnecessary whitespace from HTML output.</description>
|
||||
<param-name>compressHTML</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Default locale setting.-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_LOCALE</param-name>
|
||||
<param-value>en-US</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Default timezone setting.
|
||||
Examples: "Europe/Paris", "GMT+1".
|
||||
Defaults to the container's timezone.
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_TIMEZONE</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Report resources directory for preview. Defaults to ${birt home}
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Temporary document files directory. Defaults to ${birt home}/documents
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_DOCUMENT_FOLDER</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles/documents</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Flag whether the report resources can only be accessed under the
|
||||
working folder. Defaults to true
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
|
||||
<param-value>false</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Temporary image/chart directory. Defaults to ${birt home}/report/images
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_IMAGE_DIR</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles/images</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Engine log directory. Defaults to ${birt home}/logs -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_LOG_DIR</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/logs</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Report engine log level -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_LOG_LEVEL</param-name>
|
||||
<param-value>WARNING</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Directory where to store all the birt report script libraries (JARs).
|
||||
Defaults to ${birt home}/scriptlib
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_SCRIPTLIB_DIR</param-name>
|
||||
<param-value>${ofbiz.home}/plugins/birt/lib/scriptlib</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Resource location directory. Defaults to ${birt home} -->
|
||||
<context-param>
|
||||
<param-name>BIRT_RESOURCE_PATH</param-name>
|
||||
<param-value>${ofbiz.home}/runtime/tempfiles</param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Preview report rows limit. An empty value means no limit. -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_MAX_ROWS</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Max cube fetch levels limit for report preview (Only used when
|
||||
previewing a report design file using the preview pattern)
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_MAX_CUBE_ROWLEVELS</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_MAX_CUBE_COLUMNLEVELS</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Memory size in MB for creating a cube. -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_CUBE_MEMORY_SIZE</param-name>
|
||||
<param-value></param-value>
|
||||
</context-param>
|
||||
|
||||
<!-- Defines the BIRT viewer configuration file -->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_CONFIG_FILE</param-name>
|
||||
<param-value>WEB-INF/viewer.properties</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Flag whether to allow server-side printing. Possible values are "ON"
|
||||
and "OFF". Defaults to "ON".
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_VIEWER_PRINT_SERVERSIDE</param-name>
|
||||
<param-value>ON</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Flag whether to force browser-optimized HTML output. Defaults to true
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>HTML_ENABLE_AGENTSTYLE_ENGINE</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<!--
|
||||
Filename generator class/factory to use for the exported reports.
|
||||
-->
|
||||
<context-param>
|
||||
<param-name>BIRT_FILENAME_GENERATOR_CLASS</param-name>
|
||||
<param-value>org.eclipse.birt.report.utility.filename.DefaultFilenameGenerator</param-value>
|
||||
</context-param>
|
||||
|
||||
<filter>
|
||||
<display-name>ControlFilter</display-name>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ControlFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>allowedPaths</param-name>
|
||||
<param-value>/error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/frameset:/run:/preview:/download:/parameter:/document:/output:/extract:/webcontent:/CancelTask.jsp</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>redirectPath</param-name>
|
||||
<param-value>/control/main</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>ContextFilter</display-name>
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
<!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
|
||||
<!-- <listener><listener-class>org.apache.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
|
||||
|
||||
<!-- Viewer HttpSession Listener -->
|
||||
<listener>
|
||||
<listener-class>org.eclipse.birt.report.listener.ViewerHttpSessionListener</listener-class>
|
||||
</listener>
|
||||
|
||||
<servlet>
|
||||
<description>Main Control Servlet</description>
|
||||
<display-name>ControlServlet</display-name>
|
||||
<servlet-name>ControlServlet</servlet-name>
|
||||
<servlet-class>org.apache.ofbiz.webapp.control.ControlServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<!-- Viewer Servlet, Supports SOAP -->
|
||||
<servlet>
|
||||
<servlet-name>ViewerServlet</servlet-name>
|
||||
<servlet-class>org.apache.ofbiz.birt.report.servlet.BirtViewerServlet</servlet-class>
|
||||
</servlet>
|
||||
<!-- Engine Servlet -->
|
||||
<servlet>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<servlet-class>org.apache.ofbiz.birt.report.servlet.BirtEngineServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping><servlet-name>ControlServlet</servlet-name><url-pattern>/control/*</url-pattern></servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ViewerServlet</servlet-name>
|
||||
<url-pattern>/frameset</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ViewerServlet</servlet-name>
|
||||
<url-pattern>/run</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/preview</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/download</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/parameter</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/document</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/output</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>EngineServlet</servlet-name>
|
||||
<url-pattern>/extract</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<session-config>
|
||||
<session-timeout>60</session-timeout><!-- in minutes -->
|
||||
<cookie-config>
|
||||
<http-only>true</http-only>
|
||||
<secure>true</secure>
|
||||
</cookie-config>
|
||||
<tracking-mode>COOKIE</tracking-mode>
|
||||
</session-config>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
|
||||
+145
-145
@@ -1,145 +1,145 @@
|
||||
<?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"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="EditMail" type="single" target="sendBirtMail">
|
||||
<field name="sendFrom"><text/></field>
|
||||
<field name="sendTo"><text/></field>
|
||||
<field name="subject"><text/></field>
|
||||
<field name="birtContentType">
|
||||
<drop-down>
|
||||
<entity-options entity-name="Enumeration" description="${enumCode}" key-field-name="description">
|
||||
<entity-constraint name="enumTypeId" value="FLEXIBLE_BIRT"/>
|
||||
<entity-order-by field-name="sequenceId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="attachmentName" required-field="true"><text/></field>
|
||||
<field name="birtReportLocation" tooltip="Example is component://birt/webapp/birt/report/example.rptdesign" required-field="true"><text/></field>
|
||||
<field name="sendButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
<!-- Flexible Report Form -->
|
||||
<form name="CreateFlexibleReport" type="single" target="CreateFlexibleReport">
|
||||
<field name="contentId" title="${uiLabelMap.BirtSelectMasterFlexibleReport}" >
|
||||
<drop-down>
|
||||
<entity-options description="${description}" entity-name="Content" key-field-name="contentId">
|
||||
<entity-constraint name="contentTypeId" value="REPORT_MASTER" />
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="reportName" required-field="true"><text/></field>
|
||||
<field name="description" required-field="true"><text /></field>
|
||||
<field name="writeFilters"><check/></field>
|
||||
<field name="sendButton"><submit/></field>
|
||||
</form>
|
||||
<form name="ListPublishFlexibleReport" type="single" target="DisplayFlexibleReportSearchForm">
|
||||
<field name="contentId" title="${uiLabelMap.BirtSelectFlexibleReport}" >
|
||||
<drop-down>
|
||||
<entity-options description="[${contentName}] ${description}" entity-name="ContentAssocViewTo" key-field-name="contentId">
|
||||
<entity-constraint name="contentTypeId" value="FLEXIBLE_REPORT" />
|
||||
<entity-constraint name="statusId" value="CTNT_PUBLISHED"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="sendButton"><submit /></field>
|
||||
</form>
|
||||
|
||||
<form name="EditFlexibleReport" type="single" target="UpdateFlexibleReport" default-map-name="content">
|
||||
<field name="contentId"><hidden/></field>
|
||||
<field name="contentName" title="${uiLabelMap.FormFieldTitle_reportName}"><display/></field>
|
||||
<field name="description"><text/></field>
|
||||
<field name="statusId">
|
||||
<drop-down>
|
||||
<entity-options description="${description}" entity-name="StatusItem">
|
||||
<entity-constraint name="statusId" operator="in" value="CTNT_PUBLISHED,CTNT_IN_PROGRESS"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submit" title="${uiLabelMap.CommonSubmit}"><submit/></field>
|
||||
</form>
|
||||
<form name="UploadRptDesign" type="upload" target="UploadRptDesign">
|
||||
<actions>
|
||||
<entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs">
|
||||
<field-map field-name="contentId" from-field="content.contentId"/>
|
||||
</entity-and>
|
||||
<set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/>
|
||||
<entity-one entity-name="Content" value-field="contentRpt">
|
||||
<field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<field name="contentId"><hidden value="${content.contentId}"/></field>
|
||||
<field name="dataResourceIdRpt"><hidden value="${contentRpt.dataResourceId}"/></field>
|
||||
<field name="downloadRptDesignLink" title=" " widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${uiLabelMap.BirtDownloadRptDesign}" target="ViewBinaryDataResource" target-window="_blank">
|
||||
<parameter param-name="dataResourceId" from-field="contentRpt.dataResourceId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="uploadRptDesign" title=" "><file/></field>
|
||||
<field name="upload" title="${uiLabelMap.CommonUpload}" position="2"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="EditFlexibleReportSearchForm" type="single" target="EditFlexibleReportSearchForm">
|
||||
<actions>
|
||||
<set field="statusId" from-field="content.statusId"/>
|
||||
<set field="reportContentId" from-field="content.contentId"/>
|
||||
<entity-and entity-name="ContentAssoc" list="masterContent">
|
||||
<field-map field-name="contentIdTo" from-field="contentId"/>
|
||||
<field-map field-name="contentAssocTypeId" value="SUB_CONTENT"/>
|
||||
</entity-and>
|
||||
<service service-name="prepareFlexibleReportSearchFormToEdit" auto-field-map="true" result-map="displayFormMap"/>
|
||||
</actions>
|
||||
<field name="overrideFilters" title=" "><textarea cols="90" rows="20" default-value="${displayFormMap.textForm}"/></field>
|
||||
<field name="reportContentId"><hidden/></field>
|
||||
<field name="saveButton" title="${uiLabelMap.CommonSave}"><submit/></field>
|
||||
<on-event-update-area event-type="submit" area-id="preview-column" area-target="PreviewReportSearchForm">
|
||||
<parameter param-name="contentId" value="${contentId}"/>
|
||||
</on-event-update-area>
|
||||
</form>
|
||||
|
||||
<form name="ListFlexibleReport" type="list" target="" odd-row-style="alternate-row" list-name="contentTypeReport" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<row-actions>
|
||||
<entity-one entity-name="Content" value-field="content" />
|
||||
<set field="contentId" from-field="content.contentId"/>
|
||||
<entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs">
|
||||
<field-map field-name="contentId"/>
|
||||
</entity-and>
|
||||
<set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/>
|
||||
<entity-one entity-name="Content" value-field="contentRpt">
|
||||
<field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/>
|
||||
</entity-one>
|
||||
<entity-and entity-name="ContentAssoc" use-cache="true" list="masterContentAssocs">
|
||||
<field-map field-name="contentIdTo" from-field="contentId"/>
|
||||
</entity-and>
|
||||
<set field="masterContentAssoc" from-field="masterContentAssocs[0]" type="Object"/>
|
||||
<entity-one entity-name="Content" value-field="masterContent">
|
||||
<field-map from-field="masterContentAssoc.contentId" field-name="contentId"/>
|
||||
</entity-one>
|
||||
</row-actions>
|
||||
<field name="contentName" sort-field="true"><display/></field>
|
||||
<field name="masterContentName" sort-field="true" map-name="masterContent" entry-name="contentName"><display /></field>
|
||||
<field name="statusId" sort-field="true"><display-entity entity-name="StatusItem" /></field>
|
||||
<field name="description" sort-field="true"><display/></field>
|
||||
<field name="manageLink"><include-menu name="ListFlexibleBirtAction" location="component://birt/widget/birt/BirtMenus.xml"/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
<?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"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="EditMail" type="single" target="sendBirtMail">
|
||||
<field name="sendFrom"><text/></field>
|
||||
<field name="sendTo"><text/></field>
|
||||
<field name="subject"><text/></field>
|
||||
<field name="birtContentType">
|
||||
<drop-down>
|
||||
<entity-options entity-name="Enumeration" description="${enumCode}" key-field-name="description">
|
||||
<entity-constraint name="enumTypeId" value="FLEXIBLE_BIRT"/>
|
||||
<entity-order-by field-name="sequenceId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="attachmentName" required-field="true"><text/></field>
|
||||
<field name="birtReportLocation" tooltip="Example is component://birt/webapp/birt/report/example.rptdesign" required-field="true"><text/></field>
|
||||
<field name="sendButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
<!-- Flexible Report Form -->
|
||||
<form name="CreateFlexibleReport" type="single" target="CreateFlexibleReport">
|
||||
<field name="contentId" title="${uiLabelMap.BirtSelectMasterFlexibleReport}" >
|
||||
<drop-down>
|
||||
<entity-options description="${description}" entity-name="Content" key-field-name="contentId">
|
||||
<entity-constraint name="contentTypeId" value="REPORT_MASTER" />
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="reportName" required-field="true"><text/></field>
|
||||
<field name="description" required-field="true"><text /></field>
|
||||
<field name="writeFilters"><check/></field>
|
||||
<field name="sendButton"><submit/></field>
|
||||
</form>
|
||||
<form name="ListPublishFlexibleReport" type="single" target="DisplayFlexibleReportSearchForm">
|
||||
<field name="contentId" title="${uiLabelMap.BirtSelectFlexibleReport}" >
|
||||
<drop-down>
|
||||
<entity-options description="[${contentName}] ${description}" entity-name="ContentAssocViewTo" key-field-name="contentId">
|
||||
<entity-constraint name="contentTypeId" value="FLEXIBLE_REPORT" />
|
||||
<entity-constraint name="statusId" value="CTNT_PUBLISHED"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="sendButton"><submit /></field>
|
||||
</form>
|
||||
|
||||
<form name="EditFlexibleReport" type="single" target="UpdateFlexibleReport" default-map-name="content">
|
||||
<field name="contentId"><hidden/></field>
|
||||
<field name="contentName" title="${uiLabelMap.FormFieldTitle_reportName}"><display/></field>
|
||||
<field name="description"><text/></field>
|
||||
<field name="statusId">
|
||||
<drop-down>
|
||||
<entity-options description="${description}" entity-name="StatusItem">
|
||||
<entity-constraint name="statusId" operator="in" value="CTNT_PUBLISHED,CTNT_IN_PROGRESS"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="submit" title="${uiLabelMap.CommonSubmit}"><submit/></field>
|
||||
</form>
|
||||
<form name="UploadRptDesign" type="upload" target="UploadRptDesign">
|
||||
<actions>
|
||||
<entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs">
|
||||
<field-map field-name="contentId" from-field="content.contentId"/>
|
||||
</entity-and>
|
||||
<set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/>
|
||||
<entity-one entity-name="Content" value-field="contentRpt">
|
||||
<field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<field name="contentId"><hidden value="${content.contentId}"/></field>
|
||||
<field name="dataResourceIdRpt"><hidden value="${contentRpt.dataResourceId}"/></field>
|
||||
<field name="downloadRptDesignLink" title=" " widget-style="buttontext">
|
||||
<hyperlink also-hidden="false" description="${uiLabelMap.BirtDownloadRptDesign}" target="ViewBinaryDataResource" target-window="_blank">
|
||||
<parameter param-name="dataResourceId" from-field="contentRpt.dataResourceId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="uploadRptDesign" title=" "><file/></field>
|
||||
<field name="upload" title="${uiLabelMap.CommonUpload}" position="2"><submit/></field>
|
||||
</form>
|
||||
|
||||
<form name="EditFlexibleReportSearchForm" type="single" target="EditFlexibleReportSearchForm">
|
||||
<actions>
|
||||
<set field="statusId" from-field="content.statusId"/>
|
||||
<set field="reportContentId" from-field="content.contentId"/>
|
||||
<entity-and entity-name="ContentAssoc" list="masterContent">
|
||||
<field-map field-name="contentIdTo" from-field="contentId"/>
|
||||
<field-map field-name="contentAssocTypeId" value="SUB_CONTENT"/>
|
||||
</entity-and>
|
||||
<service service-name="prepareFlexibleReportSearchFormToEdit" auto-field-map="true" result-map="displayFormMap"/>
|
||||
</actions>
|
||||
<field name="overrideFilters" title=" "><textarea cols="90" rows="20" default-value="${displayFormMap.textForm}"/></field>
|
||||
<field name="reportContentId"><hidden/></field>
|
||||
<field name="saveButton" title="${uiLabelMap.CommonSave}"><submit/></field>
|
||||
<on-event-update-area event-type="submit" area-id="preview-column" area-target="PreviewReportSearchForm">
|
||||
<parameter param-name="contentId" value="${contentId}"/>
|
||||
</on-event-update-area>
|
||||
</form>
|
||||
|
||||
<form name="ListFlexibleReport" type="list" target="" odd-row-style="alternate-row" list-name="contentTypeReport" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<row-actions>
|
||||
<entity-one entity-name="Content" value-field="content" />
|
||||
<set field="contentId" from-field="content.contentId"/>
|
||||
<entity-and entity-name="ContentAssoc" use-cache="true" list="contentAssocs">
|
||||
<field-map field-name="contentId"/>
|
||||
</entity-and>
|
||||
<set field="contentAssoc" from-field="contentAssocs[0]" type="Object"/>
|
||||
<entity-one entity-name="Content" value-field="contentRpt">
|
||||
<field-map from-field="contentAssoc.contentIdTo" field-name="contentId"/>
|
||||
</entity-one>
|
||||
<entity-and entity-name="ContentAssoc" use-cache="true" list="masterContentAssocs">
|
||||
<field-map field-name="contentIdTo" from-field="contentId"/>
|
||||
</entity-and>
|
||||
<set field="masterContentAssoc" from-field="masterContentAssocs[0]" type="Object"/>
|
||||
<entity-one entity-name="Content" value-field="masterContent">
|
||||
<field-map from-field="masterContentAssoc.contentId" field-name="contentId"/>
|
||||
</entity-one>
|
||||
</row-actions>
|
||||
<field name="contentName" sort-field="true"><display/></field>
|
||||
<field name="masterContentName" sort-field="true" map-name="masterContent" entry-name="contentName"><display /></field>
|
||||
<field name="statusId" sort-field="true"><display-entity entity-name="StatusItem" /></field>
|
||||
<field name="description" sort-field="true"><display/></field>
|
||||
<field name="manageLink"><include-menu name="ListFlexibleBirtAction" location="component://birt/widget/birt/BirtMenus.xml"/></field>
|
||||
</form>
|
||||
|
||||
</forms>
|
||||
|
||||
+417
-417
@@ -1,417 +1,417 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="main-decorator">
|
||||
<section>
|
||||
<actions>
|
||||
<!-- base/top/specific map first, then more common map added for shared labels -->
|
||||
<property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.BirtCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.BirtCompanySubtitle" global="true"/>
|
||||
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
|
||||
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
|
||||
<!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.gif" global="true"/>-->
|
||||
|
||||
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- TODO: Use transform to specify component URI -->
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.BirtCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.BirtCompanySubtitle" global="true"/>
|
||||
<set field="activeApp" value="birt" global="true"/>
|
||||
<set field="applicationMenuName" value="BirtAppBar" global="true"/>
|
||||
<set field="applicationMenuLocation" value="component://birt/widget/birt/BirtMenus.xml" global="true"/>
|
||||
<set field="applicationTitle" value="${uiLabelMap.BirtExampleApplication}" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonBirtDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="Birt"/>
|
||||
<set field="subcomponentMenuName" from-field="subcomponentMenuName" default-value="BirtTabBar" />
|
||||
<set field="subcomponentMenuLocation" from-field="subcomponentMenuLocation" default-value="component://birt/widget/birt/BirtMenus.xml" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="${subcomponentMenuName}" location="${subcomponentMenuLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.WebtoolsPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonBirtMinimalDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="main">
|
||||
<section>
|
||||
<actions>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<label style="h3" text="BIRT is an open source Eclipse-based reporting system that integrates with any OFBiz application to produce compelling reports including graphical presentations like pie and bar charts."/>
|
||||
<label style="h3" text="This application provides you with a sample example report."/>
|
||||
<label style="h3" text="See the help option how to create your own OFBiz intergrated reports."/>
|
||||
<link style="h3" text="or see the Birt home for more information" target="http://eclipse.org/birt/phoenix/intro/" url-mode="plain" target-window="_blank_"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="Report">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Report"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html>
|
||||
<html-template location="component://birt/template/Report.ftl"/>
|
||||
</html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditMail">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Mail"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Send BIRT report by mail">
|
||||
<include-form name="EditMail" location="component://birt/widget/birt/BirtForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="chartReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="chartReport"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://birt/template/ChartReport.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<!--=========================-->
|
||||
<!-- Flexible Birt Screen -->
|
||||
<!--=========================-->
|
||||
<screen name="CommonFlexibleBirtDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="subcomponentMenuLocation" value="component://birt/widget/birt/BirtMenus.xml"/>
|
||||
<set field="subcomponentMenuName" value="FlexibleBirtTabBar"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section-include name="body"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="UseFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="UseFlexibleReport" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="BIRT" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-screen name="SelectFlexibleReport"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="SelectFlexibleReport">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="BIRT" action="_VIEW"/>
|
||||
<!-- <if-service-permission service-name="genericBirtPermission" main-action="VIEW"/> -->
|
||||
</condition>
|
||||
<actions>
|
||||
<property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true" />
|
||||
<set field="contentEntityNameView" from-field="contentEntityNameView" default-value=""/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.BirtSelectFlexibleReport}">
|
||||
<include-form location="component://birt/widget/birt/BirtForms.xml" name="ListPublishFlexibleReport" />
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ListFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ListFlexibleReport" />
|
||||
<set field="sortField" from-field="parameters.sortField" default-value="contentName"/>
|
||||
<entity-and entity-name="Content" use-cache="true" list="contentTypeReport">
|
||||
<field-map field-name="contentTypeId" value="FLEXIBLE_REPORT"/>
|
||||
<order-by field-name="${sortField}"/>
|
||||
</entity-and>
|
||||
<service service-name="genericBirtPermission" result-map="permCreateResult">
|
||||
<field-map field-name="mainAction" value="CREATE"/>
|
||||
</service>
|
||||
<set field="hasCreatePermission" from-field="permCreateResult.hasPermission"/>
|
||||
|
||||
<service service-name="genericBirtPermission" result-map="permDeleteResult">
|
||||
<field-map field-name="mainAction" value="DELETE"/>
|
||||
</service>
|
||||
<set field="hasDeletePermission" from-field="permDeleteResult.hasPermission"/>
|
||||
|
||||
<service service-name="genericBirtPermission" result-map="permUpdateResult">
|
||||
<field-map field-name="mainAction" value="UPDATE"/>
|
||||
</service>
|
||||
<set field="hasUpdatePermission" from-field="permUpdateResult.hasPermission"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<or>
|
||||
<if-has-permission permission="BIRT" action="_DELETE"/>
|
||||
<if-has-permission permission="BIRT" action="_CREATE"/>
|
||||
<if-has-permission permission="BIRT" action="_UPDATE"/>
|
||||
</or>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="button-bar">
|
||||
<link target="SelectMasterFlexibleReport" text="${uiLabelMap.BirtFlexibleReportGeneration}" style="buttontext create"/>
|
||||
</container>
|
||||
<screenlet title="${uiLabelMap.BirtFlexibleReportManagement}">
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="contentTypeReport"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-form location="component://birt/widget/birt/BirtForms.xml" name="ListFlexibleReport" />
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label text="${uiLabelMap.BirtNoKnownFlexibleReport}"/>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CreateFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="SelectMasterFlexibleReport" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="BIRT" action="_CREATE"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.BirtSelectMasterFlexibleReport}">
|
||||
<include-form location="component://birt/widget/birt/BirtForms.xml" name="CreateFlexibleReport" />
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="EditFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="manageReport" />
|
||||
<set field="contentId" from-field="parameters.reportContentId" default-value="${parameters.contentId}"/>
|
||||
<entity-one entity-name="Content" value-field="content"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<or>
|
||||
<if-has-permission permission="BIRT" action="_CREATE"/>
|
||||
<if-has-permission permission="BIRT" action="_UPDATE"/>
|
||||
</or>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container id="edit-column" style="lefthalf">
|
||||
<screenlet title="${uiLabelMap.BirtEditFlexibleReport}">
|
||||
<label style="h2">${uiLabelMap.BirtFlexibleReportInformation}</label>
|
||||
<include-form name="EditFlexibleReport" location="component://birt/widget/birt/BirtForms.xml"/>
|
||||
<label style="h2">${uiLabelMap.BirtUploadRptDesign}</label>
|
||||
<include-form name="UploadRptDesign" location="component://birt/widget/birt/BirtForms.xml" />
|
||||
<label style="h2">${uiLabelMap.BirtOverrideFilters}</label>
|
||||
<include-form name="EditFlexibleReportSearchForm" location="component://birt/widget/birt/BirtForms.xml"/>
|
||||
</screenlet>
|
||||
</container>
|
||||
<container id="preview-column" style="righthalf">
|
||||
<include-screen name="PreviewReportSearchForm"/>
|
||||
</container>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="DisplayFlexibleReportSearchForm">
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<include-screen name="PreviewReportSearchForm"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="PreviewReportSearchForm">
|
||||
<section>
|
||||
<actions>
|
||||
<entity-one entity-name="Content" value-field="content" use-cache="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtMinimalDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.CommonPreview}" id="content-form-preview">
|
||||
<content content-id="${content.contentId}"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
|
||||
<screen name="main-decorator">
|
||||
<section>
|
||||
<actions>
|
||||
<!-- base/top/specific map first, then more common map added for shared labels -->
|
||||
<property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.BirtCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.BirtCompanySubtitle" global="true"/>
|
||||
<!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set,
|
||||
then the global layoutSettings.commonHeaderImageUrl (specified in GlobalDecorator) will be used. -->
|
||||
<!--<set field="layoutSettings.headerImageUrl" value="/images/ofbiz_logo.gif" global="true"/>-->
|
||||
|
||||
<!-- <set field="layoutSettings.headerMiddleBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- <set field="layoutSettings.headerRightBackgroundUrl" value="" global="true"/> -->
|
||||
<!-- TODO: Use transform to specify component URI -->
|
||||
<set field="layoutSettings.companyName" from-field="uiLabelMap.BirtCompanyName" global="true"/>
|
||||
<set field="layoutSettings.companySubtitle" from-field="uiLabelMap.BirtCompanySubtitle" global="true"/>
|
||||
<set field="activeApp" value="birt" global="true"/>
|
||||
<set field="applicationMenuName" value="BirtAppBar" global="true"/>
|
||||
<set field="applicationMenuLocation" value="component://birt/widget/birt/BirtMenus.xml" global="true"/>
|
||||
<set field="applicationTitle" value="${uiLabelMap.BirtExampleApplication}" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-screen name="GlobalDecorator" location="component://common/widget/CommonScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonBirtDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="Birt"/>
|
||||
<set field="subcomponentMenuName" from-field="subcomponentMenuName" default-value="BirtTabBar" />
|
||||
<set field="subcomponentMenuLocation" from-field="subcomponentMenuLocation" default-value="component://birt/widget/birt/BirtMenus.xml" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="pre-body">
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="${subcomponentMenuName}" location="${subcomponentMenuLocation}"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<container style="clear" />
|
||||
<section>
|
||||
<!-- do check for WEBTOOLS, _VIEW permission -->
|
||||
<condition>
|
||||
<if-has-permission permission="ENTITY_MAINT"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.WebtoolsPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonBirtMinimalDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="main">
|
||||
<section>
|
||||
<actions>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<label style="h3" text="BIRT is an open source Eclipse-based reporting system that integrates with any OFBiz application to produce compelling reports including graphical presentations like pie and bar charts."/>
|
||||
<label style="h3" text="This application provides you with a sample example report."/>
|
||||
<label style="h3" text="See the help option how to create your own OFBiz intergrated reports."/>
|
||||
<link style="h3" text="or see the Birt home for more information" target="http://eclipse.org/birt/phoenix/intro/" url-mode="plain" target-window="_blank_"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="Report">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Report"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html>
|
||||
<html-template location="component://birt/template/Report.ftl"/>
|
||||
</html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="EditMail">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Mail"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Send BIRT report by mail">
|
||||
<include-form name="EditMail" location="component://birt/widget/birt/BirtForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="chartReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="chartReport"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<screenlet title="Using report tag">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://birt/template/ChartReport.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<!--=========================-->
|
||||
<!-- Flexible Birt Screen -->
|
||||
<!--=========================-->
|
||||
<screen name="CommonFlexibleBirtDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="subcomponentMenuLocation" value="component://birt/widget/birt/BirtMenus.xml"/>
|
||||
<set field="subcomponentMenuName" value="FlexibleBirtTabBar"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<decorator-section-include name="body"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="UseFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="UseFlexibleReport" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="BIRT" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-screen name="SelectFlexibleReport"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="SelectFlexibleReport">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="BIRT" action="_VIEW"/>
|
||||
<!-- <if-service-permission service-name="genericBirtPermission" main-action="VIEW"/> -->
|
||||
</condition>
|
||||
<actions>
|
||||
<property-map resource="BirtUiLabels" map-name="uiLabelMap" global="true" />
|
||||
<set field="contentEntityNameView" from-field="contentEntityNameView" default-value=""/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.BirtSelectFlexibleReport}">
|
||||
<include-form location="component://birt/widget/birt/BirtForms.xml" name="ListPublishFlexibleReport" />
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="ListFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="ListFlexibleReport" />
|
||||
<set field="sortField" from-field="parameters.sortField" default-value="contentName"/>
|
||||
<entity-and entity-name="Content" use-cache="true" list="contentTypeReport">
|
||||
<field-map field-name="contentTypeId" value="FLEXIBLE_REPORT"/>
|
||||
<order-by field-name="${sortField}"/>
|
||||
</entity-and>
|
||||
<service service-name="genericBirtPermission" result-map="permCreateResult">
|
||||
<field-map field-name="mainAction" value="CREATE"/>
|
||||
</service>
|
||||
<set field="hasCreatePermission" from-field="permCreateResult.hasPermission"/>
|
||||
|
||||
<service service-name="genericBirtPermission" result-map="permDeleteResult">
|
||||
<field-map field-name="mainAction" value="DELETE"/>
|
||||
</service>
|
||||
<set field="hasDeletePermission" from-field="permDeleteResult.hasPermission"/>
|
||||
|
||||
<service service-name="genericBirtPermission" result-map="permUpdateResult">
|
||||
<field-map field-name="mainAction" value="UPDATE"/>
|
||||
</service>
|
||||
<set field="hasUpdatePermission" from-field="permUpdateResult.hasPermission"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<or>
|
||||
<if-has-permission permission="BIRT" action="_DELETE"/>
|
||||
<if-has-permission permission="BIRT" action="_CREATE"/>
|
||||
<if-has-permission permission="BIRT" action="_UPDATE"/>
|
||||
</or>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container style="button-bar">
|
||||
<link target="SelectMasterFlexibleReport" text="${uiLabelMap.BirtFlexibleReportGeneration}" style="buttontext create"/>
|
||||
</container>
|
||||
<screenlet title="${uiLabelMap.BirtFlexibleReportManagement}">
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field="contentTypeReport"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-form location="component://birt/widget/birt/BirtForms.xml" name="ListFlexibleReport" />
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label text="${uiLabelMap.BirtNoKnownFlexibleReport}"/>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CreateFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="SelectMasterFlexibleReport" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="BIRT" action="_CREATE"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.BirtSelectMasterFlexibleReport}">
|
||||
<include-form location="component://birt/widget/birt/BirtForms.xml" name="CreateFlexibleReport" />
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="EditFlexibleReport">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="manageReport" />
|
||||
<set field="contentId" from-field="parameters.reportContentId" default-value="${parameters.contentId}"/>
|
||||
<entity-one entity-name="Content" value-field="content"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<or>
|
||||
<if-has-permission permission="BIRT" action="_CREATE"/>
|
||||
<if-has-permission permission="BIRT" action="_UPDATE"/>
|
||||
</or>
|
||||
</condition>
|
||||
<widgets>
|
||||
<container id="edit-column" style="lefthalf">
|
||||
<screenlet title="${uiLabelMap.BirtEditFlexibleReport}">
|
||||
<label style="h2">${uiLabelMap.BirtFlexibleReportInformation}</label>
|
||||
<include-form name="EditFlexibleReport" location="component://birt/widget/birt/BirtForms.xml"/>
|
||||
<label style="h2">${uiLabelMap.BirtUploadRptDesign}</label>
|
||||
<include-form name="UploadRptDesign" location="component://birt/widget/birt/BirtForms.xml" />
|
||||
<label style="h2">${uiLabelMap.BirtOverrideFilters}</label>
|
||||
<include-form name="EditFlexibleReportSearchForm" location="component://birt/widget/birt/BirtForms.xml"/>
|
||||
</screenlet>
|
||||
</container>
|
||||
<container id="preview-column" style="righthalf">
|
||||
<include-screen name="PreviewReportSearchForm"/>
|
||||
</container>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.BirtPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="DisplayFlexibleReportSearchForm">
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFlexibleBirtDecorator">
|
||||
<decorator-section name="body">
|
||||
<include-screen name="PreviewReportSearchForm"/>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="PreviewReportSearchForm">
|
||||
<section>
|
||||
<actions>
|
||||
<entity-one entity-name="Content" value-field="content" use-cache="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonBirtMinimalDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.CommonPreview}" id="content-form-preview">
|
||||
<content content-id="${content.contentId}"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
|
||||
@@ -1,218 +1,218 @@
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
<!-- Personal Information -->
|
||||
<screen name="EbayPersonalInformation">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="accountItem" value="personalInformation"/>
|
||||
<service service-name="getEbayUser" result-map="results">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="AccountDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet name="" title="${uiLabelMap.EbayPersonalInformation}">
|
||||
<include-form name="EbayPersonalInformationForm" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- feedback -->
|
||||
<screen name="EbayFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="accountItem" value="feedback"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="AccountDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EBAY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.EbayFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackTabBar"/>
|
||||
<decorator-section-include name="body"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="Feedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="Feedback"/>
|
||||
<service service-name="loadFeedback">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<set field="itemsAwaitingFeedbackList" from-field="results.itemsAwaitingFeedback"/>
|
||||
<script location="component://ebaystore/groovyScripts/feedback/FeedbackList.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="ItemsAwaitingFeedback" title="Items Awaiting Feedback">
|
||||
<include-form name="ItemsAwaitingFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="RecentFeedback" title="Recent Feedback">
|
||||
<include-form name="RecentFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="LeaveFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="LeaveFeedback"/>
|
||||
<set field="role" from-field="parameters.role" default-value="all"/>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayLeaveFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackSubTabBar"/>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/feedback/LeaveFeedback.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- ebay feedback -->
|
||||
<screen name="EbayFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="accountItem" value="feedback"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="AccountDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EBAY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.EbayFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackTabBar"/>
|
||||
<decorator-section-include name="body"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="Feedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="Feedback"/>
|
||||
<service service-name="loadFeedback">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<set field="itemsAwaitingFeedbackList" from-field="results.itemsAwaitingFeedback"/>
|
||||
<script location="component://ebaystore/groovyScripts/feedback/FeedbackList.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="ItemsAwaitingFeedback" title="Items Awaiting Feedback">
|
||||
<include-grid name="ItemsAwaitingFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="RecentFeedback" title="Recent Feedback">
|
||||
<include-grid name="RecentFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="LeaveFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="LeaveFeedback"/>
|
||||
<set field="role" from-field="parameters.role" default-value="all"/>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayLeaveFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackSubTabBar"/>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/feedback/LeaveFeedback.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
<!-- Personal Information -->
|
||||
<screen name="EbayPersonalInformation">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="accountItem" value="personalInformation"/>
|
||||
<service service-name="getEbayUser" result-map="results">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="AccountDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet name="" title="${uiLabelMap.EbayPersonalInformation}">
|
||||
<include-form name="EbayPersonalInformationForm" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- feedback -->
|
||||
<screen name="EbayFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="accountItem" value="feedback"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="AccountDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EBAY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.EbayFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackTabBar"/>
|
||||
<decorator-section-include name="body"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="Feedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="Feedback"/>
|
||||
<service service-name="loadFeedback">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<set field="itemsAwaitingFeedbackList" from-field="results.itemsAwaitingFeedback"/>
|
||||
<script location="component://ebaystore/groovyScripts/feedback/FeedbackList.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="ItemsAwaitingFeedback" title="Items Awaiting Feedback">
|
||||
<include-form name="ItemsAwaitingFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="RecentFeedback" title="Recent Feedback">
|
||||
<include-form name="RecentFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="LeaveFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="LeaveFeedback"/>
|
||||
<set field="role" from-field="parameters.role" default-value="all"/>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayLeaveFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackSubTabBar"/>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/feedback/LeaveFeedback.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- ebay feedback -->
|
||||
<screen name="EbayFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="accountItem" value="feedback"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="AccountDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-has-permission permission="EBAY" action="_VIEW"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="${uiLabelMap.EbayFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackTabBar"/>
|
||||
<decorator-section-include name="body"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.EbayViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="Feedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="Feedback"/>
|
||||
<service service-name="loadFeedback">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</service>
|
||||
<set field="itemsAwaitingFeedbackList" from-field="results.itemsAwaitingFeedback"/>
|
||||
<script location="component://ebaystore/groovyScripts/feedback/FeedbackList.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="ItemsAwaitingFeedback" title="Items Awaiting Feedback">
|
||||
<include-grid name="ItemsAwaitingFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
<screenlet>
|
||||
<screenlet navigation-form-name="RecentFeedback" title="Recent Feedback">
|
||||
<include-grid name="RecentFeedback" location="component://ebaystore/widget/EbayAccountForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="LeaveFeedback">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="eBay Feedback"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="feedbackItem" value="LeaveFeedback"/>
|
||||
<set field="role" from-field="parameters.role" default-value="all"/>
|
||||
<service service-name="getItemsAwaitingFeedback" result-map="results"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="EbayFeedback" >
|
||||
<decorator-section name="body">
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayLeaveFeedback}">
|
||||
<include-menu location="component://ebaystore/widget/EbayStoreMenus.xml" name="EbayFeedbackSubTabBar"/>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/feedback/LeaveFeedback.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,299 +1,299 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
<screen name="ebayStores">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="${uiLabelMap.EbayStore}"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-menu name="EbaySubTabBar" location="component://ebaystore/widget/EbayStoreMenus.xml"/>
|
||||
<screenlet title="Ebay Accounts">
|
||||
<include-form name="EbayAccountList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ebayStoreDetail">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="${uiLabelMap.EbayStoreSetting}"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="ebayStoreSetting"/>
|
||||
<script location="component://ebaystore/groovyScripts/store/RetrieveStoreOptions.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.EbayStoreSetting}">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/store/StoreSetting.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="exportCategoryEbayStore">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="EbayExportAllCategoryToEbayStore"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="ebayExportAllCategoryToEbayStore"/>
|
||||
<set field="productStoreId" value="${parameters.productStoreId}"/>
|
||||
<entity-and entity-name="ProdCatalogCategory" list="categoriesList">
|
||||
<field-map field-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
||||
<order-by field-name="productCategoryId"/>
|
||||
</entity-and>
|
||||
<entity-one entity-name="ProdCatalog" value-field="prodCatalog">
|
||||
<field-map field-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
||||
<select-field field-name="catalogName"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field="parameters.productCategoryId"/>
|
||||
</not>
|
||||
</condition>
|
||||
<actions>
|
||||
<entity-and entity-name="ProductCategoryRollup" list="categoriesRollupList">
|
||||
<field-map field-name="parentProductCategoryId" from-field="parameters.productCategoryId"/>
|
||||
<order-by field-name="productCategoryId"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field="categoriesRollupList"/>
|
||||
</not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="categoriesList" from-field="nullField"/>
|
||||
<set field="categoriesList" from-field="categoriesRollupList"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
||||
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
||||
<include-form name="ListCategories" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
||||
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
||||
<label text="Not found child category"/>
|
||||
</screenlet>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
||||
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
||||
<include-form name="ListCategories" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<link name="exportCategoriesSelectedToEbayStore" target="exportCategoriesSelectedToEbayStore" style="buttontext" text="${uiLabelMap.EbayExportToEbayStore}">
|
||||
<parameter param-name="productStoreId" from-field="productStoreId"/>
|
||||
<parameter param-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
||||
<parameter param-name="partyId" from-field="parameters.partyId"/>
|
||||
</link>
|
||||
</screenlet>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- ebay account -->
|
||||
<screen name="NewEbayAccount">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="NewEbayAccount"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="New Ebay Account">
|
||||
<include-form name="NewEbayAccount" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="AssociateCatalog">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="associateCatalogToStore"/>
|
||||
<entity-and entity-name="ProductStoreCatalog" list="prodStoreCatalogList" filter-by-date="true">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</entity-and>
|
||||
<set field="prodCatalogIds" value="${groovy:org.apache.ofbiz.entity.util.EntityUtil.getFieldListFromEntityList(prodStoreCatalogList, 'prodCatalogId', true);}" type="List"/>
|
||||
<entity-condition entity-name="ProdCatalog" list="prodCatalogList">
|
||||
<condition-expr field-name="prodCatalogId" operator="not-in" from-field="prodCatalogIds" ignore-if-empty="true"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="Add Catalog To Store">
|
||||
<include-form name="AddCatalog" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field="prodStoreCatalogList"/>
|
||||
</not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="Associated Catalog List">
|
||||
<include-grid name="CatalogList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- Export product listing -->
|
||||
<screen name="exportProductListing">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleAdvancedSearch"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="exportProductListing"/>
|
||||
<entity-condition entity-name="ProductCategory" list="productCategories">
|
||||
<condition-expr field-name="showInSelect" operator="not-equals" value="N"/>
|
||||
<order-by field-name="description"/>
|
||||
</entity-condition>
|
||||
<script location="component://product/groovyScripts/catalog/find/AdvancedSearchOptions.groovy"/>
|
||||
<script location="component://ebay/groovyScripts/EbayAdvancedSearch.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/store/EbayApiKeywordSearch.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="productSearchResults">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleSearchResults"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="exportProductListing"/>
|
||||
<set field="toEbayStore" default-value="Y"/>
|
||||
<set field="productStoreId" from-field="parameters.productStoreId"/>
|
||||
<script location="component://product/groovyScripts/catalog/find/KeywordSearch.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebay/template/find/EbayKeywordSearch.ftl"/></html>
|
||||
</platform-specific>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebay/template/find/ebayExportLink.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="prepareProductListing">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleSearchResults"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="exportProductListing"/>
|
||||
<!--set field="layoutSettings.javaScripts[+0]" value="/ebaystore/js/itemSpecifics.js" global="true"/-->
|
||||
<!--entity-condition entity-name="Geo" list="countries">
|
||||
<condition-expr field-name="geoTypeId" value="COUNTRY"/>
|
||||
<order-by field-name="geoName"/>
|
||||
</entity-condition-->
|
||||
<set field="productStoreId" from-field="parameters.productStoreId"/>
|
||||
<set field="search_CategoryId" type="String" from-field="parameters.SEARCH_CATEGORY_ID"/>
|
||||
<entity-one entity-name="EbayConfig" value-field="ebayConfig">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</entity-one>
|
||||
<script location="component://ebaystore/groovyScripts/store/PrepareProductListing.groovy"/>
|
||||
<set field="language" from-field="userLogin.lastLocale" default-value="en"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/store/ProductSearchExport.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="errorMessageList">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="errorMessageList"/>
|
||||
<entity-and entity-name="EBayLogMessagesInfo" list="errorMsgList">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
<order-by field-name="createDatetime DESC"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.EbayErrorMessageList}">
|
||||
<include-grid name="errorMessageList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd">
|
||||
<screen name="ebayStores">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="${uiLabelMap.EbayStore}"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<include-menu name="EbaySubTabBar" location="component://ebaystore/widget/EbayStoreMenus.xml"/>
|
||||
<screenlet title="Ebay Accounts">
|
||||
<include-form name="EbayAccountList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ebayStoreDetail">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="${uiLabelMap.EbayStoreSetting}"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="ebayStoreSetting"/>
|
||||
<script location="component://ebaystore/groovyScripts/store/RetrieveStoreOptions.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.EbayStoreSetting}">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/store/StoreSetting.ftl"/></html>
|
||||
</platform-specific>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="exportCategoryEbayStore">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="EbayExportAllCategoryToEbayStore"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="ebayExportAllCategoryToEbayStore"/>
|
||||
<set field="productStoreId" value="${parameters.productStoreId}"/>
|
||||
<entity-and entity-name="ProdCatalogCategory" list="categoriesList">
|
||||
<field-map field-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
||||
<order-by field-name="productCategoryId"/>
|
||||
</entity-and>
|
||||
<entity-one entity-name="ProdCatalog" value-field="prodCatalog">
|
||||
<field-map field-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
||||
<select-field field-name="catalogName"/>
|
||||
</entity-one>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field="parameters.productCategoryId"/>
|
||||
</not>
|
||||
</condition>
|
||||
<actions>
|
||||
<entity-and entity-name="ProductCategoryRollup" list="categoriesRollupList">
|
||||
<field-map field-name="parentProductCategoryId" from-field="parameters.productCategoryId"/>
|
||||
<order-by field-name="productCategoryId"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field="categoriesRollupList"/>
|
||||
</not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="categoriesList" from-field="nullField"/>
|
||||
<set field="categoriesList" from-field="categoriesRollupList"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
||||
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
||||
<include-form name="ListCategories" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
||||
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
||||
<label text="Not found child category"/>
|
||||
</screenlet>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<screenlet>
|
||||
<screenlet title="${uiLabelMap.EbayExportAllCategoryToEbayStore}">
|
||||
<include-form name="ListCurrentStores" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet navigation-form-name="ListCategories" title="List category in ${prodCatalog.catalogName}">
|
||||
<include-form name="ListCategories" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<link name="exportCategoriesSelectedToEbayStore" target="exportCategoriesSelectedToEbayStore" style="buttontext" text="${uiLabelMap.EbayExportToEbayStore}">
|
||||
<parameter param-name="productStoreId" from-field="productStoreId"/>
|
||||
<parameter param-name="prodCatalogId" from-field="parameters.prodCatalogId"/>
|
||||
<parameter param-name="partyId" from-field="parameters.partyId"/>
|
||||
</link>
|
||||
</screenlet>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- ebay account -->
|
||||
<screen name="NewEbayAccount">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="NewEbayAccount"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="New Ebay Account">
|
||||
<include-form name="NewEbayAccount" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="AssociateCatalog">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="associateCatalogToStore"/>
|
||||
<entity-and entity-name="ProductStoreCatalog" list="prodStoreCatalogList" filter-by-date="true">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</entity-and>
|
||||
<set field="prodCatalogIds" value="${groovy:org.apache.ofbiz.entity.util.EntityUtil.getFieldListFromEntityList(prodStoreCatalogList, 'prodCatalogId', true);}" type="List"/>
|
||||
<entity-condition entity-name="ProdCatalog" list="prodCatalogList">
|
||||
<condition-expr field-name="prodCatalogId" operator="not-in" from-field="prodCatalogIds" ignore-if-empty="true"/>
|
||||
</entity-condition>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="Add Catalog To Store">
|
||||
<include-form name="AddCatalog" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
<section>
|
||||
<condition>
|
||||
<not>
|
||||
<if-empty field="prodStoreCatalogList"/>
|
||||
</not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<screenlet title="Associated Catalog List">
|
||||
<include-grid name="CatalogList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<!-- Export product listing -->
|
||||
<screen name="exportProductListing">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleAdvancedSearch"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="exportProductListing"/>
|
||||
<entity-condition entity-name="ProductCategory" list="productCategories">
|
||||
<condition-expr field-name="showInSelect" operator="not-equals" value="N"/>
|
||||
<order-by field-name="description"/>
|
||||
</entity-condition>
|
||||
<script location="component://product/groovyScripts/catalog/find/AdvancedSearchOptions.groovy"/>
|
||||
<script location="component://ebay/groovyScripts/EbayAdvancedSearch.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/store/EbayApiKeywordSearch.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="productSearchResults">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleSearchResults"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="exportProductListing"/>
|
||||
<set field="toEbayStore" default-value="Y"/>
|
||||
<set field="productStoreId" from-field="parameters.productStoreId"/>
|
||||
<script location="component://product/groovyScripts/catalog/find/KeywordSearch.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebay/template/find/EbayKeywordSearch.ftl"/></html>
|
||||
</platform-specific>
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebay/template/find/ebayExportLink.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="prepareProductListing">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="PageTitleSearchResults"/>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="exportProductListing"/>
|
||||
<!--set field="layoutSettings.javaScripts[+0]" value="/ebaystore/js/itemSpecifics.js" global="true"/-->
|
||||
<!--entity-condition entity-name="Geo" list="countries">
|
||||
<condition-expr field-name="geoTypeId" value="COUNTRY"/>
|
||||
<order-by field-name="geoName"/>
|
||||
</entity-condition-->
|
||||
<set field="productStoreId" from-field="parameters.productStoreId"/>
|
||||
<set field="search_CategoryId" type="String" from-field="parameters.SEARCH_CATEGORY_ID"/>
|
||||
<entity-one entity-name="EbayConfig" value-field="ebayConfig">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
</entity-one>
|
||||
<script location="component://ebaystore/groovyScripts/store/PrepareProductListing.groovy"/>
|
||||
<set field="language" from-field="userLogin.lastLocale" default-value="en"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<platform-specific>
|
||||
<html><html-template location="component://ebaystore/template/store/ProductSearchExport.ftl"/></html>
|
||||
</platform-specific>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="errorMessageList">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="headerItem" value="ebayStore"/>
|
||||
<set field="tabButtonItem" value="errorMessageList"/>
|
||||
<entity-and entity-name="EBayLogMessagesInfo" list="errorMsgList">
|
||||
<field-map field-name="productStoreId" from-field="parameters.productStoreId"/>
|
||||
<order-by field-name="createDatetime DESC"/>
|
||||
</entity-and>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="permission-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.EbayErrorMessageList}">
|
||||
<include-grid name="errorMessageList" location="component://ebaystore/widget/EbayStoreForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
|
||||
@@ -1,60 +1,60 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import java.lang.*
|
||||
import java.util.*
|
||||
import org.apache.ofbiz.base.util.*
|
||||
import org.apache.ofbiz.entity.*
|
||||
import org.apache.ofbiz.entity.util.*
|
||||
import org.apache.ofbiz.entity.condition.*
|
||||
import org.apache.ofbiz.party.contact.ContactMechWorker
|
||||
import org.apache.ofbiz.product.store.ProductStoreWorker
|
||||
import org.apache.ofbiz.webapp.website.WebSiteWorker
|
||||
import org.apache.ofbiz.accounting.payment.PaymentWorker
|
||||
|
||||
/*publicEmailContactLists = delegator.findByAnd("ContactList", [isPublic : "Y", contactMechTypeId : "EMAIL_ADDRESS"], ["contactListName"], false)
|
||||
context.publicEmailContactLists = publicEmailContactLists;*/
|
||||
|
||||
webSiteId = WebSiteWorker.getWebSiteId(request)
|
||||
exprList = []
|
||||
exprListThruDate = []
|
||||
exprList.add(EntityCondition.makeCondition("webSiteId", EntityOperator.EQUALS, webSiteId))
|
||||
exprListThruDate.add(EntityCondition.makeCondition("thruDate", EntityOperator.EQUALS, null))
|
||||
exprListThruDate.add(EntityCondition.makeCondition("thruDate", EntityOperator.GREATER_THAN_EQUAL_TO, UtilDateTime.nowTimestamp()))
|
||||
orCond = EntityCondition.makeCondition(exprListThruDate, EntityOperator.OR)
|
||||
exprList.add(orCond)
|
||||
webSiteContactList = from("WebSiteContactList").where(exprList).queryList()
|
||||
|
||||
publicEmailContactLists = []
|
||||
webSiteContactList.each { webSiteContactList ->
|
||||
contactList = webSiteContactList.getRelatedOne("ContactList", false)
|
||||
contactListType = contactList.getRelatedOne("ContactListType", false)
|
||||
temp = [:]
|
||||
temp.contactList = contactList
|
||||
temp.contactListType = contactListType
|
||||
publicEmailContactLists.add(temp)
|
||||
}
|
||||
context.publicEmailContactLists = publicEmailContactLists
|
||||
|
||||
if (userLogin) {
|
||||
partyAndContactMechList = from("PartyAndContactMech").where("partyId", partyId, "contactMechTypeId", "EMAIL_ADDRESS").orderBy("-fromDate").filterByDate().queryList()
|
||||
context.partyAndContactMechList = partyAndContactMechList
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import java.lang.*
|
||||
import java.util.*
|
||||
import org.apache.ofbiz.base.util.*
|
||||
import org.apache.ofbiz.entity.*
|
||||
import org.apache.ofbiz.entity.util.*
|
||||
import org.apache.ofbiz.entity.condition.*
|
||||
import org.apache.ofbiz.party.contact.ContactMechWorker
|
||||
import org.apache.ofbiz.product.store.ProductStoreWorker
|
||||
import org.apache.ofbiz.webapp.website.WebSiteWorker
|
||||
import org.apache.ofbiz.accounting.payment.PaymentWorker
|
||||
|
||||
/*publicEmailContactLists = delegator.findByAnd("ContactList", [isPublic : "Y", contactMechTypeId : "EMAIL_ADDRESS"], ["contactListName"], false)
|
||||
context.publicEmailContactLists = publicEmailContactLists;*/
|
||||
|
||||
webSiteId = WebSiteWorker.getWebSiteId(request)
|
||||
exprList = []
|
||||
exprListThruDate = []
|
||||
exprList.add(EntityCondition.makeCondition("webSiteId", EntityOperator.EQUALS, webSiteId))
|
||||
exprListThruDate.add(EntityCondition.makeCondition("thruDate", EntityOperator.EQUALS, null))
|
||||
exprListThruDate.add(EntityCondition.makeCondition("thruDate", EntityOperator.GREATER_THAN_EQUAL_TO, UtilDateTime.nowTimestamp()))
|
||||
orCond = EntityCondition.makeCondition(exprListThruDate, EntityOperator.OR)
|
||||
exprList.add(orCond)
|
||||
webSiteContactList = from("WebSiteContactList").where(exprList).queryList()
|
||||
|
||||
publicEmailContactLists = []
|
||||
webSiteContactList.each { webSiteContactList ->
|
||||
contactList = webSiteContactList.getRelatedOne("ContactList", false)
|
||||
contactListType = contactList.getRelatedOne("ContactListType", false)
|
||||
temp = [:]
|
||||
temp.contactList = contactList
|
||||
temp.contactListType = contactListType
|
||||
publicEmailContactLists.add(temp)
|
||||
}
|
||||
context.publicEmailContactLists = publicEmailContactLists
|
||||
|
||||
if (userLogin) {
|
||||
partyAndContactMechList = from("PartyAndContactMech").where("partyId", partyId, "contactMechTypeId", "EMAIL_ADDRESS").orderBy("-fromDate").filterByDate().queryList()
|
||||
context.partyAndContactMechList = partyAndContactMechList
|
||||
}
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,48 +1,48 @@
|
||||
<?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.
|
||||
-->
|
||||
<entity-engine-xml>
|
||||
|
||||
<DataResource dataResourceId="HELP_EXAMPLE" localeString="en" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS"
|
||||
dataResourceName="Framework Example" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="HELP_EXAMPLE" contentTypeId="DOCUMENT" contentName="Framework Example" templateDataResourceId="HELP_TEMPL"
|
||||
dataResourceId="HELP_EXAMPLE" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
|
||||
<ContentAssoc contentId="HELP_ROOT" contentIdTo="HELP_EXAMPLE" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000"/>
|
||||
|
||||
<DataResource dataResourceId="HELP_EXAMPLE_FR" localeString="fr" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE_FR.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS"
|
||||
dataResourceName="Exemple pour le développement" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="HELP_EXAMPLE_FR" contentTypeId="DOCUMENT" contentName="Exemple pour le développement" templateDataResourceId="HELP_TEMPL"
|
||||
dataResourceId="HELP_EXAMPLE_FR" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html" localeString="fr" />
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="HELP_EXAMPLE_FR" contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-01-12 01:01:01"/>
|
||||
|
||||
<DataResource dataResourceId="EXAMPLE_main" localeString="en" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE_main.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Example help main page" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="EXAMPLE_main" contentTypeId="DOCUMENT" contentName="Example main menu." templateDataResourceId="HELP_TEMPL" dataResourceId="EXAMPLE_main" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="EXAMPLE_main" mapKey="EXAMPLE_main" fromDate="2006-01-12 01:01:01" contentAssocTypeId="TREE_CHILD" sequenceNum="000"/>
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="EXAMPLE_main" mapKey="EXAMPLE_FindExample" fromDate="2006-01-12 01:01:02" sequenceNum="000" contentAssocTypeId="INSTANCE"/>
|
||||
|
||||
<DataResource dataResourceId="EXAMPLE_docbook" localeString="en" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE_docbook.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Example docBook usage" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="EXAMPLE_docbook" contentTypeId="DOCUMENT" contentName="Example Docbook usage" templateDataResourceId="HELP_TEMPL" dataResourceId="EXAMPLE_docbook" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="EXAMPLE_docbook" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EXAMPLE_docbook"/>
|
||||
|
||||
|
||||
</entity-engine-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.
|
||||
-->
|
||||
<entity-engine-xml>
|
||||
|
||||
<DataResource dataResourceId="HELP_EXAMPLE" localeString="en" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS"
|
||||
dataResourceName="Framework Example" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="HELP_EXAMPLE" contentTypeId="DOCUMENT" contentName="Framework Example" templateDataResourceId="HELP_TEMPL"
|
||||
dataResourceId="HELP_EXAMPLE" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
|
||||
<ContentAssoc contentId="HELP_ROOT" contentIdTo="HELP_EXAMPLE" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000"/>
|
||||
|
||||
<DataResource dataResourceId="HELP_EXAMPLE_FR" localeString="fr" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE_FR.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS"
|
||||
dataResourceName="Exemple pour le développement" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="HELP_EXAMPLE_FR" contentTypeId="DOCUMENT" contentName="Exemple pour le développement" templateDataResourceId="HELP_TEMPL"
|
||||
dataResourceId="HELP_EXAMPLE_FR" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html" localeString="fr" />
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="HELP_EXAMPLE_FR" contentAssocTypeId="ALTERNATE_LOCALE" fromDate="2006-01-12 01:01:01"/>
|
||||
|
||||
<DataResource dataResourceId="EXAMPLE_main" localeString="en" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE_main.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Example help main page" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="EXAMPLE_main" contentTypeId="DOCUMENT" contentName="Example main menu." templateDataResourceId="HELP_TEMPL" dataResourceId="EXAMPLE_main" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="EXAMPLE_main" mapKey="EXAMPLE_main" fromDate="2006-01-12 01:01:01" contentAssocTypeId="TREE_CHILD" sequenceNum="000"/>
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="EXAMPLE_main" mapKey="EXAMPLE_FindExample" fromDate="2006-01-12 01:01:02" sequenceNum="000" contentAssocTypeId="INSTANCE"/>
|
||||
|
||||
<DataResource dataResourceId="EXAMPLE_docbook" localeString="en" dataResourceTypeId="OFBIZ_FILE"
|
||||
objectInfo="plugins/example/data/helpdata/HELP_EXAMPLE_docbook.xml" dataTemplateTypeId="NONE" statusId="CTNT_IN_PROGRESS" dataResourceName="Example docBook usage" mimeTypeId="text/xml" isPublic="Y" />
|
||||
<Content contentId="EXAMPLE_docbook" contentTypeId="DOCUMENT" contentName="Example Docbook usage" templateDataResourceId="HELP_TEMPL" dataResourceId="EXAMPLE_docbook" statusId="CTNT_IN_PROGRESS" mimeTypeId="text/html"/>
|
||||
<ContentAssoc contentId="HELP_EXAMPLE" contentIdTo="EXAMPLE_docbook" contentAssocTypeId="TREE_CHILD" fromDate="2006-01-12 01:01:01" sequenceNum="000" mapKey="EXAMPLE_docbook"/>
|
||||
|
||||
|
||||
</entity-engine-xml>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
|
||||
def localeMap = []
|
||||
org.apache.ofbiz.base.util.UtilMisc.availableLocales().each { localeMap.add(localeId:it.toString()) }
|
||||
parameters.localeList = localeMap
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
|
||||
def localeMap = []
|
||||
org.apache.ofbiz.base.util.UtilMisc.availableLocales().each { localeMap.add(localeId:it.toString()) }
|
||||
parameters.localeList = localeMap
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
|
||||
module = "FindMyExcelImport.groovy";
|
||||
|
||||
data = delegator.findByAnd("ExcelImportHistory", [userLoginId : userLogin.userLoginId], ["sequenceNum DESC"], false);
|
||||
context.data = data;
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
|
||||
module = "FindMyExcelImport.groovy";
|
||||
|
||||
data = delegator.findByAnd("ExcelImportHistory", [userLoginId : userLogin.userLoginId], ["sequenceNum DESC"], false);
|
||||
context.data = data;
|
||||
|
||||
@@ -1,53 +1,53 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import java.io.FileInputStream;
|
||||
|
||||
module = "FindMyExcelImport.groovy";
|
||||
|
||||
context.borderStyle = "2px inset /*begin-color ThreeDHighlight*/#ffffff/*end-color*/";
|
||||
context.borderSimpleStyle = "2px solid /*begin-color ThreeDFace*/#f0f0f0/*end-color*/";
|
||||
|
||||
sequenceNum = request.getParameter("sequenceNum");
|
||||
|
||||
if (sequenceNum == null) {
|
||||
context.logFileContent = "No sequenceNum parameter found.";
|
||||
return;
|
||||
}
|
||||
|
||||
historyEntry = delegator.findOne("ExcelImportHistory", [sequenceNum : Long.valueOf(sequenceNum), userLoginId : userLogin.userLoginId], false);
|
||||
if (historyEntry == null) {
|
||||
context.logFileContent = "No import history found.";
|
||||
return;
|
||||
}
|
||||
|
||||
logFile = FileUtil.getFile("runtime/pricat/" + userLogin.userLoginId + "/" + sequenceNum + ".log");
|
||||
if (!logFile.exists()) {
|
||||
context.logFileContent = "No log file found.";
|
||||
}
|
||||
|
||||
FileInputStream fis = new FileInputStream(logFile);
|
||||
InputStreamReader isr = new InputStreamReader(fis);
|
||||
BufferedReader br = new BufferedReader(isr);
|
||||
logFileContent = "";
|
||||
while((s = br.readLine())!=null){
|
||||
logFileContent += s;
|
||||
}
|
||||
context.logFileContent = logFileContent;
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import java.io.FileInputStream;
|
||||
|
||||
module = "FindMyExcelImport.groovy";
|
||||
|
||||
context.borderStyle = "2px inset /*begin-color ThreeDHighlight*/#ffffff/*end-color*/";
|
||||
context.borderSimpleStyle = "2px solid /*begin-color ThreeDFace*/#f0f0f0/*end-color*/";
|
||||
|
||||
sequenceNum = request.getParameter("sequenceNum");
|
||||
|
||||
if (sequenceNum == null) {
|
||||
context.logFileContent = "No sequenceNum parameter found.";
|
||||
return;
|
||||
}
|
||||
|
||||
historyEntry = delegator.findOne("ExcelImportHistory", [sequenceNum : Long.valueOf(sequenceNum), userLoginId : userLogin.userLoginId], false);
|
||||
if (historyEntry == null) {
|
||||
context.logFileContent = "No import history found.";
|
||||
return;
|
||||
}
|
||||
|
||||
logFile = FileUtil.getFile("runtime/pricat/" + userLogin.userLoginId + "/" + sequenceNum + ".log");
|
||||
if (!logFile.exists()) {
|
||||
context.logFileContent = "No log file found.";
|
||||
}
|
||||
|
||||
FileInputStream fis = new FileInputStream(logFile);
|
||||
InputStreamReader isr = new InputStreamReader(fis);
|
||||
BufferedReader br = new BufferedReader(isr);
|
||||
logFileContent = "";
|
||||
while((s = br.readLine())!=null){
|
||||
logFileContent += s;
|
||||
}
|
||||
context.logFileContent = logFileContent;
|
||||
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
<?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.
|
||||
-->
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
|
||||
<menu name="PriCatDemoAppBar" title="${uiLabelMap.PriCatDemoApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="countdownreport" title="${uiLabelMap.PriCatDemoCountDown}">
|
||||
<link target="countdownreport"/>
|
||||
</menu-item>
|
||||
<menu-item name="countupreport" title="${uiLabelMap.PriCatDemoCountUp}">
|
||||
<link target="countupreport"/>
|
||||
</menu-item>
|
||||
<menu-item name="SamplePricat" title="${uiLabelMap.PriCatDemoParseSamplePricat}">
|
||||
<link target="SamplePricat"/>
|
||||
</menu-item>
|
||||
<menu-item name="main" title="${uiLabelMap.CommonMain}">
|
||||
<link target="main"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<?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.
|
||||
-->
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
|
||||
<menu name="PriCatDemoAppBar" title="${uiLabelMap.PriCatDemoApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="countdownreport" title="${uiLabelMap.PriCatDemoCountDown}">
|
||||
<link target="countdownreport"/>
|
||||
</menu-item>
|
||||
<menu-item name="countupreport" title="${uiLabelMap.PriCatDemoCountUp}">
|
||||
<link target="countupreport"/>
|
||||
</menu-item>
|
||||
<menu-item name="SamplePricat" title="${uiLabelMap.PriCatDemoParseSamplePricat}">
|
||||
<link target="SamplePricat"/>
|
||||
</menu-item>
|
||||
<menu-item name="main" title="${uiLabelMap.CommonMain}">
|
||||
<link target="main"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
</menus>
|
||||
@@ -1,29 +1,29 @@
|
||||
<?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.
|
||||
-->
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
|
||||
<menu name="PriCatAppBar" title="${uiLabelMap.PriCatApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="main" title="${uiLabelMap.ViewExcelImportHistory}">
|
||||
<link target="main"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
<?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.
|
||||
-->
|
||||
<menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Menu" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Menu http://ofbiz.apache.org/dtds/widget-menu.xsd">
|
||||
|
||||
<menu name="PriCatAppBar" title="${uiLabelMap.PriCatApplication}" extends="CommonAppBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="main" title="${uiLabelMap.ViewExcelImportHistory}">
|
||||
<link target="main"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
|
||||
</menus>
|
||||
@@ -1,19 +1,19 @@
|
||||
<!--
|
||||
Default configuration for the bisecting k-means clustering algorithm.
|
||||
|
||||
This file can be loaded (and saved) by Carrot2 Workbench.
|
||||
http://project.carrot2.org/download.html
|
||||
-->
|
||||
<attribute-sets default="attributes">
|
||||
<attribute-set id="attributes">
|
||||
<value-set>
|
||||
<label>attributes</label>
|
||||
<attribute key="MultilingualClustering.defaultLanguage">
|
||||
<value type="org.carrot2.core.LanguageCode" value="ENGLISH"/>
|
||||
</attribute>
|
||||
<attribute key="MultilingualClustering.languageAggregationStrategy">
|
||||
<value type="org.carrot2.text.clustering.MultilingualClustering$LanguageAggregationStrategy" value="FLATTEN_MAJOR_LANGUAGE"/>
|
||||
</attribute>
|
||||
</value-set>
|
||||
</attribute-set>
|
||||
</attribute-sets>
|
||||
<!--
|
||||
Default configuration for the bisecting k-means clustering algorithm.
|
||||
|
||||
This file can be loaded (and saved) by Carrot2 Workbench.
|
||||
http://project.carrot2.org/download.html
|
||||
-->
|
||||
<attribute-sets default="attributes">
|
||||
<attribute-set id="attributes">
|
||||
<value-set>
|
||||
<label>attributes</label>
|
||||
<attribute key="MultilingualClustering.defaultLanguage">
|
||||
<value type="org.carrot2.core.LanguageCode" value="ENGLISH"/>
|
||||
</attribute>
|
||||
<attribute key="MultilingualClustering.languageAggregationStrategy">
|
||||
<value type="org.carrot2.text.clustering.MultilingualClustering$LanguageAggregationStrategy" value="FLATTEN_MAJOR_LANGUAGE"/>
|
||||
</attribute>
|
||||
</value-set>
|
||||
</attribute-set>
|
||||
</attribute-sets>
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
<!--
|
||||
Default configuration for the Lingo clustering algorithm.
|
||||
|
||||
This file can be loaded (and saved) by Carrot2 Workbench.
|
||||
http://project.carrot2.org/download.html
|
||||
-->
|
||||
<attribute-sets default="attributes">
|
||||
<attribute-set id="attributes">
|
||||
<value-set>
|
||||
<label>attributes</label>
|
||||
<!--
|
||||
The language to assume for clustered documents.
|
||||
For a list of allowed values, see:
|
||||
http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
|
||||
-->
|
||||
<attribute key="MultilingualClustering.defaultLanguage">
|
||||
<value type="org.carrot2.core.LanguageCode" value="ENGLISH"/>
|
||||
</attribute>
|
||||
<attribute key="LingoClusteringAlgorithm.desiredClusterCountBase">
|
||||
<value type="java.lang.Integer" value="20"/>
|
||||
</attribute>
|
||||
</value-set>
|
||||
</attribute-set>
|
||||
</attribute-sets>
|
||||
<!--
|
||||
Default configuration for the Lingo clustering algorithm.
|
||||
|
||||
This file can be loaded (and saved) by Carrot2 Workbench.
|
||||
http://project.carrot2.org/download.html
|
||||
-->
|
||||
<attribute-sets default="attributes">
|
||||
<attribute-set id="attributes">
|
||||
<value-set>
|
||||
<label>attributes</label>
|
||||
<!--
|
||||
The language to assume for clustered documents.
|
||||
For a list of allowed values, see:
|
||||
http://download.carrot2.org/stable/manual/#section.attribute.lingo.MultilingualClustering.defaultLanguage
|
||||
-->
|
||||
<attribute key="MultilingualClustering.defaultLanguage">
|
||||
<value type="org.carrot2.core.LanguageCode" value="ENGLISH"/>
|
||||
</attribute>
|
||||
<attribute key="LingoClusteringAlgorithm.desiredClusterCountBase">
|
||||
<value type="java.lang.Integer" value="20"/>
|
||||
</attribute>
|
||||
</value-set>
|
||||
</attribute-set>
|
||||
</attribute-sets>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<!--
|
||||
Default configuration for the STC clustering algorithm.
|
||||
|
||||
This file can be loaded (and saved) by Carrot2 Workbench.
|
||||
http://project.carrot2.org/download.html
|
||||
-->
|
||||
<attribute-sets default="attributes">
|
||||
<attribute-set id="attributes">
|
||||
<value-set>
|
||||
<label>attributes</label>
|
||||
<attribute key="MultilingualClustering.defaultLanguage">
|
||||
<value type="org.carrot2.core.LanguageCode" value="ENGLISH"/>
|
||||
</attribute>
|
||||
<attribute key="MultilingualClustering.languageAggregationStrategy">
|
||||
<value type="org.carrot2.text.clustering.MultilingualClustering$LanguageAggregationStrategy" value="FLATTEN_MAJOR_LANGUAGE"/>
|
||||
</attribute>
|
||||
</value-set>
|
||||
</attribute-set>
|
||||
</attribute-sets>
|
||||
<!--
|
||||
Default configuration for the STC clustering algorithm.
|
||||
|
||||
This file can be loaded (and saved) by Carrot2 Workbench.
|
||||
http://project.carrot2.org/download.html
|
||||
-->
|
||||
<attribute-sets default="attributes">
|
||||
<attribute-set id="attributes">
|
||||
<value-set>
|
||||
<label>attributes</label>
|
||||
<attribute key="MultilingualClustering.defaultLanguage">
|
||||
<value type="org.carrot2.core.LanguageCode" value="ENGLISH"/>
|
||||
</attribute>
|
||||
<attribute key="MultilingualClustering.languageAggregationStrategy">
|
||||
<value type="org.carrot2.text.clustering.MultilingualClustering$LanguageAggregationStrategy" value="FLATTEN_MAJOR_LANGUAGE"/>
|
||||
</attribute>
|
||||
</value-set>
|
||||
</attribute-set>
|
||||
</attribute-sets>
|
||||
|
||||
@@ -1,67 +1,67 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<!-- Example exchange rates file for CurrencyField type named "currency" in example schema -->
|
||||
|
||||
<currencyConfig version="1.0">
|
||||
<rates>
|
||||
<!-- Updated from http://www.exchangerate.com/ at 2011-09-27 -->
|
||||
<rate from="USD" to="ARS" rate="4.333871" comment="ARGENTINA Peso" />
|
||||
<rate from="USD" to="AUD" rate="1.025768" comment="AUSTRALIA Dollar" />
|
||||
<rate from="USD" to="EUR" rate="0.743676" comment="European Euro" />
|
||||
<rate from="USD" to="BRL" rate="1.881093" comment="BRAZIL Real" />
|
||||
<rate from="USD" to="CAD" rate="1.030815" comment="CANADA Dollar" />
|
||||
<rate from="USD" to="CLP" rate="519.0996" comment="CHILE Peso" />
|
||||
<rate from="USD" to="CNY" rate="6.387310" comment="CHINA Yuan" />
|
||||
<rate from="USD" to="CZK" rate="18.47134" comment="CZECH REP. Koruna" />
|
||||
<rate from="USD" to="DKK" rate="5.515436" comment="DENMARK Krone" />
|
||||
<rate from="USD" to="HKD" rate="7.801922" comment="HONG KONG Dollar" />
|
||||
<rate from="USD" to="HUF" rate="215.6169" comment="HUNGARY Forint" />
|
||||
<rate from="USD" to="ISK" rate="118.1280" comment="ICELAND Krona" />
|
||||
<rate from="USD" to="INR" rate="49.49088" comment="INDIA Rupee" />
|
||||
<rate from="USD" to="XDR" rate="0.641358" comment="INTNL MON. FUND SDR" />
|
||||
<rate from="USD" to="ILS" rate="3.709739" comment="ISRAEL Sheqel" />
|
||||
<rate from="USD" to="JPY" rate="76.32419" comment="JAPAN Yen" />
|
||||
<rate from="USD" to="KRW" rate="1169.173" comment="KOREA (SOUTH) Won" />
|
||||
<rate from="USD" to="KWD" rate="0.275142" comment="KUWAIT Dinar" />
|
||||
<rate from="USD" to="MXN" rate="13.85895" comment="MEXICO Peso" />
|
||||
<rate from="USD" to="NZD" rate="1.285159" comment="NEW ZEALAND Dollar" />
|
||||
<rate from="USD" to="NOK" rate="5.859035" comment="NORWAY Krone" />
|
||||
<rate from="USD" to="PKR" rate="87.57007" comment="PAKISTAN Rupee" />
|
||||
<rate from="USD" to="PEN" rate="2.730683" comment="PERU Sol" />
|
||||
<rate from="USD" to="PHP" rate="43.62039" comment="PHILIPPINES Peso" />
|
||||
<rate from="USD" to="PLN" rate="3.310139" comment="POLAND Zloty" />
|
||||
<rate from="USD" to="RON" rate="3.100932" comment="ROMANIA Leu" />
|
||||
<rate from="USD" to="RUB" rate="32.14663" comment="RUSSIA Ruble" />
|
||||
<rate from="USD" to="SAR" rate="3.750465" comment="SAUDI ARABIA Riyal" />
|
||||
<rate from="USD" to="SGD" rate="1.299352" comment="SINGAPORE Dollar" />
|
||||
<rate from="USD" to="ZAR" rate="8.329761" comment="SOUTH AFRICA Rand" />
|
||||
<rate from="USD" to="SEK" rate="6.883442" comment="SWEDEN Krona" />
|
||||
<rate from="USD" to="CHF" rate="0.906035" comment="SWITZERLAND Franc" />
|
||||
<rate from="USD" to="TWD" rate="30.40283" comment="TAIWAN Dollar" />
|
||||
<rate from="USD" to="THB" rate="30.89487" comment="THAILAND Baht" />
|
||||
<rate from="USD" to="AED" rate="3.672955" comment="U.A.E. Dirham" />
|
||||
<rate from="USD" to="UAH" rate="7.988582" comment="UKRAINE Hryvnia" />
|
||||
<rate from="USD" to="GBP" rate="0.647910" comment="UNITED KINGDOM Pound" />
|
||||
|
||||
<!-- Cross-rates for some common currencies -->
|
||||
<rate from="EUR" to="GBP" rate="0.869914" />
|
||||
<rate from="EUR" to="NOK" rate="7.800095" />
|
||||
<rate from="GBP" to="NOK" rate="8.966508" />
|
||||
</rates>
|
||||
</currencyConfig>
|
||||
<?xml version="1.0" ?>
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
|
||||
<!-- Example exchange rates file for CurrencyField type named "currency" in example schema -->
|
||||
|
||||
<currencyConfig version="1.0">
|
||||
<rates>
|
||||
<!-- Updated from http://www.exchangerate.com/ at 2011-09-27 -->
|
||||
<rate from="USD" to="ARS" rate="4.333871" comment="ARGENTINA Peso" />
|
||||
<rate from="USD" to="AUD" rate="1.025768" comment="AUSTRALIA Dollar" />
|
||||
<rate from="USD" to="EUR" rate="0.743676" comment="European Euro" />
|
||||
<rate from="USD" to="BRL" rate="1.881093" comment="BRAZIL Real" />
|
||||
<rate from="USD" to="CAD" rate="1.030815" comment="CANADA Dollar" />
|
||||
<rate from="USD" to="CLP" rate="519.0996" comment="CHILE Peso" />
|
||||
<rate from="USD" to="CNY" rate="6.387310" comment="CHINA Yuan" />
|
||||
<rate from="USD" to="CZK" rate="18.47134" comment="CZECH REP. Koruna" />
|
||||
<rate from="USD" to="DKK" rate="5.515436" comment="DENMARK Krone" />
|
||||
<rate from="USD" to="HKD" rate="7.801922" comment="HONG KONG Dollar" />
|
||||
<rate from="USD" to="HUF" rate="215.6169" comment="HUNGARY Forint" />
|
||||
<rate from="USD" to="ISK" rate="118.1280" comment="ICELAND Krona" />
|
||||
<rate from="USD" to="INR" rate="49.49088" comment="INDIA Rupee" />
|
||||
<rate from="USD" to="XDR" rate="0.641358" comment="INTNL MON. FUND SDR" />
|
||||
<rate from="USD" to="ILS" rate="3.709739" comment="ISRAEL Sheqel" />
|
||||
<rate from="USD" to="JPY" rate="76.32419" comment="JAPAN Yen" />
|
||||
<rate from="USD" to="KRW" rate="1169.173" comment="KOREA (SOUTH) Won" />
|
||||
<rate from="USD" to="KWD" rate="0.275142" comment="KUWAIT Dinar" />
|
||||
<rate from="USD" to="MXN" rate="13.85895" comment="MEXICO Peso" />
|
||||
<rate from="USD" to="NZD" rate="1.285159" comment="NEW ZEALAND Dollar" />
|
||||
<rate from="USD" to="NOK" rate="5.859035" comment="NORWAY Krone" />
|
||||
<rate from="USD" to="PKR" rate="87.57007" comment="PAKISTAN Rupee" />
|
||||
<rate from="USD" to="PEN" rate="2.730683" comment="PERU Sol" />
|
||||
<rate from="USD" to="PHP" rate="43.62039" comment="PHILIPPINES Peso" />
|
||||
<rate from="USD" to="PLN" rate="3.310139" comment="POLAND Zloty" />
|
||||
<rate from="USD" to="RON" rate="3.100932" comment="ROMANIA Leu" />
|
||||
<rate from="USD" to="RUB" rate="32.14663" comment="RUSSIA Ruble" />
|
||||
<rate from="USD" to="SAR" rate="3.750465" comment="SAUDI ARABIA Riyal" />
|
||||
<rate from="USD" to="SGD" rate="1.299352" comment="SINGAPORE Dollar" />
|
||||
<rate from="USD" to="ZAR" rate="8.329761" comment="SOUTH AFRICA Rand" />
|
||||
<rate from="USD" to="SEK" rate="6.883442" comment="SWEDEN Krona" />
|
||||
<rate from="USD" to="CHF" rate="0.906035" comment="SWITZERLAND Franc" />
|
||||
<rate from="USD" to="TWD" rate="30.40283" comment="TAIWAN Dollar" />
|
||||
<rate from="USD" to="THB" rate="30.89487" comment="THAILAND Baht" />
|
||||
<rate from="USD" to="AED" rate="3.672955" comment="U.A.E. Dirham" />
|
||||
<rate from="USD" to="UAH" rate="7.988582" comment="UKRAINE Hryvnia" />
|
||||
<rate from="USD" to="GBP" rate="0.647910" comment="UNITED KINGDOM Pound" />
|
||||
|
||||
<!-- Cross-rates for some common currencies -->
|
||||
<rate from="EUR" to="GBP" rate="0.869914" />
|
||||
<rate from="EUR" to="NOK" rate="7.800095" />
|
||||
<rate from="GBP" to="NOK" rate="8.966508" />
|
||||
</rates>
|
||||
</currencyConfig>
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<!-- If this file is found in the config directory, it will only be
|
||||
loaded once at startup. If it is found in Solr's data
|
||||
directory, it will be re-loaded every commit.
|
||||
|
||||
See http://wiki.apache.org/solr/QueryElevationComponent for more info
|
||||
|
||||
-->
|
||||
<elevate>
|
||||
<query text="foo bar">
|
||||
<doc id="1" />
|
||||
<doc id="2" />
|
||||
<doc id="3" />
|
||||
</query>
|
||||
|
||||
<query text="ipod">
|
||||
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
|
||||
<doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
|
||||
</query>
|
||||
|
||||
</elevate>
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<!-- If this file is found in the config directory, it will only be
|
||||
loaded once at startup. If it is found in Solr's data
|
||||
directory, it will be re-loaded every commit.
|
||||
|
||||
See http://wiki.apache.org/solr/QueryElevationComponent for more info
|
||||
|
||||
-->
|
||||
<elevate>
|
||||
<query text="foo bar">
|
||||
<doc id="1" />
|
||||
<doc id="2" />
|
||||
<doc id="3" />
|
||||
</query>
|
||||
|
||||
<query text="ipod">
|
||||
<doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
|
||||
<doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
|
||||
</query>
|
||||
|
||||
</elevate>
|
||||
|
||||
+1155
-1155
File diff suppressed because it is too large
Load Diff
+1786
-1786
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user