[GRASS-SVN] r40076 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 19 16:17:22 EST 2009


Author: huhabla
Date: 2009-12-19 16:17:21 -0500 (Sat, 19 Dec 2009)
New Revision: 40076

Modified:
   grass/trunk/lib/gis/parser_wps.c
Log:
Print the html help into the abstract xml element.

Modified: grass/trunk/lib/gis/parser_wps.c
===================================================================
--- grass/trunk/lib/gis/parser_wps.c	2009-12-19 20:54:20 UTC (rev 40075)
+++ grass/trunk/lib/gis/parser_wps.c	2009-12-19 21:17:21 UTC (rev 40076)
@@ -387,7 +387,27 @@
     int i;
 
     fprintf(stdout,"\t<ProcessDescription wps:processVersion=\"1\" storeSupported=\"%s\" statusSupported=\"%s\">\n", (store?"true":"false"), (status?"true":"false"));
-    wps_print_ident_title_abstract(identifier, title, abstract);
+       if(identifier)
+    {
+        fprintf(stdout,"\t\t<ows:Identifier>");
+        print_escaped_for_xml(stdout, identifier);
+        fprintf(stdout,"</ows:Identifier>\n");
+    }
+
+    if(title)
+    {
+        fprintf(stdout,"\t\t<ows:Title>");
+        print_escaped_for_xml(stdout, title);
+        fprintf(stdout, "</ows:Title>\n");
+    }
+
+    if(abstract)
+    {
+        fprintf(stdout,"\t\t<ows:Abstract>\n");
+        G__usage_html();
+        fprintf(stdout, "\n\t\t</ows:Abstract>\n");
+    }
+
     for(i = 0; i < num_keywords; i++)
     {
         fprintf(stdout,"\t\t<ows:Metadata xlink:title=\"");



More information about the grass-commit mailing list