Skip to content

sharedRDM/invenio-override

Repository files navigation

invenio-override

https://readthedocs.org/projects/invenio-override/badge/?version=latest

Override invenioRDM theme.

Features:

  • Custom header template.
  • Custom footer template.
  • Custom login/signup templates.
  • Custom frontpage template.
  • Custom contact template.
  • Overriden theme.

Configuration fields with the default values available to enable/disable these package's feature on a custom instance:

  • Global search
# Publications - Enable or disable the publication global search feature.
OVERRIDE_SHOW_PUBLICATIONS_SEARCH = False

# OER - Enable or disable the educational resources global search feature.
OVERRIDE_SHOW_EDUCATIONAL_RESOURCES = False

Note: by default invenio-override does not requiere OER or Publications packages. To install one or both, specify them as extras:

pip install invenio-override[lom, marc21]

or just

pip install invenio-override[marc21]

Enabling the OVERRIDE configurations without their respective library might lead to unexpected errors. More details about working with global-search packages here: https://github.com/tu-graz-library/invenio-global-search

  • Frontpage and its right section
# Enable or disable a section on the frontpage that adds shortcuts to search and uploads
OVERRIDE_RESOURCE_OVERVIEW = False

# Enable or disable the right section of the frontpage (Contact us, Benefits)
OVERRIDE_FRONTPAGE_RIGHT = False

# If section Benefits is displayed, option to click on More and go to Statistics page for more info
OVERRIDE_RIGHT_SECTION_TITLE = True

# Contact Email for the Contact us feature in the right section
OVERRIDE_SHOW_RIGHT_CONTACT_EMAIL = True

# Contact email displayed in the right section
OVERRIDE_RIGHT_SECTION_CONTACT_EMAIL = "support@example.com"

# feedback form used in right section
OVERRIDE_CONTACT_FORM = False
  • Branding and UI
# Icon and Logo displayed on the webiste
# list of available options: ["icon_use.png", "TUG.png", "KFU.svg", "MUG.svg", "invenio-override-default.svg", "sharedRDM.png"]
OVERRIDE_ICON = "images/icon_use.png"

OVERRIDE_LOGO = "images/inveniordm-tail.svg"

# favicon for shortcuts
# list of available options: ["kfu.ico", "mug.ico", "tug.ico"]
OVERRIDE_FAVICON = "favicon.ico"

# Override the Uploads menu title
USER_DASHBOARD_MENU_OVERRIDES = {
  "uploads": {
    "text": _("Research Results"),
  },
}
  • Differentiate between production and testing instance
# Production environment. Can also be set in .env as 'INVENIO_OVERRIDE_PRODUCTION'
OVERRIDE_PRODUCTION = False

Further documentation is available on https://invenio-override.readthedocs.io/

About

override invenio

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors