Service to perform processing of data between the DAO and View layers
| Type | Name and description |
|---|---|
java.lang.Object |
grailsApplication |
| Type Params | Return Type | Name and description |
|---|---|---|
|
org.grails.web.json.JSONObject |
augmentRecord(org.grails.web.json.JSONObject record)Add markup, links, etc., to certain field values. |
|
java.lang.String |
createQueryWithTaxaParam(java.util.List taxaQueries, java.util.List guidsForTaxa)Generate SOLR query from a taxa[] query |
|
java.util.LinkedHashMap |
getAllFacets(java.util.List defaultFacets)Build a LinkedHashMap form of the facets to display in the customise drop down div |
|
java.util.Map |
getAllGroupedFacets(java.util.Map groupedFacets, java.lang.Object facetResults, java.lang.Object dynamicFacets)Add any ungrouped facets from search results to the groupedFacetsMap used to construct the facets column in search results. |
|
java.lang.String[] |
getFacetsFromCookie(javax.servlet.http.HttpServletRequest request)Read the request cookie to determine which facets are active |
|
java.lang.String[] |
getFilteredFacets(java.util.LinkedHashMap<java.lang.String, java.lang.Boolean> finalFacetsMap)Filter the Map of all facets to produce a list of only the "active" or selected facets |
|
java.util.List |
getGroupedAssertions(org.grails.web.json.JSONArray userAssertions, org.grails.web.json.JSONArray queryAssertions, java.lang.String currentUserId)Get the assertions grouped by assertion code. |
|
java.util.List |
getListFromGroupedFacets(java.util.Map groupedFacets)Extract list of facet fields from the grouped facets Map (json) |
|
java.util.Map |
getMapOfFacetResults(org.grails.web.json.JSONArray facetResults)Create a Map of facet fields for a "lookup" in _facets.gsp Also normalises some fields (decade) |
|
java.util.List |
getMetadataForOutlierLayers(org.grails.web.json.JSONObject record, java.util.Map layersMetaData)Add layers metadata to outlier for layer record attributes |
|
java.util.List |
getUngroupedFacetsList(java.util.Map groupedFacets, java.lang.Object facetResults)Get a list of facet fields (from search results) that are NOT in the grouped facets Map. |
|
java.lang.String[] |
mergeRequestedFacets(java.util.List requestedFacets, java.util.List customFacets)Merge requested and custom facets |
|
java.lang.Boolean |
resultsHaveImages(org.grails.web.json.JSONObject searchResults)Determine if the record contains images |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add markup, links, etc., to certain field values. Due to the way the record page is generated in a field-agnostic way, it makes it hard to add field-specific formatting in the current output taglib (formatExtraDwC). TODO: move record key string values into enum or config (e.g. Location & Occurrence)
Generate SOLR query from a taxa[] query
Build a LinkedHashMap form of the facets to display in the customise drop down div
Add any ungrouped facets from search results to the groupedFacetsMap used to construct the facets column in search results.
Read the request cookie to determine which facets are active
Filter the Map of all facets to produce a list of only the "active" or selected facets
Get the assertions grouped by assertion code.
Extract list of facet fields from the grouped facets Map (json)
Create a Map of facet fields for a "lookup" in _facets.gsp Also normalises some fields (decade)
Add layers metadata to outlier for layer record attributes
Get a list of facet fields (from search results) that are NOT in the grouped facets Map.
Merge requested and custom facets
Determine if the record contains images