search: quick fix for queries with leading space

* Strips leading/trailing white space from `p` argument to `/search`.
  This quick-fixes queries like `/search?p=+ellis` that were otherwise
  leading to "Showing records 1 to 0 out of 0 results" situations.

Signed-off-by: Tibor Simko <tibor.simko@cern.ch>
base: admin drop-down menu fix

* Removes the drop-down menu from the "Admin" tab in page header.
  (addresses #2246)

Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch>
jsonalchemy: dumps with specified keywords

* Adds an option to dump only specified keys from dictionary.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
search: fix filtered output format

* Addresses issue with research and export that not accept the "ot"
  filter argument.  (closes #2292)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
principal: raise 401 on authorization failure

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
search: fix query string in add-to-search

* Adds double quotes around author and title value. (closes #2251)

* Splits terms by whitespace or quotes and join them
  with proper operator. (addresses #2252)

Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>
Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>
login: handle 401 error

* Adds template and special handling of 401 error.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
login: fix PEP8/257 errors

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
base: fix footer links

* Changes footer links to new user profile settings and documentation.
  (closes #2248)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
documentation: fix WebSupport builder

* Improves docs and PEP257.

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
docs: configuration theme cleanup

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
workflows: sample tasks refactoring

* Refactors a bit the sample tasks for workflow management to
  play better with the requirements for oaiharvester.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
workflows: field name change

* Updates the tasks to use the correct field name
  "system_control_number".

* Fixes some copyright formats.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
OAIHarvest: workflows in admin

* Adds the workflows colomn in the legacy admin interface.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: initial upgrade

* Adds initial upgrade script from Invenio v1.x for oaiharvester module.

* Updates the workflows column with default and `NOT NULL`.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
oaiharvester: workflows integration

* NOTE Adds default workflows and tasks for OAI harvesting which
  is now required to run OAI harvest. A working Celery worker is
  also necessary to run harvests.

* NOTE Moves harvesting specific tasks, tests and workflows from
  workflows module to oaiharvester module. If you have used any of
  these tasks or workflows in your workflow configuration you need
  to amend your imports.

* Adds warnings and help messages on OAI Admin display.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
deposit: plupload improvements

* Allows autoupload on file selected.

* Fixes a bug when deleting a file right after uploading it.

* Fix in Blueprint url endpoints for upload urls.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
sqlalchemy: addition of Encrypted type

* Adds a custom type which is called `Encrypted`. It uses
  the AES algorithm provided by pycrypto in order to encrypt and
  decrypt.

Signed-off-by: Konstantinos Kostis <konstantinos.kostis@cern.ch>
sqlalchemy: fix default integer constructor

* Addresses issue with default constructor on types that do not
  accept arguments in SQLAlchemy>=0.7. (closes #1776)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
jasmine: initial release

* Adds Jasmine test runner to execute JavaScript unit tests.

* NOTE Test runner is only enabled when TESTING=True and requires a
  bower reinstall and assets rebuild. Please see
  invenio/ext/jasmine/__init__.py for details.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>