"Item Type" in "Advanced Search" needs more options
It seems that "Item Type" in "Advanced Search" should have some additional selections.
Item Type / does have / Attachments
Item Type / does not have / Attachments
Selecting "does have" or "does not have" automagically fills in "Attachments" and doesn't allow input in the third field of the filter condition.
Item Type / does have / Attachments
Item Type / does not have / Attachments
Selecting "does have" or "does not have" automagically fills in "Attachments" and doesn't allow input in the third field of the filter condition.
Then, your advanced search could look like this:
Item Type is not Attachment
Item Type is Journal Article
+ Include parent and child items of matching items
THANK YOU! I'll try it.
I lied a bit. I other references besides just "Journal Articles". So for second line I'd need a saved search that includes all the parent "Item Types".
With my suggestion, you wouldn't need the massive "parent type" saved search. Pain to create, but you only have to create it once... :-)
I'm having real trouble trying to get my head wrapped around "types" vs. parent/child relationships.
------------------------
This is related to my moaning and groaning about use of "type"
https://forums.zotero.org/discussion/29660/type-is-weirdly-overloaded/#Item_11
-------------------------
"Note" would still seem to be a problem. I have can have "parent" notes and child notes. I use "parent" loosely in that a note can't have children.
Item type is Note
Returns both parent and children types.
Item Type is Attachment
+ Include parent and child items (note that after you tick this box, you should hit Search or this option will not save. This looks like a bug)
Save this search as "with attachments"
Now if you do another advanced search,
Saved Search is not with attachments
Item Type is not Note
You will get all Zotero Items that don't have attachments.
You can do something similar with Notes I think
-----------------
"Parent Note"
Item Type / is / Note
X Show only top-level items
This gets only "parent notes".
-----------------
"Is a Parent Item Type"
Item Type / is not / Attachment
Saved Search / is not / Parent Note
X Include parent and child items of all item types except parent notes.
------------------
"Parents with children besides notes"
Item Type / is not / Attachment
Saved Search / is not / Is a Parent Item Type
-----------------
"Parents Items without reference attachment"
Saved Search / is not / Parents with Children besides Notes
X Show only top level items
Which is what I have been after....
-------------
I'm trying to see if I can refactor this. I did it by brute force than any finesse of logic...
I had added some Wikipedia links which had entered as "Encyclopedia Articles" for reference. Probably be better as "website" since you wouldn't really need a "snapshot".
I have some "bare" PDF files which I dragged into Zotero. They show up in this list too.
Let me take the easy thing first...
By the Wikipedia reference I meant that for a "Web Page" "item type" that I wouldn't expect to have a child attachment. I just expect to go to the latest version of the "Web Page" when I clicked on it.
If I used a particular Wikipedia page as a reference, I may want to make a "Snapshot" attachment. Then I could flip the "item type" to "Encyclopedia Article" to let me know that I have a snapshot. Weird I guess but it works in my mind...
-------------------
Instead of describing what I am trying to filter, let me give you an use case for what I am trying to do.
As I read items that I have, or surf the web, I come across items which I want to lookup. So I add the entry for the item into Zotero even though I don't "have" the item itself.
As it is now I'm trying to enter all of these items into a collection named "Wanted". But in my haste, I don't always add the item to the collection.
So when I go to some library (some an hour away...) I can list all the articles which I want to lookup. Zotero is sweet for this since I can sort by Journal type. So if I digging into "Analytical Chemistry" database for Journal Articles, then I can see just all the articles in "Analytical Chemistry" that I want. I don't need confusion of showing articles which I already have.
Make sense?
-------------------
PS -
"Parent Note"
Item Type / is / Note
X Show only top-level items
This gets only "parent notes".
"Child Note"
Item Type / is / Note
Saved Search / is not / Parent Note
This gets only child notes.
Now, the question of what should open if you double-click the Web Page item in the library is different. I think you need to keep in mind that Zotero is a citation and archiving tool more than it is a bookmark manager. So opening an archival copy of the Web Page should take precedence over going to the live page.
Currently, you cannot choose to have Snapshots saved for one website but not another. The feature is either on or off. There has been some discussion about an intermediate dialog after clicking the URL bar icon that would allow you to choose what will be saved and what will not. No ETA on that though. So you either want to...
show all items without attachments, which would almost obviate the need for the "Wanted" collection. (I showed you how to do that in the post above. Is something not working?)
or...
show all items without attachments that are not in the "Wanted" collection, which would be the same as above plus "Collection is not Wanted".
In either case, your previous post is all about Notes. I'm not sure I understand how Notes play into the use case you describe above.
The other problem with your search is that I have some Journal Articles which have both a pdf file and a note. They get displayed.
I could expand to all types by using a saved search with and the list of parent types.
I've been so busy typing that I haven't played with refactoring/fixing this. Let me play with it some and I'll post again on this later... You had mentioned earlier that you didn't think it was possible to select just child notes. I showed how to do it using two saved searches. The parent items show up of course, but they are gray not black...
Item Type is Attachment
Attachment File Type is PDF
+ Include parent and child...
Save as "items with attachments"
Saved Search is not "items with attachments"
Item type is not Note
+ Show only top-level items