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
WebStyle: canonical and alternate URLs

* Introduces support for canonical URLs, useful in case the same Invenio
  installation is reachable from different domains and over both
  HTTP and HTTPS. (addresses #1251)

* Similarly introduces support for alternate URLs (WRT i18n) to announce
  alternative translation for the current page.

* Introduces proper support for canonical and alternate URLs in the sitemap
  generation script in BibExport.

* Generally improves BibExport generation of sitemaps, by compressing via
  gzip, incremental creation of sitemaps, and hot-swapping.
  (closes #368)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibFormat: remove 0248_a field from title

* Merge note: amended also:
    modules/bibformat/doc/admin/bibformat-admin-guide.webdoc

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
mailutils: send_email() with attachments

* Extends mailutils.send_email() API to support attachments, following
  the recipe:
  <http://stackoverflow.com/questions/3362600/how-to-send-email-attachments-with-python>
  (closes #1253)
BibSched: new --email-logs-to bibtask CLI

* Introduces new --email-logs-to bibtask CLI, in order to automatically
  send stdout and sterr logs (and a status report) about a bibtask, at
  its very end.
  (closes #1252)
BatchUploader: bibtask logs via email

* Exploits the new --email-logs-to CLI interface of bibtasks, by letting
  the admins who schedule a batchupload (metadata or document) to specify
  a list of email addresses (by default her own) to whom the logs of
  the bibupload task are going to be sent.
  (closes #1255)
errorlib: hiding bibcatalog info in exception body

* Does not disclose bibcatalog_password stored in the user_info
  object when an exception is analysed by register_exception().

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

* maint-1.0:
  errorlib: hiding bibcatalog info in exception body

Conflicts:
	modules/miscutil/lib/errorlib.py
Merge branch 'maint-1.1'

* maint-1.1:
  errorlib: hiding bibcatalog info in exception body