I18N: infrastructure for Persian (Farsi)

* Adds general support infrastructure for Persian (Farsi)
  translation.  Dynamic elements and PO file will be translated
  in subsequent commits.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
I18N: initial Persian (Farsi) translation

* Initial translation of dynamic elements (e.g. collection names)
  to Persian (Farsi).  The PO file will be translated in future
  commits.

Co-authored-by: Tibor Simko <tibor.simko@cern.ch>
Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibUpload: fill affected_fields in hstRECORD

* BibUpload now stores list of affected fields for given record
  revision update into hstRECORD table.  (closes #1572)

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: filetype and itemcount tokenizer fix

* Filetype and itemcount tokenizers now correctly
  handle TypeError in cases when they were passed
  object different than bibfield's record.
  (closes #1609)

Reported-by: Theodoropoulos Theodoros <theod@lib.auth.gr>
Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
dbquery: closes redundant connection

* mod_wsgi uses one thread to import the .wsgi file
  and a second one to instantiate the application.
  Therefore we need to close redundant conenctions that
  are allocated on the 1st thread.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-1.0' into maint-1.1

* maint-1.0:
  dbquery: closes redundant connection

Conflicts:
	modules/miscutil/lib/dbquery.py

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