igorjrd/vscode-cslpreview

Individual citations display issue

redleafnew opened this issue · 3 comments

In the author year csl, for the same author and year, and disambiguate-add-year-suffix="true" the preview is different with zotero or word.

It shows
(FAO, 2013)
(FAO, 2013a)
(FAO, 2013b)

The correct is:
(FAO, 2013a)
(FAO, 2013b)
(FAO, 2013c)

Is this a bug?

Example csl:
https://github.com/redleafnew/Chinese-STD-GB-T-7714-related-csl/blob/main/210advances-in-psychological-science.csl

The items:

[
	{
		"id": "http://zotero.org/groups/4677213/items/6MHTHAR7",
		"type": "book",
		"call-number": "338.19",
		"event-place": "Rome",
		"language": "en",
		"publisher": "Food and Agriculture Organization of the United Nations",
		"publisher-place": "Rome",
		"source": "BnF ISBN",
		"title": "The state of food insecurity in the world 2013: the multiple dimensions of food security",
		"title-short": "🔤2013 年世界粮食不安全状况:粮食安全的多个方面",
		"author": [
			{
				"family": "FAO",
				"given": ""
			}
		],
		"issued": {
			"date-parts": [
				[
					"2013"
				]
			]
		}
	},
	{
		"id": "http://zotero.org/groups/4677213/items/KADAB3KG",
		"type": "book",
		"call-number": "HD9000.5 .T636 2013",
		"event-place": "Rome",
		"language": "en",
		"note": "OCLC: ocn858897077",
		"publisher": "Food and Agriculture Organization of the United Nations",
		"publisher-place": "Rome",
		"source": "Library of Congress ISBN",
		"title": "Toolkit: reducing the food wastage footprint",
		"title-short": "🔤工具包:减少食物浪费足迹",
		"author": [
			{
				"family": "FAO",
				"given": ""
			}
		],
		"issued": {
			"date-parts": [
				[
					"2013"
				]
			]
		}
	},
	{
		"id": "http://zotero.org/groups/4677213/items/QDXCFYEI",
		"type": "book",
		"call-number": "HD9000.4 .F67 2013",
		"event-place": "Rome",
		"language": "en",
		"note": "OCLC: ocn858897065",
		"publisher": "Food and Agriculture Organization of the United Nations",
		"publisher-place": "Rome",
		"source": "Library of Congress ISBN",
		"title": "Food wastage footprint: impacts on natural resources: summary report",
		"title-short": "Food wastage footprint",
		"author": [
			{
				"literal": "FAO"
			}
		],
		"issued": {
			"date-parts": [
				[
					"2013"
				]
			]
		}
	}
]

Hi,

sorry by my delay on response. I'll investigate the behavior and send you a feedback. I just prepared a new function and now this should be my priority (except for eventual bugs that seems more critical).

Hi, @redleafnew
after this long delay (sorry, in mean time I moved from my old home and this consumed much time), I figured out the reason of this behavior. In fact, this was a bug, thank you for reporting and help to make the extension better. In this week I will release an update with the bugfix.

Thanks