Pawtucket2 plugin hooks

From CollectiveAccess Documentation
Jump to: navigation, search

Supported hooks in Pawtucket2 include:

Hook name Description Parameters Where used
hookDetailDownloadMediaObjectIDs Triggered during a user-requested download from a detail. Passes a list of requested objects for which media will be downloaded. The plugin may modify this list to control what is actually sent to the user. Param 1: an array containing a list of object_id's for which the user is requesting a download. The plugin may modify and return this list to expand or reduce the media that will be included in the download. DetailContoller
hookDetailDownloadMediaFilePaths Triggered during a user-requested download from a detail. Passes a list of paths to media that will be downloaded. The plugin may modify this list to control what is actually sent to the user. Param 1: an array containing a list of file paths for which the user is requesting a download. The plugin may modify and return this list to expand or reduce the media that will be included in the download, or to add additional files, such as a README file. DetailContoller
hookReplaceSearch Triggered prior to "full" search on a specific item type (not a multi-record "multi search") with information about the search. The plugin can rewrite the user-entered search expression as well as configuration information. If a search result instance is returned for the result value that instance will be used in place of the search to be executed. This allows the plugin to adjust search parameters or, when needed, override normal search behavior with a synthesized result. Param 1: an array containing these keys and values:
  • search: the name of the search, corresponding to an entry in the browse.conf browseTypes block. (Since searches are refine-able browses seeded with a search they use browse.conf definitions)
  • browseInfo: configuration for the browseTypes entry referred to by search
  • searchExpression: the user-entered search expression
  • result: a null value. The plugin can set this value to a valid search result if it wished to replace the standard search results with a result generated within the plugin.
SearchContoller

sphinx2022 pawtucket

Namespaces

Variants
Actions
Navigation
Tools
User
Personal tools