Zotero 7: Tab title for Snapshots

edited August 9, 2023
In the settings, I have selected "Show tabs as: Creator - Year - Title".
This is working fine for PDF and EPUB tabs, but for Snapshots, it still shows its Title instead.

Zotero 7.0.0-beta.32+5e27a7501 (64-bit)
Windows 10
  • This isn't a bug, but it's a tricky problem.

    This would only happen if the snapshot has a sibling PDF (or EPUB) attachment.

    If the parent item only has a snapshot, it will use the parent metadata and your display preference. But if there's already a primary attachment (and PDFs currently take precedence over snapshots), the attachment is considered a secondary attachment, and in that case we use the attachment title, since it's likely to describe the specific file (e.g., supplementary material) that you're opening.

    I'm not quite sure what we can do here. Once we add file-type icons to the tabs, I suppose we could start using the parent metadata for the first attachment of each type, since you'd at least be able to see that it was a snapshot. Of course, if you had a full-text PDF and supplementary materials in another format, they'd both show the parent metadata without showing the attachment title for the supplementary materials…
  • I understand that your reasoning works in the situation where you only have tabs opened from a single parent item. In that case, the attachment title indeed brings more information about the file opened in each tab.
    But in the general case where you do the same for multiple items, the information "Snapshot" or "Supplementary Material" is meaningless without the information of the parent item. This is the general situation for me, as I keep multiple tabs opened from different papers when working on a topic. The idea to display the attachment title only works when you know which parent item it belongs to. Keeping this situation will actually encourage people to add information from the parent item inside the attachment title, which is discouraged from the perspective of the information displayed in the middle pane.
    Once we add file-type icons to the tabs, I suppose we could start using the parent metadata for the first attachment of each type, since you'd at least be able to see that it was a snapshot.
    I think it will probably be better to keep a more consistent behaviour for all secondary attachments.
    When many tabs are opened, the most important information to display is the information of the parent item, for all child items. Then, the second most important information to know is whether it is the primary attachement or a secondary attachement. This covers probably the large majority of the situations where you have one Primary attachement and one Supplementary PDF file. Knowing the exact attachement title is probably important if you have more secondary attachments, but I feel that this is not so common (considering that the Zotero connector is rarely able to download Supplementary Files).

    I would suggest:
    1) Keep the same tab name for all child items.
    2) Display the tab title differently for primary or secondary attachements. For example, a yellow background on the file-type icon (or on the full tab title) would be sufficient to carry this information clearly.
    3) Add the attachement Title as a second line below the full tab title when hovering over the tab title. In that way, you keep a fairly fast access to that information, without being forced to switch tabs, which can be very slow for large files.
    4) Display the list of attachements within the same parent item at the bottom of the Info tab, maybe in an attachements sub-pane similar to the Tab Selector (see previous post on this). If people don't like it, they should be able to disable it from the View -> Layout menu. In this way, even if you select the wrong tab within the secondary attachements, you can still quickly navigate to the correct one from that attachements list.

    Even for child notes, which open in a separate window: the top of that window simply displays the Title of the note, which is just repeating the text written just below. The information on the Parent Item is displayed at the bottom, but it would save space and remove a useless repetition to simply put it at the top, treating note windows the same as the other viewer windows.


  • edited August 17, 2023
    But in the general case where you do the same for multiple items, the information "Snapshot" or "Supplementary Material" is meaningless without the information of the parent item.
    You know there's a Filename option for the tab title?
    Even for child notes, which open in a separate window: the top of that window simply displays the Title of the note, which is just repeating the text written just below. The information on the Parent Item is displayed at the bottom, but it would save space and remove a useless repetition to simply put it at the top, treating note windows the same as the other viewer windows.
    That's a holdover from before there was a note menu with a Show in Library option — the parent title at the bottom is a button that takes you back to the item. I think the window title should still begin with the note title (such as it is), but we can consider adding parent-item details after an em dash or something.
  • You know there's a Filename option for the tab title?
    That option actually uses the attachment Title instead of the Filename for the tab title. Probably some bug related to that one?
    Another issue is that it does not rename the titles of the tabs already opened, even after restarting Zotero. You need to select each tab title individually to force them to update.
    Screen recording
    Debug ID: D1672347414

    Even if it was working, I don't see how that would be better. There is currently no rule for renaming secondary attachments. So that will not help to show the Parent Item information.
  • edited August 17, 2023
    That's a holdover from before there was a note menu with a Show in Library option — the parent title at the bottom is a button that takes you back to the item.
    There may be a misunderstanding here: the "useless repetition" I mentionned was refering to the Note Title, which is currently displayed twice when opened in a separate window, both in the window title and in the first line of the note.
    At the moment, the Parent Item's Title displayed at the bottom when opened in a separate window is the only way to know that this note is a child note and to know which parent item it belongs to. If you remove that information, there is no other way to get this information than using the "Show in Library button", which takes you away from the note. If you have several child notes opened at the same time, it will be impossible to know which one belongs to which item.
    I think the window title should still begin with the note title (such as it is), but we can consider adding parent-item details after an em dash or something.
    Many of my child notes are created automatically from the Zotero Connector. So the "Title" is just the first paragraph of the note. In that case, it would probably be difficult to fit anything after it, or make an arbitrary cut on the length of the title.
    Considering that many of my child notes do not have a meaningful Title, choosing the note title for the window title would not work for me. That choice would probably make more sense for Standalone Notes, which anyway do not have any other Parent Item information to display.

    My comments are just based on this main idea:
    the most important information to display is the information of the parent item, for all child items
  • That option actually uses the attachment Title instead of the Filename for the tab title.
    Ah, that's certainly a bug. Fixed for the next beta — thanks. Unrelated to the preview issue in the prefs, which will also be fixed.
    Another issue is that it does not rename the titles of the tabs already opened, even after restarting Zotero. You need to select each tab title individually to force them to update.
    That's a known issue, but note that it's only a case for unloaded tabs.
    Even if it was working, I don't see how that would be better. There is currently no rule for renaming secondary attachments. So that will not help to show the Parent Item information.
    I was assuming you rename secondary files manually based on the parent and some additional description. If not, it wouldn't help at the moment, though I did suggest elsewhere that we could make {{ attachmentTitle }} a renaming variable, and then automatic renaming could be used for supplementary materials (if we added a variable for testing whether the attachment is the primary attachment).

    But for the next version we'll add the attachment title after the parent metadata for secondary attachments (when not using the "Filename" option) so that it's more usable in the default case. We'll also be adding tab icons once we have proper icons for EPUB/snapshot, and we could consider some difference in the icon at that point for secondary attachments, but that would only help in tabs anyway, not in windows, which can only have plain text.
    There may be a misunderstanding here: the "useless repetition" I mentionned was refering to the Note Title, which is currently displayed twice when opened in a separate window, both in the window title and in the first line of the note.
    OK, but that's certainly not useless repetition. The window title isn't just for the top of the window — it's what identifies the window in app/window switchers, the Window menu, etc. It needs to contain the note content so that you can get back to the right window. We can truncate at a shorter length and then add parent item info, but it makes no sense for it to show only the parent item metadata.
  • But for the next version we'll add the attachment title after the parent metadata for secondary attachments
    Or before, rather. That'll be more likely to show something unique for finding a tab quickly, and it will be consistent with what we'll probably do with child notes.
  • And we can probably also omit the parent item title for secondary attachments, as suggested in https://github.com/zotero/zotero/issues/2731#issuecomment-1201382522.
  • Thank you for your replies and suggested improvments.
    The window title isn't just for the top of the window — it's what identifies the window in app/window switchers, the Window menu, etc.
    I see. I am hoping that Zotero will move to a design closer to a browser, removing the window title bar and the menu bar, getting separate windows into tabs (including notes) and showing the currently opened tab title as window title in the app/window switchers. Then, this would not be a problem anymore.
    But for the next version we'll add the attachment title after the parent metadata for secondary attachments
    Or before, rather. That'll be more likely to show something unique for finding a tab quickly, and it will be consistent with what we'll probably do with child notes.
    Let's take a simple example with what the RSC Publishing translator is doing for the supplementary PDF file. It gives it the title "Supplementary Information PDF".
    [For example for this paper: https://pubs.rsc.org/en/content/articlelanding/2014/ra/c4ra00541d
    Note that here the SI file gets a FileName from the parent item metadata, same as the primary item. Is that a bug?]
    And let's say I decide to use a similar convention for all supplementary files.
    In that case, I will get many tab titles being "Supplementary Information PDF - Author et al. - YEAR". Given the length displayed in the Tab Title, I will probably not see anything from the parent item's metadata, except after hovering the mouse on it. So with multiple supplementary files opened, I will not be able to identify them quickly.

    The tab title will probably always be too short to display unique useful information in all cases. The attachement title field is used in many different ways by different users, so it is difficult to build a feature on it, hoping that it will be the best information to display.
    This is why I gave the suggestions in my second post as a compromise, only relying on the controlled information from the parent item.
    I understand that what I suggest may not work for everyone, but having it as an option may still be worth trying if that is not too complicated to implement.
    It needs to contain the note content so that you can get back to the right window.
    For me, in many cases, the note title is not the right information to be able to get back to it quickly for child notes. That field can contain information like:
    - First paragraph from automatic imports, like in arXiv, as mentionned above
    - Something like "Note for the paper I am currently working on" and give that exact same title to many different child notes
    - ...

    I think that the title of secondary attachments and child notes should follow the same logic as you explained in another post:
    The attachment title is meant to be different, it frequently provides important information (e.g., "Submitted Version"), and there's no reason to repeat metadata from the parent row in the attachment title.
    So in the same way as you would not use the attachment title as Tab Title for primary attachments, it will probably also not work for me for secondary attachments.
    At the moment, I choose an attachment title to identify the child item within a list of other attachments in its parent item. So that information can identify it uniquely only within that parent item.

    I will still try the changes that you propose and give feedback on how it goes. Thank you!

Sign In or Register to comment.