diff --git a/.editorconfig b/.editorconfig index 3545973..6340b59 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,7 +2,7 @@ # # Copyright (C) 2020-2021 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 84decf9..64520b6 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -5,5 +5,5 @@ on: jobs: build-n-publish: - uses: tu-graz-library/.github/.github/workflows/pypi-publish.yml@main + uses: Cian-H/.github/.github/workflows/pypi-publish.yml@main secrets: inherit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c0d5d69..77392c0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,7 @@ # # Copyright (C) 2020-2024 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. diff --git a/.tx/config b/.tx/config index 8d41b4b..5903fc7 100644 --- a/.tx/config +++ b/.tx/config @@ -2,7 +2,7 @@ # # Copyright (C) 2020-2021 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. # @@ -14,8 +14,8 @@ [main] host = https://www.transifex.com -[invenio.invenio-theme-tugraz-messages] -file_filter = invenio_theme_tugraz/translations//LC_MESSAGES/messages.po -source_file = invenio_theme_tugraz/translations/messages.pot +[invenio.invenio-theme-iform-messages] +file_filter = invenio_theme_iform/translations//LC_MESSAGES/messages.po +source_file = invenio_theme_iform/translations/messages.pot source_lang = en type = PO diff --git a/AUTHORS.rst b/AUTHORS.rst index 008c581..af8f82a 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -1,13 +1,15 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. Authors ======= -invenio module for TUGRAZ theme. +Invenio module for iform theme. -- mojib wali +- cian hughes + +Forked from https://github.com/tu-graz-library/invenio-theme-tugraz diff --git a/CHANGES.rst b/CHANGES.rst index 2849c6e..e65eeb8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -154,7 +154,7 @@ Version 3.9.1 (released 2022-06-02) Version 3.9.0 (released 2022-05-27) -- global: migrate setup.py to setup.cfg #260 +- global: migrate setup.py to setup.cfg #260 Version 3.8.0 (released 2022-03-03) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 4b11771..455a123 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -10,7 +10,7 @@ Types of Contributions Report Bugs ~~~~~~~~~~~ -Report bugs at https://github.com/tu-graz-library/invenio-theme-tugraz/issues. +Report bugs at https://github.com/Cian-H/invenio-theme-iform/issues. If you are reporting a bug, please include: @@ -33,15 +33,15 @@ is open to whoever wants to implement it. Write Documentation ~~~~~~~~~~~~~~~~~~~ -invenio-theme-tugraz could always use more documentation, whether as part of the -official invenio-theme-tugraz docs, in docstrings, or even on the web in blog posts, +invenio-theme-iform could always use more documentation, whether as part of the +official invenio-theme-iform docs, in docstrings, or even on the web in blog posts, articles, and such. Submit Feedback ~~~~~~~~~~~~~~~ The best way to send feedback is to file an issue at -https://github.com/tu-graz-library/invenio-theme-tugraz/issues. +https://github.com/Cian-H/invenio-theme-iform/issues. If you are proposing a feature: @@ -53,14 +53,14 @@ If you are proposing a feature: Get Started! ------------ -Ready to contribute? Here's how to set up `invenio-theme-tugraz` for local development. +Ready to contribute? Here's how to set up `invenio-theme-iform` for local development. -1. Fork the `https://github.com/tu-graz-library/invenio-theme-tugraz.git` repo on GitHub. +1. Fork the `https://github.com/Cian-H/invenio-theme-iform.git` repo on GitHub. 2. Clone your fork locally: .. code-block:: console - $ git clone git@github.com:your_name_here/invenio-theme-tugraz.git + $ git clone git@github.com:your_name_here/invenio-theme-iform.git 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local @@ -68,8 +68,8 @@ Ready to contribute? Here's how to set up `invenio-theme-tugraz` for local devel .. code-block:: console - $ mkvirtualenv invenio-theme-tugraz - $ cd invenio-theme-tugraz/ + $ mkvirtualenv invenio-theme-iform + $ cd invenio-theme-iform/ $ pip install -e .[all] 4. Create a branch for local development: @@ -114,5 +114,5 @@ Before you submit a pull request, check that it meets these guidelines: 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring. 3. The pull request should work for Python 2.7, 3.5 and 3.6. Check - https://github.com/tu-graz-library/invenio-theme-tugraz/actions?query=event%3Apull_request + https://github.com/Cian-H/invenio-theme-iform/actions?query=event%3Apull_request and make sure that the tests pass for all supported Python versions. diff --git a/INSTALL.rst b/INSTALL.rst index 14bdb84..66b721b 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -1,8 +1,8 @@ Installation ============ -invenio-theme-tugraz is on PyPI so all you need is: +invenio-theme-iform is on PyPI so all you need is: .. code-block:: console - $ pip install invenio-theme-tugraz + $ pip install invenio-theme-iform diff --git a/LICENSE b/LICENSE index 98c1f9d..65bf549 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License Copyright (C) 2020 Graz University of Technology. +Copyright (C) 2025 I-Form Advanced Research Manufacturing Research Centre. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/MANIFEST.in b/MANIFEST.in index 3521d4e..694c744 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,7 +2,7 @@ # # Copyright (C) 2020-2021 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. @@ -10,7 +10,7 @@ include .dockerignore include .editorconfig include .tx/config prune docs/_build -recursive-include invenio_theme_tugraz/translations *.po *.pot *.mo +recursive-include invenio_theme_iform/translations *.po *.pot *.mo # added by check_manifest.py include *.md @@ -26,19 +26,19 @@ recursive-include docs *.py recursive-include docs *.rst recursive-include docs *.txt recursive-include docs Makefile -recursive-include invenio_theme_tugraz *.html -recursive-include invenio_theme_tugraz *.js -recursive-include invenio_theme_tugraz *.png -recursive-include invenio_theme_tugraz *.scss -recursive-include invenio_theme_tugraz *.svg -recursive-include invenio_theme_tugraz *.less -recursive-include invenio_theme_tugraz *.ico -recursive-include invenio_theme_tugraz *.pdf -recursive-include invenio_theme_tugraz *.ttf -recursive-include invenio_theme_tugraz *.txt +recursive-include invenio_theme_iform *.html +recursive-include invenio_theme_iform *.js +recursive-include invenio_theme_iform *.png +recursive-include invenio_theme_iform *.scss +recursive-include invenio_theme_iform *.svg +recursive-include invenio_theme_iform *.less +recursive-include invenio_theme_iform *.ico +recursive-include invenio_theme_iform *.pdf +recursive-include invenio_theme_iform *.ttf +recursive-include invenio_theme_iform *.txt recursive-include tests *.py -recursive-include invenio_theme_tugraz *.jpg -recursive-include invenio_theme_tugraz *.gitkeep +recursive-include invenio_theme_iform *.jpg +recursive-include invenio_theme_iform *.gitkeep recursive-include .github/workflows *.yml include .git-blame-ignore-revs diff --git a/README.rst b/README.rst index dc34cb9..910c2d7 100644 --- a/README.rst +++ b/README.rst @@ -1,45 +1,45 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. ====================== - invenio-theme-tugraz + invenio-theme-iform ====================== -.. image:: https://github.com/tu-graz-library/invenio-theme-tugraz/workflows/CI/badge.svg - :target: https://github.com/tu-graz-library/invenio-theme-tugraz/actions +.. image:: https://github.com/Cian-H/invenio-theme-iform/workflows/CI/badge.svg + :target: https://github.com/Cian-H/invenio-theme-iform/actions -.. image:: https://img.shields.io/pypi/dm/invenio-theme-tugraz.svg - :target: https://pypi.python.org/pypi/invenio-theme-tugraz +.. image:: https://img.shields.io/pypi/dm/invenio-theme-iform.svg + :target: https://pypi.python.org/pypi/invenio-theme-iform -.. image:: https://img.shields.io/github/tag/tu-graz-library/invenio-theme-tugraz.svg - :target: https://github.com/tu-graz-library/invenio-theme-tugraz/releases +.. image:: https://img.shields.io/github/tag/tu-graz-library/invenio-theme-iform.svg + :target: https://github.com/Cian-H/invenio-theme-iform/releases -.. image:: https://img.shields.io/github/license/tu-graz-library/invenio-theme-tugraz.svg - :target: https://github.com/tu-graz-library/invenio-theme-tugraz/blob/master/LICENSE +.. image:: https://img.shields.io/github/license/tu-graz-library/invenio-theme-iform.svg + :target: https://github.com/Cian-H/invenio-theme-iform/blob/master/LICENSE + +.. image:: https://readthedocs.org/projects/invenio-theme-iform/badge/?version=latest + :target: https://invenio-theme-iform.readthedocs.io/en/latest/?badge=latest + +.. image:: https://img.shields.io/coveralls/mb-wali/invenio-theme-iform.svg + :target: https://coveralls.io/r/mb-wali/invenio-theme-iform -.. image:: https://readthedocs.org/projects/invenio-theme-tugraz/badge/?version=latest - :target: https://invenio-theme-tugraz.readthedocs.io/en/latest/?badge=latest - -.. image:: https://img.shields.io/coveralls/mb-wali/invenio-theme-tugraz.svg - :target: https://coveralls.io/r/mb-wali/invenio-theme-tugraz - .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black -TU Graz standard theme. +I-Form standard theme. Features: -* TU Graz custom header template. -* TU Graz custom footer template. -* TU Graz custom login/signup templates. -* TU Graz custom frontpage template. -* TU Graz custom contact template. -* TU Graz overriden theme. +* I-Form custom header template. +* I-Form custom footer template. +* I-Form custom login/signup templates. +* I-Form custom frontpage template. +* I-Form custom contact template. +* I-Form overriden theme. Further documentation is available on -https://invenio-theme-tugraz.readthedocs.io/ +https://invenio-theme-iform.readthedocs.io/ diff --git a/babel.ini b/babel.ini index 0f1c46b..e746f5b 100644 --- a/babel.ini +++ b/babel.ini @@ -2,7 +2,7 @@ # # Copyright (C) 2020-2021 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. diff --git a/docs/Makefile b/docs/Makefile index 5e5f0f2..0bdfb1f 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -87,9 +87,9 @@ qthelp: @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/invenio-theme-tugraz.qhcp" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/invenio-theme-iform.qhcp" @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/invenio-theme-tugraz.qhc" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/invenio-theme-iform.qhc" applehelp: $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp @@ -104,8 +104,8 @@ devhelp: @echo @echo "Build finished." @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/invenio-theme-tugraz" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/invenio-theme-tugraz" + @echo "# mkdir -p $$HOME/.local/share/devhelp/invenio-theme-iform" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/invenio-theme-iform" @echo "# devhelp" epub: diff --git a/docs/api.rst b/docs/api.rst index ff7bc04..283a76d 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -9,11 +9,11 @@ API Docs ======== -.. automodule:: invenio_theme_tugraz.ext +.. automodule:: invenio_theme_iform.ext :members: Views ----- -.. automodule:: invenio_theme_tugraz.views +.. automodule:: invenio_theme_iform.views :members: diff --git a/docs/authors.rst b/docs/authors.rst index fb2a35a..144d421 100644 --- a/docs/authors.rst +++ b/docs/authors.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. diff --git a/docs/changes.rst b/docs/changes.rst index 3f24bdc..ef11644 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. diff --git a/docs/conf.py b/docs/conf.py index dca30c2..3064dad 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -2,13 +2,13 @@ # # Copyright (C) 2020-2021 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. """Sphinx configuration.""" -from invenio_theme_tugraz import __version__ +from invenio_theme_iform import __version__ # -- General configuration ------------------------------------------------ @@ -44,7 +44,7 @@ source_suffix = ".rst" master_doc = "index" # General information about the project. -project = "invenio-theme-tugraz" +project = "invenio-theme-iform" copyright = "2020, Graz University of Technology" author = "Graz University of Technology" @@ -106,15 +106,15 @@ todo_include_todos = False html_theme = "alabaster" html_theme_options = { - "description": "invenio module for TUGRAZ theme.", - "github_user": "TU Graz", - "github_repo": "invenio-theme-tugraz", + "description": "invenio module for I-Form theme.", + "github_user": "Cian-H", + "github_repo": "invenio-theme-iform", "github_button": False, "github_banner": True, "show_powered_by": False, "extra_nav_links": { - "invenio-theme-tugraz@GitHub": "https://github.com/tu-graz-library/invenio-theme-tugraz", - "invenio-theme-tugraz@PyPI": "https://pypi.python.org/pypi/invenio-theme-tugraz/", + "invenio-theme-iform@GitHub": "https://github.com/Cian-H/invenio-theme-iform", + "invenio-theme-iform@PyPI": "https://pypi.python.org/pypi/invenio-theme-iform/", }, } @@ -219,7 +219,7 @@ html_sidebars = { # html_search_scorer = 'scorer.js' # Output file base name for HTML help builder. -htmlhelp_basename = "invenio-theme-tugraz_namedoc" +htmlhelp_basename = "invenio-theme-iform_namedoc" # -- Options for LaTeX output --------------------------------------------- @@ -240,8 +240,8 @@ latex_elements = { latex_documents = [ ( master_doc, - "invenio-theme-tugraz.tex", - "invenio-theme-tugraz Documentation", + "invenio-theme-iform.tex", + "invenio-theme-iform Documentation", "Graz University of Technology", "manual", ), @@ -275,8 +275,8 @@ latex_documents = [ man_pages = [ ( master_doc, - "invenio-theme-tugraz", - "invenio-theme-tugraz Documentation", + "invenio-theme-iform", + "invenio-theme-iform Documentation", [author], 1, ) @@ -294,11 +294,11 @@ man_pages = [ texinfo_documents = [ ( master_doc, - "invenio-theme-tugraz", - "invenio-theme-tugraz Documentation", + "invenio-theme-iform", + "invenio-theme-iform Documentation", author, - "invenio-theme-tugraz", - "invenio module for TUGRAZ theme.", + "invenio-theme-iform", + "invenio module for I-Form theme.", "Miscellaneous", ), ] diff --git a/docs/configuration.rst b/docs/configuration.rst index f588473..989d9f6 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -9,5 +9,5 @@ Configuration ============= -.. automodule:: invenio_theme_tugraz.config +.. automodule:: invenio_theme_iform.config :members: diff --git a/docs/contributing.rst b/docs/contributing.rst index 207aa1d..430b602 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. diff --git a/docs/index.rst b/docs/index.rst index e22cc1a..acc4520 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -12,7 +12,7 @@ User's Guide ------------ This part of the documentation will show you how to get started in using -invenio-theme-tugraz. +invenio-theme-iform. .. toctree:: :maxdepth: 2 diff --git a/docs/installation.rst b/docs/installation.rst index d847907..f77f335 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. diff --git a/docs/make.bat b/docs/make.bat index a98041d..4811f59 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -127,9 +127,9 @@ if "%1" == "qthelp" ( echo. echo.Build finished; now you can run "qcollectiongenerator" with the ^ .qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\invenio-theme-tugraz.qhcp + echo.^> qcollectiongenerator %BUILDDIR%\qthelp\invenio-theme-iform.qhcp echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\invenio-theme-tugraz.ghc + echo.^> assistant -collectionFile %BUILDDIR%\qthelp\invenio-theme-iform.ghc goto end ) diff --git a/docs/usage.rst b/docs/usage.rst index 6e3375f..35e3ff4 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -1,7 +1,7 @@ .. Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. @@ -9,4 +9,4 @@ Usage ===== -.. automodule:: invenio_theme_tugraz +.. automodule:: invenio_theme_iform diff --git a/invenio_theme_tugraz/__init__.py b/invenio_theme_iform/__init__.py similarity index 50% rename from invenio_theme_tugraz/__init__.py rename to invenio_theme_iform/__init__.py index c6a9721..6ccbca3 100644 --- a/invenio_theme_tugraz/__init__.py +++ b/invenio_theme_iform/__init__.py @@ -2,14 +2,14 @@ # # Copyright (C) 2020-2022 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. -"""invenio module for TUGRAZ theme.""" +"""invenio module for I-Form theme.""" -from .ext import InvenioThemeTugraz +from .ext import InvenioThemeIform __version__ = "4.13.0" -__all__ = ("__version__", "InvenioThemeTugraz") +__all__ = ("__version__", "InvenioThemeIform") diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_tugraz/theme.js similarity index 98% rename from invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js rename to invenio_theme_iform/assets/semantic-ui/js/invenio_theme_tugraz/theme.js index 1ff4b72..81260f6 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/theme.js +++ b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_tugraz/theme.js @@ -6,7 +6,7 @@ import ReactDOM from "react-dom"; import React from "react"; // called on document ready -$(function () { +$(function() { importZammadScript(); }); diff --git a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/unlock.js b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_tugraz/unlock.js similarity index 91% rename from invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/unlock.js rename to invenio_theme_iform/assets/semantic-ui/js/invenio_theme_tugraz/unlock.js index 2ef2f00..a6529ad 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/js/invenio_theme_tugraz/unlock.js +++ b/invenio_theme_iform/assets/semantic-ui/js/invenio_theme_tugraz/unlock.js @@ -1,6 +1,6 @@ // Copyright (C) 2024 Graz University of Technology. // -// invenio-theme-tugraz is free software; you can redistribute it and/or modify it +// invenio-theme-iform is free software; you can redistribute it and/or modify it // under the terms of the MIT License; see LICENSE file for more details. import $ from "jquery"; @@ -33,7 +33,7 @@ async function generateForm() { }); } -$(function () { +$(function() { // called when DOM is ready const generateFormElement = document.getElementById("generate-unlock-form"); if (generateFormElement) { diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less new file mode 100644 index 0000000..c786642 --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/accounts.less @@ -0,0 +1,165 @@ +/* + * Copyright (C) 2020 TUGRAZ. + * Copyright (C) 2020 Nikita Lvov. + * + * invenio-theme-iform is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +.cover-page { + //text-align: center; + background-color: #ffffff; +} + +#login-tug-logo { + & g { + fill: @tugrazRed; + } +} + +#login-tug-logo:hover { + & g { + fill: @tugrazBlack; + } +} + +.accounts-link { + margin: 5%; + color: @primaryLink; + border: 1px solid @primaryLink; + background-color: transparent; +} + +.accounts-link :hover { + font-size: smaller !important; + color: @primaryLink; + background-color: @primaryLinkHoverBackground !important; +} + +.tu-button-style button { + cursor: pointer; + border: 1px solid @primaryButton; + background-color: transparent; + height: 29px; + color: @primaryButton; + font-family: "Source Sans Pro"; + font-weight: 300; + font-size: 16px; +} + +.tu-button-style button:hover { + cursor: pointer; + color: @primaryButton; + background-color: @primaryButtonHoverBackground !important; +} + +.form-accounts { + margin: 15%; + text-align: left !important; + + & i { + color: @primaryFormAccounts !important; + } + + & label { + display: flex !important; + font-weight: 300 !important; + color: @primaryFormAccounts !important; + } + + & input { + border: 0px none !important; + padding: 0px !important; + border-bottom: 1px solid @primaryFormAccounts !important; + background-color: transparent !important; + color: @primaryFormAccounts !important; + border-radius: 0 !important; + width: 100% !important; + } + + & input::placeholder { + opacity: 1 !important; + color: @formAccountsInputPlaceholder !important; + } + + & th { + display: block; + } + + & td { + display: inline-block; + } +} + +.field>input::selection { + background: @fieldInputSelectionBackground; +} + +.accounts-header { + font-weight: 300 !important; +} + +/*** +login and sign-up pages form background color +*/ +.sign-form { + background-color: @signInBackground !important; + padding: 0 !important; + height: 100%; +} + +.tug-button-login { + display: flex; + align-items: center; + fill: @tugrazRed; +} + +.tug-button-login :hover { + fill: @primaryButtonHoverBackground; +} + +.login-page-button { + margin: 5%; + text-align: center !important; + + & a { + padding: 5px; + text-decoration: underline !important; + cursor: pointer; + } + + & a:hover { + background-color: @primaryLinkHoverBackground; + color: @primaryLink !important; + text-decoration: none; + } +} + +.login-page-button-white { + color: @primaryButton !important; + font-family: "Source Sans Pro"; + font-size: initial; +} + +.login-page-button-black { + color: @primaryButtonInverted !important; + font-family: "Source Sans Pro"; + font-size: initial; +} + +/*** +allowing to switch columns on the sign-up page on the small screen +*/ +.switch-grid { + display: flex; +} + +@media (max-width: 767px) { + #switch_left { + order: 2; + } + + #switch_right { + order: 1; + } +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/communities.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/communities.less similarity index 60% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/communities.less rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/communities.less index 62fec60..6e41bf3 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/communities.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/communities.less @@ -1,14 +1,14 @@ /* * Copyright (C) 2022 Graz University of Technology. * - * invenio-theme-tugraz is free software; you can redistribute it and/or modify it + * invenio-theme-iform is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. */ .ui.container.page-subheader-outer { - background-color: unset; + background-color: unset; } .ui.fluid.container { - width: fit-content; + width: fit-content; } diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/deposit.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/deposit.less new file mode 100644 index 0000000..4c6867f --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/deposit.less @@ -0,0 +1,16 @@ +/* + * Copyright (C) 2021 Graz University of Technology. + * + * invenio-theme-iform is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +// deposit form segment styling +.ui.inverted.brand.segment { + background-color: @greyLight !important; + color: @tugrazBlack !important; + + label { + color: @tugrazBlack; + } +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/OFL.txt b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/OFL.txt similarity index 100% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/OFL.txt rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/OFL.txt diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Italic.ttf b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Italic.ttf similarity index 100% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Italic.ttf rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Italic.ttf diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Regular.ttf b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Regular.ttf similarity index 100% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Regular.ttf rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/fonts/SourceSansPro/SourceSansPro-Regular.ttf diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/footer.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/footer.less new file mode 100644 index 0000000..3f87d17 --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/footer.less @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2020-2023 Graz University of Technology. + * + * invenio-theme-iform is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +#footer { + color: @footerGrey; + min-height: 100%; + width: 100%; + + &.footer-bottom { + background-color: @footerBottomBackground; + padding-top: 15px; + padding-bottom: 15px; + font-size: 16px; + + a { + text-decoration: none; + color: @footerGrey; + + // :focus-visible activates on keyboard only + &:hover, + &:focus:focus-visible { + color: @primaryLink; + background-color: @primaryLinkHoverBackground; + + i.icon.download { + color: @tugrazRed; + } + } + + // remove blue focus outline if clicked with mouse + &:focus:not(:focus-visible) { + outline-style: none; + } + } + } + + div .logos a:hover { + background-color: transparent !important; + } +} + +.bodytext { + font-size: 16px; +} + +.spacer { + margin-top: 10px; +} + +.spacer-long { + margin-top: 30px; +} diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less new file mode 100644 index 0000000..f289212 --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/frontpage.less @@ -0,0 +1,97 @@ +/* + * Copyright (C) 2020-2021 Graz University of Technology. + * + * invenio-theme-iform is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +h4 { + display: block; + margin-block-start: 0.33em; + margin-block-end: 0.33em; + margin-inline-start: 0px; + margin-inline-end: 0px; +} + +h2 { + margin-block-start: 0.83em; + margin-block-end: 0.83em; + margin-inline-start: 0px; + margin-inline-end: 0px; +} + +.ui.blue.labels .label, +.ui.blue.label { + color: @greyDark !important; + background-color: @recordVersionBackground !important; + border-color: @recordVersionBackground !important; +} + +.random-records-frontpage article { + border-bottom: 1px solid @randomRecordsFrontpageArticle; + margin-bottom: 1rem; + padding-bottom: 1rem; +} + +.random-records-frontpage .more { + margin-top: 20px !important; + margin-bottom: 35px !important; +} + +.random-records-frontpage h2 { + text-align: center; +} + +.badges { + float: right; +} + +/*Zammad form**/ +.zammad-form { + h2 { + text-align: center; + } + + .form-group { + label { + color: @tugrazBlack; + } + + input.form-control { + height: 30px; + // width: auto; + border-radius: 0; + font-family: "Source Sans Pro"; + background: @primaryLinkBackgroundInverted; + border: 1px solid rgba(34, 36, 38, 0.15); + } + + textarea { + border: 1px solid rgba(34, 36, 38, 0.15); + } + } + + .btn { + width: 100% !important; + cursor: pointer; + font-family: "Source Sans Pro"; + min-height: 1em; + line-height: 1em; + padding: 0.78571429em 1.5em 0.78571429em; + background: @greyLight none; + border: 0; + } + + .btn:hover { + background: @primaryLinkHoverBackground; + color: @primaryButton; + font-size: 1rem; + font-weight: bold; + } +} + +:focus { + outline: thin; + outline-style: solid; + outline-color: @outlineColor; +} diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/header.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/header.less new file mode 100644 index 0000000..3250537 --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/header.less @@ -0,0 +1,278 @@ +/* + * Copyright (C) 2020-2021 Graz University of Technology. + * + * invenio-theme-iform is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +#int-menu-q-home-icon { + width: 18px; + height: 18px; + vertical-align: top; + fill: @tugrazRed; +} + +/*****logo section******/ +.affiliation-logo { + vertical-align: middle; + white-space: nowrap; + + & a { + fill: @tugrazRed; + } +} + +.affiliation-logo :hover { + text-decoration: none; + fill: @primaryLinkHoverBackground; + color: @primaryLinkHoverBackground; +} + +.affiliation { + background-color: @primaryLink; + display: table; + margin: 0 auto 80px; + max-width: 1060px; + width: 100%; + text-decoration: none; +} + +.affiliation-text { + display: table-cell; + font-size: 12px; + line-height: 17px; + letter-spacing: 2px; + white-space: nowrap; +} + +.affiliation-logo-claim { + display: inline-block; + font-size: 12px; + letter-spacing: 2px; + line-height: 17px; + padding: 0 17px 0 0; + text-align: right; + vertical-align: top; +} + +/*****END logo section******/ + +.short-menu { + display: table; + height: 49px; + width: 100%; +} + +.short-menu-left { + border-right: 1px solid black; + display: table-cell; + text-align: right; + width: 50%; +} + +.short-menu-right { + display: table-cell; + width: 50%; + color: @primaryLinkInverted; +} + +.short-menu-right :hover { + background-color: @primaryLinkHoverBackground; + color: @primaryLink; +} + +.short-menu-right-button { + cursor: pointer; + display: inline-block; + margin: 12px 0 6px 9px; + padding: 5px; +} + +.short-menu-right-button a:hover { + text-decoration: none; +} + +.short-menu-left-lang { + display: inline-block; + margin-right: 10px; + font-size: 17px !important; + font-weight: 300; + + & a { + padding: 5px; + background-color: transparent; + color: @primaryLinkInverted; + text-decoration: none; + } +} + +.short-menu-left-lang:hover { + & a { + background-color: @primaryLinkHoverBackground; + color: @primaryLink; + text-decoration: none; + } +} + +.search-icon-header { + display: inline-block; + + & a { + background-color: transparent; + padding: 5px; + text-decoration: none; + + & svg { + & g { + stroke-linejoin: round; + stroke: @primaryLinkInverted; + stroke-miterlimit: 10; + stroke-width: 2; + fill: none; + } + } + } +} + +.search-icon-header:hover { + & a { + background-color: @primaryLinkHoverBackground; + text-decoration: none; + + & svg { + & g { + stroke: @primaryLink; + } + } + } +} + +.short-menu-left-search { + display: inline-block; + margin: 12px 9px 6px 0; + color: @primaryLinkInverted; +} + +.short-menu-right-main-menu { + display: inline-block; + margin-right: 3px; + vertical-align: top; + width: 21px; +} + +.short-menu-icon { + vertical-align: top; + width: 20px; + height: 19px; +} + +svg:not(:root) { + overflow: hidden; +} + +/***********MAIN menu*************/ + +.main-menu-entry { + text-align: center !important; + + & a { + font-size: 1.2rem; + padding: 5px 8px; + } +} + +.main-menu-entry a:hover { + background-color: @primaryLinkHoverBackground; + color: @primaryLink; + text-decoration: none; +} + +.main-menu-entry-svg { + padding-left: 0 !important; +} + +.main-menu-underline-line { + border: 2px solid @greyLight !important; + border-radius: 0; + background-color: @greyLight; +} + +#margin-divider { + margin-left: 155px; + margin-right: 155px; +} + +.affiliation-text a:hover { + background-color: @primaryLinkHoverBackground; + color: @primaryLink; + text-decoration: none; +} + +.main-menu { + border-bottom: 1px solid @primaryLinkInverted; + box-sizing: border-box; + height: 39px; + margin-top: -1px; + overflow: hidden; + transition: height 0.3s linear 0s; +} + +.int-menu-q-open-icon { + width: 14px; + vertical-align: middle; + margin-left: 5px; +} + +/*********************Custom overrides**********************/ +/** Login with SAML**/ +.col a { + cursor: pointer; +} + +@media screen and (max-width: 767.9px) { + #int-header-logo-img { + width: 200px; + height: 75px; + } + + #main-logo { + padding: 30px 0; + text-align: center; + display: block; + } + + #repo-logo { + display: none; + } + + .affiliation-logo-claim { + display: none; + } +} + +.repo-img { + margin-right: 5px; +} + +.inline-elements { + display: flex; +} + +span.home-inline { + white-space: nowrap; +} + +.test-instance { + text-align: center; + background-color: @notificationBackground; + border: solid @notificationBorder 1px; + z-index: 100000; +} + +#skip-to-main { + background-color: @primaryButton; + + &:focus { + background-color: @primaryButtonInverted; + } +} diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/login.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/login.less new file mode 100644 index 0000000..edfac30 --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/login.less @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2020-2021 Graz University of Technology. + * + * invenio-theme-iform is free software; you can redistribute it and/or modify it + * under the terms of the MIT License; see LICENSE file for more details. + */ + +.ui.inverted.header { + color: @primaryLinkInverted; +} + +.login-page-button { + margin: 5%; + text-align: center !important; + + & a { + padding: 5px; + cursor: pointer; + } + + & a:hover { + background-color: @primaryLinkHoverBackground; + color: @primaryLink !important; + text-decoration: none; + } +} + +.text-color { + color: @primaryLinkInverted; +} + +@media (max-width: 767px) { + #switch_left { + order: 2; + } + + #switch_right { + order: 1; + } +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/macros.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/macros.less similarity index 74% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/macros.less rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/macros.less index 4532799..c1329d3 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/macros.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/macros.less @@ -1,7 +1,7 @@ /* * Copyright (C) 2020-2021 Graz University of Technology. * - * invenio-theme-tugraz is free software; you can redistribute it and/or modify it + * invenio-theme-iform is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. */ diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less similarity index 51% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less index eef00d4..07ef7a8 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/overrides.less @@ -1,7 +1,7 @@ /* * Copyright (C) 2020-2021 Graz University of Technology. * - * invenio-theme-tugraz is free software; you can redistribute it and/or modify it + * invenio-theme-iform is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. */ @@ -11,7 +11,7 @@ * to #ffffff ***/ .section-content-light-bg { - background-color: @primaryBackground; + background-color: @primaryBackground; } /*** @@ -20,7 +20,7 @@ * to #000000 ***/ .section-title { - color: @primaryText; + color: @primaryText; } @@ -30,8 +30,8 @@ * To #ffffff ***/ .cover-page { - //text-align: center; - background-color: @primaryBackground; + //text-align: center; + background-color: @primaryBackground; } @@ -41,7 +41,7 @@ * To #000000 ***/ .panel-free-title { - color: @primaryText; + color: @primaryText; } @@ -49,23 +49,29 @@ * force: the font changes ***/ *, -html, body, -h1, h2, h3, h4, h5, h6, +html, +body, +h1, +h2, +h3, +h4, +h5, +h6, pre, .ui.button, .ui.items, .ui.accordion .title:not(.ui), -.ui.items > .item > .content > .header, -.ui.modal > .header, +.ui.items>.item>.content>.header, +.ui.modal>.header, .ui.menu, .ui.header, .ui.form input[type], .ui.form input[type]:focus { - font-family: "Source Sans Pro"; + font-family: "Source Sans Pro"; } pre { - font-size: 14px; + font-size: 14px; } @@ -74,18 +80,19 @@ pre { ***/ /*.ui.button,*/ .ui.search.button { - background-color: @tugrazRed; + background-color: @tugrazRed; } /*** * accordion title ***/ .ui.accordion.styled { - .title, - .title.active { - background-color: @greyLight; - color: rgba(0, 0, 0, 0.6); - } + + .title, + .title.active { + background-color: @greyLight; + color: rgba(0, 0, 0, 0.6); + } } /*** @@ -95,8 +102,8 @@ pre { .ui.search.button:hover, .ui.accordion.styled .title:hover, .ui.accordion.styled .accordion .title:hover { - background-color: @primaryButtonHoverBackground; - color: @primaryButton; + background-color: @primaryButtonHoverBackground; + color: @primaryButton; } /*** @@ -107,63 +114,66 @@ pre { .ui.button, .ui.rdm-sidebar, .ui.menu, -.ui.input > input, /* it seams redundant but it is not */ +.ui.input>input, +/* it seams redundant but it is not */ .ui.segment, .ui.selection.dropdown, .ui.accordion.styled, .ui.card, -.ui.cards > .card, -.ui.basic.button, .ui.basic.buttons .button, -.ui.action.input:not([class*="left action"]) > .button:last-child, -.ui.action.input:not([class*="left action"]) > .buttons:last-child > .button, -.ui.action.input:not([class*="left action"]) > .dropdown:last-child, +.ui.cards>.card, +.ui.basic.button, +.ui.basic.buttons .button, +.ui.action.input:not([class*="left action"])>.button:last-child, +.ui.action.input:not([class*="left action"])>.buttons:last-child>.button, +.ui.action.input:not([class*="left action"])>.dropdown:last-child, .ui.form input[type], .ui.form input[type]:focus { - border-radius: 0; + border-radius: 0; } /*** * force: rdm-side-bar same empty box as on the frontpage ***/ .ui.rdm-sidebar { - background-color: unset; - box-shadow: unset; + background-color: unset; + box-shadow: unset; } /*** * force: font weight: normal ***/ .ui.label { - font-weight: 400; + font-weight: 400; } // override access badges color .ui.label.access-status { - &.open { - background-color: @accessRightOpen; - } + &.open { + background-color: @accessRightOpen; + } - &.embargoed { - background-color: @accessRightEmbargoed;; - } + &.embargoed { + background-color: @accessRightEmbargoed; + ; + } - &.metadata-only { - background-color: @accessRightMetadata; - } + &.metadata-only { + background-color: @accessRightMetadata; + } } @font-face { - font-family: "Source Sans Pro"; - src: url('./fonts/SourceSansPro/SourceSansPro-Regular.ttf') format('truetype'); - font-weight: 400; - font-style: normal; + font-family: "Source Sans Pro"; + src: url('./fonts/SourceSansPro/SourceSansPro-Regular.ttf') format('truetype'); + font-weight: 400; + font-style: normal; } @font-face { - font-family: "Source Sans Pro"; - src: url('./fonts/SourceSansPro/SourceSansPro-Italic.ttf') format('truetype'); - font-weight: 400; - font-style: italic; + font-family: "Source Sans Pro"; + src: url('./fonts/SourceSansPro/SourceSansPro-Italic.ttf') format('truetype'); + font-weight: 400; + font-style: italic; } /** @@ -171,13 +181,13 @@ pre { * only for the overview use case. */ .ui.segment:first-child { - margin-top: 1em; + margin-top: 1em; } .ui.equal.height .ui.segment { - height: 100%; + height: 100%; } .ui.flashed.message.manage { - text-align: center; + text-align: center; } diff --git a/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/record.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/record.less new file mode 100644 index 0000000..4960f85 --- /dev/null +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/record.less @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2020 Graz University of Technology + * + * invenio-theme-iform is free software; you can redistribute it and/or modify + * it under the terms of the MIT License; see LICENSE file for more details. + */ + +.top-bottom-padded { + margin: unset; +} + +.label.label-keyword { + font-size: 0.71428571rem; + font-weight: 400; + background-color: @labelKeywordBackground; + border: unset; +} diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/search.less similarity index 51% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/search.less index cd894e2..53988a5 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/search.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/search.less @@ -1,28 +1,28 @@ /* * Copyright (C) 2020-2023 Graz University of Technology * - * invenio-theme-tugraz is free software; you can redistribute it and/or modify + * invenio-theme-iform is free software; you can redistribute it and/or modify * it under the terms of the MIT License; see LICENSE file for more details. */ .creators { - margin: 0 0 1em; + margin: 0 0 1em; } .creators span { - margin-left: 2px; + margin-left: 2px; } .creator:not(:last-child):after { - color: @greyDark; - content: ';'; + color: @greyDark; + content: ';'; } .creator { - display: inline-block; - margin-right: 5px; + display: inline-block; + margin-right: 5px; } .identifiers { - display: inline; + display: inline; } diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/theme.less similarity index 64% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/theme.less index 1378ec4..4473c6f 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/theme.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/theme.less @@ -1,7 +1,7 @@ /* * Copyright (C) 2020-2022 Graz University of Technology. * - * invenio-theme-tugraz is free software; you can redistribute it and/or modify it + * invenio-theme-iform is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. */ @@ -27,24 +27,24 @@ // used in various templates // add no hyperlink decoration -.no-decoration{ - color: inherit; - text-decoration: none; - transition: background-color 0.15s ease 0s, color 0.15s ease 0s; - outline: none; +.no-decoration { + color: inherit; + text-decoration: none; + transition: background-color 0.15s ease 0s, color 0.15s ease 0s; + outline: none; } .nowrap-link { - white-space: nowrap; + white-space: nowrap; } .ui.label.schema { - border: 1px solid #bfb5b5; + border: 1px solid #bfb5b5; } .random-records-frontpage {} .random-records-frontpage .grid .column { - width: 380px !important; - padding: 14px !important; + width: 380px !important; + padding: 14px !important; } diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/variables.less similarity index 60% rename from invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less rename to invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/variables.less index 37824d1..4043b55 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/variables.less +++ b/invenio_theme_iform/assets/semantic-ui/less/invenio_theme_tugraz/variables.less @@ -1,7 +1,7 @@ /* * Copyright (C) 2020-2021 Graz University of Technology. * - * invenio-theme-tugraz is free software; you can redistribute it and/or modify it + * invenio-theme-iform is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. */ @@ -16,51 +16,51 @@ // badge colors, accessibility -@accessRight : #e9711c; -@accessRightOpen : @accessRight; +@accessRight : #e9711c; +@accessRightOpen : @accessRight; @accessRightRestricted: #fbbd08; @accessRightEmbargoed : #db2828; -@accessRightClosed : @accessRightEmbargoed; -@accessRightMetadata : #2185D0; +@accessRightClosed : @accessRightEmbargoed; +@accessRightMetadata : #2185D0; @schema: #17b3f3; // primary colors TU Graz @tugrazBlack: #231f20; -@tugrazRed : #e4154b; +@tugrazRed : #e4154b; // general @primaryBackground: #fff; -@primaryText : #000; +@primaryText : #000; // accent colors -@greyDark : #777; -@greyLight : #E0E1E2; +@greyDark : #777; +@greyLight : #E0E1E2; @labelKeywordBackground: #E8E8E8; // link and button colors -@primaryLinkInverted : @primaryText; +@primaryLinkInverted : @primaryText; @primaryLinkBackgroundInverted: @primaryBackground; -@primaryLink : @primaryBackground; -@primaryLinkHoverBackground : @primaryText; -@primaryButton : @primaryBackground; +@primaryLink : @primaryBackground; +@primaryLinkHoverBackground : @primaryText; +@primaryButton : @primaryBackground; @primaryButtonHoverBackground : @primaryText; -@primaryButtonInverted : @primaryText; +@primaryButtonInverted : @primaryText; // account (signin, signup) specific -@primaryFormAccounts : @primaryBackground; +@primaryFormAccounts : @primaryBackground; @formAccountsInputPlaceholder : silver; @fieldInputSelectionBackground: #50a2ce; -@signInBackground : #245b78; +@signInBackground : #245b78; // footer specific -@footerGrey : #5E5E5E; +@footerGrey : #5E5E5E; @footerBottomBackground: #f2f2f2; // record specific diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_iform/config.py similarity index 56% rename from invenio_theme_tugraz/config.py rename to invenio_theme_iform/config.py index a655223..b73fcbe 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_iform/config.py @@ -2,65 +2,65 @@ # # Copyright (C) 2020-2023 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. -"""invenio module for TUGRAZ theme.""" +"""invenio module for I-Form theme.""" from invenio_i18n import gettext as _ -INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository") +INVENIO_THEME_IFORM_DEFAULT_VALUE = _("I-Form Repository") """Default value for the application.""" -INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = "invenio_theme_tugraz/base.html" -"""TU Graz Default base template""" +INVENIO_THEME_IFORM_BASE_TEMPLATE = "invenio_theme_iform/base.html" +"""I-Form Default base template""" -INVENIO_THEME_TUGRAZ_ACCOUNT_BASE = "invenio_theme_tugraz/accounts/accounts_base.html" -"""TU Graz Default account base template""" +INVENIO_THEME_IFORM_ACCOUNT_BASE = "invenio_theme_iform/accounts/accounts_base.html" +"""I-Form Default account base template""" -INVENIO_THEME_TUGRAZ_ICON = "images/icon_use.png" +INVENIO_THEME_IFORM_ICON = "images/icon_use.png" """icon used in login page""" -INVENIO_THEME_TUGRAZ_LOGIN_IMG = "images/login_logo.png" -"""TU Logo for forms""" +INVENIO_THEME_IFORM_LOGIN_IMG = "images/login_logo.png" +"""I-Form Logo for forms""" -THEME_TUGRAZ_CONTACT_FORM = False +THEME_IFORM_CONTACT_FORM = False """Enable/Disable Contact form.""" -THEME_TUGRAZ_PRODUCTION = False +THEME_IFORM_PRODUCTION = False """Production environment. Can also be set as an environment variable in a .env file. Then the name - has to be 'INVENIO_THEME_TUGRAZ_PRODUCTION'. + has to be 'INVENIO_THEME_IFORM_PRODUCTION'. """ -THEME_TUGRAZ_SUPPORT_EMAIL = "" +THEME_IFORM_SUPPORT_EMAIL = "" """Shown as contact-info on default error-page.""" # Invenio-theme # ============ # See https://invenio-theme.readthedocs.io/en/latest/configuration.html # -THEME_500_TEMPLATE = "invenio_theme_tugraz/default_error.html" +THEME_500_TEMPLATE = "invenio_theme_iform/default_error.html" """Used for any internal server errors and uncaught exceptions.""" THEME_LOGO = "images/tug_logo.png" -"""TU Graz logo""" +"""I-Form logo""" THEME_SEARCHBAR = False """Enable or disable the header search bar.""" -THEME_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" -"""TU Graz header template""" +THEME_HEADER_TEMPLATE = "invenio_theme_iform/header.html" +"""I-Form header template""" THEME_FRONTPAGE = False """Use default frontpage.""" -THEME_HEADER_LOGIN_TEMPLATE = "invenio_theme_tugraz/accounts/header_login.html" +THEME_HEADER_LOGIN_TEMPLATE = "invenio_theme_iform/accounts/header_login.html" """login page header""" -THEME_FOOTER_TEMPLATE = "invenio_theme_tugraz/footer.html" +THEME_FOOTER_TEMPLATE = "invenio_theme_iform/footer.html" """footer template""" THEME_FRONTPAGE_TITLE = _("TU Graz Repository") @@ -73,22 +73,22 @@ THEME_SITENAME = _("Repository") # ============ # See https://invenio-accounts.readthedocs.io/en/latest/configuration.html -# COVER_TEMPLATE = 'invenio_theme_tugraz/accounts/accounts_base.html' +# COVER_TEMPLATE = 'invenio_theme_iform/accounts/accounts_base.html' """Cover page template for login and sign up pages.""" -SECURITY_LOGIN_USER_TEMPLATE = "invenio_theme_tugraz/accounts/login_user.html" +SECURITY_LOGIN_USER_TEMPLATE = "invenio_theme_iform/accounts/login_user.html" """Login template""" -SECURITY_REGISTER_USER_TEMPLATE = "invenio_theme_tugraz/accounts/register_user.html" +SECURITY_REGISTER_USER_TEMPLATE = "invenio_theme_iform/accounts/register_user.html" """Sigup template""" # Invenio-app-rdm # ============= # See https://invenio-app-rdm.readthedocs.io/en/latest/configuration.html -SEARCH_UI_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" +SEARCH_UI_HEADER_TEMPLATE = "invenio_theme_iform/header.html" """Search page's header template.""" -DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" +DEPOSITS_HEADER_TEMPLATE = "invenio_theme_iform/header.html" """Deposits header page's template.""" @@ -98,14 +98,14 @@ DEPOSITS_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" # Uncomment below to override records landingpage. # from invenio_rdm_records.config import RECORDS_UI_ENDPOINTS # RECORDS_UI_ENDPOINTS["recid"].update( -# template="invenio_theme_tugraz/record_landing_page.html" +# template="invenio_theme_iform/record_landing_page.html" # ) """override the default record landing page""" # Invenio-search-ui # ============= # See https://invenio-search-ui.readthedocs.io/en/latest/configuration.html -# SEARCH_UI_SEARCH_TEMPLATE = "invenio_theme_tugraz/search.html" +# SEARCH_UI_SEARCH_TEMPLATE = "invenio_theme_iform/search.html" # """override the default search page""" TUG_ROUTES = { diff --git a/invenio_theme_tugraz/ext.py b/invenio_theme_iform/ext.py similarity index 79% rename from invenio_theme_tugraz/ext.py rename to invenio_theme_iform/ext.py index 454829c..abb7add 100644 --- a/invenio_theme_tugraz/ext.py +++ b/invenio_theme_iform/ext.py @@ -2,22 +2,22 @@ # # Copyright (C) 2020-2024 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. -"""invenio module for TUGRAZ theme.""" +"""invenio module for I-Form theme.""" from flask_login import login_required from invenio_i18n import lazy_gettext as _ from invenio_records_marc21.ui.theme import current_identity_can_view from . import config -from .views import index, locked, require_tugraz_authenticated +from .views import index, locked, require_iform_authenticated -class InvenioThemeTugraz(object): - """invenio-theme-tugraz extension.""" +class InvenioThemeIform(object): + """invenio-theme-iform extension.""" def __init__(self, app=None): """Extension initialization.""" @@ -37,12 +37,12 @@ class InvenioThemeTugraz(object): def inject_visibility(): return {"can_view_marc21": current_identity_can_view()} - app.extensions["invenio-theme-tugraz"] = self + app.extensions["invenio-theme-iform"] = self def init_config(self, app): """Initialize configuration.""" for k in dir(config): - if k.startswith("INVENIO_THEME_TUGRAZ_") or k.startswith("THEME_TUGRAZ_"): + if k.startswith("INVENIO_THEME_IFORM_") or k.startswith("THEME_IFORM_"): app.config.setdefault(k, getattr(config, k)) @@ -58,13 +58,13 @@ def modify_user_dashboard(app): user_dashboard_menu = root_menu.submenu("dashboard") user_dashboard_menu.submenu("overview").register( - "invenio_theme_tugraz.overview", + "invenio_theme_iform.overview", text=_("Overview"), order=0, ) root_menu.submenu("actions.deposit").register( - "invenio_theme_tugraz.overview", + "invenio_theme_iform.overview", _("My dashboard"), order=1, ) @@ -86,9 +86,9 @@ def guard_view_functions(app): # decorate view-func # same as if view-func were defined with: # @login_required - # @require_tugraz_authenticated_user + # @require_iform_authenticated_user view_func = login_required( - require_tugraz_authenticated( + require_iform_authenticated( view_func, ), ) diff --git a/invenio_theme_tugraz/search.py b/invenio_theme_iform/search.py similarity index 86% rename from invenio_theme_tugraz/search.py rename to invenio_theme_iform/search.py index e8698a0..d5d0fe9 100644 --- a/invenio_theme_tugraz/search.py +++ b/invenio_theme_iform/search.py @@ -2,7 +2,7 @@ # # Copyright (C) 2020-2023 Graz University of Technology. # -# invenio-theme-tugraz is free software; you can redistribute it and/or +# invenio-theme-iform is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. diff --git a/invenio_theme_tugraz/static/extra/orcid.png b/invenio_theme_iform/static/extra/orcid.png similarity index 100% rename from invenio_theme_tugraz/static/extra/orcid.png rename to invenio_theme_iform/static/extra/orcid.png diff --git a/invenio_theme_tugraz/static/favicon.ico b/invenio_theme_iform/static/favicon.ico similarity index 100% rename from invenio_theme_tugraz/static/favicon.ico rename to invenio_theme_iform/static/favicon.ico diff --git a/invenio_theme_tugraz/static/images/Fair_Data_Austria_orangerot.png b/invenio_theme_iform/static/images/Fair_Data_Austria_orangerot.png similarity index 100% rename from invenio_theme_tugraz/static/images/Fair_Data_Austria_orangerot.png rename to invenio_theme_iform/static/images/Fair_Data_Austria_orangerot.png diff --git a/invenio_theme_tugraz/static/images/Icon_1_v2.svg b/invenio_theme_iform/static/images/Icon_1_v2.svg similarity index 100% rename from invenio_theme_tugraz/static/images/Icon_1_v2.svg rename to invenio_theme_iform/static/images/Icon_1_v2.svg diff --git a/invenio_theme_tugraz/static/images/TU_Austria_Logo.png b/invenio_theme_iform/static/images/TU_Austria_Logo.png similarity index 100% rename from invenio_theme_tugraz/static/images/TU_Austria_Logo.png rename to invenio_theme_iform/static/images/TU_Austria_Logo.png diff --git a/invenio_theme_tugraz/static/images/cyan_400x400.png b/invenio_theme_iform/static/images/cyan_400x400.png similarity index 100% rename from invenio_theme_tugraz/static/images/cyan_400x400.png rename to invenio_theme_iform/static/images/cyan_400x400.png diff --git a/invenio_theme_tugraz/static/images/dark_blue_400x400.png b/invenio_theme_iform/static/images/dark_blue_400x400.png similarity index 100% rename from invenio_theme_tugraz/static/images/dark_blue_400x400.png rename to invenio_theme_iform/static/images/dark_blue_400x400.png diff --git a/invenio_theme_tugraz/static/images/diamond.svg b/invenio_theme_iform/static/images/diamond.svg similarity index 100% rename from invenio_theme_tugraz/static/images/diamond.svg rename to invenio_theme_iform/static/images/diamond.svg diff --git a/invenio_theme_tugraz/static/images/footer.jpg b/invenio_theme_iform/static/images/footer.jpg similarity index 100% rename from invenio_theme_tugraz/static/images/footer.jpg rename to invenio_theme_iform/static/images/footer.jpg diff --git a/invenio_theme_tugraz/static/images/group-discussion.svg b/invenio_theme_iform/static/images/group-discussion.svg similarity index 100% rename from invenio_theme_tugraz/static/images/group-discussion.svg rename to invenio_theme_iform/static/images/group-discussion.svg diff --git a/invenio_theme_tugraz/static/images/icon_use.png b/invenio_theme_iform/static/images/icon_use.png similarity index 100% rename from invenio_theme_tugraz/static/images/icon_use.png rename to invenio_theme_iform/static/images/icon_use.png diff --git a/invenio_theme_tugraz/static/images/inveniordm-tail.svg b/invenio_theme_iform/static/images/inveniordm-tail.svg similarity index 100% rename from invenio_theme_tugraz/static/images/inveniordm-tail.svg rename to invenio_theme_iform/static/images/inveniordm-tail.svg diff --git a/invenio_theme_tugraz/static/images/library-book-svgrepo-com.svg b/invenio_theme_iform/static/images/library-book-svgrepo-com.svg similarity index 100% rename from invenio_theme_tugraz/static/images/library-book-svgrepo-com.svg rename to invenio_theme_iform/static/images/library-book-svgrepo-com.svg diff --git a/invenio_theme_tugraz/static/images/library_logo.png b/invenio_theme_iform/static/images/library_logo.png similarity index 100% rename from invenio_theme_tugraz/static/images/library_logo.png rename to invenio_theme_iform/static/images/library_logo.png diff --git a/invenio_theme_tugraz/static/images/light_green_400x400.png b/invenio_theme_iform/static/images/light_green_400x400.png similarity index 100% rename from invenio_theme_tugraz/static/images/light_green_400x400.png rename to invenio_theme_iform/static/images/light_green_400x400.png diff --git a/invenio_theme_tugraz/static/images/login_logo.png b/invenio_theme_iform/static/images/login_logo.png similarity index 100% rename from invenio_theme_tugraz/static/images/login_logo.png rename to invenio_theme_iform/static/images/login_logo.png diff --git a/invenio_theme_tugraz/static/images/logo.svg b/invenio_theme_iform/static/images/logo.svg similarity index 100% rename from invenio_theme_tugraz/static/images/logo.svg rename to invenio_theme_iform/static/images/logo.svg diff --git a/invenio_theme_tugraz/static/images/oea.svg b/invenio_theme_iform/static/images/oea.svg similarity index 100% rename from invenio_theme_tugraz/static/images/oea.svg rename to invenio_theme_iform/static/images/oea.svg diff --git a/invenio_theme_tugraz/static/images/play.svg b/invenio_theme_iform/static/images/play.svg similarity index 100% rename from invenio_theme_tugraz/static/images/play.svg rename to invenio_theme_iform/static/images/play.svg diff --git a/invenio_theme_tugraz/static/images/re3data.svg b/invenio_theme_iform/static/images/re3data.svg similarity index 100% rename from invenio_theme_tugraz/static/images/re3data.svg rename to invenio_theme_iform/static/images/re3data.svg diff --git a/invenio_theme_tugraz/static/images/red_400x400.png b/invenio_theme_iform/static/images/red_400x400.png similarity index 100% rename from invenio_theme_tugraz/static/images/red_400x400.png rename to invenio_theme_iform/static/images/red_400x400.png diff --git a/invenio_theme_tugraz/static/images/rosa_400x400.png b/invenio_theme_iform/static/images/rosa_400x400.png similarity index 100% rename from invenio_theme_tugraz/static/images/rosa_400x400.png rename to invenio_theme_iform/static/images/rosa_400x400.png diff --git a/invenio_theme_tugraz/static/images/tug_logo.png b/invenio_theme_iform/static/images/tug_logo.png similarity index 100% rename from invenio_theme_tugraz/static/images/tug_logo.png rename to invenio_theme_iform/static/images/tug_logo.png diff --git a/invenio_theme_tugraz/static/images/umbrella.svg b/invenio_theme_iform/static/images/umbrella.svg similarity index 100% rename from invenio_theme_tugraz/static/images/umbrella.svg rename to invenio_theme_iform/static/images/umbrella.svg diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html b/invenio_theme_iform/templates/invenio_theme_iform/423.html similarity index 82% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html rename to invenio_theme_iform/templates/invenio_theme_iform/423.html index 88ec245..e838ece 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/423.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/423.html @@ -1,7 +1,7 @@ {# Copyright (C) 2024 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html similarity index 92% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html rename to invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html index 41c3641..795519a 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/accounts_base.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/accounts_base.html @@ -1,7 +1,7 @@ {# Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} @@ -46,7 +46,7 @@ {%- block header %}{% endblock header %} {%- block css %} {{ webpack['theme.css'] }} - {{ webpack['invenio-theme-tugraz-theme.css'] }} + {{ webpack['invenio-theme-iform-theme.css'] }} {%- block flashmessages %} {%- from "invenio_theme/macros/messages.html" import flashed_messages with context -%} @@ -79,7 +79,7 @@ {%- endblock %} {%- endblock navbar_header %} - + {# {%- block page_header %} {% include config.THEME_HEADER_TEMPLATE %} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/header_login.html similarity index 100% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html rename to invenio_theme_iform/templates/invenio_theme_iform/accounts/header_login.html diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html similarity index 95% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html rename to invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html index 1a63997..65439f4 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/login_user.html @@ -1,12 +1,12 @@ {# Copyright (C) 2020-2021 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} -{% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %} +{% extends config.INVENIO_THEME_IFORM_ACCOUNT_BASE %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %} @@ -37,7 +37,7 @@ {{ _('Log in with %(title)s', title=config.SSO_SAML_IDPS[name]['title']|default("SAML", true)) }} - + {% endfor %} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html b/invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html similarity index 92% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html rename to invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html index 9a13114..3c15501 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/accounts/register_user.html @@ -1,12 +1,12 @@ {# Copyright (C) 2020 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} -{% extends config.INVENIO_THEME_TUGRAZ_ACCOUNT_BASE %} +{% extends config.INVENIO_THEME_IFORM_ACCOUNT_BASE %} {% from "invenio_accounts/_macros.html" import render_field, form_errors %} @@ -38,11 +38,11 @@
{# Sigup with SSO #} - {%- if config.INVENIO_CONFIG_TUGRAZ_SHIBBOLETH %} + {%- if config.INVENIO_CONFIG_IFORM_SHIBBOLETH %}
{{_ ("Or") }}
{%- endif %} diff --git a/invenio_theme_iform/templates/invenio_theme_iform/base.html b/invenio_theme_iform/templates/invenio_theme_iform/base.html new file mode 100644 index 0000000..fdabf1b --- /dev/null +++ b/invenio_theme_iform/templates/invenio_theme_iform/base.html @@ -0,0 +1,96 @@ +{# +Copyright (C) 2020-2023 Graz University of Technology. + +invenio-theme-iform is free software; you can redistribute it and/or +modify it under the terms of the MIT License; see LICENSE file for more +details. +#} + + + + + + {%- block head %} + {%- block head_meta %} + + + + + {%- if description %} + + {% endif %} + + {%- if keywords %} + + {% endif %} + + {%- if config.get("THEME_GOOGLE_SITE_VERIFICATION", None) %} + {%- for google_id in config.THEME_GOOGLE_SITE_VERIFICATION %} + + {%- endfor %} + {%- endif %} + {%- endblock head_meta %} + + {%- block head_title %} + {%- set title = title or _(config.THEME_SITENAME) or _("Invenio") %} + {{title}} + {%- endblock head_title %} + + {%- block head_links %} + + + {%- if keywords %} + + {% endif %} + + {%- block head_links_langs %} + {%- if alternate_urls %} + {%- for alt_ln, alternate_url in alternate_urls.items() %} + + {%- endfor %} + {%- endif %} + {%- endblock %} + {%- endblock head_links %} + + {%- block header %}{% endblock header %} + + {%- block css %} + {{ webpack["theme.css"] }} + {{ webpack["invenio-theme-iform-theme.css"] }} + {%- endblock css %} + {%- endblock head %} + + + + {%- block body %} + {%- block browserupgrade %} + + {%- endblock browserupgrade %} + + {%- block body_inner %} + {%- block page_header %} + {% include config.THEME_HEADER_TEMPLATE %} + {%- endblock page_header %} + + {%- block page_body %} + {% include "invenio_theme/body.html" %} + {%- endblock page_body %} + + {%- block page_footer %} + {% include config.THEME_FOOTER_TEMPLATE %} + {%- endblock page_footer %} + {%- endblock body_inner %} + + {%- block javascript %} + {% include config.THEME_JAVASCRIPT_TEMPLATE %} + {%- endblock javascript %} + + {%- block trackingcode %} + {% include config.THEME_TRACKINGCODE_TEMPLATE %} + {%- endblock %} + {%- endblock body %} + + + diff --git a/invenio_theme_iform/templates/invenio_theme_iform/benefits.html b/invenio_theme_iform/templates/invenio_theme_iform/benefits.html new file mode 100644 index 0000000..431d64b --- /dev/null +++ b/invenio_theme_iform/templates/invenio_theme_iform/benefits.html @@ -0,0 +1,27 @@ +{# +Copyright (C) 2020-2024 Graz University of Technology. + +invenio-theme-iform is free software; you can redistribute it and/or +modify it under the terms of the MIT License; see LICENSE file for more +details. +#} + +
+

{{ _("Good reasons to use the I-Form Repository") }}

+ +
    +
  • {{_("Safe") }} — {{_("Your research results are permanently available.") }}
  • +
  • {{_("Trusted") }} — {{_("A service from I-Form, developed in cooperation with CERN.") }} +
  • +
  • {{_("Citeable") }} — {{_("Every upload is assigned a Digital Object Identifier (DOI).") + }}
  • +
  • {{_("No waiting time") }} — {{_("Uploads are made available online as soon as you hit + publish. Your DOI is registered within seconds.") }}
  • +
  • {{_("Open or closed") }} — {{_("You determine the visibility of your uploads. A + restricted access mode is possible.") }}
  • +
  • {{_("Versioning") }} — {{_("Easily update your dataset with the versioning feature.") }} +
  • +
  • {{_("Usage statistics") }} — {{ _("All uploads display standards compliant usage + statistics. ") }} ({{ _("More") }})
  • +
+
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html b/invenio_theme_iform/templates/invenio_theme_iform/contact_us.html similarity index 51% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html rename to invenio_theme_iform/templates/invenio_theme_iform/contact_us.html index 34ea9fe..e2943f6 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/contact_us.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/contact_us.html @@ -1,20 +1,20 @@ {# - Copyright (C) 2020-2024 Graz University of Technology. +Copyright (C) 2020-2024 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or - modify it under the terms of the MIT License; see LICENSE file for more - details. +invenio-theme-iform is free software; you can redistribute it and/or +modify it under the terms of the MIT License; see LICENSE file for more +details. #}

{{ _("Need help?") }}

- {%- if config.THEME_TUGRAZ_CONTACT_FORM %} - + {%- if config.THEME_IFORM_CONTACT_FORM %} + {%- endif %}

{{ _("We can help with:") }} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/default_error.html b/invenio_theme_iform/templates/invenio_theme_iform/default_error.html similarity index 79% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/default_error.html rename to invenio_theme_iform/templates/invenio_theme_iform/default_error.html index d6f2bfa..3cfcc53 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/default_error.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/default_error.html @@ -1,7 +1,7 @@ {# Copyright (C) 2024 Graz University of Technology. - - invenio-theme-tugraz is free software; you can redistribute it and/or + + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} @@ -14,7 +14,7 @@ {{ _( 'Please contact our support to let us know about this error.' - ).format(support_email=config.THEME_TUGRAZ_SUPPORT_EMAIL) + ).format(support_email=config.THEME_IFORM_SUPPORT_EMAIL) }}

{# TODO: provide g.sentry_event_id here once sentry is configured, cf. invenio_theme/500.html #} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html b/invenio_theme_iform/templates/invenio_theme_iform/footer.html similarity index 65% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html rename to invenio_theme_iform/templates/invenio_theme_iform/footer.html index f6ae2b9..d552bc4 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/footer.html @@ -1,17 +1,17 @@ {# - Copyright (C) 2020-2023 Graz University of Technology. +Copyright (C) 2020-2023 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or - modify it under the terms of the MIT License; see LICENSE file for more - details. +invenio-theme-iform is free software; you can redistribute it and/or +modify it under the terms of the MIT License; see LICENSE file for more +details. #} {%- block css %} - {{ webpack['invenio-theme-tugraz-theme.css'] }} +{{ webpack['invenio-theme-iform-theme.css'] }} {%- endblock %} {%- block javascript %} - {{ webpack['invenio-theme-tugraz-js.js'] }} +{{ webpack['invenio-theme-iform-js.js'] }} {%- endblock javascript %}
@@ -25,36 +25,33 @@ @@ -121,9 +118,8 @@
Powered by - InvenioRDM logo + InvenioRDM logo
@@ -131,9 +127,8 @@
Enabled by - Fair Data Austria + Fair Data Austria
@@ -142,9 +137,8 @@
Supported by - Open Education Austria + Open Education Austria
@@ -156,10 +150,10 @@
Listed on - - Registry of Research Data Repositories + + Registry of Research Data Repositories
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html b/invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html similarity index 89% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html rename to invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html index 073b572..83f57e8 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage_overview.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/frontpage_overview.html @@ -1,9 +1,9 @@ {# - Copyright (C) 2020-2023 Graz University of Technology. +Copyright (C) 2020-2023 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or - modify it under the terms of the MIT License; see LICENSE file for more - details. +invenio-theme-iform is free software; you can redistribute it and/or +modify it under the terms of the MIT License; see LICENSE file for more +details. #}
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html b/invenio_theme_iform/templates/invenio_theme_iform/header.html similarity index 90% rename from invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html rename to invenio_theme_iform/templates/invenio_theme_iform/header.html index 71cb09f..64480d9 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html +++ b/invenio_theme_iform/templates/invenio_theme_iform/header.html @@ -1,12 +1,12 @@ {# Copyright (C) 2020-2023 Graz University of Technology. - invenio-theme-tugraz is free software; you can redistribute it and/or + invenio-theme-iform is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} -{% if not config.THEME_TUGRAZ_PRODUCTION %} +{% if not config.THEME_IFORM_PRODUCTION %}

{{ _("Test Instance") }}

{{ _("This is the test instance of the TU Graz Repository.") }}

@@ -23,14 +23,14 @@ {%- block navbar %}