CI to automate build of zotero tarball for zotero aport https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/testing/zotero
Find a file
Dan Stillman ff38ff5b9d Fix broken creator autocomplete if place becomes a base field
Well this was a wild one to debug.

Creator fields were only initialized for autocomplete due to a series of
>10-year-old bugs:

1) In `showEditor()`, `Zotero.ItemFields.isAutocompleteField(fieldName)`
   was called for creator fields, which would pass, e.g.,
   `creator-0-lastName`.

2) In `isAutocompleteField()`, `ItemFields.getName()` would normalize
   `creator-0-lastName` to `false`, since it's not a valid field.

3) `isAutocompleteField()` listed `place` as a base field despite its
   not having any mapped fields, so when `getTypeFieldsFromBase()` was
   called on it, the return value would be `false`, which would be added
   to the list of autocomplete fields, which would mean that the
   normalized field of `false` from `creator-0-lastName` would match,
   which would mean that `isAutocompleteField('creator-0-lastName')`
   would always return true...as long as `place` never gained a mapped
   field.

Except `isAutocompleteField()` wasn't supposed to be the test for
initializing autocomplete for creator fields anyway -- `fieldName ==
'creator'` was. But `fieldName` is something like `creator-0-lastName`,
not `creator`, which meant that that test always failed, which meant
that if `place` did gain a mapped field, both tests would fail, which
would cause the creator field not to be initialized for autocomplete,
which would cause it to break as soon as you started to type into it.

This fixes that.
2023-01-09 06:15:33 -05:00
.github Update utilities, move tests, add to CI (#2584) 2022-04-30 04:55:11 -04:00
chrome Fix broken creator autocomplete if place becomes a base field 2023-01-09 06:15:33 -05:00
components Add a prompt to import Mendeley DB if mendeley citation found in doc 2022-12-17 03:58:16 -05:00
defaults/preferences Add a prompt to import Mendeley DB if mendeley citation found in doc 2022-12-17 03:58:16 -05:00
note-editor@7f246a30eb Update note-editor and pdf-worker submodules 2022-12-12 12:56:53 +02:00
pdf-reader@c430c98431 Update note-editor and pdf-reader submodules 2022-10-12 05:03:09 -04:00
pdf-worker@ab37454b0f Update note-editor and pdf-worker submodules 2022-12-12 12:56:53 +02:00
resource Update translators 2022-12-23 00:41:43 -05:00
scripts Changes for updated SingleFile submodule 2022-07-20 14:28:56 +03:00
scss Improve column resizing robustness (#2588) 2022-05-03 03:00:23 -04:00
styles@139d52a0f1 Update translators and styles 2022-12-12 00:27:04 -07:00
test Disable /connector/request tests from 86c56951df 2022-12-25 04:01:35 -05:00
translators@fc2a1caf28 Update translators 2022-12-23 00:41:43 -05:00
.babelrc Add @babel/plugin-proposal-unicode-property-regex 2021-08-22 04:07:33 -04:00
.eslintignore ESLint: Ignore additional files 2019-02-26 06:07:54 -05:00
.eslintrc Update Babel and ESLint 2021-12-23 04:58:11 -05:00
.gitattributes Fix enforcing of Unix newlines for SQL files 2016-02-26 18:37:44 -05:00
.gitignore Cache PDF tools in the source directory between test runs 2018-01-18 19:24:09 -05:00
.gitmodules Fix CI: Replace git:// URLs with HTTPS 2022-03-15 10:24:57 -07:00
chrome.manifest Apply Big Sur styling when macOS version comes through correctly 2022-07-17 05:09:05 -04:00
CONTRIBUTING.md Add "support questions" to CONTRIBUTING.md 2022-12-01 05:09:56 -05:00
COPYING Update COPYING 2018-03-26 11:27:48 +02:00
install.rdf Update version 2022-11-11 01:47:09 -05:00
package-lock.json Update package-lock.json 2022-09-22 01:16:11 -04:00
package.json Update ESLint config 2022-09-21 22:25:34 -04:00
README.md README.md: Update CI Badge (#2473) 2022-03-25 22:14:47 -04:00
update.rdf Update Fx minVersion to 45 2016-12-13 09:12:55 -05:00

Zotero

CI

Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research sources.

Please post feature requests or bug reports to the Zotero Forums. If you're having trouble with Zotero, see Getting Help.

For more information on how to use this source code, see the Zotero wiki.