- `nsIFilePicker::show()` was removed in favor of `.open(callback)`, but
we added a replacement `FilePicker` module with an `await fp.show()`that
should be used instead
(https://github.com/zotero/zotero/commit/6f965251ed8eea160f95edaa8274c1bd786fafdc)
- `prefwindow` and related XBL bindings were removed, but we've restored
them for now. If you have a preferences window, you need to include an
additional CSS file.
(https://github.com/zotero/zotero/commit/79276edd145cb2705fc0acc418e9abb61f63da08)
- The `Zotero.File.iterateDirectory()` signature changed
(https://github.com/zotero/zotero/commit/79276edd145cb2705fc0acc418e9abb61f63da08)
- XMLHttpRequest is now just `new XMLHttpRequest()` even in XPCOM
(https://github.com/zotero/zotero/commit/6fd879fc16552b3a16a5cbad0a74cb19baf15a35)
On Wednesday, August 28, 2019 at 12:44:15 PM UTC+2, Dan Stillman wrote:
- `nsIFilePicker::show()` was removed in favor of `.open(callback)`, but
we added a replacement `FilePicker` module with an `await fp.show()`that
should be used instead
(https://github.com/zotero/zotero/commit/6f965251ed8eea160f95edaa8274c1bd786fafdc)
How should I use this from a plugin? I won't be able to do "import FilePicker from 'zotero/filePicker'"
- `prefwindow` and related XBL bindings were removed, but we've restored
them for now. If you have a preferences window, you need to include an
additional CSS file.
(https://github.com/zotero/zotero/commit/79276edd145cb2705fc0acc418e9abb61f63da08)
- The `Zotero.File.iterateDirectory()` signature changed
(https://github.com/zotero/zotero/commit/79276edd145cb2705fc0acc418e9abb61f63da08)
- XMLHttpRequest is now just `new XMLHttpRequest()` even in XPCOM
(https://github.com/zotero/zotero/commit/6fd879fc16552b3a16a5cbad0a74cb19baf15a35)
Are these changes new to FF60? Or were they available on FF52 and are the older alternatives being deprecated? Should I expect these changes to work on FF52?
On 8/28/19 11:02 AM, Emiliano Heyns wrote:
On Wednesday, August 28, 2019 at 12:44:15 PM UTC+2, Dan Stillman wrote:
- `nsIFilePicker::show()` was removed in favor of `.open(callback)`, but
we added a replacement `FilePicker` module with an `await fp.show()`that
should be used instead
(https://github.com/zotero/zotero/commit/6f965251ed8eea160f95edaa8274c1bd786fafdc)
How should I use this from a plugin? I won't be able to do "import FilePicker from 'zotero/filePicker'"
You can if you use Babel. Otherwise you'd need to use`var FilePicker = require('zotero/filePicker').default;`.
(You can also just use nsIFilePicker with open(callback), but you'd need to change that again in the future.)
Good question.
Many of the Firefox changes (e.g., `new XMLHttpRequest()`) are older and should work in Fx52 Zotero.
For others, including the Zotero-side changes like iterateDirectory(), for the time being you'll need to check Zotero.platformMajorVersion to see if you're in 52 or 60.
Sorry for the late notice here. The current version of Zotero works
essentially fine on Catalina, and we weren't anticipating the
notarization changes to require a platform upgrade, but that ended up
being the least-annoying option. We're happy to work with plugin
developers over the next couple weeks to make sure plugins are updated
in time, and other plugin developers may be willing to pitch in as well,
so please post here if you don't think you'll be able to finish on time.
Also feel free to post here or CC me on GitHub if anything is unclear
from the Zotero commits or if you run into other incompatibilities.
- Dan
I haven't tested much on Windows or Linux, but do you not still have an
Extension tab on the left-hand side that you can click to get back to
the main view? That works for me on macOS.
On 9/9/19 3:31 PM, Will S wrote:
> In updating my overlay addon (https://github.com/willsALMANJ/lyz), I
> found that default preferences in the defaults/ directory were not
> loaded. Maybe there is a way to make them work. I just refactored to
> set the default preferences dynamically when the addon is loaded like
> I was already doing for my bootstrapped addon
> (https://github.com/willsALMANJ/Zutilo). (Otherwise, I think I
> converted LyZ to Zotero 5.0.75 as well now -- in testing I
> occasionally saw error messages about the file paths it uses to
> read/write data from LyX through a named pipe, but everything seemed
> to work even when the error messages appeared).
Oh, extension default prefs may have been discontinued. I had noticed
that default preferences from our bundled word processor plugin
extensions weren't being used (and I moved those into the core defaults
at build time), but default prefs probably just aren't used for any
extensions anymore, since they're not used by WebExtensions or Mozilla's
system extensions.
Settings pref defaults when undefined would be trivial for me, and for one particular case in BBT, better than how I'm doing it right now. But I can also wait it out. BBT just has the current assumption that none of its prefs are undefined.
Just starting the work to adapt Jurism to the fx60 build. I've hit a snag in the first build:-----
Could not read 'file:///media/storage/src/JM/zotero-standalone-build/staging/Jurism_linux-x86_64/extensions/zoteroOpenOfficeIntegra...@zotero.org/components/zoteroIntegration.xpt'.
-----
--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zotero-dev/dc069cef-01db-4717-bba5-f600c0651454%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to zoter...@googlegroups.com.
On Thursday, October 3, 2019 at 11:06:35 PM UTC+2, Dan Stillman wrote:
The linux build seems to be missing:
Citation Key: LiuHuaChun2018_HulianwangJinrongJianguan biblatex{ publisher: "Liu, \\chsf{刘华春}, Hua\\-chun", author: "Xu, \\chsf{}, Duo\\-qi" }
but this when I import with dev:
company: 法律出版社 distributor: 法律出版社 institution: 法律出版社 label: 法律出版社 versionNumber: 1 Citation Key: LiuHuaChun2018_HulianwangJinrongJianguan biblatex{ publisher: "Liu, \\chsf{刘华春}, Hua\\-chun", }
(this behavior is not particular to RDF import, it also happens with others, but this was easiest to replicate without BBT). I'm particularly surprised by "author" being stripped.
On 10/11/19 3:01 AM, Emiliano Heyns wrote:
> Are there significant/incompatible changes to the database structure?
> I get a popup saying I should update my database should be upgraded.
To clarify, the DB is upgraded automatically by the new code. You get
the prompt if you try to revert back to an older version.
The new code changes how types and fields are handled [1], so we had to
block clients that don't know how to handle the new schema stuff.
On 10/11/19 3:01 AM, Emiliano Heyns wrote:
> Are there significant/incompatible changes to the database structure?
> I get a popup saying I should update my database should be upgraded.
To clarify, the DB is upgraded automatically by the new code. You get
the prompt if you try to revert back to an older version.
Is there a list of fields that Zotero recognizes in "extra" other than the existing csl variables, and the mapping it uses to transform one into the other during import?
I had submitted a pull request a while back to parse more words (https://github.com/zotero/zotero/pull/1688), but Dan wanted to hold off until future field transfer was more clearly specified. I am surprised that `place` is getting parsed at all, considering that it's not a CSL variable.
Don't store unknown/invalid fields in Extra in non-strict mode
And fix a couple things for if we turn it back on
This code came along with the type/field handling overhaul, but I think
it was originally intended for handling unknown fields during sync
before we decided on strict mode, so it wasn't finished and causes
various problems. It could still be useful for preserving fields
from translators before they're available on items, but the better fix
there is just to add the missing fields, so I'm not sure if we'll end up
needing it.
`git submodule update --init` and look in resource/schema/global/.
Fields are read in from schema.json and stored in the usual tables.
Relevant commit is here:
https://github.com/zotero/zotero/commit/4b60c6ca275ec69249b3ea81a669ae4823678d03
Let me know if you have other questions.
One more question ...
The schema.json provides field and type names. Are there static
assignments of the field and type IDs, or are those meant to be
dynamically assigned in the new code?
On Wed, Nov 13, 2019 at 2:57 PM Dan Stillman <dsti...@zotero.org> wrote:
>
> On 11/13/19 12:46 AM, Frank Bennett wrote:
> > Jurism question here.
> >
> > Now that fx60 is in master, I'm starting again (time permitting) to
> > work on merging those changes.
> >
> > First question: How are item type IDs / creator type IDs / field IDs
> > now set in master? The mappings have disappeared from system.sql, and
> > I can't seem to find a human-readable source file elsewhere.
>
> `git submodule update --init` and look in resource/schema/global/.
>
> Fields are read in from schema.json and stored in the usual tables.
>
> Relevant commit is here:
> https://github.com/zotero/zotero/commit/4b60c6ca275ec69249b3ea81a669ae4823678d03
>
> Let me know if you have other questions.
>
> --
> You received this message because you are subscribed to the Google Groups "zotero-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zotero-dev/0100016e63e220db-24938356-5b6b-4ccb-8973-cc6c64a7d20e-000000%40email.amazonses.com.
We'll soon be updating Zotero's underlying platform from Firefox 52 ESR
to Firefox 60 ESR.
This allows us to meet the new app notarization requirements in macOS
Catalina [1], coming in September, and it also provides us with all the
improvements that came between Firefox 52 and 60, including the
performance improvements in Firefox 57 (though we haven't yet tested how
much those affect us).
Unfortunately, this upgrade will require most Zotero plugins to be
updated, though Zotero's own updates should serve as a fairly
comprehensive roadmap.
You can see a list of all the Zotero changes here:
https://github.com/zotero/zotero/compare/master...fx60
Build changes (probably only relevant to Jurism) are here:
https://github.com/zotero/zotero-standalone-build/compare/master...fx60
Most plugins hopefully won't encounter most of this, but here are some
highlights that may come up:
- Old-style Mozilla shorthand function definitions should be replaced
with arrow functions
(https://github.com/zotero/zotero/commit/9ca1014f5bc90b6edabb5f04b3f73df09fdb246a)
- `nsILocalFile` should be changed to `nsIFile` or replaced with strings
paths or `Zotero.File.pathToFile()`
(https://github.com/zotero/zotero/commit/433794916a493d68cc793fd8fa577e2db5ad3efe)
- `nsIFilePicker::show()` was removed in favor of `.open(callback)`, but
we added a replacement `FilePicker` module with an `await fp.show()`that
should be used instead
(https://github.com/zotero/zotero/commit/6f965251ed8eea160f95edaa8274c1bd786fafdc)
- `nsIURI` is now immutable, so you have to use
`uri.mutate().setFilePath(uri.filePath + '/foo').finalize()` or similar
to make a new URI with modifications
(https://github.com/zotero/zotero/commit/61e976bd3aec95b73cd993e685adfa897ab3784f)
- `nsIURI::path` is now `nsIURI::pathQueryRef`
- `prefwindow` and related XBL bindings were removed, but we've restored
them for now. If you have a preferences window, you need to include an
additional CSS file.
(https://github.com/zotero/zotero/commit/79276edd145cb2705fc0acc418e9abb61f63da08)
- The `Zotero.File.iterateDirectory()` signature changed
(https://github.com/zotero/zotero/commit/79276edd145cb2705fc0acc418e9abb61f63da08)
- XMLHttpRequest is now just `new XMLHttpRequest()` even in XPCOM
(https://github.com/zotero/zotero/commit/6fd879fc16552b3a16a5cbad0a74cb19baf15a35)
We've put up test builds on a dev channel that you can use to test and
update your plugins:
https://download.zotero.org/client/dev/5.0.75-dev.1%2B2a613258e/Zotero-5.0.75-dev.1%2B2a613258e.dmg
https://download.zotero.org/client/dev/5.0.75-dev.1%2B2a613258e/Zotero-5.0.75-dev.1%2B2a613258e_linux-x86_64.tar.bz2
https://download.zotero.org/client/dev/5.0.75-dev.1%2B2a613258e/Zotero-5.0.75-dev.1%2B2a613258e_win32.zip
(This channel won't be active most of the time, so you shouldn't expect
to stay on it after this development cycle.)
We need to push this branch to the beta channel at the end of next week
so that it gets sufficient testing, so you'll need to update your
plugins by then for them to continue working for beta users. Catalina
will probably come out September 23rd, so we need to have at least the
Mac version in production by then.
Sorry for the late notice here. The current version of Zotero works
essentially fine on Catalina, and we weren't anticipating the
notarization changes to require a platform upgrade, but that ended up
being the least-annoying option. We're happy to work with plugin
developers over the next couple weeks to make sure plugins are updated
in time, and other plugin developers may be willing to pitch in as well,
so please post here if you don't think you'll be able to finish on time.
Also feel free to post here or CC me on GitHub if anything is unclear
from the Zotero commits or if you run into other incompatibilities.
- Dan
[1]
https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution