16 import(
'lib.pkp.tests.functional.plugins.importexport.FunctionalImportExportBaseTestCase');
36 $export = $this->getXpathOnExport(
'CrossRefExportPlugin/exportArticle/1');
37 $export->registerNamespace(
'cr',
'http://www.crossref.org/schema/4.3.0');
39 $basePath =
'/cr:doi_batch/cr:body/cr:journal';
41 'cr:journal_issue/cr:doi_data/cr:doi' =>
'10.1234/t.v1i1',
42 'cr:journal_issue/cr:doi_data/cr:resource' => $this->baseUrl .
'/index.php/test/issue/view/1',
43 'cr:journal_article/cr:doi_data/cr:doi' =>
'10.1234/t.v1i1.1',
44 'cr:journal_article/cr:doi_data/cr:resource' => $this->baseUrl .
'/index.php/test/article/view/1',
45 'cr:journal_article/cr:component_list/cr:component/cr:doi_data/cr:doi' =>
'10.1234/t.v1i1.1.s1',
47 foreach($testCases as $xPath => $expectedDoi) {
50 $export->evaluate(
"string($basePath/$xPath)"),
51 "Error while evaluating $xPath:"