Skip to content

Instantly share code, notes, and snippets.

@zuphilip
Created December 26, 2019 20:43
Show Gist options
  • Save zuphilip/9dfa97372fe982fcecbff1a9f08d24f6 to your computer and use it in GitHub Desktop.
Save zuphilip/9dfa97372fe982fcecbff1a9f08d24f6 to your computer and use it in GitHub Desktop.
Find in currently selected Zotero collection the items with all-upercase title
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