J. Ryan Stinnett
b4303eaa45
Absorb feed processor types from interface
...
This moves the type constants into code, rather than pulling them from an XPCOM
interface.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
a0694cd8fb
Convert feed processor type checks away from XPCOM
...
This converts the type checks for arrays and interfaces to use native JS
approaches instead of XPCOM.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
a3e6f96289
Remove MIME type description feature from feed processor
...
This removes the feed processor's feature of converting enclosure MIME types to
a textual type description. This is not used by Zotero and removes an XPCOM
dependency.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
af6029b854
Convert feed processor to native URLs
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
be80598c6b
Convert feed processor data away from XPCOM
...
This changes the feed processor XPCOM array and property bags to native arrays
and objects.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
75eb8c51d4
Ignore feed processor *.idl files
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
bea3b3d3b2
Remove unimplemented registerExtensionPrefix API
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
9d0e1932dc
Convert feed processor structure away from XPCOM
...
This changes the various components to invoke each other directly as regular
objects without involving XPCOM.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
e120ca7395
Align variable style in feed processor
...
This tweaks variable naming and related details to match Zotero conventions.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
76873bda95
Approaching readable code in feed processor
...
This adjusts bracing style and other aesthetics to match Zotero conventions.
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
a210f1fbde
More style alignment for feed processor
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
088483b776
Fix lint issues in feedReader.js
2021-06-16 20:59:57 +01:00
J. Ryan Stinnett
bc4aafa8e4
Add feed reader tests for parsing behavior
...
This adds extra tests to check parsing behavior such as entities, tag handling,
CDATA, etc. This will help ensure the new feed processor matches the previous
behavior.
2021-06-16 20:59:57 +01:00
Tom Najdek
f1414731da
Blur active field in switchCreatorMode #2087 ( #2088 )
2021-06-14 17:33:55 -04:00
Abe Jellinek
f83559feb8
Correct creator fields in OpenURL ( #2079 )
...
There is no isInstitution field, so OpenURL search was producing invalid
data for items with institutional authors. Instead we use the name field
in API JSON and the isInstitution flag in internal JSON.
2021-06-14 14:49:49 -04:00
qqobb
5359db39d0
Run JavaScript: Improve await
regex ( #2083 )
...
Tests: https://regex101.com/r/eQYCIp/1
2021-06-12 02:44:39 -04:00
Tom Najdek
864b135da4
Mendeley import: Simplify filename logic #2067 ( #2085 )
2021-06-11 13:35:09 -04:00
Martynas Bagdonas
3584853f39
Fix annotations test
2021-06-09 18:12:05 +03:00
Martynas Bagdonas
3beb858275
Upgrade note-editor schema to v3:
...
- No longer store `text` property in highlight annotation
- Remove `text` property when modifying a note
2021-06-09 17:48:55 +03:00
Martynas Bagdonas
43bd1af3e9
Prepare read-only check for group library annotations
2021-06-08 10:10:21 +03:00
Martynas Bagdonas
87ef6ceacc
Fix notesList more button notes count
2021-06-04 18:27:43 +03:00
Martynas Bagdonas
6d0067b806
Do not escape existing HTML entities when citing note
2021-06-04 11:49:11 +03:00
Dan Stillman
2fd46157f3
Enable Basque locale
2021-06-04 02:16:20 -04:00
Dan Stillman
3cfc31c445
Add TODO to pass libraryID in advanced search autocomplete
...
This will probably conflict with an open PR, but that should be fixed to
do the same.
2021-06-04 02:15:16 -04:00
Dan Stillman
f3aca749d9
Autocomplete improvements
...
- Limit field autocomplete to current library in item pane (previously
only done for creator and access date)
- Improve positional parameter usage to avoid duplicate parameters
- Code cleanup
2021-06-04 02:14:17 -04:00
Dan Stillman
d51f8ef31c
Update pdf-reader submodule
2021-06-04 00:10:37 -04:00
Dan Stillman
07eda894f3
Don't trigger 'redraw' event on attachment download 404
...
There's no need to refresh the attachments column of the item row if
nothing was downloaded.
Also remove some unnecessary logging
2021-06-03 23:39:52 -04:00
Martynas Bagdonas
a5fe49b866
Remove sync buttons from PDF reader toolbar
...
Fixes #2045
2021-06-02 20:39:44 +03:00
Martynas Bagdonas
a418d5ae8d
Fix RTL mode in pdf-reader, note-editor, contextPane
2021-06-01 11:37:07 +03:00
Dan Stillman
1bf7b1e88e
Fix updating of attachment title in right-hand pane when changed
...
https://forums.zotero.org/discussion/88225/attached-file-name-doesnt-change-immediately-at-5-0-97-beta-2-8b1b2ee56
2021-05-31 03:26:06 -04:00
Dan Stillman
1daf4b0413
Update locales from Transifex and merge new English strings
2021-05-28 02:58:53 -04:00
Martynas Bagdonas
ded077dc8e
Use Zotero.appName for localization in note-editor
...
Fixes #2073
2021-05-27 13:38:09 +03:00
Dan Stillman
6be797bc14
Fix additional imported Mendeley annotation color (" #000 ")
...
This is going to start redacting people's PDFs until we change the
default opacity.
2021-05-27 05:30:39 -04:00
Martynas Bagdonas
cf344335ed
Use item display title for PDF reader tabs
2021-05-25 19:48:35 +03:00
Martynas Bagdonas
bb40928720
Localize formatted citations in notes
...
Fixes #2040
2021-05-25 13:07:24 +03:00
Martynas Bagdonas
faec1f1dee
Provide filename for recognizer server
2021-05-25 10:30:54 +03:00
Martynas Bagdonas
b2acb5e339
Fix missing title in PDF reader standalone window
2021-05-21 17:20:12 +03:00
Martynas Bagdonas
eb085f2bbe
Reorganize View
menu, add checkmarks, introduce Go
menu
...
Fixes #2037
Fixes #1997
2021-05-21 17:20:11 +03:00
Martynas Bagdonas
39b56a66dc
Fix blank standalone PDF reader window issue
2021-05-21 15:44:38 +03:00
Martynas Bagdonas
1e0b5272a4
Add missing Page
and Read-only
localizations
2021-05-21 15:24:56 +03:00
Martynas Bagdonas
a7c6979e75
Add space between items in multi-item citation
2021-05-21 15:24:56 +03:00
Dan Stillman
cdf1f3c856
Mendeley import: Use bytes for path/filename limits on Windows
...
It's not totally clear how it's calculated, but it doesn't seem to be
just characters.
And make the path limit 255, which is the File Explorer limit, even if
the filesystem can allow up to 260.
2021-05-21 03:02:41 -04:00
Abe Jellinek
06660d04f0
Scaffold: Update year and add spacing in template ( #2066 )
2021-05-21 00:53:19 -04:00
Dan Stillman
6e146181da
Merge pull request #2063 from tnajdek/mendeley-online-sanitize-path
...
Mendeley Import: improve handling of attachment files
2021-05-20 21:49:35 -04:00
Dan Stillman
bec42fe2a5
Handle multibyte characters in Zotero.File.truncateFileName()
...
Filesystems care about byte length, not character length, so treat
maxLength as the byte length limit and truncate accordingly.
This will also now remove entire emoji characters without corrupting
them.
2021-05-20 19:25:57 -04:00
Dan Stillman
b511e452a8
Mendeley import: Only limit paths to 260 characters on Windows
2021-05-20 19:25:15 -04:00
Tom Najdek
7582147dd5
Mendeley Import: Prevent tmp path > 260 chars
2021-05-20 12:53:34 +02:00
Tom Najdek
63205a73e8
Improve truncateFileName
logic for edge cases
2021-05-20 12:41:49 +02:00
Tom Najdek
89d81cee41
Mendeley import: Sanitize names of fetched files
2021-05-20 12:41:44 +02:00
Tom Najdek
faf094f0aa
Mendeley import: shorten tmp file path
2021-05-20 11:18:23 +02:00