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]: export "standard" item type #2543

Closed
MysticDragonfly opened this issue Jun 26, 2023 · 5 comments
Closed

[Feature]: export "standard" item type #2543

MysticDragonfly opened this issue Jun 26, 2023 · 5 comments
Labels

Comments

@MysticDragonfly
Copy link

Debug log ID

YBFQAFYY-refs-euc

What happened?

A bug happened! I am using BBT in zotero. Today i found that BBT cannot export references of type "standard". I use the software 7-Zip to check zotero-better-bibtex-6.6.79.xpi. I opened the file ./content/workder/zotero.js, and after searching and comparing, I found that the "standard" item was missing in some places. Specifically: 128764 lines, 131569 lines. Refs of type "standard" will be marked as "msic". After supplementing these two omissions, the Refs marked with "standard" can be exported correctly.

The corrected codes in zotero.js are shown as follow:
line 128764 :
types: /* @PURE */ new Set(["article", "book", "bookinbook", "booklet", "collection", "inbook", "incollection", "inproceedings", "inreference", "manual", "misc", "mvbook", "mvcollection", "online", "patent", "periodical", "proceedings", "reference", "report", "set", "suppbook", "suppcollection", "suppperiodical", "thesis", "unpublished", "standard"]),
lines 131568-131570
report: "techreport",
standard: "standard",
statute: "misc",

@retorquere retorquere changed the title [Bug/Feature]: [Feature]: export "standard" item type Jun 26, 2023
@retorquere
Copy link
Owner

retorquere commented Jun 26, 2023

I'd rather know what you want the output to look like. The compiled code you are looking at has changed since so it's easier for me to work from a sample.

@retorquere
Copy link
Owner

Are you exporting to bibtex or biblatex?

@MysticDragonfly
Copy link
Author

MysticDragonfly commented Jun 27, 2023

Before I modified it, the entry of this document in the exported .bib file was:

@misc{ZhongHuaRenMinGongHeGuoGongYeHeXinXiHuaBu2016,
    title = {6kV~1000kV power transformer sound level: JB/T 10088-2016},
    author = {{Ministry of Industry and Information Technology of the People's Republic of China}},
    year = {2016},
    month = oct,
    langid = {chinese}
}

When I complete the above modification, the entry of the document in the exported .bib file is:

@standard{ZhongHuaRenMinGongHeGuoGongYeHeXinXiHuaBu2016,
    title = {6kV~1000kV power transformer sound level: JB/T 10088-2016},
    author = {{Ministry of Industry and Information Technology of the People's Republic of China}},
    year = {2016},
    month = oct,
    langid = {chinese}
}

Their difference lies in the change of document type mark.

@retorquere
Copy link
Owner

That's bibtex though. Bibtex doesn't know a @standard entry type. If you export as biblatex, it will already export as @standard.

@MysticDragonfly
Copy link
Author

oh, I see. Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants