BatchUploader: multiple improvements

* Add new javascript file with all functions related to form
  validation.

* Remove error checking from server side

* Add an intermediate page before metadata submission to confirm
  the actions to be taken. (fixes #603)

* Perform an upload simulation via bibupload() to check for errors.

* Removed custom authorization messages so that a link to
  login is provided when user is not authorized

* xmllint sanity check is now performed during bibupload simulation

* Upload priority fix

* Refactoring of document upload form. Fixes display of radio buttons
  for upload mode

* Adds auto version to the batchuploader JS file

* Fix when accessing /batchuploader/confirm directly in the browser
BibEdit: multiple improvements

* Integrate refextractor: use refextractor API to extract references
  from current record

* Multiple bugfixes and optimizations

* When field 999C5 is changed or inserted, add new subfield
  $$9 CURATOR to indicate that the field should not be automatically
  removed

* Add reference field template

* Remove lower capital indicator restriction (due to C indicator in references)

* When inserting a field in a given position, prefill field
  tag and indicators from the field above.

* If a cataloger edits a reference field, a subfield $$9 with value
  CURATOR is added automatically. If refextractor is run again,
  ensure that manually curated references do not get overwritten

* Perform an upload simulation of the marcxml to be submitted
  in order to detect possible errors (fixes #696)

* Shortcut fixes and selection mode available

* New button on top toolbar to allow the insertion of references
  to be analyzed by refextract, inside of a textarea
BibEdit: cnum generation on conference records

* When a record is submitted, if it belongs to the conference
  collection, generate a new cnum if not existent.

* Uses seqSTORE table and CnumSeq class.

* Adds specific CNUM population for INSPIRE.
BibEditMulti: multiple improvements and fixes

* When changing condition subfield of Delete action, change
  was not applied.  (fixes #1146)

* After selecting the type of action in the dropdown,
  the first subfield action opens automatically.  (fixes #1147)

* Moves the "Define new subfield action" to the left.  (fixes #1148)

* Extends 'Apply only to specific field instances' to apply
  actions when a subfield does not exist.  (fixes #1130)

* Optimizes the time of preview generation.  (fixes #1149)

* Only modifies the results with checkboxes checked (fixes #1156)

* When updating a field, there is now possibility to add
  more fields for "replace substring" conditions (fixes #1158)

* Uses regular expression instead of replace function
BibEdit: introduce textmarc editor

* Introduces new record view to edit content in textmarc mode

* BibEdit unitest file added and tests added to the suite
BibEdit: several fixes

* Fixes the case when the clone button was being binded twice to
  the click event

* Also disables the left menu correctly when cancelling and
  submitting a new record

* Autocomplete fix when adding a new field

* Save all opened fields on submit

* Allow FFT tags in textmarc editor

* Save fields before submitting fix

* When adding x similar fields (using field templates), keep the
  volatile fields as volatile
BibEdit: add extraction of references from URL

* Uses refextract API to extract references from a given
  URL

* New file bibedit_refextract.js and some refactoring done
BibEdit: delete cache if record not modified

* Deletes cache file if record is left and there are no changes.
  This avoids locking the record for future users
Inveniogc: delete BibEdit temporary files
BibEdit: allow opening deleted records

* Shows a message indicating that the record is deleted and activates
  read-only mode. It is possible to browse history and reverse to
  a previous version (fixes #573)
BibEdit: css changes

* Fix refextract dialogs

* New look for left panel

* Move css to separate bibedit.css
BibEdit: improvements and fixes

* After submission, display a link to the record for quick access
  (fixes #761)

* Adds user nickname, email and cache modification date to the info
  offered when a record is locked by another user (fixes #1032)

* Hides BibCirculation section of left menu by default

* Changes message when record is blocked by the queue

* When deleting cache file, avoid error if the cache does not
  exist on disk

* Copy/paste fix for Firefox

* Click on different field fix. Allows to click on a different
  field, save the previous one and open the new one

* Fix open PDF when plots attached

* Ammended web tests

* Avoids an error when loading BibEdit if jQuery not installed

* Do not error if a file is not correclty attached and click on
  open PDF
Merge branch 'jmartinm/cataloguing-improvements'

* jmartinm/cataloguing-improvements:
  BibEdit: improvements and fixes
  BibEdit: css changes
  BibEdit: allow opening deleted records
  Inveniogc: delete BibEdit temporary files
  BibEdit: delete cache if record not modified
  BibEdit: add extraction of references from URL
  BibEdit: several fixes
  BibEdit: introduce textmarc editor
  BibEditMulti: multiple improvements and fixes
  BibEdit: cnum generation on conference records
  BibEdit: multiple improvements
  BatchUploader: multiple improvements

* Merge note: tested functionality, fixed small kwalitee issues,
  renamed unit test file.

Conflicts:
	modules/bibupload/lib/batchuploader_engine.py
	modules/bibupload/lib/batchuploader_templates.py
	modules/bibupload/lib/batchuploader_webinterface.py
	modules/miscutil/lib/urlutils.py

Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibMerge: delete cache file on submit

* On submit, delete the cache file so that the record can be
  reopened, e.g with BibEdit.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  BibMerge: delete cache file on submit