From 053d6a0116a280614eb6699cd3fa964965527154 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 3 Mar 2022 01:05:40 -0500 Subject: [PATCH] Add Preprint item type See zotero/zotero-bits#88 --- chrome/content/zotero/components/icons.jsx | 1 + chrome/content/zotero/xpcom/data/cachedTypes.js | 1 + chrome/locale/en-US/zotero/zotero.properties | 4 ++++ chrome/skin/default/zotero/treeitem-preprint.png | Bin 0 -> 268 bytes .../skin/default/zotero/treeitem-preprint@2x.png | Bin 0 -> 456 bytes resource/schema/global | 2 +- 6 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 chrome/skin/default/zotero/treeitem-preprint.png create mode 100644 chrome/skin/default/zotero/treeitem-preprint@2x.png diff --git a/chrome/content/zotero/components/icons.jsx b/chrome/content/zotero/components/icons.jsx index 0bd109d520..3fd1ecd281 100644 --- a/chrome/content/zotero/components/icons.jsx +++ b/chrome/content/zotero/components/icons.jsx @@ -127,6 +127,7 @@ i('TreeitemNoteSmall', 'chrome://zotero/skin/treeitem-note-small.png'); i('TreeitemPatent', 'chrome://zotero/skin/treeitem-patent.png'); i('Treeitem', 'chrome://zotero/skin/treeitem.png'); i('TreeitemPodcast', 'chrome://zotero/skin/treeitem-podcast.png', false); +i('TreeitemPreprint', 'chrome://zotero/skin/treeitem-preprint.png'); i('TreeitemPresentation', 'chrome://zotero/skin/treeitem-presentation.png'); i('TreeitemRadioBroadcast', 'chrome://zotero/skin/treeitem-radioBroadcast.png', false); i('TreeitemReport', 'chrome://zotero/skin/treeitem-report.png'); diff --git a/chrome/content/zotero/xpcom/data/cachedTypes.js b/chrome/content/zotero/xpcom/data/cachedTypes.js index 3509a0c2de..908ffa8153 100644 --- a/chrome/content/zotero/xpcom/data/cachedTypes.js +++ b/chrome/content/zotero/xpcom/data/cachedTypes.js @@ -485,6 +485,7 @@ Zotero.ItemTypes = new function() { case 'newspaperArticle': case 'note': case 'patent': + case 'preprint': case 'presentation': case 'report': case 'statute': diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index df4025e3db..891582340a 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -474,6 +474,7 @@ itemTypes.conferencePaper = Conference Paper itemTypes.document = Document itemTypes.encyclopediaArticle = Encyclopedia Article itemTypes.dictionaryEntry = Dictionary Entry +itemTypes.preprint = Preprint itemFields.itemType = Type itemFields.title = Title @@ -587,6 +588,9 @@ itemFields.filingDate = Filing Date itemFields.genre = Genre itemFields.archive = Archive itemFields.attachmentPDF = PDF Attachment +itemFields.repository = Repository +itemFields.archiveID = Archive ID +itemFields.citationKey = Citation Key creatorTypes.author = Author creatorTypes.contributor = Contributor diff --git a/chrome/skin/default/zotero/treeitem-preprint.png b/chrome/skin/default/zotero/treeitem-preprint.png new file mode 100644 index 0000000000000000000000000000000000000000..f8d32da04a4d9860277f8a1dc7e3cc9a81aef2ab GIT binary patch literal 268 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt@!JzX3_ zEPAI-cI0X?;Bno5*|Ir3KtNniMlfn`&B0LdM}iFvH!F}?ze`cdEYs0tg zekWP|vS!YlpCUM6mB0tP$$P#h2?#PMod4`x%d+8GQ^z8SHpY9uiz|5yjy2456`!PZ zz{GbEv(h1pzV8j|UjKW2fm3j4?}Itre%GR$HK&?6T{a24xNBX~W{!wyu5<27OlDiL z>eZ($Z+Y)Bl%4%tQ*hz?-U|Nd4ZGIq&uyt{ovm})PBSv7GyVR~JJS0na^4Ry+VDRR P=oto2S3j3^P6T8y8ZF z@HiAKoyM}0ozX}KnA_W1F|xplCjid?PE-6g%~_!M3&00}Pm&XotY1j-d*Fnh0yj92 z^$`HH)~^5{ggDzT!1cgh@*pNm)09PEFL{s_a4{#NbC4E{drEy90TGWUD0000