Author: ashish
Date: Wed Aug 26 16:20:35 2009
New Revision: 808099
URL:
http://svn.apache.org/viewvc?rev=808099&view=revLog:
Few more modifications in google base code.
Modified:
ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
Modified: ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java?rev=808099&r1=808098&r2=808099&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java (original)
+++ ofbiz/trunk/specialpurpose/googlebase/src/org/ofbiz/googlebase/ProductsExportToGoogle.java Wed Aug 26 16:20:35 2009
@@ -60,6 +60,8 @@
private static final String resource = "GoogleBaseUiLabels";
private static final String module = ProductsExportToGoogle.class.getName();
private static final String googleBaseNSUrl = "
http://base.google.com/ns/1.0";
+ private static final String googleBaseMetadataUrl = "
http://base.google.com/ns-metadata/1.0";
+ private static final String googleBaseAppUrl = "
http://purl.org/atom/app#";
public static Map exportToGoogle(DispatchContext dctx, Map context) {
Locale locale = (Locale) context.get("locale");
@@ -419,12 +421,12 @@
// status is draft or deactivate
if (statusId != null && ("draft".equals(statusId) || "deactivate".equals(statusId))) {
- Element appControlElem = UtilXml.addChildElement(entryElem, "app:control", feedDocument);
- UtilXml.addChildElementValue(appControlElem, "app:draft", "yes", feedDocument);
+ Element appControlElem = UtilXml.addChildElementNSElement(entryElem, "app:control", feedDocument, googleBaseAppUrl);
+ UtilXml.addChildElementNSValue(appControlElem, "app:draft", "yes", feedDocument, googleBaseAppUrl);
// status is deactivate
if ("deactivate".equals(statusId)) {
- UtilXml.addChildElement(appControlElem, "gm:disapproved", feedDocument);
+ UtilXml.addChildElementNSElement(appControlElem, "gm:disapproved", feedDocument, googleBaseMetadataUrl);
}
}