mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Don't include non-regular items in one-off bibliographies
Applies to "Create Bibliography from Collection" and "Create Bibliography from Items". Quick Copy already got this right. https://forums.zotero.org/discussion/92305/sticky-notes-showing-in-bibliography
This commit is contained in:
parent
a07c052cf0
commit
5f61ac23aa
1 changed files with 3 additions and 9 deletions
|
|
@ -705,15 +705,9 @@ var Zotero_File_Interface = new function() {
|
|||
* Shows bibliography options and creates a bibliography
|
||||
*/
|
||||
async function _doBibliographyOptions(name, items) {
|
||||
// make sure at least one item is not a standalone note or attachment
|
||||
var haveRegularItem = false;
|
||||
for (let item of items) {
|
||||
if (item.isRegularItem()) {
|
||||
haveRegularItem = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!haveRegularItem) {
|
||||
// Limit to regular items
|
||||
items = items.filter(item => item.isRegularItem());
|
||||
if (!items.length) {
|
||||
Zotero.alert(
|
||||
null,
|
||||
Zotero.getString('general.error'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue