BibIndex: fix for virtual index filtering

* Fixes function filter_for_virtual_indexes

Reported-by: Henning Hraban Ramm <invenioml@fiee.net>
Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: better value escaping

* More complete escaping of values using `escape_javascript_string`
  from htmlutils.  (closes #1578)

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
WebSubmit: value escaping for modifications

* Escape the values to display for appropriate insertion
  into HTML/Javascript.  (addresses #1578)

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
WebSubmit: new Create_Modify_Interface parameters

* Adds new parameters 'prefix', 'suffix', 'button_label',
  'button_prefix' and 'dates_conversion' to WebSubmit function
  Create_Modify_Interface for increased customizability of the
  interface.

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

* maint-1.1:
  WebSubmit: new Create_Modify_Interface parameters
  WebSubmit: value escaping for modifications
  WebSubmit: better value escaping

Conflicts:
	modules/miscutil/sql/tabcreate.sql

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibSched: icons creation tasklet

* Tasklet to create icons of the files attached to a record.

Signed-off-by: Ludmila Marian <ludmila.marian@cern.ch>
Acked-by: Jerome Caffaro <jerome.caffaro@cern.ch>
BibSched: more customizable icon creation tasklet

* Added parameter 'icon_format_mappings' to define the format
  of the created icons for each source file format.
  Defaults to newly introduced CFG_ICON_CREATION_FORMAT_MAPPINGS.

* Added parameter 'docnames' to choose for which BibDoc the icons
  should be created

* Added parameter 'add_default_icon' to mimic the traditional
  behaviour of WebSubmit when adding default gif icon.

* Added parameter 'inherit_moreinfo' for created icons to inherit
  the comment and description values of the source BibDoc.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Acked-by: Ludmila Marian <ludmila.marian@cern.ch>
BibDocFile: convert files and icons asynchronously

* When uploading files via the document file manager interface,
  do not attempt at creating other formats and icons immediately,
  but delay their creation via the use of dedicated tasklets, in
  order to reduce the waiting time on the user's side.
  (closes #1428)

* Introduces parameter 'deferRelatedFormatsCreation' in
  Create_Upload_Files_Interface WebSubmit function to fall back
  to previous behaviour if "related formats" creation should
  happen immediately.

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

* maint-1.1:
  BibDocFile: convert files and icons asynchronously
  BibSched: more customizable icon creation tasklet
  BibSched: icons creation tasklet

Conflicts:
	modules/bibdocfile/lib/bibdocfile_managedocfiles.py
	modules/bibsched/lib/tasklets/Makefile.am
	modules/miscutil/lib/inveniocfg.py

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>