Author: ygrego Date: 2015-04-03 14:31:21 +0000 (Fri, 03 Apr 2015) New Revision: 1075 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1075 Log: New methods: "createQuery". Modified: oipf/js/impl/model/MetadataSearch.js Modified: oipf/js/impl/model/MetadataSearch.js =================================================================== --- oipf/js/impl/model/MetadataSearch.js 2015-04-03 13:55:15 UTC (rev 1074) +++ oipf/js/impl/model/MetadataSearch.js 2015-04-03 14:31:21 UTC (rev 1075) @@ -260,6 +260,18 @@ */ addCurrentRatingConstraint: function() { + }, + + /* + * Description: + * Create a metadata query for a specific value in a specific + * field within the metadata. Simple queries MAY be combined to + * create more complex queries. Applications SHALL follow the + * JavaScript type conversion rules to convert non-string values + * into their string representation, if necessary. + */ + createQuery: function(field, comparison, value) { + return new Query(field, comparison, value); } }); \ No newline at end of file