Author: jacopoc
Date: Sun Aug 5 08:01:52 2007
New Revision: 562879
URL:
http://svn.apache.org/viewvc?view=rev&rev=562879Log:
Fixed draft export for Google base.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductsExportToGoogle.java
ofbiz/trunk/applications/product/webapp/catalog/find/ExportForms.xml
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductsExportToGoogle.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductsExportToGoogle.java?view=diff&rev=562879&r1=562878&r2=562879==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductsExportToGoogle.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductsExportToGoogle.java Sun Aug 5 08:01:52 2007
@@ -276,6 +276,7 @@
feedElem.setAttribute("xmlns:openSearch", "
http://a9.com/-/spec/opensearchrss/1.0/");
feedElem.setAttribute("xmlns:g", "
http://base.google.com/ns/1.0");
feedElem.setAttribute("xmlns:batch", "
http://schemas.google.com/gdata/batch");
+ feedElem.setAttribute("xmlns:app", "
http://purl.org/atom/app#");
// Iterate the product list getting all the relevant data
Iterator productsListItr = productsList.iterator();
@@ -323,7 +324,6 @@
// status is draft or deactivate
if (statusId != null && ("draft".equals(statusId) || "deactivate".equals(statusId))) {
Element appControlElem = UtilXml.addChildElement(entryElem, "app:control", feedDocument);
- appControlElem.setAttribute("xmlns:app", "
http://purl.org/atom/app#");
UtilXml.addChildElementValue(appControlElem, "app:draft", "yes", feedDocument);
// status is deactivate
Modified: ofbiz/trunk/applications/product/webapp/catalog/find/ExportForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/find/ExportForms.xml?view=diff&rev=562879&r1=562878&r2=562879==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/find/ExportForms.xml (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/find/ExportForms.xml Sun Aug 5 08:01:52 2007
@@ -32,7 +32,7 @@
</drop-down>
</field>
<field name="statusId">
- <drop-down no-current-selected-key="publish">
+ <drop-down no-current-selected-key="draft">
<!--
<option key="deactivate" description="${uiLabelMap.ProductExportDeactivated}"/>
-->