Class Index | File Index

Classes


Class Search

Builds an Advanced Search and returns the search results.
Defined in: Search.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Search(search, pageSize, pageNumber, sortDirection, sortField)
Builds an Advanced Search and returns the search results.
Class Detail
Search(search, pageSize, pageNumber, sortDirection, sortField)
Builds an Advanced Search and returns the search results. Applies the configurations provided in 'search' to the Advanced Search, and returns the search results as AssetID's and field values. These values are parsed into a text object keyed by AssetID from the JSON file in which they are contained, and by default are displayed to the user.
'MBurl'/wf/search?search={conjunction:'and/or',criteria:[{schema:'Schema1',field:'Field1',condition:'(see below)',value:'Value1'},{schema:'Schema2',field:'Field2',condition:'(see below)',value:'Value2'}]}
http://127.0.0.1:55555/wf/search?search={"conjunction":"and","criteria":[{"schema":"http://purl.org/dc/elements/1.1/","field":"subject","condition":"not","value":""}]}
Parameters:
search
Used to fill out the Advanced Search parameters. The object structure is {conjunction:'..',criteria:[{schema:'..',field:'..',condition:'..',value:'..'}, {conjunction:'..',criteria:[]},... ]}
pageSize
default 100
pageNumber
default = 0
sortDirection
"ASC" or "DESC"
sortField
the namespace of the desired field ex "record_id" or "http://purl.org/dc/elements/1.1/ subject" NotEqualsCondition = "ne"; LessThanCondition = "lt"; LessEqualCondition = "le"; GreaterThanCondition = "gt"; GreaterEqualCondition = "ge"; BeforeCondition = "bt"; BeforeEqualCondition = "be"; AfterCondition = "at"; AfterEqualCondition = "ae"; BetweenCondition = "between"; ContainsCondition = "cont"; DoesNotContainCondition = "not_cont"; BeginsCondition = "beg"; DoesNotBeginCondition = "not_beg"; EndsCondition = "end"; ContainsAllCondition = "allCont"; ContainsAnyCondition = "anyCont"; Null = "null"; NotNull = "not"; BulkIs = "bulkIs"; BulkStarts = "bulkStart"; ContainsPartialValue = "cont_part"; DoesNotContainPartialValue = "not_cont_part"; AnyValue = "anyval"; BegEndsWithMarker = "@@"; AnyWordCondition = "any"; AllWordsCondition = "all"; WithoutCondition = "wo"; PhraseCondition = "phrase";
Returns:
( {"AssetID": {"name": "Name","Field1": "Asset Value for Field1","Field2": "Asset Value for Field2"},...} )

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Oct 02 2015 17:09:29 GMT-0500 (CDT)