zotero-chinese / website

Zotero 中文社区官方网站源码 | Source code for website of Zotero Chinese community
https://zotero-chinese.com
MIT License
5 stars 2 forks source link

feat: csl styles page #40

Closed northword closed 3 months ago

northword commented 4 months ago

closes: #10 needs: https://github.com/redleafnew/Chinese-STD-GB-T-7714-related-csl/pull/318 needs: https://github.com/zotero-chinese/wiki/pull/197

working in progress

github-actions[bot] commented 4 months ago

✅ 成功部署预览!

类型 链接
预览地址 https://deploy-preview-40--zotero-zh.netlify.app
最新提交 b64d4d30b427ff1287aa8aabf38cf36d904e96a8
部署日志 部署预览 #113
zepinglee commented 4 months ago

我写了一个脚本 get-csl-tags.js 用于获取特征。

$ node tests/get-csl-tags.js 002gb-t-7714-2015-numeric-bilingual-no-uppercase-no-url-doi.csl                                                                                                                                          
{
  author_uppercase: false,
  author_initilized: true,
  title_displayed: true,
  journal_abbreviated: false,
  doi_displayed: false,
  url_displayed: false
}
northword commented 4 months ago

我写了一个脚本 get-csl-tags.js 用于获取特征。

这个实现似乎是从结果获取特征的,是否有可能从源码匹配某些关键词来实现呢?

zepinglee commented 4 months ago

这个实现似乎是从结果获取特征的,是否有可能从源码匹配某些关键词来实现呢?

从结果获取更可靠。

比如像 APS 的样式中,期刊文章不显示标题,图书则显示标题。如果从源码判断就要解析 <if type="article-journal> 之类的条件,还不如从结果分析简单。

northword commented 4 months ago

image

这种形式的参考文献表是正常的吗?

(他换了个行,似乎破坏了网址的构建)

来源:https://github.com/zotero-chinese/styles/tree/main/src/gb-t-7714-2015-numeric-auup-bilan-ce

(Chinese-STD-GB-T-7714-related-csl 已经没有这个样式了)

zepinglee commented 4 months ago

这种形式的参考文献表是正常的吗?

(他换了个行,似乎破坏了网址的构建)

来源:https://github.com/zotero-chinese/styles/tree/main/src/gb-t-7714-2015-numeric-auup-bilan-ce

(Chinese-STD-GB-T-7714-related-csl 已经没有这个样式了)

不太正常。但我印象中 Chinese-STD-GB-T-7714-related-csl 还有这个问题。我稍后修一下。

zepinglee commented 4 months ago

这种形式的参考文献表是正常的吗? (他换了个行,似乎破坏了网址的构建) 来源:https://github.com/zotero-chinese/styles/tree/main/src/gb-t-7714-2015-numeric-auup-bilan-ce (Chinese-STD-GB-T-7714-related-csl 已经没有这个样式了)

不太正常。但我印象中 Chinese-STD-GB-T-7714-related-csl 还有这个问题。我稍后修一下。

已在 https://github.com/redleafnew/Chinese-STD-GB-T-7714-related-csl/commit/396173b7ea88333d4484612917bdcde7002a6117 中修复。