Commit Graph

220 Commits

Author SHA1 Message Date
Dan Stillman
9dd11a7d1b Install/upgrade support for flat-file translators and styles
Files are copied from translators.zip and styles.zip (or, for SVN installs, 'translators' and (for now) 'csl' directories) in the installation directory to 'translators' and 'styles' directories in the data directory. A build_zip file is provided for testing translators.zip (which will take precedence over a 'translators' directory) but isn't required.

The timestamp stored in repotime.txt is stored in the database and is sent to the server for updates since that time.

Updating a file in [install-dir]/translators or [install-dir]/styles automatically copies all files in that directory to the data directory.
2008-09-12 22:09:54 +00:00
Simon Kornblith
83b2e97b31 add hidden property to styles 2008-09-11 23:38:34 +00:00
Dan Stillman
7b39b866aa Better startup error debugging 2008-09-11 23:19:23 +00:00
Simon Kornblith
439b45f948 use more consistent function names 2008-09-11 22:58:18 +00:00
Simon Kornblith
bbbb3c52b9 remove debug code 2008-09-11 22:07:57 +00:00
Simon Kornblith
c7111981d1 add support for parent/child relationships 2008-09-11 22:06:31 +00:00
Simon Kornblith
b6dcd201f5 implements Zotero.Styles and Zotero.Style using flat files 2008-09-11 21:29:05 +00:00
Simon Kornblith
5603b4856b better handling of invalid JSON objects 2008-09-11 20:53:15 +00:00
Simon Kornblith
416b69cc75 fix bug in translator caching 2008-09-11 20:45:01 +00:00
Simon Kornblith
2c8cc9a89c don't run translators on about: URIs 2008-09-11 19:40:38 +00:00
Simon Kornblith
81ba59111e shuffle around initialization code 2008-09-11 19:35:53 +00:00
Simon Kornblith
9185738118 use Zotero.log instead of calling consoleService.logMessage() directly 2008-09-11 18:04:56 +00:00
Simon Kornblith
6015178353 Convert translator architecture to use files
This will break translation for the dev XPI and on the trunk until Dan commits his part of this (or you copy the translators dir in SVN to the zotero dir in your profile dir)
2008-09-11 17:35:56 +00:00
Dan Stillman
7fb14b11c2 Merge r3371 to trunk 2008-09-11 17:30:40 +00:00
Dan Stillman
0b3d01a187 Zotero.getStylesDirectory(), Zotero.getTranslatorsDirectory(), and Zotero.File.createDirectoryIfMissing(dir) 2008-09-11 17:20:09 +00:00
Dan Stillman
b32ed05971 Tweak to previous commit -- use 'this' instead of full chain 2008-09-10 16:55:45 +00:00
Dan Stillman
81bb13abd0 Clear last sync error when starting sync 2008-09-10 16:53:11 +00:00
Dan Stillman
921835b0d4 Additional debugging for unexpected status code storage error 2008-09-10 15:50:25 +00:00
Simon Kornblith
bbffc9cf29 don't show option to retrieve metadata if PDF indexer is not installed 2008-09-09 21:01:47 +00:00
Simon Kornblith
ac1e9c9353 remove cache file even when it is < 20 lines long 2008-09-09 16:03:37 +00:00
Simon Kornblith
0a52b27b1b close input stream in recognizePDF 2008-09-09 16:00:40 +00:00
Dan Stillman
b4654aa19e Closes #1166, Add http access to WebDAV 2008-09-09 15:19:22 +00:00
Dan Stillman
9bff5576de Fixes storage upload with subfolders 2008-09-09 14:15:53 +00:00
Dan Stillman
d2b5471450 Fix error and blank CR window when an item with tags is in conflict 2008-09-05 06:03:45 +00:00
Dan Stillman
153090eb27 Additional output for debugging tag problem 2008-09-05 06:00:03 +00:00
Dan Stillman
b76ce704a3 Generate conflict if number of item creators changed 2008-09-05 05:42:59 +00:00
Dan Stillman
2cdfa8f0f6 Include response text from server in error log on Invalid Response sync error 2008-09-05 04:29:34 +00:00
Dan Stillman
14a5f34bf5 Remove referrer in recognizePDF requests 2008-09-05 04:08:56 +00:00
Dan Stillman
87398c29fa Fix ACCESS_DENIED storage sync error on Windows 2008-09-05 02:42:54 +00:00
Dan Stillman
38530de475 Fix regression from r3335 that caused some creator changes not to sync 2008-09-04 22:27:51 +00:00
Dan Stillman
5cfb050e15 - Fix "Creator must be a Zotero.Creator object in Zotero.Item.setCreator()" problem -- now looks for creator data within item block when it doesn't exist locally
- Fix a couple other problems with creators that could cause changes not to be synced or to cause unnecessary conflicts
2008-09-04 20:27:41 +00:00
Dan Stillman
76e5cc8189 Better cleanup of cached data after sync error
Clearer error message for "Creator must be a Zotero.Creator object in Zotero.Item.setCreator()" problem (which isn't yet fixed)
2008-09-03 18:04:50 +00:00
Dan Stillman
9ea4f8a619 Reverting to recognizePDFcache.txt filename -- I requested the hidden filename when I thought that the cache file was stored in storage directories 2008-09-03 06:23:41 +00:00
Simon Kornblith
302de8f189 - better interface for PDF recognizer
- slightly improved PDF recognizer performance
2008-09-03 06:20:19 +00:00
Simon Kornblith
08f7156d16 fix strict mode error and add JSDoc to selectitems.js 2008-09-02 19:30:14 +00:00
Simon Kornblith
a540cd56ae Use Zotero.Items.get() instead of using new items directly after saving 2008-09-02 19:28:57 +00:00
Dan Stillman
8c798b50a9 Fixes #1157, Adding an existing tag to an item with no tags breaks Zotero 2008-09-01 17:59:25 +00:00
Dan Stillman
4d9e018ca5 Fix sync icon error handling (trunk and SP2 tag) 2008-09-01 08:09:37 +00:00
Dan Stillman
9c3c7ebbb7 Fix sync button breakage after error (trunk and SP2 tag) 2008-09-01 08:00:46 +00:00
Dan Stillman
c437272005 Merged revisions 3306,3309 from 1.0 branch via svnmerge 2008-09-01 06:09:56 +00:00
Dan Stillman
771627816f Two JS strict warnings 2008-09-01 04:34:47 +00:00
Dan Stillman
65eff3cf32 Fix properToProxy() translator error (regression from merge) 2008-09-01 04:25:40 +00:00
Dan Stillman
19c3ddeeff Attachment directory wasn't removed when deleting attachment 2008-09-01 03:59:55 +00:00
Dan Stillman
4ff983661a Fix one other case where the sync could never end 2008-09-01 03:42:42 +00:00
Dan Stillman
d9f2d79648 Storage sync never stopped if file-to-download was missing 2008-09-01 03:28:04 +00:00
Dan Stillman
2183ce7089 - Add "Debuggin" labels to Actions menu options
- Add extra temporary debug output
2008-09-01 03:08:30 +00:00
Dan Stillman
46986012a5 Fix bug displaying "Rename associated file" dialog (on trunk and branch) 2008-09-01 02:10:40 +00:00
Dan Stillman
6f02e0d867 Fix two JS strict warnings 2008-09-01 02:00:17 +00:00
Dan Stillman
6d100324e4 Merged revisions 3080-3081,3084,3087-3088,3090,3092,3099-3103,3113-3114,3132,3134-3143,3145,3148-3151,3154-3159,3165,3174,3194,3234-3235,3239-3240,3244,3246-3254,3258-3262,3268,3270,3274,3279,3286-3288,3294-3295 from 1.0 branch via svnmerge 2008-09-01 01:54:00 +00:00
Dan Stillman
1c05d3149f Missed file from r3296 and better debugging of invalid DB parameters 2008-08-31 23:39:14 +00:00