Dan Stillman
9232dd5247
Merge locales from Transifex, though it's all Greek to me
2015-01-30 04:45:41 -05:00
Dan Stillman
7aff743da6
Remove trailing space
2015-01-30 04:45:40 -05:00
Dan Stillman
f04b641f3c
Merge pull request #617 from aurimasv/content-handler
...
Content handlers
2015-01-30 04:09:03 -05:00
Dan Stillman
d8f2d4b268
Merge branch 'fx36-saveURI' into 4.0
2015-01-30 03:56:58 -05:00
mizu
5f8b56ef86
Fix saveURI() in Firefox 36+
2015-01-30 03:55:35 -05:00
Dan Stillman
783ba4a0b7
Merge pull request #618 from aurimasv/prefs-unicode
...
Retrieve unmangled unicode strings from preferences
2015-01-30 03:42:34 -05:00
Dan Stillman
66a6272adc
Merge pull request #621 from aurimasv/api_syncing-bugfix
...
[API syncing] Minor bugfixes
2015-01-30 00:45:24 -05:00
Aurimas Vinckevicius
ab7fc1614d
Fix bug in collectionTreeView that caused tree row loss
...
...when collapsing/expanding group libraries
2015-01-29 19:31:55 -06:00
Aurimas Vinckevicius
d98a79c33f
Fix typo in item field caching code
2015-01-29 19:31:54 -06:00
Aurimas Vinckevicius
9574e56ad6
Convert itemType to itemTypeID in itemTreeView.js, not items.js
...
itemType comes from the column name in the tree view, so it makes most sense to do it there. Otherwise, Zotero was complaining about invalid field somewhere
2015-01-29 19:31:54 -06:00
Dan Stillman
b0e37a38a2
Merge branch '4.0'
...
Conflicts:
chrome/content/zotero/xpcom/schema.js
chrome/content/zotero/xpcom/translation/translate.js
chrome/content/zotero/xpcom/zotero.js
install.rdf
update.rdf
2015-01-29 19:59:47 -05:00
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