Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Improved "Creator" Field Handling in Main Table View #1258

Open
Xain3 opened this issue Mar 6, 2025 · 0 comments
Open

Comments

@Xain3
Copy link

Xain3 commented Mar 6, 2025

Feature Summary

The "Creator" field in the main Zotero table view should support formatting options that align more closely with vanilla Zotero’s default behaviour for improved readability. Specifically, the plugin should allow:

  1. Displaying only the first two authors (e.g., Smith & Johnson).
  2. Taking only the first author and appending "et al." when there are multiple authors (e.g., Smith et al.), replicating how Zotero natively displays creators.

Current Behaviour

  • The plugin allows users to customize the "Creator" column by specifying:
    • Which fields to include (e.g., ${lastname})
    • How many authors to display using slicing (e.g., 0:2 for the first two authors)
    • A custom separator between names
  • However, there is no way to reproduce Zotero’s native behaviour, which automatically applies "et al." when there are multiple authors, making the display more readable.

Expected Behaviour

The plugin should support an option to:

  1. Mimic Zotero’s default display of creators:
    • Show up to two authors.
    • If there are three or more, display First Author et al..
  2. Ensure this behaviour integrates smoothly into the existing column customization system.

Proposed Implementation

  • Introduce an additional formatting option in the column settings:
    • A toggle or keyword (e.g., ${zotero_default}) that automatically formats creators like Zotero does.
    • An alternative slicing mode (e.g., 0:2/0:1+et al.) that allows displaying only the first author followed by "et al." when appropriate.

Use Cases

  • Users who prefer Zotero’s more readable author formatting in the main table view.
  • Those managing large libraries who need a quick overview of authorship without manually adjusting display settings.

Additional Notes

  • This change should only affect the display in the main Zotero table view, without modifying stored metadata or CSL-based citations.
  • The enhancement should be optional, ensuring that users who prefer full control over the column customization retain their flexibility.

功能摘要

Zotero 主表视图中的 "Creator"(创作者) 字段应支持更符合 原生 Zotero 默认行为 的格式选项,以提高可读性。具体而言,该插件应允许:

  1. 仅显示前两位作者(例如:Smith & Johnson)。
  2. 仅显示第一位作者,并在多个作者时添加 "et al."(例如:Smith et al.),以复制 Zotero 的原生显示方式。

当前行为

  • 该插件允许用户通过以下方式 自定义 "Creator" 列
    • 指定包含哪些字段(例如:${lastname})。
    • 使用切片方式控制显示的作者数量(例如:0:2 仅显示前两位作者)。
    • 定义名称之间的自定义分隔符
  • 但是,当前无法复现 Zotero 的原生行为,即在多个作者时自动应用 "et al.",从而使显示更加清晰易读。

期望行为

该插件应支持以下选项:

  1. 模仿 Zotero 默认的创作者显示方式
    • 显示最多两位作者。
    • 若有三位或更多作者,则显示 第一位作者 et al.
  2. 确保该行为能够平稳地集成到现有的列自定义系统中

建议的实现方式

  • 在列设置中引入 额外的格式选项
    • 一个开关或关键字(例如:${zotero_default}),可 自动按 Zotero 的方式格式化创作者信息
    • 一种新的切片模式(例如:0:1+et al.),可 仅显示第一位作者,并在需要时添加 "et al."

使用场景

  • 喜欢 Zotero 更具可读性的创作者格式 的用户。
  • 需要 快速查看作者信息,而无需手动调整显示设置 的大型文献库管理者。

附加说明

  • 此更改应 仅影响 Zotero 主表视图中的显示,不会修改存储的元数据或基于 CSL 的引用格式。
  • 该增强功能应 作为可选设置,确保希望完全控制列自定义的用户仍可自由调整。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant