参考文献type

This commit is contained in:
wangjinlei
2026-07-09 15:42:55 +08:00
parent 4fd967b1d4
commit 4cf26ea682
4 changed files with 278 additions and 16 deletions

View File

@@ -81,6 +81,21 @@ class ReferenceTypeClassifier
/**
* CrossRef type → 内部枚举映射;未命中返回空串
*/
/**
* 将细分类归并为排版用的三类journal / book / other
*/
public function normalizeDispatchType($type)
{
$type = strtolower(trim((string)$type));
if ($type === self::TYPE_BOOK) {
return self::TYPE_BOOK;
}
if ($type === self::TYPE_JOURNAL) {
return self::TYPE_JOURNAL;
}
return self::TYPE_OTHER;
}
public function mapCrossrefType($crossrefType)
{
$t = strtolower(trim((string)$crossrefType));