github-young / zotero-better-authors Goto Github PK
View Code? Open in Web Editor NEWCustomize the displayed authors list
License: GNU Affero General Public License v3.0
Customize the displayed authors list
License: GNU Affero General Public License v3.0
I would like to keep that column more compact by showing only the last name and the initials of the first name: Smith, J. W.
It is already possible to add rich text formatting in the titles.
I would like to do the same for the authors columns provided by this plugin.
Is it already technically possible from the plugins interface? Or is it something that I need to ask Zotero? Or should it be asked in the devs discussion channel?
Examples of use case:
Eventually, more advanced formatting options would be nice also, like highlighting with a color, change color font, background color of the whole field,, underline, ...
Sorry, I realise it is a pre-release.
1695468456308 addons.xpi WARN Download of https://github.com/github-young/zotero-last-author/releases/latest/download/zotero-last-author.xpi failed: Expected addon version 3.0.0 instead of 2.1.2
Currently whenever the checkbox of the middle author is ticked or not, the text & the input box after this checkbox is always effective.
Is it possible to set the text and input box disabled (or at least change the font color to gray) when the checkbox is not ticked?
I got some examples from other plugins, for example zotero-pdf-translate:
I see in v3.3.0 that a 1
has been added in front of the first author if it is the only author.
Could you clarify what is its intended use case?
I am not sure how to use it.
At the moment, it breaks the sorting of the Authors List
column.
Could you add an option to hide it?
This plugin seems good for me! But i can not install it. I have tried to put it into "add-on manager" in zotero 7.00 beta, but it does not work. How can i solve this? Thank you!
When importing to Zotero this item: https://link.springer.com/chapter/10.1007/978-94-007-5968-8_8
It imports 2 Authors and then 2 Editors.
The current behaviour of the plugin is to display the last Creator, so here the last Editor.
I only want to see the last Author in the Last Author column.
I have removed and reinstalled the plugin. But I still get an empty Last Author column.
The Report errors show:
1695554339589 addons.xpi WARN Checking C:\Program Files\Zotero\distribution\extensions for addons
[JavaScript Error: "NS_NOINTERFACE: " {file: "resource://gre/modules/ComponentUtils.jsm" line: 90}]
createInstance@resource://gre/modules/ComponentUtils.jsm:90:36
1695554341813 addons.xpi WARN Addon with ID undefined already installed, older version will be disabled
[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1710}]
[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1710}]
[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]
[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]
[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]
[JavaScript Error: "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.setIntPref]" {file: "chrome://zotero/content/xpcom/plugins.js" line: 307}]
[JavaScript Error: "NS_ERROR_NOT_AVAILABLE" {file: "resource://gre/modules/PartitioningExceptionListService.jsm" line: 92}]
[JavaScript Error: "uncaught exception: undefined"]
[JavaScript Error: "NotFoundError: Could not get children of file(C:\Users\mjthoraval\AppData\Roaming\Zotero\Zotero\Crash Reports\events) because it does not exist" {file: "resource://gre/modules/CrashManager.jsm" line: 682}]
_getUnprocessedEventsFiles/<@resource://gre/modules/CrashManager.jsm:682:12
[JavaScript Error: "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [mozIStorageService.backupDatabaseFile]" {file: "chrome://zotero/content/xpcom/db.js" line: 1058}]
[JavaScript Error: "TypeError: emptyListMessage is null" {file: "chrome://zotero/content/standalone/standalone.js" line: 655}]
ZoteroStandalone</this.updateAddonsPane/<@chrome://zotero/content/standalone/standalone.js:655:7
appName => Zotero, version => 7.0.0-beta.40+24ae34104, os => Windows 10.0 19045, locale => en-GB, extensions => Zotero Better Authors (3.1.1, extension), Zotero PDF Preview (1.0.0-4, extension, disabled), Open PDF (0.0.1, extension, disabled), Zutilo Utility for Zotero (3.10.1a1, extension, disabled), Translate for Zotero (1.1.0-18, extension, disabled), Ethereal Style (3.1.2, extension, disabled), Better BibTex for Zotero (6.7.122, extension, disabled), Better Notes for Zotero (1.1.4-25, extension, disabled)
I was probably a bit too fast on my previous request to limit the column of the plugin only to Authors.
There are actually some Item Types for which it makes sense to show other types of Creators:
Presentation
-> Presenter
Patent
-> Inventor
Video Recording
-> Director
So it would be nice to either make a hard list of what is considered to be an Author
, or make it an option to choose which ones to display.
I had mentionned this ealier, but I clarify the feature request here.
I would like to add another mode to display the authors: show all first N authors and then show et al.
. So something similar to the Creator column, but with a bit more flexibility on the number of first authors to show.
Maybe the Displayed content settings
could be simplified with a drop-down menu with the following 3 options:
All
Omit intermediate
(show First N + ... + Last)et al.
(show First N + et al.)Then the First N authors
parameter would be the same for the last 2 options (and obviously ignored for the first option).
You would just need to make sure that the Last author is still marked correctly in the 3rd option when it is in the First N authors.
Would it be possible to show the corresponding author(s) instead of the last author? They can often be different.
You mentioned the corresponding author in your post in the forum:
I had the same need for displaying the last author (or the corresponding author) in an individual column
https://forums.zotero.org/discussion/comment/443921#Comment_443921
I guess the assumption in that sentence is that the corresponding author is the last author?
It may be too ambitious, but I still wanted to mention it in case there is an easy solution.
I understand that Zotero does not store that information, so it would need to be stored in some format.
Also, I do not know any way to retrieve automatically the corresponding author(s) information on a paper.
I will be glad to be pointed to some other existing resources.
It is nice to have more functionalities in the new Authors List
column.
But I still prefer keeping a separate column for the Last Author
.
That column has a different purpose than the additional options, so I should not have to choose between one or the other.
It takes quite some time to test different options, as you need to close and restart Zotero every time to see the result.
It would be very useful to have a Preview tool to show what the results will look like in each column. This would make the tunning of parameters much faster.
A similar functionality is used for example in the Settings
-> General
-> File Renaming
-> Customize Filename Format...
-> Preview
.
As discussed in a previous issue, I would like to be able to identify quickly if some authors have been omitted within a list of authors.
For example, let's uses these settings, showing only the last name of the first and last author:
If I have two items with the following authors list:
Smith1 / SmithLast
Smith1 / Smith2 / SmithLast
In the current configuration, both of them will be displayed as Smith1; SmithLast
:
Smith1 / SmithLast
-> Smith1; SmithLast
Smith1 / Smith2 / SmithLast
-> Smith1; SmithLast
I would like to be able to distinguish these two items. For example with:
Smith1 / SmithLast
-> Smith1; SmithLast
Smith1 / Smith2 / SmithLast
-> Smith1; …SmithLast
This is still fairly compact and it adds useful information on the authors list.
I think that this was already implemented by @jstzwj in his PRs:
const lastAuthorDisplayed: string = this.displayAuthorName(authors, authors.length - 1, sep);
if (firstN < authors.length - 1) {
return authorList.join(", ") + ", ..., " + lastAuthorDisplayed;
} else if (firstN == authors.length - 1) {
return authorList.join(", ") + ", " + lastAuthorDisplayed;
} else {
return authorList.join(", ");
}
But it slowly got rremoved over the iterations.
Zotero has an option to display single field authors: https://www.zotero.org/support/adding_items_to_zotero#editing_items
In that case, the separator between the last name and the first name should be removed.
It would be nice if the plugin could identify all the names in Chinese characters (and probably other languages where it would be needed), and then differentiate the way they are displayed.
In the normal mode (full first name), the name should be simply displayed without separator between the last name and the first name: 刘伟明
instead of 刘, 伟明
. Maybe make this an option in case some people still want to keep the separator with Chinese characters?
The option to display first names as initials does not work well with Chinese characters:
刘伟明
-> 刘, 伟.
李军
-> 李, 军.
The first name initials option should not affect the display of Chinese characters, where it should still display the full name normally.
Thank you very much for the nice plugin.
Just a small problem: items that do not have any author (files without a parent item, parent items without authors, child items and notes) should keep the Last Author field empty.
At the moment, they contain "test1TypeError: ..."
In the Authors List
column, I get:
authorsError: Invalid author name order setting: undefined.
I guess it is simply a default value missing, as the error goes away after playing with the settings.
If you untick the Last author, the Last author symbol is ignored:
If I tick the Last author, I get back to the other issue.
So something probably needs to be fixed here.
Thank you very much for the new developments of the plugin!
It would be more flexible if the user could define the Name Separator
as they want.
Same for all the different separators:
Name Separator
);
, but it could be ,
if not used between last name and first name) *
, but it could be ; ...;
, with the ;
automatically varying when changing the Authors Separator).
after the initials.With more variables in the preferences, an option to reset to the default values would be useful.
Another useful option would be to be able to set a different separator between the last name and first name for CJK characters. I would like to display 李军
instead of 李, 军
.
[Small typo in the settings: Name Seperator
-> Name Separator
.]
对于博士论文,导师有时为contributor,但由于不是author此插件无法显示为最后一个作者。
This probably goes beyond the scope of this plugin, but I still wanted to mention it here, as similar tools would probably need to be used.
Some of the options would be:
Some previous plugins have made some steps in this direction:
Am I missing another plugin doing that in Zotero 7?
There is an issue opened in the Zotero GitHub on this: zotero/zotero#2831
It is a bit confusing that the option to Display first name as initials
is still visible even when I select the option to Only display last name
. I would find it more intuitive to hide the first option if the second one is selected.
Maybe an exclusive choice between Full first name
or First name as initials
or No first name
under the general category First Name
would be more clear?
Some settings are relative to the formatting of a single author, while some settings are relative to the display of multiple authors.
Separating them in two different sections would probably be more clear.
If a separate Last Author column can be recovered, the options relative to that column should also be separated in another section.
If I display the first name of the authors, names in Chinese chacaters would appear as:
李, 军; 刘, 伟明
Instead, I would like to be able to display:
李军;刘伟明
So, it means two options for names in Chinese characters:
,
;
to the Chinese character ;
or ,
.This is a small thing, but it would be much easier to read in the compact format.
I don't know if this would also apply to Japanese and Korean characters.
Thank you very much again for the recent improvements!
For some journals, they mix the author names between the English name and the CJK characters.
This does not work well with the first name initials.
Examples:
This paper https://doi.org/10.1063/5.0162449
Has last author: Deng
, Daosheng (邓道盛)
It is currently displayed as: Deng, Daosheng(邓道盛)
The expected result would be: Deng, D.
This paper: https://pubs.aip.org/aip/pof/article/35/8/082101/2905561/Dispensing-uniform-droplets-of-phosphate-buffer
Has last author: Lee
, Jinkee (이진기)
It is curently displayed as: Lee, J. (.
The expected result would be: Lee, J.
I am not sure why this one is treated differently from the previous one.
Anyway, some special characters should probably be excluded from being valid initials, like the parenthesis here.
This paper: https://doi.org/10.1063/5.0129427
Has last author: Thoraval
, Marie-Jean (陶益壮)
It is curently displayed as: Thoraval, MarieJean(陶益壮)
The expected result would be: Thoraval, M.-J.
Strictly speaking, this is probably wrong to put the CJK characters in the first name field. But considering that Zotero (as most publishers) cannot handle multilingual metadata at the moment, this is already not too bad.
The latest pre-release does not work for me. I get:
lastauthorError: Invalid author nameorder: auto.
因为论文的导师也挺重要的,和通讯作者一样,期待能有这个功能。谢谢您。
好像知网Jasminum能抓取指导教师,小白一枚
At the moment, showing the first N authors will always keep the last author.
I would like to be able to recover the behaviour of the original Creator
column, which shows et al.
when there are 3 or more authors, but in that case only keep one author in front of the et al.
.
With more flexibility, for example after how many authors it should trigger the et al.
, and how many authors to keep in front of the et al.
.
Thank you very much for all the improvements!
In the latest release v3.3.0, the style setting for the first name is a bit confusing: you can tick initials
and none
together, even though if you select none
, the initials
tick does not have any effect.
It may be better to put them in a drop-down menu?
Display first name as
:
Full
Initials
No
I had mentioned this in a previous issue, but I separate it here for clarity.
It is possible to set the value of the number of authors to display to be very high.
But a simple tick box to show all authors (which would hide the other irrelevant options) would make this more intuitive.
The plugin causes the Trash collection to not show anything. Other folders are normal, but when clicking on Trash, nothing is displayed in Trash, and then this will leads to nothing being displayed in any other folder. disabling the plugin and restarting is normal, enabling it reproduces.
14:53:51.246 1721739231245 addons.xpi WARN Checking /code/Zotero_linux-x86_64/distribution/extensions for addons
14:53:51.286 NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsICommandLine.handleFlagWithParam] BrowserContentHandler.sys.mjs:428
14:53:51.289 NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsICommandLine.handleFlagWithParam]
dch_handle resource:///modules/BrowserContentHandler.sys.mjs:1289
BrowserContentHandler.sys.mjs:1308:15
14:53:51.289 Warning: unrecognized command line flag -url
BrowserContentHandler.sys.mjs:1344:17
14:53:51.626 unreachable code after return statement util.js:205:4
14:53:51.890 1721739231890 [email protected] WARN Loading extension '[email protected]': Reading manifest: Warning processing version: version must be a version string consisting of at most 4 integers of at most 9 digits without leading zeros, and separated with dots
14:53:52.104 Missing resource in locale en-AU: browser/browserSets.ftl
14:53:52.106 Missing resource in locale en-CA: browser/browserSets.ftl
14:53:52.113 Missing resource in locale en-NZ: browser/browserSets.ftl
14:53:52.462 InstallTrigger is deprecated and will be removed in the future. 4 reader.js:20134:16
14:53:52.605 1721739232605 addons.xpi WARN Addon with ID undefined already installed, older version will be disabled
14:53:52.606 Error: Addon must include an id, version, and type 2 XPIProvider.jsm:1723:13
14:53:53.389 patching getField betterauthors.js:451:23
14:53:53.389 patching setField betterauthors.js:451:23
14:53:53.390 patching isFieldOfBase betterauthors.js:451:23
14:53:53.390 patching getField betterauthors.js:451:23
14:53:53.390 patching setField betterauthors.js:451:23
14:53:53.390 patching isFieldOfBase betterauthors.js:451:23
14:53:53.391 patching getField betterauthors.js:451:23
14:53:53.391 patching setField betterauthors.js:451:23
14:53:53.391 patching isFieldOfBase betterauthors.js:451:23
14:53:53.391
<style id="prompt-style">
betterauthors.js:451:23
14:53:53.392
<div style="position: fixed; left: 0…ht: 100%; opacity: 0.5;">
betterauthors.js:451:23
14:53:53.393
<div style="display: none;">
betterauthors.js:451:23
14:53:53.393
<input class="prompt-input" type="text" placeholder="Select a command...">
betterauthors.js:451:23
14:53:53.393
<div class="cta">
betterauthors.js:451:23
14:53:53.393
<div class="input-container">
betterauthors.js:451:23
14:53:53.393
<div class="commands-containers">
betterauthors.js:451:23
14:53:53.393
<span class="key">
betterauthors.js:451:23
14:53:53.394
<span>
betterauthors.js:451:23
14:53:53.394
<div class="instruction">
betterauthors.js:451:23
14:53:53.394
<span class="key">
betterauthors.js:451:23
14:53:53.394
<span>
betterauthors.js:451:23
14:53:53.394
<div class="instruction">
betterauthors.js:451:23
14:53:53.394
<span class="key">
betterauthors.js:451:23
14:53:53.394
<span>
betterauthors.js:451:23
14:53:53.394
<div class="instruction">
betterauthors.js:451:23
14:53:53.394
<div class="instructions">
betterauthors.js:451:23
14:53:53.394
<div id="zotero-plugin-toolkit-prompt" class="prompt-container">
betterauthors.js:451:23
14:53:53.548 Missing resource in locale en-CA: browser/browserSets.ftl
14:53:53.558 patching refresh betterauthors.js:451:23
14:53:53.558 patching getField betterauthors.js:451:23
14:53:53.559 patching setField betterauthors.js:451:23
14:53:53.559 patching isFieldOfBase betterauthors.js:451:23
14:53:53.559 patching getField betterauthors.js:451:23
14:53:53.559 patching setField betterauthors.js:451:23
14:53:53.559 patching isFieldOfBase betterauthors.js:451:23
14:53:53.559 patching getField betterauthors.js:451:23
14:53:53.559 patching setField betterauthors.js:451:23
14:53:53.559 patching isFieldOfBase betterauthors.js:451:23
14:53:53.568 Missing resource in locale en-AU: browser/browserSets.ftl 2
14:53:53.568 Missing resource in locale en-CA: browser/browserSets.ftl
14:53:53.585 Missing resource in locale en-NZ: browser/browserSets.ftl
14:53:53.608 Missing resource in locale en-CA: browser/browserSets.ftl
14:53:53.612 Missing resource in locale en-NZ: browser/browserSets.ftl 2
14:53:53.687 Uncaught (in promise) undefined 2
14:53:53.694 Missing resource in locale en-AU: browser/browserSets.ftl
14:53:53.716
<div class="commands-container">
betterauthors.js:451:23
14:53:53.716 patching viewItems BetterNotes.js:462:24
14:53:53.870 Error: Failed to load resource://services-settings/remote-settings.sys.mjs PartitioningExceptionListService.sys.mjs:88:14
14:53:53.871 Uncaught (in promise) undefined
14:53:54.778 InstallTrigger is deprecated and will be removed in the future. 8 reader.js:20134:16
14:53:55.586 This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://firefox-source-docs.mozilla.org/performance/scroll-linked_effects.html for further details and to join the discussion on related tools and features! zoteroPane.xhtml
14:53:56.924 TypeError: item.getCreators is not a function betterauthors.js:6209:33
14:53:56.925 The above error occurred in the <ItemTree> component:
ItemTree@chrome://zotero/content/itemTree.js:88:5
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries. react-dom.js:18714:17
14:53:56.925 TypeError: item.getCreators is not a function betterauthors.js:6209:33
14:54:02.695 Missing resource in locale en-CA: devtools/client/toolbox.ftl
14:54:02.695 Missing resource in locale en-NZ: devtools/client/toolbox.ftl
14:54:02.696 Missing resource in locale en-AU: devtools/client/toolbox.ftl
Thank you very much for the new feature to display first name as initials.
I would prefer to abbreviate Smith, Jean-Jacques
to Smith, J.-J.
.
See for example: https://tex.stackexchange.com/questions/344537/automatic-hyphenatation-of-first-names-in-bibtex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.