Custom taglib for biocache-hubs
| Type | Name and description |
|---|---|
java.lang.Object |
addApplicationMetaTagsOutput the meta tags (HTML head section) for the build meta data in application.properties E.g. |
java.lang.Object |
authService |
java.lang.Object |
camelCaseToHumanCamel case converted, taken from JS code: |
java.lang.Object |
currentFilterItemGenerate HTML for current filters |
java.lang.Object |
dataQualityHelpGenerate the icon and popup for the data quality help codes/links |
java.lang.Object |
databaseFieldNameDatabase field names align with download field names so they be in i18n with or without .p appended. |
java.lang.Object |
emailLinkA little bit of email scrambling for dumb scrappers. |
java.lang.Object |
facetLinkListGenerate facet links in the left hand column |
java.lang.Object |
formatDynamicFacetNameFormats the display of dynamic facet names in Sandbox (facet options popup) |
java.lang.Object |
formatExtraDwCGenerate a compare record "row" |
java.lang.Object |
formatListRecordRowOutput a row (occurrence record) in the search results "Records" tab |
java.lang.Object |
formatRawVsProcessedGenerate the table body for the raw vs processed table (popup) |
java.lang.Object |
formatSciNameFormat scientific name for HTML display |
java.lang.Object |
getBiocacheAjaxUrlDetermine the URL prefix for biocache-service AJAX calls. |
java.lang.Object |
getDruidGet the DRUID |
java.lang.Object |
getLoggerReasonsGet the list of available reason codes and labels from the Logger app |
java.lang.Object |
getQueryStringForRadiusRemove |
java.lang.Object |
getQueryStringForWktRemoveGenerate a query string for the remove spatial filter link |
java.lang.Object |
getRecordIdDetermine the recordId TODO |
java.lang.Object |
getScientificNameDetermine the scientific name |
java.lang.Object |
getSourceIdGet the appropriate sourceId for the current hub |
java.lang.Object |
groupedAssertionsPrint a |
java.lang.Object |
logMsg
|
java.lang.Object |
loggedInUserDisplaynameDisplay the logged in user (display name) |
java.lang.Object |
loggedInUserEmailDisplay the logged in user (email) |
java.lang.Object |
loggedInUserIdDisplay the logged in user (user id) |
java.lang.Object |
maxDynamicProperties |
java.lang.Object |
maxDynamicPropertyLength |
java.lang.Object |
messageAlternative to g.message(code:'foo.bar') |
java.lang.Object |
messageSourceCacheService |
static java.lang.Object |
namespace |
java.lang.Object |
occurrenceTableRowGenerate an occurrence table row |
java.lang.Object |
outageBannerDisplay an outage banner |
static java.lang.Object |
rangePattern |
java.lang.Object |
rawScientificNameOutput the appropriate raw scientific name for the record |
static java.lang.Object |
returnObjectForTags |
java.lang.Object |
userService |
java.lang.Object |
webServicesService |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
formatDynamicLabel(java.lang.Object str) |
|
java.lang.Object |
formatFieldName(java.lang.Object fieldCode, java.lang.Object fieldName)Format a dynamic field name. |
|
java.lang.String |
sanitizeBodyText(java.lang.String input, java.lang.Boolean openInNewWindow = true)Utility to sanitise HTML text and only allow links to be kept, removing any other HTML markup. |
| 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() |
Output the meta tags (HTML head section) for the build meta data in application.properties E.g. etc. Updated to use properties provided by build-info plugin
Camel case converted, taken from JS code: str.replace(/([a-z])([A-Z])/g, "$1 $2").toLowerCase().capitalize();
Generate HTML for current filters
Generate the icon and popup for the data quality help codes/links
Database field names align with download field names so they be in i18n with or without .p appended. Download field name values in i18n may end with a distinction between raw and processed that occurs after '-'
A little bit of email scrambling for dumb scrappers. Uses email attribute as email if present else uses the body. If no attribute and the body is not an email address then nothing is shown.
Generate facet links in the left hand column
Formats the display of dynamic facet names in Sandbox (facet options popup)
Generate a compare record "row"
Output a row (occurrence record) in the search results "Records" tab
Generate the table body for the raw vs processed table (popup)
Format scientific name for HTML display
Determine the URL prefix for biocache-service AJAX calls. Looks at the biocache.ajax.useProxy config var to see whether or not to use the proxy
Get the DRUID
Get the list of available reason codes and labels from the Logger app Note: outputs an Object and thus needs: static returnObjectForTags = ['getLoggerReasons'] at top of taglib
Generate a query string for the remove spatial filter link
Determine the recordId TODO
Determine the scientific name
Get the appropriate sourceId for the current hub
Print a
Display the logged in user (display name)
Display the logged in user (email)
Display the logged in user (user id)
Alternative to g.message(code:'foo.bar')
Generate an occurrence table row
Display an outage banner
Output the appropriate raw scientific name for the record
Format a dynamic field name.
Utility to sanitise HTML text and only allow links to be kept, removing any
other HTML markup. Links get target="_blank" added unless
openInNewWindow is set to false.
input - HTML StringopenInNewWindow - Boolean default to to true