zotero/test/tests/data
Dan Stillman 4b60c6ca27 Type/field handling overhaul
This changes the way item types, item fields, creator types, and CSL
mappings are defined and handled, in preparation for updated types and
fields.

Instead of being predefined in SQL files or code, type/field info is
read from a bundled JSON file shared with other parts of the Zotero
ecosystem [1], referred to as the "global schema". Updates to the
bundled schema file are automatically applied to the database at first
run, allowing changes to be made consistently across apps.

When syncing, invalid JSON properties are now rejected instead of being
ignored and processed later, which will allow for schema changes to be
made without causing problems in existing clients. We considered many
alternative approaches, but this approach is by far the simplest,
safest, and most transparent to the user.

For now, there are no actual changes to types and fields, since we'll
first need to do a sync cut-off for earlier versions that don't reject
invalid properties.

For third-party code, the main change is that type and field IDs should
no longer be hard-coded, since they may not be consistent in new
installs. For example, code should use `Zotero.ItemTypes.getID('note')`
instead of hard-coding `1`.

[1] https://github.com/zotero/zotero-schema
2019-09-16 02:27:22 -04:00
..
charsets Update character set handling 2015-06-12 02:46:02 -04:00
metadata Fix various cases of saving items to selected collection 2015-11-15 17:49:31 -05:00
search "Attachment Content" search improvements 2019-02-19 04:10:25 -05:00
snapshot Save snapshots via nsIWebBrowserPersist instead of WebPageDump 2016-06-02 16:14:29 -04:00
.gitignore Add .gitignore file for PDF tool cache dir in test data directory 2015-06-02 20:32:55 -04:00
allTypesAndFields.js Merge branch '4.0' 2015-07-18 07:09:53 -04:00
book_and_child_note.ris Fix saving an item with a child note into a collection 2016-03-25 02:24:22 -04:00
book_and_snapshot.rdf Fix hang on import that includes an HTML attachment 2016-03-22 01:31:20 -04:00
cell.csl Fetch a style if it is not installed on document preferences load 2017-04-10 11:24:22 +03:00
citeProcJSExport.js Export CSL JSON with title-short rather than shortTitle 2019-04-04 00:45:32 +09:00
coins.html Remove errant HTML tag 2017-03-03 16:40:28 -05:00
empty Fix NS_BASE_STREAM_CLOSED error, for real 2015-06-02 14:58:43 -04:00
empty.pdf Add tests for Zotero.Translate.ItemGetter.prototype.nextItem 2015-05-26 16:11:43 -05:00
feed.atom Fix date parsing from Atom feeds 2017-10-31 02:21:21 -04:00
feed.rss Various feeds changes 2016-03-22 06:56:36 -04:00
feedDetailed.rss Adds Zotero.FeedReader tests 2016-03-22 06:56:29 -04:00
feedModified.rss Various feeds changes 2016-03-22 06:56:33 -04:00
feeds.opml Close adomasven/zotero#11. Add support for feed imports from OPML files 2016-04-27 20:32:20 +01:00
itemJSON.js Type/field handling overhaul 2019-09-16 02:27:22 -04:00
journalArticle.js Use ISO 8601 accessDates everywhere 2015-06-07 18:50:57 -04:00
mods.xml Fix error handling during local file import translation 2016-08-22 21:41:10 -04:00
recognizePDF_test_arXiv.pdf Rename PDF recognizer tests to reflect arXiv ID lookup 2018-05-04 01:16:04 -04:00
recognizePDF_test_DOI.pdf Add a test for PDF recognition by DOI (#1496) 2018-05-04 03:14:26 -04:00
recognizePDF_test_title.pdf Save parent item to correct library when recognizing PDF without DOI 2018-04-02 15:34:22 -04:00
Test Import Translator.js Ensure Test Import Translator.js #doImport() does not rely on #detectImport() 2018-12-21 15:16:27 +02:00
test-js.html Disable JS in hidden browser when indexing HTML files without a charset 2018-06-18 20:19:02 -04:00
test.html ZFS file sync overhaul for API syncing 2015-10-29 04:38:27 -04:00
test.pdf Add test PDF file 2015-11-12 15:40:42 -05:00
test.png Add missing sample file for attachment test 2015-05-04 02:45:55 -04:00
test.txt Full-text syncing support via API [DB reupgrade] 2015-11-12 02:54:51 -05:00
translatorExport.js Type/field handling overhaul 2019-09-16 02:27:22 -04:00
translatorExportLegacy.js Type/field handling overhaul 2019-09-16 02:27:22 -04:00
zotero_rdf.xml Add skipped test for importing related items from Zotero RDF 2019-01-14 02:36:59 -05:00