Shared Attachments for Book Sections/Chapters?

Hello, Zoteroans -

Is there a way to "share" an attachment for the various book sections or chapters of a book, where one only has a PDF of the complete book? That is: All items would show the attachment, but would all be pointing to the same actual PDF file.

I understand one can use "Related" to connect the chapters/sections to the book, but it would be very convenient to see the book's PDF directly within the chapter/section item.

As is, the only way I can see to achieve this functionality currently would be to add the PDF attachment to each chapter/section item in Zotero. If using Zotero's internal database, this would lead to multiple copies of the same book being stored in the database, and of course each would only some of my annotations. (Using Linked files would be a solution, as one could simply link all the chapters/sections to the same book PDF file).

Thank you....

  • A workaround I’ve used is to add a comment to each chapter start in the PDF attached to the whole book, then extract annotations using Zotfile. The extracted note will include links to each comment. Then, you can copy these links and attach them to the chapter items as links.
  • Thank you, @bwiernik . That's an interesting solution...I will try it. Although this could become a lot of work if one has many such books with section items.

    Is there any way this might be implemented more directly in a future Zotero version? Essentially it would be something like an "alias" feature for the PDF.

    Just as an item can appear in multiple Zotero collections, without duplication of the item, this would mean that an attachment could appear in multiple Zotero items without duplication of the actual attachment file.

    As is, this seems to be a "pro" in favor of using linked attachments rather than storing attachments in Zotero database.
  • Honestly, I think you are overthinking this a lot. I frankly just recommend using Related items. I certainly don’t think the hassle of managing linked attachments yourself (what you describe wouldn’t work well with Zotfile for instance) would be a good trade off for the minor convenience of saving a few clicks on a chapter item.
  • edited April 20, 2020
    "Overthinking" is my modus operandi, for better or worse. Hence the appeal of a system like Zotero to organize ideas, research, optimize new way of working; I am still learning the ins and outs of Zotero. I'll explore the Related Items approach. Thank you again for all the suggestions and explanations.
  • (To risk over-thinking a bit more; no wonder I ended up pursuing impossible questions in philosophy)

    For now I'm trying the Related Items method recommended above.

    Another hybrid solution I am considering:
    - Attach the entire book PDF to the main book item in Zotero
    - Attach chapter/section PDFs to respective chapter/section items

    This is a more feasible solution where one already has separate chapter items, without having to manually split up the book PDF.

    On the negative side, this could lead to some confusion as to which file to annotate. It's also adding more files and data to Zotero (not sure whether that has any noticeable effect on performance).

    Has anyone tried this approach overall and found it to be a good working method (or not)?
  • There are two different logics at work here, which is why the solution can only be a compromise. Zotero operates on a logic of citation: its primary units are citable entries. In a collection of contributions by different authors, or of papers by the same author, that's the chapter, and the consistent approach is to break up the pdf-file and attach the chapters exclusively to the chapter-entries. But of course publishing houses don't, as a general rule, publish single chapters: they follow what I think of as a logic of the bookshelf and publish books, with general introductions and sometimes general bibliographies and indices as well. Ideally, one would want a way of representing that within Zotero as well, but since collections are not, as a rule, first-level citable items, Zotero will allow you to make an entry for them but the software is thinking in the background, hey, what is the point?

    My own approach varies wildly. Usually I do the related items thing, because I'm short on time and can't be bothered splitting a pdf of a whole collection up. But I agree that this is suboptimal: I would like to be able to tell by just looking at a book chapter in the main window whether I have the text or not, but there's no way to represent that without the need to click something, and I don’t want more than one copy of things (otherwise the annotation problem you mention arises almost of necessity). Ideally, I would take the time and make individual pdfs of the chapters, one by one, and link them all to individual chapter entries. I would then make a separate entry for the introduction, and attach only the bibliography and index to an entry for the whole book.
  • @bwiernik I tried your solution above, about extracting and creating links to sections. However, Zotfile does not seem to extract the chapter markings in my documents (created in Acrobat), which are bookmarks (not annotation/notes/comments). Is there a way to extract the bookmarks into Zotero, to use in the way you describe, to quickly and directly open the file at that correct page? Thank you for any info on this, if your time permits.
  • @ZenonMarko: To extract pdf bookmarks, use Zotfile's "Manage Attachments" -> "Get Table of Contents" from the item's context menu. This will add a linked table of contents to the note that is shown when the pdf attachment is selected in the middle pane. If you need to create a large number of bookmarks, PDFtk has some text-based tools that might be useful, see here.

    If you have a complete book attached to a book item, you could add a URI attachment to a related book section that links to zotero://open-pdf/library/items/[itemKey]?page=[page], using the Attachment menu. You get such links from extracting bookmarks or comments. (Zutilo's "Copy select item links" function can help with getting the itemKey. Also note that stored files are saved to /Zotero/Data/storage/[itemKey]/[filename].) Currently, though, double-clicking the parent book section item will not open such a URI attachment if the item has a URL, DOI, or another pdf or file attachment. It is planned to add an option to set the primary attachment for an item, see https://github.com/zotero/zotero/issues/1715. Given this example, it would be nice if one could also set an attached URI link as the primary attachment.
  • @qqbb Thank you! These ideas help indeed. I created links for some of the Book Section items, to the URI in the main PDF (which is only attached to the main Book item in Zotero). Now double-clicking the Book Section item in Zotero opens the main PDF, and jumps right to the correct page. Fantastic!

    The only problem is that the PDFs are opening in Preview, instead of the default-set Acrobat. I made a note of that in the Zotfile thread:
    https://forums.zotero.org/discussion/5301/zotfile-advanced-pdf-management-for-zotero#latest
  • @gpatten Thank you for that. Sorry I didn't reply to your detailed comment at the time, which mirrors my thinking thus far.

    I've thus far been using the related items approach as follows:

    - create single book Zotero item with the anthology attached as PDF; add editors to item info

    - make sure the PDF has bookmarks for chapters, named by the chapter title and author

    - Manage Attachments: Get Table of Contents

    - use Zutilo: Create Book Section just for the chapters (different author articles) of interest (that is: ones I might read and cite)

    - manually add in author and title info for the Book Section item

    - copy the URI link from the parent item PDF Table of Contents

    - paste that URI link into the Book section item using contextual menu command: Add Attachment: Attach Link to URI (or assign a keyboard shortcut in Zutilo; I use Command-Option-U on Mac)

    Yes, that algorithm entails many steps, and becomes quite time-consuming for a large # of anthologies and chapters.

    The good news: if one double-clicks on the chapter item, the PDF opens to the correct page of that chapter (assuming the PDF has proper pagination, and PDF reader is set correctly, etc.... beware the settings for Logical page #s and whether the PDF has indeed 2 sets of page numbers).

    Some Pros(+) / Cons(-) of this approach:

    (+) no need to split up the PDF
    (+) entire anthology PDF is searchable
    (+++) only create chapter items for those chapters of interest, as needed, rather than cluttering up my Zotero database (sometimes there is only one immediately relevant article/chapter from the anthology)
    (-) no way to just search the PDF of a chapter; any searches for a keyword will search the entire PDF

    If anyone has ideas on a more elegant solution, please do join the fun here!
  • Nice ideas.
    I just happen to have a problem because the table of content of the book just had parts of the book but not all chapters.
    My solution was to (1) make an empty annotation on the title and name of the authors in the pdf file of the book, (2) extract annotations and (3) copy the annotation with its link. It was faster than relating two entries of zotero and if I write "link to the book" at the beginning of notes., it is very easy to see that the book is linked there.
  • Feature Request:
    In the attachment menu, add a "Add Link to existing Attachment..." option asking for an attachment (select from existing ones in zotero) and an optional page number (perhaps be able to browse the PDF directly) to automatically create a link like @qqbb provided
    zotero://open-pdf/library/items/[itemKey]?page=[page]

    Thereby one would not have to look up the itemKey.

    This could be automized or pre-filled if the book already exists and is linked to the book chapter.
Sign In or Register to comment.