<commit_before><?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"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
    <screen name="CommonCategoryDecorator">
        <section>
            <actions>
                <set field="headerItem" value="categories"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="left-column">
                        <include-menu name="CategorySideBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                        <include-screen name="leftbar" location="component://product/widget/catalog/CommonScreens.xml"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <or>
                                    <if-has-permission permission="CATALOG" action="_ADMIN"/>
                                    <if-has-permission permission="CATALOG" action="_CREATE"/>
                                    <if-has-permission permission="CATALOG" action="_UPDATE"/>
                                    <if-has-permission permission="CATALOG" action="_VIEW"/>
                                </or>
                            </condition>
                            <actions>
                                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                            </actions>
                            <widgets>
                                <section>
                                    <condition>
                                        <not><if-empty field="productCategory"/></not>
                                    </condition>
                                    <widgets>
                                        <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                        <label style="h2">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${productCategory.categoryName} [${uiLabelMap.CommonId}:${productCategoryId}]  ${${extraFunctionName}}</label>
                                    </widgets>
                                    <fail-widgets>
                                        <section>
                                            <condition>
                                                <if-compare operator="not-equals" value="EditCategory" field="tabButtonItem"/>
                                            </condition>
                                            <widgets>
                                                <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                            </widgets>
                                        </section>
                                    </fail-widgets>
                                </section>
                                <decorator-section-include name="body"/>
                            </widgets>
                            <fail-widgets>
                                <label style="perm-error-msg">${uiLabelMap.ProductCatalogViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindCategory">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindCategory"/>
                <set field="headerItem" value="categories"/>
                <set field="tabButtonItem" value="FindCategory"/>
                <set field="labelTitleProperty" value="ProductCategory"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonCategoryDecorator">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                                    <decorator-section name="search-options">
                                        <include-form name="FindCategory" location="component://product/widget/catalog/CategoryForms.xml"/>
                                    </decorator-section>
                                    <decorator-section name="search-results">
                                        <include-form name="ListCategory" location="component://product/widget/catalog/CategoryForms.xml"/>
                                    </decorator-section>
                                </decorator-screen>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditCategory">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditProductCategories"/>
                <set field="headerItem" value="categories"/>
                <set field="tabButtonItem" value="EditCategory"/>
                <set field="labelTitleProperty" value="ProductCategory"/>
                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                <entity-condition entity-name="ProductCategoryType" list="productCategoryTypes">
                    <order-by field-name="description"/>
                </entity-condition>
                <script location="component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy"/>
            </actions>
            <widgets>
                 <decorator-screen name="CommonCategoryDecorator">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/category/EditCategory.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditCategorySection">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditProductCategories"/>
                <set field="headerItem" value="categories"/>
                <set field="tabButtonItem" value="EditCategory"/>
                <set field="labelTitleProperty" value="ProductCategory"/>
                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                <entity-condition entity-name="ProductCategoryType" list="productCategoryTypes">
                    <order-by field-name="description"/>
                </entity-condition>
                <script location="component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <or>
                                    <if-has-permission permission="CATALOG" action="_ADMIN"/>
                                    <if-has-permission permission="CATALOG" action="_CREATE"/>
                                    <if-has-permission permission="CATALOG" action="_UPDATE"/>
                                    <if-has-permission permission="CATALOG" action="_VIEW"/>
                                </or>
                            </condition>
                            <actions>
                                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                            </actions>
                            <widgets>
                                <section>
                                    <condition>
                                        <not><if-empty field="productCategory"/></not>
                                    </condition>
                                    <widgets>
                                        <include-menu name="CategoryTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                        <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                        <label style="h2">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${productCategory.description} [${uiLabelMap.CommonId}:${productCategoryId}]  ${${extraFunctionName}}</label>
                                    </widgets>
                                    <fail-widgets>
                                        <section>
                                            <condition>
                                                <if-compare operator="not-equals" value="EditCategory" field="tabButtonItem"/>
                                            </condition>
                                            <widgets>
                                                <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                            </widgets>
                                        </section>
                                    </fail-widgets>
                                </section>
                                <decorator-section-include name="body"/>
                            </widgets>
                            <fail-widgets>
                                <label style="perm-error-msg">${uiLabelMap.ProductCatalogViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/category/EditCategory.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen><commit_msg>Changing label style in CategoryScreens.xml and adjusting label to display productCategory.categoryName in stead of productCategory.description.<commit_after><?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"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
    <screen name="CommonCategoryDecorator">
        <section>
            <actions>
                <set field="headerItem" value="categories"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="left-column">
                        <include-menu name="CategorySideBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                        <include-screen name="leftbar" location="component://product/widget/catalog/CommonScreens.xml"/>
                    </decorator-section>
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <or>
                                    <if-has-permission permission="CATALOG" action="_ADMIN"/>
                                    <if-has-permission permission="CATALOG" action="_CREATE"/>
                                    <if-has-permission permission="CATALOG" action="_UPDATE"/>
                                    <if-has-permission permission="CATALOG" action="_VIEW"/>
                                </or>
                            </condition>
                            <actions>
                                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                            </actions>
                            <widgets>
                                <section>
                                    <condition>
                                        <not><if-empty field="productCategory"/></not>
                                    </condition>
                                    <widgets>
                                        <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                        <label style="heading">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${productCategory.categoryName} [${uiLabelMap.CommonId}:${productCategoryId}]  ${${extraFunctionName}}</label>
                                    </widgets>
                                    <fail-widgets>
                                        <section>
                                            <condition>
                                                <if-compare operator="not-equals" value="EditCategory" field="tabButtonItem"/>
                                            </condition>
                                            <widgets>
                                                <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                            </widgets>
                                        </section>
                                    </fail-widgets>
                                </section>
                                <decorator-section-include name="body"/>
                            </widgets>
                            <fail-widgets>
                                <label style="perm-error-msg">${uiLabelMap.ProductCatalogViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="FindCategory">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleFindCategory"/>
                <set field="headerItem" value="categories"/>
                <set field="tabButtonItem" value="FindCategory"/>
                <set field="labelTitleProperty" value="ProductCategory"/>
            </actions>
            <widgets>
                <decorator-screen name="CommonCategoryDecorator">
                    <decorator-section name="body">
                        <section>
                            <widgets>
                                <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
                                    <decorator-section name="search-options">
                                        <include-form name="FindCategory" location="component://product/widget/catalog/CategoryForms.xml"/>
                                    </decorator-section>
                                    <decorator-section name="search-results">
                                        <include-form name="ListCategory" location="component://product/widget/catalog/CategoryForms.xml"/>
                                    </decorator-section>
                                </decorator-screen>
                            </widgets>
                        </section>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditCategory">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditProductCategories"/>
                <set field="headerItem" value="categories"/>
                <set field="tabButtonItem" value="EditCategory"/>
                <set field="labelTitleProperty" value="ProductCategory"/>
                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                <entity-condition entity-name="ProductCategoryType" list="productCategoryTypes">
                    <order-by field-name="description"/>
                </entity-condition>
                <script location="component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy"/>
            </actions>
            <widgets>
                 <decorator-screen name="CommonCategoryDecorator">
                    <decorator-section name="body">
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/category/EditCategory.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
            </widgets>
        </section>
    </screen>
    <screen name="EditCategorySection">
        <section>
            <actions>
                <set field="titleProperty" value="PageTitleEditProductCategories"/>
                <set field="headerItem" value="categories"/>
                <set field="tabButtonItem" value="EditCategory"/>
                <set field="labelTitleProperty" value="ProductCategory"/>
                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                <entity-condition entity-name="ProductCategoryType" list="productCategoryTypes">
                    <order-by field-name="description"/>
                </entity-condition>
                <script location="component://product/webapp/catalog/WEB-INF/actions/category/EditCategory.groovy"/>
            </actions>
            <widgets>
                <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">
                        <section>
                            <condition>
                                <or>
                                    <if-has-permission permission="CATALOG" action="_ADMIN"/>
                                    <if-has-permission permission="CATALOG" action="_CREATE"/>
                                    <if-has-permission permission="CATALOG" action="_UPDATE"/>
                                    <if-has-permission permission="CATALOG" action="_VIEW"/>
                                </or>
                            </condition>
                            <actions>
                                <set field="productCategoryId" from-field="parameters.productCategoryId"/>
                                <entity-one entity-name="ProductCategory" value-field="productCategory"/>
                            </actions>
                            <widgets>
                                <section>
                                    <condition>
                                        <not><if-empty field="productCategory"/></not>
                                    </condition>
                                    <widgets>
                                        <include-menu name="CategoryTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                        <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                        <label style="h2">${uiLabelMap[labelTitleProperty]} ${uiLabelMap.CommonFor}: ${productCategory.categoryName} [${uiLabelMap.CommonId}:${productCategoryId}]  ${${extraFunctionName}}</label>
                                    </widgets>
                                    <fail-widgets>
                                        <section>
                                            <condition>
                                                <if-compare operator="not-equals" value="EditCategory" field="tabButtonItem"/>
                                            </condition>
                                            <widgets>
                                                <include-menu name="CategorySubTabBar" location="component://product/widget/catalog/CatalogMenus.xml"/>
                                            </widgets>
                                        </section>
                                    </fail-widgets>
                                </section>
                                <decorator-section-include name="body"/>
                            </widgets>
                            <fail-widgets>
                                <label style="perm-error-msg">${uiLabelMap.ProductCatalogViewPermissionError}</label>
                            </fail-widgets>
                        </section>
                        <platform-specific>
                            <html><html-template location="component://product/webapp/catalog/category/EditCategory.ftl"/></html>
                        </platform-specific>
                    </decorator-section>
                </decorator-screen>
{'fraction_non_alphanumeric': 0.10427151890566524, 'fraction_numerical': 0.0011614401858304297, 'mean_word_length': 1.2520585101230262, 'pattern_counts': {'":': 0, '<': 375, '<?xml version=': 2, '>': 375, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 25}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 122, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4039840', 'n_tokens_mistral': 4888, 'n_tokens_neox': 4591, 'n_words': 845}