Fix radioBroadcast/tvBroadcast CSL-JSON round-trip after 52d5b68564

'podcast' is now the first mapped type for 'broadcast', per
https://forums.zotero.org/discussion/comment/351113/#Comment_351113, so
we need to check for fields not available in 'podcast'. 'radioBroadcast'
will be converted to 'tvBroadcast' on re-import, but that was the case
before.
This commit is contained in:
Dan Stillman 2020-03-23 17:18:43 -04:00
parent 48e39d9bd8
commit 0278810cb5

View file

@ -1641,6 +1641,16 @@ Zotero.Utilities = {
if (cslItem.type == 'bill' && (cslItem.publisher || cslItem['number-of-volumes'])) {
zoteroType = 'hearing';
}
else if (cslItem.type == 'broadcast'
&& (cslItem['archive']
|| cslItem['archive_location']
|| cslItem['container-title']
|| cslItem['event-place']
|| cslItem['publisher']
|| cslItem['publisher-place']
|| cslItem['source'])) {
zoteroType = 'tvBroadcast';
}
else if (cslItem.type == 'book' && cslItem.version) {
zoteroType = 'computerProgram';
}