WebSubmit: no double-submit

* Introduces JQuery trick to avoid double submitting a form
  in WebSubmit.
  (closes #1020)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  WebSubmit: no double-submit
installation: location of parsley.js

* Updates location of parsley.js to use invenio-software.org hosting.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: location of sly.min.js

* Updates location of sly.min.js to use invenio-software.org hosting.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: location of jquery.blockUI.js

* Updates location of jquery.blockUI.js to use invenio-software.org hosting.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: location of jquery.omniwindow.js

* Updates location of jquery.omniwindow.js to use
  invenio-software.org hosting.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: more customizable Link_Records function

* Support for linking to several records

* Unidirectional relations support

* Custom MARC fields for storing relations information

* Support for modifications of relations (using --correct
  BibUpload mode), including in records that are no longer
  linked

* Support for task sequence IDs

* Possibility to ignore failed retrieval of corresponding
  record(s)

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
WebJournal: update demo "Article Header" style

* When using "Article Header" style, create a <p> box instead
  of a <span>, to be in line with default "Sample Journal Page"
  template.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  WebJournal: update demo "Article Header" style
  WebSubmit: more customizable Link_Records function

Conflicts:
	modules/miscutil/sql/tabcreate.sql

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibExport: update Google Scholar exporter

* Use standard sitemap output instead of NLM

* Updated sitemap export method to explicitly exclude
  restricted records.

* Generate alternate URLs for homepage. Consequently fixes the
  dropping of "ln" parameter.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: disable meta tags for deleted records

* When displaying a deleted record, do not generate an output
  using CFG_WEBSEARCH_DETAILED_META_FORMAT.  (closes #1680)

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebComment: attachments in multi-node setup

* Support file attachments in environments using several workers,
  by (a) temporarily storing files in CFG_TMPSHARED, and (b) moving
  files to final storage area using shellutils.move() instead of
  os.renames().

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.1'

* maint-1.1:
  WebComment: attachments in multi-node setup
  WebSearch: disable meta tags for deleted records

Conflicts:
	modules/websearch/lib/search_engine.py

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: CERN-specific collection sorting

* Sorts 'CERN Yellow Reports' collection by 084__a field in
  WebColl.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebAccess: CERN-specific authorization message

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: fix search URL in timeout message

* When available, use the nice end-user search URL version
  in the timeout message instead of the machine readable
  one.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Acked-by: Tibor Simko <tibor.simko@cern.ch>
WebComment: deleted record message

* When trying to display comments from a deleted record,
  inform the user that the record has been deleted instead
  of replying that the record does not exist (in '/comments'
  tab) or displaying no output ('yourcomments' page).

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: update collection page markup

* More flexible style customization using CSS classes.

* Display grandchildren as HTML list.

* Try not to wrap collection + "nb recs", for better readability.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: minor engine refactoring

* Refactors code in update_virtual_indexes and
  remove_dependent_indexes functions.

* Fixes a problem occurring when user
  removes depenednt index both in admin
  interface and through CLI.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: new 'all-virtual' CLI option

* Introduces new '--all-virtual' option
  which is an equivalent of '-w virtual_ind1,virtual_ind2,etc.

* Running bibindex without parameters won't
  run update for virtual indexes.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>