Skip to content

Commit

Permalink
Align mapping of podcast to broadcast with Zotero
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Mar 21, 2019
1 parent 4f79aaa commit 94efaee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions chrome/content/zotero/xpcom/utilities.js
Expand Up @@ -2247,6 +2247,8 @@ Zotero.Utilities = {
} else if (cslItem.type === 'broadcast') {
if (cslItem.genre === 'radio broadcast') {
zoteroType = 'radioBroadcast';
} else if (cslItem.genre == 'podcast') {
zoteroType = 'podcast';
} else {
zoteroType = 'tvBroadcast';
}
Expand Down
2 changes: 1 addition & 1 deletion test/tests/data/citeProcJSExport.js
Expand Up @@ -1707,7 +1707,7 @@
}
},
"podcast": {
"type": "song",
"type": "broadcast",
"multi": {
"main": {},
"_keys": {}
Expand Down
2 changes: 1 addition & 1 deletion test/tests/data/citeProcJSExportPortable.js
Expand Up @@ -1340,7 +1340,7 @@
}
},
"podcast": {
"type": "song",
"type": "broadcast",
"title": "Title",
"collection-title": "Series title",
"dimensions": "1:22:33",
Expand Down
2 changes: 1 addition & 1 deletion test/tests/data/citeProcJSExportRawDates.js
Expand Up @@ -1456,7 +1456,7 @@
"number": "3",
"shortTitle": "Short title",
"title": "Title",
"type": "song",
"type": "broadcast",
"multi": {
"main": {},
"_keys": {}
Expand Down

0 comments on commit 94efaee

Please sign in to comment.