fix PMCID parsing
slightly adjust regex
Merge pull request #434 from adam3smith/4.0

fix PMCID parsing
Use documentURI/URL instead of location.href.
document.location is null after the document is detached from its parent window (e.g. after we navigate to a different page in the same hidden browser)
Merge pull request #438 from aurimasv/documentURI

Use documentURI/URL instead of location.href.
Change Transform text so that sentence case capitalizes after :, ?, ! This is in line with English usage and this function is principally useful for English titles.

also deal with punctuation at the beginning of title

Also fix capitalizeTitle to work with quotation marks and Spanish beginning punctuation. Also adds ? and ! as punctuation after which it always capitalizes

switch sentence case conversion to a regex; I'm leaving capitalizeTitle as the substring routine, it's the same length and probably slightly more efficient.
Merge pull request #402 from adam3smith/transform-sentence

Change Transform text so that sentence case capitalizes after :, ?, ! Th...
Don't wipe out fields from fieldsCombined during DB integrity check
Remove synced settings from deleted libraries in integrity check
[Retrieve Metadata] Recognize HTTP 503 code as Google Scholar CAPTCHA + other tweaks.
* Stop metadata retrieval when cancelled
* Display CAPTCHA dialog
* Don't close window on blur
* Use Zotero.Utilities.cleanISBN to validate ISBNs
[Retrieve Metadata] Look for JSTOR stable URLs and convert to DOIs
Thanks to myqlarson for the suggestion. See https://forums.zotero.org/discussion/29354/1/query-limit-reached/#Item_42
[Retrieve Metadata] Use a single queue to query Google Scholar. Window closing tweaks.
* Close window on blur after completion on Mac (revert previous change)
* Don't close window when canceling
* Add Esc handler to cancel/close window
* Allow columns to be resized
* Fixes #445
* Fixes #444
[Retrieve Metadata] Focus item in Zotero pane when double-clicking
* Fixes #446
[Retrieve Metadata] Add/fix comments
Merge pull request #433 from aurimasv/retrieve-meta

Retrieve Metadata query limit fixes
Faster indexed word insert, faster word splitter

Uses SQL insert ... select to speed up the inserts, and ports the Firefox word splitter to JS
to prevent xpcom call overhead
Remove unused _separateElements()
More full-text indexing tweaks

Follow up from #440

- Convert curly single quotes to straight quotes before inserting
- Add General and Supplemental Unicode punctuation ranges to getClass()
  (so that fancy punctuation doesn't end up in words)
- Move single-quote test from getClass() to semanticSplitter(), and
  consider it a letter only if in the middle of a word
- Add comments to semanticSplitter()

This might be ever-so-slightly slower, but it's neglible. (War and Peace
seems to now take ~1570ms instead of ~1500ms for me.)
Update locales from Transifex
Update submodules and repotime