Sha256: f82050b1720722aba3f544f0ba829b1e38aa270b4da406095a031074cf5e9b07

Contents?: true

Size: 870 Bytes

Versions: 7

Compression:

Stored size: 870 Bytes

Contents

/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
 * full list of contributors). Published under the 2-clause BSD license.
 * See license.txt in the OpenLayers distribution or repository for the
 * full text of the license. */

/**
 * @requires OpenLayers/Protocol.js
 */

/**
 * Class: OpenLayers.Protocol.CSW
 * Used to create a versioned CSW protocol. Default version is 2.0.2.
 */
OpenLayers.Protocol.CSW = function(options) {
    options = OpenLayers.Util.applyDefaults(
        options, OpenLayers.Protocol.CSW.DEFAULTS
    );
    var cls = OpenLayers.Protocol.CSW["v"+options.version.replace(/\./g, "_")];
    if(!cls) {
        throw "Unsupported CSW version: " + options.version;
    }
    return new cls(options);
};

/**
 * Constant: OpenLayers.Protocol.CSW.DEFAULTS
 */
OpenLayers.Protocol.CSW.DEFAULTS = {
    "version": "2.0.2"
};

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/lib/OpenLayers/Protocol/CSW.js
postrunner-0.0.9 misc/openlayers/lib/OpenLayers/Protocol/CSW.js
postrunner-0.0.8 misc/openlayers/lib/OpenLayers/Protocol/CSW.js
postrunner-0.0.7 misc/openlayers/lib/OpenLayers/Protocol/CSW.js
postrunner-0.0.6 misc/openlayers/lib/OpenLayers/Protocol/CSW.js
postrunner-0.0.5 misc/openlayers/lib/OpenLayers/Protocol/CSW.js
postrunner-0.0.4 misc/openlayers/lib/OpenLayers/Protocol/CSW.js