Created
December 26, 2019 20:43
-
-
Save zuphilip/9dfa97372fe982fcecbff1a9f08d24f6 to your computer and use it in GitHub Desktop.
Find in currently selected Zotero collection the items with all-upercase title
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var collection = ZoteroPane.getSelectedCollection(); | |
var items = collection.getChildItems(); | |
var returnItems = []; | |
for (let item of items) { | |
let title = item.getField("title"); | |
if (title.toUpperCase() == title) { | |
returnItems.push(title); | |
} | |
} | |
return returnItems; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment