参考文献type
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user