Merge branch 'maint-1.1'

* maint-1.1:
  dbquery: closes redundant connection
  installation: information about unidecode

Conflicts:
	INSTALL

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
installation: Python-2.6 and pip requirements

* Increases minimal Python version requirement to v2.6.  There will
  be soon lots of code merged to the master branch, coming from INSPIRE,
  that is no longer Python-2.4 compatible.  The time has come
  to abandon Python-2.4 compatibility!

* Inclusion of pip requirements files suitable for the master branch.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: clean warning messages in test suite

* Mutes warnings caused by SQL DROP TABLE query.  (closes #1615)

* Fix for improper use of search_unit_in_bibrec function
  inside WordTable class.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
errorlib: wrap warnings to invenio.err

* Redirects captured warnings and corresponding
  tracebacks directly into invenio.err rather
  than polluting stderr and consequently apache.err.
  (closes #1616)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibUpload: pretend holding pen fix

* Correctly apply pretend mode when inserting
  into the holding pen.  (closes #1618)

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibCirculation: minor spelling error fix

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
installation: location of flot

* Updates location from where to download flot to local hosting
  on invenio-software.org site.

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

* maint-1.1:
  installation: location of flot
BibAuthority: separate Authorities collection

* Separates Authorities collection from Bibliograpic collections
  in the demo site by putting the Authorities to the virtual rhs
  collection tree.  Amends tests accordingly.  (closes #1605)

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibRank: no citerank error when no citations

* If no citations are available, citerank methods should
  silently exit.  (closes #1624)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibField: fix number_of_copies field

* Fixes problem with numbers_of_copies field definition
  which fixes also recjson cache recreation.  (closes #1625)

Reported-by: Theodoropoulos Theodoros <theod@lib.auth.gr>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibEdit: send latest timestamp when reverting

* Modifies 005 tag of record to be reverted to match the latest timestamp
  available.

Reported-by: Mike Sullivan <sul@slac.stanford.edu>
Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>
BibEncode: updated for latest BibDocFile APIs

* Compatibility with new BibDocFiles APIs introduced
  with commit e8e870c.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibEncode: support for FFmpeg >= v0.9

* Updated encoding parameters for recent FFmpeg versions,
  and dropped default support for older versions.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: indexing only affected indexes

* Checks affected tags for every record, finds corresponding indexes
  and then reindexes only necessary indexes.  (closes #1573)

* Moves function add_recIDs_by_date outside WordTable
  to make WordTable API more clear/simple.

* Changes in bibindex_regression_tests, new interface for helper
  functions.

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

* Turns global index into a virtual index and
   hanges indexing engine to index virtual indexes
  during indexing physical indexes.  (closes #1574)

* Creates new idxINDEX_idxINDEX table which stores
  information about virtual indexes and their
  dependencies.

* Modifies functions for searching for affected
  indexes to be aware of virtual indexes.

* Adds miscellaneous index and field.

* Adds new tags for miscellaneous index.

* Enhances bibindex administration interface
  accordingly.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: index type in admin interface

* Introduces administration interface
  for type of indexer: 'native', 'SOLR'
  'XAPIAN'.  Connects it with 'virtual'
  indexing.

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

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

* maint-1.1:
  OAIHarvest: for for bad exception handling
BibIndex: ingestion health and "unneeded" indexes

* Provides a fix for find_affected_records_for_index
  function which limits the number of history entries
  that are taken from databse.

* Provides a fix for handling wrong names of indexes,
  which were specified in CLI.

* Changes the behaviour of bibindex so now it updates
  index's last_updated information also when index
  is still up to date and no indexing had to be done.
  (closes #1632)

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