This commit is contained in:
wangjinlei
2023-05-10 10:38:50 +08:00
parent 94e8d38856
commit 2b00d0cfa8

View File

@@ -1726,8 +1726,7 @@ class Article extends Controller {
$xml = '';
//create xml 头
$xml .= '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
$xml .= '<doi_batch version="4.3.7" xmlns="http://www.crossref.org/schema/4.3.7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.crossref.org/schema/4.3.7
http://www.crossref.org/schemas/crossref4.3.7.xsd">' . PHP_EOL . PHP_EOL;
$xml .= '<doi_batch version="4.3.7" xmlns="http://www.crossref.org/schema/4.3.7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.crossref.org/schema/4.3.7 http://www.crossref.org/schemas/crossref4.3.7.xsd">' . PHP_EOL . PHP_EOL;
$xml .= '<head>' . PHP_EOL;
$xml .= '<doi_batch_id>' . date('Ymd') . '</doi_batch_id>' . PHP_EOL;
$xml .= '<timestamp>' . date('YmdHis') . '</timestamp>' . PHP_EOL;
@@ -1822,8 +1821,7 @@ http://www.crossref.org/schemas/crossref4.3.7.xsd">' . PHP_EOL . PHP_EOL;
$xml = '';
//create xml 头
$xml .= '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
$xml .= '<doi_batch version="4.3.7" xmlns="http://www.crossref.org/schema/4.3.7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.crossref.org/schema/4.3.7
http://www.crossref.org/schemas/crossref4.3.7.xsd">' . PHP_EOL . PHP_EOL;
$xml .= '<doi_batch version="4.3.7" xmlns="http://www.crossref.org/schema/4.3.7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.crossref.org/schema/4.3.7 http://www.crossref.org/schemas/crossref4.3.7.xsd">' . PHP_EOL . PHP_EOL;
$xml .= '<head>' . PHP_EOL;
$xml .= '<doi_batch_id>' . date('Ymd') . '</doi_batch_id>' . PHP_EOL;
$xml .= '<timestamp>' . date('YmdHis') . '</timestamp>' . PHP_EOL;