SWGetRecords format additions for sorting, p=fvanderbiest, r=me,bartvde (closes #2952)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11957 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -32,7 +32,8 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
|
||||
csw: "http://www.opengis.net/cat/csw/2.0.2",
|
||||
dc: "http://purl.org/dc/elements/1.1/",
|
||||
dct: "http://purl.org/dc/terms/",
|
||||
ows: "http://www.opengis.net/ows"
|
||||
ows: "http://www.opengis.net/ows",
|
||||
ogc: "http://www.opengis.net/ogc"
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -389,14 +390,13 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
|
||||
node
|
||||
);
|
||||
}
|
||||
//TODO: not implemented in ogc filters?
|
||||
//if (options.SortBy) {
|
||||
//this.writeNode(
|
||||
//"ogc:SortBy",
|
||||
//options.SortBy,
|
||||
//node
|
||||
//);
|
||||
//}
|
||||
if (options.SortBy) {
|
||||
this.writeNode(
|
||||
"ogc:SortBy",
|
||||
options.SortBy,
|
||||
node
|
||||
);
|
||||
}
|
||||
return node;
|
||||
},
|
||||
"ElementName": function(options) {
|
||||
@@ -433,7 +433,8 @@ OpenLayers.Format.CSWGetRecords.v2_0_2 = OpenLayers.Class(OpenLayers.Format.XML,
|
||||
}
|
||||
return node;
|
||||
}
|
||||
}
|
||||
},
|
||||
"ogc": OpenLayers.Format.Filter.v1_1_0.prototype.writers["ogc"]
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Format.CSWGetRecords.v2_0_2"
|
||||
|
||||
Reference in New Issue
Block a user