BibFormat: better BibTeX title and collaboration

* Adds braces around title.

* Adds collaboration.

Signed-off-by: Patrick Glauner <patrick.oliver.glauner@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibSword: author MARC tag definition fix

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
I18N: several fixes in Spanish translation

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

* maint-1.1:
  BibSword: author MARC tag definition fix
  BibFormat: better BibTeX title and collaboration
BibIndex: tokenisation of authority records

* Changes the indexation process: phrases are collected from both
  bibliographic records and authority records and then tokenised.

* Small changes in naming.

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: new index 'itemcount'

* Creates a new index 'itemcount' and plugs it to bibindex.
* Amends search_engine to work with 'itemcount' index
  for plus and span queries.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: fix for BibTeX regression tests

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibFormat: fix for BibTeX regression tests

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

* maint-1.1:
  BibFormat: fix for BibTeX regression tests
  WebSearch: fix for BibTeX regression tests
WebSearch: item count regression test activation

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibCirculation: fix for mandatory library type

* Adds missing library types to the demo site and upgrade recipe.
  The library types are now required for record holdings to be
  visible on the Holdings tab.  (closes #1519)

Co-authored-by: Tibor Simko <tibor.simko@cern.ch>
Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: new index 'filetype'

* Creates new 'filetype' index and plugs it into bibindex.
  (closes #473)

* Creates derived field 'filetypes' in bibfield atlantis.cfg
  field definitions.

Signed-off-by: Grzegorz Szpura <grzegorz.szpura@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
BibField: clean up of atlantis.cfg demo file

* Fixes field names and legacy rules to match demo site tag setup.
 (closes #1557)

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibField: new producer section added to config

* New `producer` section inside the configuration file that allows
  to produce different low level outputs for a given field.

* First release of two producers, one for marc and one for dublin
  core.

* New functions `guess_legacy_field_names` that, using the legacy
  rules from the configuration files try to find which is the field
  name for a given tag from a given master format.

* Better legacy export as marc that uses the new producer capability.

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>
BibField: fix for misbehavior when parsing rules

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>
BibField: better handling of calculated fields

* Adds new internal key `__calculated_functions` to store how to
  update the cached value of the field.

* All the fields marked with `@do_not_cache` are not longer stored
  stored inside rec_json, only the key is reserved.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibField: new decorator @only_if_master_format

* New decorator @only_if_master_value, similar to @only_if but in
  this case we can create a boolean expression based on `value`,
  which is coming from the master format before evaluation.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibField: bibdoc integration

* Adds two new calculated fields to interact with files from
  BibDocFile, one `files` which provides a dict containing some
  useful information about the files and `bibdocs` which contains
  the BibDoc object itself.

Signed-off-by: Esteban J. Gabancho <esteban.gabancho@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibField: continuable vs fatal errors

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibField: fix for `is_type_isbn`

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>