Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
IsbndbNlm30CitationSchemaIsbnFilter Class Reference
Inheritance diagram for IsbndbNlm30CitationSchemaIsbnFilter:
IsbndbNlm30CitationSchemaFilter Nlm30CitationSchemaFilter PersistableFilter Filter DataObject

Public Member Functions

_getSearchTemplates ()
 getClassName ()
process (&$citationDescription)
 supports (&$input, &$output)
- Public Member Functions inherited from IsbndbNlm30CitationSchemaFilter
 getApiKey ()
 isValidIsbn ($isbn)
- Public Member Functions inherited from Nlm30CitationSchemaFilter
 _guessPublicationType (&$metadataArray)
_recursivelyTrimPunctuation (&$metadataArray)
callWebService ($url, &$params, $returnType=XSL_TRANSFORMER_DOCTYPE_DOM, $method= 'GET')
 constructSearchStrings (&$searchTemplates, &$citationDescription)
fixPublisherNameAndLocation (&$metadata)
 getIsOptional ()
getNlm30CitationDescriptionFromMetadataArray (&$metadataArray)
 getSupportedPublicationTypes ()
 Nlm30CitationSchemaFilter (&$filterGroup, $supportedPublicationTypes=array())
postProcessMetadataArray (&$preliminaryNlm30Array)
 supports (&$input, &$output)
transformWebServiceResults (&$xmlResult, $xslFileName)
- Public Member Functions inherited from PersistableFilter
 addSetting (&$setting)
 getClassName ()
getFilterGroup ()
 getInternalSettings ()
 getIsTemplate ()
 getLocalizedSettingNames ()
 getParentFilterId ()
getSetting ($settingName)
 getSettingNames ()
getSettings ()
 hasSetting ($settingName)
 hasSettings ()
 PersistableFilter ($filterGroup)
 setIsTemplate ($isTemplate)
 setParentFilterId ($parentFilterId)
- Public Member Functions inherited from Filter
 addError ($message)
 clearErrors ()
execute (&$input)
 Filter ($inputType, $outputType)
 getDisplayName ()
 getErrors ()
getInputType ()
getLastInput ()
getLastOutput ()
getOutputType ()
getRuntimeEnvironment ()
 getSeq ()
 hasErrors ()
 isCompatibleWithRuntimeEnvironment ()
process (&$input)
 setDisplayName ($displayName)
 setRuntimeEnvironment (&$runtimeEnvironment)
 setSeq ($seq)
 setTransformationType (&$inputType, &$outputType)
 supports (&$input, &$output)
 supportsAsInput (&$input)
- Public Member Functions inherited from DataObject
 addSupportedMetadataAdapter ($metadataAdapter)
 DataObject ()
 extractMetadata ($metadataSchema)
 getAdditionalMetadataFieldNames ()
getAllData ()
getData ($key, $locale=null)
 getHasLoadableAdapters ()
 getId ()
 getLocaleMetadataFieldNames ()
getLocalizedData ($key)
 getMetadataFieldNames ($translated=true)
 getSetMetadataFieldNames ($translated=true)
 getSupportedExtractionAdapters ()
 getSupportedInjectionAdapters ()
 getSupportedMetadataSchemas ()
 hasData ($key, $locale=null)
 injectMetadata ($metadataDescription)
 removeSupportedMetadataAdapter ($metadataSchemaName)
 setAllData (&$data)
 setData ($key, $value, $locale=null)
 setHasLoadableAdapters ($hasLoadableAdapters)
 setId ($id)
 upcastTo ($targetObject)

Additional Inherited Members

- Static Public Member Functions inherited from Nlm30CitationSchemaFilter
static _allowedPublicationTypes ()
- Static Public Member Functions inherited from PersistableFilter
static tempGroup ($inputType, $outputType)
- Static Public Member Functions inherited from Filter
static supportedRuntimeEnvironmentSettings ()
- Public Attributes inherited from PersistableFilter
 $_settings = array()
- Public Attributes inherited from Filter
 $_errors = array()
 $_runtimeEnvironment = false
- Public Attributes inherited from DataObject
 $_data = array()
 $_extractionAdaptersLoaded = false
 $_hasLoadableAdapters = false
 $_injectionAdaptersLoaded = false
 $_metadataExtractionAdapters = array()
 $_metadataInjectionAdapters = array()

Detailed Description

Filter that uses the ISBNdb web service to identify an ISBN for a given citation.

Definition at line 20 of file

Member Function Documentation

& IsbndbNlm30CitationSchemaIsbnFilter::_getSearchTemplates ( )

Return an array of search templates.


Definition at line 114 of file

Referenced by process().

IsbndbNlm30CitationSchemaIsbnFilter::getClassName ( )

Return the fully qualified class name of the filter class. This information must be persisted when saving a filter so that the filter can later be reconstructed from the information in the database.

(This must be hard coded by sub-classes for PHP4 compatibility. PHP4 always returns class names lowercase which we cannot tolerate as we need this path to find the class on case sensitive file systems.)

Definition at line 37 of file

& IsbndbNlm30CitationSchemaIsbnFilter::process ( $citationDescription)

This method performs the actual data processing. NB: sub-classes must implement this method.

$inputmixed validated filter input data
mixed non-validated filter output or null if processing was not successful.
string an ISBN or null

Definition at line 61 of file

References _getSearchTemplates(), Nlm30CitationSchemaFilter\callWebService(), Nlm30CitationSchemaFilter\constructSearchStrings(), and IsbndbNlm30CitationSchemaFilter\getApiKey().

IsbndbNlm30CitationSchemaIsbnFilter::supports ( $input,

Returns true if the given input and output objects represent a valid transformation for this filter.

This check must be type based. It can optionally include an additional stateful inspection of the given object instances.

If the output type is null then only check whether the given input type is one of the input types accepted by this filter.

The standard implementation provides full type based checking. Subclasses must implement any required stateful inspection of the provided objects.


Definition at line 51 of file

References IsbndbNlm30CitationSchemaFilter\isValidIsbn().

The documentation for this class was generated from the following file: