Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] 统一学位论文类型 #132

Closed
zepinglee opened this issue Jan 25, 2024 · 7 comments
Closed

[Feature Request] 统一学位论文类型 #132

zepinglee opened this issue Jan 25, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@zepinglee
Copy link

Describe the feature

原帖在 zotero-chinese/styles@0210f66#commitcomment-137770113

  1. 一些早期的 translator 抓取的“学位论文类型”为“博士”或“硕士”,不符合 Zotero 的要求(参考 FAQ),需要补上“学位论文”。
  2. 一些 CSL 样式需要输出该字段,建议将空的 thesisType 填写默认的 博士学位论文Doctoral dissertation
  3. thesisType 的大小写统一为 sentence case,例如 Ph.D. dissertation, Master’s thesis,方便 CSL 按需求处理。

Additional context

    let genre = item.getField('type', false, true);
    let newGenre = genre;

    if (item.itemType === 'thesis') {
        if (!genre) {
            newGenre = 'Doctoral dissertation';
            if (isChinese(item.getField('title'))) {
                newGenre = '博士学位论文';
            }
        }
        if (newGenre === '博士' || newGenre === '硕士') {
            newGenre = newGenre + '学位论文';
        } else if (newGenre === 'Dissertation' || newGenre === 'Thesis') {
            newGenre = 'Doctoral dissertation';
        }
    }
    if (newGenre) {
        newGenre = Zotero.Utilities.capitalize(newGenre);
        newGenre = newGenre.replace(' Dissertation', ' dissertation');
        newGenre = newGenre.replace(' thesis', ' thesis');
    }
@zepinglee zepinglee added the enhancement New feature or request label Jan 25, 2024
@zepinglee
Copy link
Author

呃……跟 #131 发重了。

@northword
Copy link
Owner

硕士 -> 硕士学位论文
博士 -> 博士学位论文
Dissertation -> Doctoral dissertation
Ph.D. -> Doctoral dissertation
thesis -> Master thesis
master -> Master thesis

这样应该就可以?(应该么有其他常见的乱七八糟的词了吧)

一些 CSL 样式需要输出该字段,建议将空的 thesisType 填写默认的 博士学位论文 或 Doctoral dissertation。

这样是否会有不妥?我觉得如果一篇论文没有填类别,且插件不能准确获取类别的时候,最好应保持留空,让用户在检查参考文献表时候判断补充,而不是给出假值。

@zepinglee
Copy link
Author

这样是否会有不妥?我觉得如果一篇论文没有填类别,且插件不能准确获取类别的时候,最好应保持留空,让用户在检查参考文献表时候判断补充,而不是给出假值。

也行。

硕士 -> 硕士学位论文 博士 -> 博士学位论文 Dissertation -> Doctoral dissertation Ph.D. -> Doctoral dissertation thesis -> Master thesis master -> Master thesis

这样应该就可以?(应该么有其他常见的乱七八糟的词了吧)

那就去掉 Dissertation -> Doctoral dissertationthesis -> Master thesis 吧,dissertation 和 thesis 是同义词,没有硕士博士之分。

@northword
Copy link
Owner

dissertation 和 thesis 是同义词,没有硕士博士之分。

我查到的一些资料里显示这个是有区分的:

image

https://www.uopeople.edu/blog/dissertation-vs-thesis/#:~:text=The%20biggest%20difference%20between%20a,research%20and%20then%20perform%20analysis.

https://www.gcu.edu/blog/doctoral-journey/thesis-vs-dissertation

@zepinglee
Copy link
Author

MW 的解释并没有特别明显的差异。

https://www.merriam-webster.com/dictionary/dissertation

https://www.merriam-webster.com/dictionary/thesis

可能 dissertation 更特指博士学位论文,而 thesis 是个通用的词。Zotero 的文献类型也用的是 thesis 这个词。

@northword
Copy link
Owner

那就去掉 Dissertation -> Doctoral dissertationthesis -> Master thesis

那可以去掉 thesis -> Master thesis ,保留 Dissertation -> Doctoral dissertation

Copy link

🚀 This ticket has been resolved in v1.10.0. See Release 1.10.0 for release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants