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
Steve Jamieson
0d2a205110
Fix for OpenURL 0.1 resolver detection
...
The discoverResolvers function was looking for the wrong XML tag name representing OpenURL version 0.1 in the response from the WorldCat Registry
2015-01-13 14:20:57 -06:00
Dan Stillman
b9fb7fa3c6
Update versions
2015-01-12 23:59:26 -07:00
Simon Kornblith
7d19e17bb9
Ensure that we pass WebPageDump an XPCNativeWrapper
...
Fixes some CSS issues in snapshots
2015-01-13 01:51:03 -05:00
Dan Stillman
f1a3cb3577
Update versions, submodules, and repotime
2015-01-12 21:54:56 -07:00
Simon Kornblith
90625e8a05
Fix translators callback from translators on Fx 35 (affects COinS)
2015-01-12 19:33:12 -05:00
Simon Kornblith
5c76347674
Improve translation on Nightly (with e10s disabled)
...
I haven't fully tested, but this fixes Google Scholar
2015-01-12 11:27:39 -05:00
Simon Kornblith
e082a4fc28
Fix PDF metadata retrieval on Fx 35
2015-01-12 02:44:09 -05:00
Simon Kornblith
da7ee2ba26
Tweak sandboxing for Firefox 35
...
Now we have to wrap cross-origin objects with a wrapper on the sandbox
side. Also, Function.prototype.apply.apply...
2015-01-12 01:41:01 -05:00
Simon Kornblith
fa75beeefd
Fix bookmarklet under Chrome
...
checkIsOnline isn't called before the connector gets used except in IE.
The mixed content blocker in modern IE combined with the https
redirect breaks communication with ZSA on all pages anyway, so we may
just want to give up on making the bookmarklet talk to ZSA.
2015-01-08 01:46:20 -05:00
Simon Kornblith
541ebd1f22
Merge pull request #596 from aurimasv/conn-reg
...
Fix regression from 0cd183613f
2015-01-07 20:10:34 -05:00
Dan Stillman
132284d5fa
Merge pull request #602 from zuphilip/collapse-right-pane
...
Right pane (item-pane) can be collapsed
2015-01-07 05:01:38 -05:00
Philipp Zumstein
d5b4c31575
Right pane (item-pane) can be collapsed
...
This belongs to issue #509 and was asked several times in the forum.
* Add attribute `collapse="after"` to the splitter and add a grippy element.
* To remember its state after restart I copied `zotero-persist="state"`.
* Handle zotero-items-splitter the same as zotero-collections-splitter in zotero-platform/mac/overlay.css
* Change min-width to 250px for #zotero-item-pane in zotero/overlay.css.
* Update the function `updateToolbarPosition` in zotero/zoteroPane.js:
* The width of the items-toolbar is corrected if the left pane is collapsed (and the icons are grouped on the left margin together).
* If the right pane is collapsed, then the items-toolbar is made flexible while making the item-toolbar unflexible. As a result the search box and locate icon are flushed right to the other icons.
2015-01-07 10:41:18 +01:00
Aurimas Vinckevicius
e530c3a001
Remove unnecessary newline in TranslatorTester log output
2014-12-29 05:28:44 -06:00
Aurimas Vinckevicius
08c3effe6e
Allow meta redirects when running tests and account for new document
2014-12-29 05:28:01 -06:00
Dan Stillman
3792e94c10
Merge non-English strings from Transifex
2014-12-27 14:14:31 -05:00
Dan Stillman
3b8ce8e411
Merge pull request #599 from aurimasv/varDump
...
varDump update
2014-12-27 14:11:24 -05:00