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>
BibIndex: virtual index queue dupe optimisation

* Before indexing virtual index, let us remove
  duplicate entries in queue table. It will
  save indexing time, because the same actions
  won't have to be performed twice.

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

* Introduces new DOI index and tokeniser.
  (closes #1655)

* Includes tests for new index.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
WebStat: list link fix for system health UI page

* Fixes get_list_link function. Current
  system health is displayed properly.
  (closes #1713)

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