/** * @covers ParaciteRawCitationNlmCitationSchemaFilter */ public function testAllCitationsWithThisParser() { foreach (ParaciteRawCitationNlmCitationSchemaFilter::getSupportedCitationModules() as $citationModule) { $filter = new ParaciteRawCitationNlmCitationSchemaFilter($citationModule); parent::testAllCitationsWithThisParser($filter); unset($filter); } }
function ParaciteRawCitationNlmCitationSchemaFilter($citationModule = CITATION_PARSER_PARACITE_STANDARD) { $this->setDisplayName('ParaCite'); assert(in_array($citationModule, ParaciteRawCitationNlmCitationSchemaFilter::getSupportedCitationModules())); $this->setData('citationModule', $citationModule); // Instantiate the settings of this filter $citationModuleSetting = new SetFilterSetting('citationModule', 'metadata.filters.paracite.settings.citationModule.displayName', 'metadata.filters.paracite.settings.citationModule.validationMessage', ParaciteRawCitationNlmCitationSchemaFilter::getSupportedCitationModules()); $this->addSetting($citationModuleSetting); parent::NlmCitationSchemaFilter(NLM_CITATION_FILTER_PARSE); }
function ParaciteRawCitationNlmCitationSchemaFilter($citationModule = CITATION_PARSER_PARACITE_STANDARD) { assert(in_array($citationModule, ParaciteRawCitationNlmCitationSchemaFilter::getSupportedCitationModules())); $this->_citationModule = $citationModule; parent::NlmCitationSchemaFilter(); }