fixed: Change the Menu extends-resource management to allow structure changes by themes

(OFBIZ-10600)

Fixed the lack of menu theme definition in the xsd file

Thanks: To Jacques Le Roux for being more attentive to the log file than I have been ;)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1844697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Julien Nicolas
2018-10-23 20:11:00 +00:00
parent 0e33487170
commit 995a39461a
+20 -2
View File
@@ -27,6 +27,7 @@ under the License.
<xs:element minOccurs="0" maxOccurs="1" ref="theme-properties"/>
<xs:element minOccurs="0" maxOccurs="1" ref="templates"/>
<xs:element minOccurs="0" maxOccurs="1" ref="common-screens"/>
<xs:element minOccurs="0" maxOccurs="1" ref="common-menus"/>
</xs:sequence>
<xs:attribute type="xs:string" name="name" use="required" />
</xs:complexType>
@@ -201,11 +202,22 @@ under the License.
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="root-decorator">
<xs:element name="common-menus">
<xs:annotation><xs:documentation>
List the location of each common menus that the theme implement
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="screen" />
<xs:element ref="root-decorator" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="root-decorator">
<xs:complexType>
<xs:choice>
<xs:element maxOccurs="unbounded" ref="screen"/>
<xs:element maxOccurs="unbounded" ref="menu"/>
</xs:choice>
<xs:attribute type="xs:string" name="default-location" use="optional" />
</xs:complexType>
</xs:element>
@@ -231,5 +243,11 @@ under the License.
<xs:attribute type="xs:string" name="location" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="menu">
<xs:complexType>
<xs:attribute type="xs:string" name="name" use="required"/>
<xs:attribute type="xs:string" name="location" use="optional"/>
</xs:complexType>
</xs:element>
</xs:schema>