BibDocFile: register downloads with recid

* Adds self.recid when calling `register_download()`.
  (closes #1831) (closes #1832)

Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
WebSearch: fix for 'rhs is of unknown type'

* Fixes TypeError in search_engine that was occurring when a new
  collection has been added but the webcoll has not yet been run.
  (closes #1819)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
mailutils: fix for send_email() error on DEV site

* For the DEV site `send_email()` function was failing while trying to
  concatenate list and string (because the CFG_SITE_ADMIN_EMAIL
  was not a list).  (closes #1744)

Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Reviewed-by: Yoan Blanc <yoan.blanc@cern.ch>
BibIndex: move helper functions to utils file

* Moves some of the helper functions from bibindex_engine
  to bibindex_engine_utils file.

Signed-off-by: <grzegorz.szpura@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: WordTable API changes

* Removes 'fields_to_index' argument from WordTable's argument
  list.

Signed-off-by: <grzegorz.szpura@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>
BibIndex: abstraction layer for terms retrieval

* Introduces new TermCollector class which
  handles terms retrieval from different
  part of the system.

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

* Introduces NonMarcTermCollector for acquiring data
  from non-MARC records.

* Adds new column to tag table and inserts
  corresponding RecJson fields as another
  non-MARC value for 'tag'.

* Enhances test suite acordingly.

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

* Admin interface shows recjson fields
  in logical fields overview.

* Fields and tags are shown directly in index
  overview.

* Edition of tag enhanced with option to
  change value for recjson field.

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

* Fixes a typo for one of the copyright fields and also changes its name
  to `copyright_status` to avoid duplicate names.  (closes #1933)

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
installation: location of demo_table_jui.css

* Fixes location of demo_table_jui.css by explicitly referencing last
  git tag that contained the file.

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Merge pull request #1954 from kaplun/fix-install-demo_table_jui

installation: location of demo_table_jui.css
BibDocFile: undefined variable fix

* Fixes internal server error when directories are missing on the
  filesystem.

* Applies fix from 'pu' to 'master'. The fix was overwritten by the recent
  large master to next merge (eefac3e73d8dd5b7c5ac1a47cb298431f4a8662f).

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibCirculation: fix for typo
WebSearch: CERN-specific collection sorting

* Sorts 'CERN Courier Issues/Articles' and 'CERN Bulletin
  Issues/Articles' collections by 773__y field in WebColl.
  (closes #2017)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
Websearch: include 'cc' in RSS <channel>'s <link>

* If the 'cc' collection is defined when producing the RSS feed then
  it's included in the <link> tag under the <channel> tag.
  (closes #2013) (closes #2014)

Signed-off-by: Nikolaos Kasioumis <nikolaos.kasioumis@cern.ch>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>
jQuery: fix for DataTables dependency URL location

* Fixes URL of jQuery UI DataTables dependency.  (closes #2078)

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

* maint-1.1:
  jQuery: fix for DataTables dependency URL location
BibFormat: larger column `format.code`

* Increases length of column 'format.code' to enable larger values.
  e.g. `recjson` (closes #2072)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
BibIndex: upgrade recipe for `tag.recjson_value`

* Adds upgrade recipe for `tag.recjson_value` that was forgotten in
  commit e0f2ea91754368f639abe86526096a4d947e99a5.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
WebSubmit: doilookup function in webinterface

* Adds doilookup function to websubmit_webinterface that uses the
  crossrefutils and returns a dictionary with MARC codes as keys and
  values from crossref website as values (that can be used in
  submissions to prefill some fields based on the DOI).
  (closes #2025)

Signed-off-by: Sebastian Witowski <sebastian.witowski@cern.ch>
Tested-by: Tibor Simko <tibor.simko@cern.ch>