Dan Stillman
f2ffc30728
Merge pull request #607 from rmzelle/rename-style-panes
...
Localize Style Editor and Preview and other improvements
2015-01-28 22:57:10 -05:00
rmzelle
0be9e73b51
Further improvements to Style Editor and Preview
...
* Clean up code (remove some pre-CSL 0.8.1 code, see also e32e6aa2f5
)
* Complete localization
* Save vertical space. Editor: remove "pre-wrap" wrapping, use smaller headers, add grippy to collapse CSL code. Preview: remove groupbox
2015-01-28 22:20:20 -05:00
rmzelle
eec1ba4c73
Put JavaScript code from Style Editor and Preview into separate files
2015-01-28 22:20:20 -05:00
rmzelle
6fd3b298de
Rename Reference Test and Preview panes
...
* Also start localization of Zotero Style Preview
2015-01-28 22:07:39 -05:00
Dan Stillman
276cd82fe4
Fix NO_INTERFACE error tabbing between fields
...
Not sure why this is throwing, but I'm also not sure why it was
necessary in the first place
2015-01-28 18:28:44 -05:00
Dan Stillman
84d1be4c03
ConcurrentCaller tweaks
2015-01-28 17:28:38 -05:00
Dan Stillman
8499ec6211
Allow extra data for single-object notifications to be passed directly
...
Previous it had to be keyed by id (and still can be, but if there's only
a single id the notifier will now key it automatically)
2015-01-28 17:25:17 -05:00
Dan Stillman
b785a3bfce
Dynamically populate charsets table
...
Instead of limiting charsets to a fixed list, dynamically populate it
with any charset name of less than 50 ASCII characters. Previously,
unknown charsets were discarded.
Zotero.Item.prototype.attachmentCharset now always returns a charset
name. It can be set with either a name or a charsetID.
Also:
- Remove the unused 'originalPath' column in itemAttachments
2015-01-28 17:15:16 -05:00
Dan Stillman
b670084925
Use 'version' for groups instead of 'etag'
...
APIv3 uses 'version'
2015-01-28 17:05:25 -05:00
Dan Stillman
58c062dd06
Add per-library lastsync times and synced flags for sync delete logs
2015-01-28 15:56:46 -05:00
Dan Stillman
6199742986
Make attempt to read from an invalid DB column a fatal error
2015-01-28 15:56:46 -05:00
Dan Stillman
30b5c4686e
Update Bluebird to 2.9.3
...
...with fewer modifications, since one (better debug info on an invalid
yield value) was implemented in Bluebird and the other (detecting a
thrown error that doesn't properly extend Error) we should just fix in
our code.
2015-01-28 15:19:29 -05:00
Dan Stillman
66a04a39db
Merge pull request #576 from aurimasv/async_db-av2
...
[Async DB] Modularize Zotero.DataObject.save()
2015-01-28 15:07:32 -05:00
Aurimas Vinckevicius
5db52ac1c3
Add 'year' as a gettable field for Zotero.Item
2015-01-26 15:46:56 -06:00
Aurimas Vinckevicius
a0a656eac0
Allow setting a specific dateModified on item
...
To be used in feed items to set the last _remote_ modification date
2015-01-26 15:46:49 -06:00
Aurimas Vinckevicius
7f5555aab6
Inheritance-based Zotero.DataObjects
2015-01-26 15:46:49 -06:00
Aurimas Vinckevicius
707a65c63e
Remove deprecated Zotero.Items.add
2015-01-26 15:46:49 -06:00
Dan Stillman
55d84bcbf3
Merge pull request #609 from aurimasv/retrieve-meta-max-pages
...
Allow MAX_PAGES (for retrieving metadata) to be user-adjustable
2015-01-21 01:01:47 -05:00
Aurimas Vinckevicius
e8e0f5e831
Bump MAX_PAGES to 15
...
Re https://forums.zotero.org/discussion/45641/error-getting-metadata/#Item_10
2015-01-20 23:58:41 -06:00
Aurimas Vinckevicius
11017b650c
Retrieve unmangled unicode strings from preferences
2015-01-20 23:28:22 -06:00
Aurimas Vinckevicius
f7893ef400
Don't require Zotero restart to change RIS/BibTeX handling preference
2015-01-20 22:46:30 -06:00
Aurimas Vinckevicius
3f3666c972
Add Zotero.Prefs.registerObserver
...
* Easier monitoring of preference changes
* Takes a preference name and a handler function that will be passed the new value of the preference
* Unregister observer via Zotero.Prefs.unregisterObserver with the same parameters
2015-01-20 22:45:28 -06:00
Aurimas Vinckevicius
4ecdd55717
Continue with default if declining Zotero to handle RIS/BibTex/etc.
2015-01-20 21:54:05 -06:00
Dan Stillman
af775e6082
Merge pull request #610 from aurimasv/attach-link
...
Attach link from URI fix
2015-01-20 13:03:01 -05:00
Aurimas Vinckevicius
8be83cedec
Allow file paths to be specified in attachment.url
...
In translators, it may not always be clear whether the given URI is a URL or a local file path.
Regression from 849803473a
(that piece of code was introduced by me)
Re https://forums.zotero.org/discussion/45710/ris-import-from-endnote-mac-yosemite-to-zotero-standalone/
2015-01-19 15:13:49 -06:00
Aurimas Vinckevicius
20444eceb7
Sanitize primary fields in setField before comparing to current value
2015-01-19 11:16:17 -06:00
Aurimas Vinckevicius
f0aae549c5
Allow bypassing library edit check when saving data objects
...
Pass {skipEditCheck: true} option to .save()
2015-01-19 11:16:17 -06:00
Aurimas Vinckevicius
efdc6f1230
Add loadAllData to Zotero.dataObject
...
Useful when trying to duplicate items, which requires access to all data
2015-01-19 11:16:17 -06:00
Aurimas Vinckevicius
84d8c17d6e
Move erase to DataObject and make it modular
2015-01-19 11:16:16 -06:00
Aurimas Vinckevicius
cb56b9607d
Move loadPrimaryData to Zotero.DataObject
2015-01-19 11:16:16 -06:00
Aurimas Vinckevicius
b83bc40426
Various fixes for Zotero.Item
2015-01-19 11:16:16 -06:00
Aurimas Vinckevicius
83187eaa35
Validate numeric field IDs
2015-01-19 11:16:16 -06:00
Aurimas Vinckevicius
adab8e45a7
Additional tweaks to DataObject & descendents to support inheritance
2015-01-19 11:16:15 -06:00
Aurimas Vinckevicius
442388304b
Add Zotero.Libraries.isGroupLibrary
2015-01-19 10:37:22 -06:00
Aurimas Vinckevicius
9f535e0e91
Use Zotero.extendClass for inheritance
2015-01-19 10:37:22 -06:00
Aurimas Vinckevicius
a56e800d7c
Add Zotero.localeCompare
...
Can be used directly in Array.sort() as the sorting function.
Uses LocaleCollateion.compareString internally
2015-01-19 10:37:21 -06:00
Aurimas Vinckevicius
9700cdde38
Add Zotero.extendClass
2015-01-19 10:37:21 -06:00
Aurimas Vinckevicius
f7220378dd
Pass fixGaps to Zotero.Search.save() in an options object
2015-01-19 10:36:42 -06:00
Aurimas Vinckevicius
e02945b591
Add a centralized, modular .save() method to DataObject
...
.save calls ._initSave(), _saveData(), _finalizeSave() internally passing `env` object to each to act as an environment for passing around variables
* _initSave should determine if the save is possible and return a promise for either `true` or `false`. It should also set up the environment, e.g. determine if this `isNew`
* _saveData performs the actual saving to the database, but should not do any terminal steps in the save process so that any extending classes could extend this method to write additional data to the database
* _finalizeSave should perform any finalization before the data is committed to the database.
_recoverFromSaveError is called with `env` and an error that occurred. This method should perform any recovery steps, e.g. discarding the save and reloading the item from the database into the cache.
2015-01-19 10:36:42 -06:00
Aurimas Vinckevicius
56f244a4bb
Add id and libraryID getters for all data objects
2015-01-19 10:36:42 -06:00
Aurimas Vinckevicius
4657c46d4b
getClassForObjectType => getObjectsClassForObjectType
2015-01-19 10:36:41 -06:00
Aurimas Vinckevicius
c222a3248a
Transition __defineGetter/Setter__ to Zotero.defineProperty
2015-01-19 10:36:41 -06:00
Aurimas Vinckevicius
f7d5ebc357
Default to "configurable: true" in defineProperty
2015-01-19 10:36:41 -06:00
Aurimas Vinckevicius
29e9946123
Allow to define properties for late initialization via defineProperty
2015-01-19 10:35:33 -06:00
Aurimas Vinckevicius
d4bd0ee811
Move defineProperty from ZU.Internal to Zotero
2015-01-19 10:31:39 -06:00
Aurimas Vinckevicius
869fdf61ae
Make sure that there's always a title for a given URL
...
E.g. https://read.amazon.co.uk/?asin=XXXXXXXXX was resulting in a blank title
2015-01-18 10:41:17 -06:00
Aurimas Vinckevicius
79a79bb47a
Fix typo in attachLink.xul
2015-01-18 10:40:12 -06:00
Dan Stillman
6de3fa4d47
Update translators and repotime
2015-01-14 00:09:40 -07:00
Dan Stillman
0c3332b5e4
Update versions
2015-01-14 00:08:31 -07:00
Simon Kornblith
06615f738f
Tweak method for parsing XML without a window to handle UTF-8 properly
...
Fixes issue reported at https://forums.zotero.org/discussion/45556
2015-01-14 01:56:09 -05:00