BibEncode: fix uuid Python 2.4 compatibility

* Adds as a compatibility function for uuid4 in case the module
  has not been installed. (closes #1478)

Co-authored-by: Tibor Simko <tibor.simko@cern.ch>
Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Flask-SSLify: fix url standard ports rewrite

* Fixes problem with rewriting secure site url running on standard
  port where the port number is included in CFG_SITE_URL (e.g.
  http://localhost:80 -> https://localhost:443).

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
celery: fix issue with undefined database

* Fixes an issue where the database in certain cases where not
  defined, which caused an exception when a celery worker was started.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
inveniocfg: fix of typo and disabling action chain

* NOTE it is not possible to chain actions in inveniocfg. Please split
  your calls `inveniocfg --create-demo-site --load-demo-records` into
  `inveniocfg --create-demo-site` and `inveniocfg --load-demo-records`
  accordingly in your scripts.

* NOTE `invenio-devscripts` have been amended accordingly, so if you use
  them, please just pull.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
inveniocfg: clarification of warning phrases

* Clarifies warning phrases about deprecated inveniocfg CLI options
  so that it is clear to the user that the action is still performed
  and that the user does not have to do anything.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebMessage: fix menu and broken links

* Fixes issue with broken links on /yourmessages/display page.
  (closes #1487)

* Addresses issue with javascript exceptions due to moved script tags.
  Adds new invenio.js that loads all javascript needed for correct
  dynamic menu behaviour using `data-menu="click"` and
  `data-menu-source="<url>"` attributes in appropriate menu element.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibField: initial release

* Introduces a new module 'BibField' that creates an abstraction
  for the concept of field, which permits (i) defining virtual
  fields (calculated or derived) and (ii) abstraction from MARC.
  The non-MARC master formats will come later.  (closes #1300)

* ISBN/ISSN checks were co-authored by Lars Holm Nielsen.

* Merge note: several minor kwalitee fixes.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@cern.ch>
Co-authored-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'master' into next

* master:
  BibField: initial release
  BibEncode: fix uuid Python 2.4 compatibility

* Merge note: amended Bibrec model and requirements list.

Conflicts:
	INSTALL
	modules/miscutil/lib/inveniocfg.py

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibClassify: remove ability to run as standalone

* Removes ability to run BibClassify in standalone mode.

* Fixes an issue where lib/python/invenio/ was added to sys.path to be
  able to run e.g. BibClassify as standalone. This caused modules to
  be importable outside of their package hierarchy (e.g. both 'import
  inveni.config' and 'import config' would work). As a side-effect,
  this would also mask out system-level packages with the same name
  as an Invenio module (e.g. 'invenio.celery' would mask out 'celery'
  module).  (closes #1459)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'master' into next

* master:
  BibClassify: remove ability to run as standalone

Conflicts:
	modules/miscutil/lib/messages_unit_tests.py
BibFormat: fix CLI call to old PHP-based formatter

* Escapes output format in shell when calling old PHP-based BibFormat.

Signed-off-by: Jerome Caffaro <jerome.caffaro@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-0.99' into maint-1.0

* maint-0.99:
  BibFormat: fix CLI call to old PHP-based formatter

Conflicts:
	modules/bibformat/lib/bibformat_engine.py
Merge branch 'maint-1.0' into maint-1.1

* maint-1.0:
  BibFormat: fix CLI call to old PHP-based formatter

Conflicts:
	modules/bibformat/lib/bibformat_engine.py
Merge branch 'maint-1.1'

* maint-1.1:
  BibFormat: fix CLI call to old PHP-based formatter
Merge branch 'master' into next

* master:
  BibFormat: fix CLI call to old PHP-based formatter
installation: fix collectiondetailedrecordpagetabs

* Moves data to fill collectiondetailedrecordpagetabs table from
  tabfill.sql to democfgdata.sql.  (closes #1496)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Merge branch 'maint-0.99' into maint-1.0

* maint-0.99:
  installation: fix collectiondetailedrecordpagetabs

Conflicts:
	modules/miscutil/demo/democfgdata.sql
	modules/miscutil/sql/tabfill.sql
Merge branch 'maint-1.0' into maint-1.1

* maint-1.0:
  installation: fix collectiondetailedrecordpagetabs

Conflicts:
	modules/miscutil/demo/democfgdata.sql
	modules/miscutil/sql/tabfill.sql
Merge branch 'maint-1.1'

* maint-1.1:
  installation: fix collectiondetailedrecordpagetabs
Merge branch 'master' into next

* master:
  installation: fix collectiondetailedrecordpagetabs