Metadata-Version: 2.1
Name: invenio-theme-tuw
Version: 2024.2.7
Summary: "TU Wien theme for Invenio (RDM)."
Home-page: https://gitlab.tuwien.ac.at/fairdata/invenio-theme-tuw
Author: TU Wien
Author-email: tudata@tuwien.ac.at
License: MIT
Keywords: invenio theme tuw
Platform: any
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: >=3.7
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: Flask-WebpackExt>=1.0.0
Requires-Dist: Invenio-App-RDM<13.0.0,>=12.0.0rc2
Requires-Dist: Invenio-Search>=2.0.0
Requires-Dist: Flask>=2.0.2
Requires-Dist: Flask-Session-Captcha<1.4,>=1.3.0
Provides-Extra: docs
Provides-Extra: tests
Requires-Dist: pytest-black>=0.3.0; extra == "tests"
Requires-Dist: pytest-invenio>=1.4.0; extra == "tests"
Requires-Dist: sphinx>=4.5; extra == "tests"
Requires-Dist: opensearch-dsl>=2.1.0; extra == "tests"

..
    Copyright (C) 2020 - 2021 TU Wien.

    Invenio-Theme-TUW 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-TUW
===================

This module provides templates and assets to bring a TU Wien look and feel to InvenioRDM.


Installation
------------

After installing Invenio-Theme-TUW via `pip`, Invenio's assets have to be updated:

.. code-block:: console

   $ pip install invenio-theme-tuw
   $ invenio-cli assets update

Also, theming-related configuration items (e.g. `THEME_LOGO`) have to be removed from `invenio.cfg` to prevent them
from overriding the values set in `Invenio-Theme-TUW`.


Components
----------

* `views.py`: provides a `Blueprint` that registers both the `static/` and `templates/` folders to be usable by Invenio
* `webpack.py`: registers the front-end assets (in the `assets/` folder) to webpack
* `config.py`: overrides several configuration items related to theming Invenio


..
    Copyright (C) 2020-2024 TU Wien.

    Invenio-Theme-TUW is free software; you can redistribute it and/or
    modify it under the terms of the MIT License; see LICENSE file for more
    details.

Changes
=======

Version 2024.2 (released 2024-06-24, updated 2024-09-10)

- v12 compat: Update frontend build project
- v12 compat: Replace Flask-BabelEx with Invenio-i18n
- v12 compat: Chase jinja template changes
- v12 compat: Chase Invenio-App-RDM styling changes
- v12 compat: Chase record ownership changes
- v12 compat: Exclude deleted records from frontpage search
- Replace startup hacks with `finalize_app` entrypoint
- Export JSON-LD locally instead of querying doi.org
- Modernize & update tests
- Only display statistics in the sidebar to record owners
- Hide community selection on deposit form
- Handle `NoResultFound` exception in guarded deposit page
- Add support for `Invenio-Banners`
- Remove `THEME_TUW_FRONTPAGE_{INFO,WARNING}` config options
- Hide data volume from metrics sidebar box
- Tweak FAIRsharing logo to reduce data transfer
- Provide fallback values for record searches on the frontpage
- Make background colour consistent with control bar for audio file preview iframes
- Add admin page with response texts for permission requests


Version 2024.1 (released 2024-03-01, updated 2024-05-29)

- Views: add status code in guards' response
- Add automated tests
- Add TUW-specific user administration page
- Fetch TISS ID from user profile rather than from old access tokens
- Updated the text on the deposit guard page


Version 2023.2 (released 2023-04-24, updated 2023-12-22)

- v11 compat: Update templates and frontend build project
- Remove PDF preview override, as it has been merged upstream
- Rework "contact uploader" feature to a dedicated contact form
- Distribute ``.jinja`` files with releases
- Update PyPI publication flow
- Partially prefill "contact uploader" form on authenticated users
- Add FAIRsharing logo to the footer and readjust CSS grid
- Add rate limiting for the "contact uploader" feature
- Add a feature flag for enabling/disabling the feature
- Hide the contact form link when viewing one's own records' landing pages
- Optionally add the specified email address to CC (disabled by default)
- Preserve message formatting in HTML emails
- Remove "Fair Data Austria" logo from the footer and readjust CSS grid
- Add TU Wien logo to static assets
- Frontpage: Add link to the CRDM
- Prepare the repository for seasonal weather
- Add user settings page about record curation


Version 2023.1 (released 2023-01-13, updated 2023-04-24)

- Display the record's first uploaders on the landing pages
- Fix the draft preview page failing with a 404 code
- Update links to policies
- UI: fix header warning styling and improve permission guard pages
- UI: rework deposit permission guard page text
- UI: further improve deposit permission guard page text and modify its header icon
- Footer: Improve layout and responsiveness on smaller screens
- Fix naming of grid classes in css to avoid overlaps with `semantic-ui-less`
- UI: remove reference to test instance from deposit guard page
- Add possibility to a render an info box in the frontpage


Version 2022.6 (released 2022-10-17, updated 2022-11-30)

- v10 compat: Replace direct 'elasticsearch' import
- v10 compat: Load and pass ``custom_fields`` in ``communities_new`` view function
- Override ``app.config`` to specially handle our ``SITE_{API,UI}_URL`` config items
- Remove the ``communities_new`` override
- Remove "under development" text in frontpage
- Render missing flashed messages
- Rework the initialization procedure used for some custom overrides
- Migrate from setup.py to setup.cfg
- Remove old documents
- Hide the privacy policy for now, until it is accepted and published centrally
- Move Flask config override from Invenio-Theme-TUW to Invenio-Config-TUW
- Disable Matomo integration by default
- Use fallback system font during initial page load
- Update footer logos, links and file links


Version 2022.5 (released 2022-09-06, updated 2022-10-11)

- Add surrounding element to the recent uploads on the frontpage
- Some styling fixes
- Add config variable for Matomo site ID
- Rework the staging warning into a more general customizable warning
- Make the input element sizing on the deposit page more uniform
- Update the contact page
- Self-serve Google fonts used for the TUW corporate design
- Fix missing search bar in results page
- Remove inline styling from templates
- Add total record count to the search bar placeholder
- Scale down hero images
- Add possibility to a render a warning box in the frontpage


Version 2022.4 (released 2022-07-19, updated 2022-08-25)

- v9 compat: Chase upstream changes in our overridden templates
- v9 compat: Add permission guard page for community creation
- Add config variable for the FAQ link
- Remove unnecessary/outdated template and JS overrides
- Refactor directory structure for remaining template overrides
- Add comments marking the changes and their reasons in remaining overrides
- UI enhancements for mobile (side bar and communities frontpage)
- Reverse contents of CHANGES.rst (recent changes are shown on top)
- Fix wrong route in deposit guard template
- Update description in frontpage
- Override the ``communities_new`` view function (to support ``LocalProxy`` objects as ``SITE_UI_URL``)


Version 2022.3 (released 2022-03-11, updated 2022-07-14)

- Make the theme compatible with the v8 release of InvenioRDM
- Fix some styling issues
- Fix race conditions regarding blueprint overrides during init phase
- Add layer of protection around the deposit pages
- Update text on frontpage and contact page
- Reformat jinja templates
- Add tombstone page for Florian
- Refactor the module to actually play nice with InvenioRDM v8


Version 2022.2 (released 2022-02-07)

- Rebrand to 'TU Data Repository'
- Adjust Recent Uploads
- 'More'-button added to frontpage


Version 2022.1 (released 2022-01-26)

- Frontpage lists recent uploads
- Display creators of records nicely on frontpage
- Restyled Records on frontpage


Version 2021.11 (released 2022-01-05)

- Make ready for InvenioRDM v7 and Flask 2.0.2+
- Fix upload deposit upload quota


Version 2021.10 (released 2021-09-27, updated 2021-11-09)

- Add THEME_SITENAME config variable
- Make site name configurable
- Override webpack configuration in order to enable webp image assets
- Fix Manifest file
- Improved Accessibility on frontpage
- Increase Link Contrast
- SEO improvements
- Remove left-over usage of removed config variable
- Removed unintended link on frontpage
- Tooltip added to filenames on record landingpages


Version 2021.9 (released 2021-08-16, updated 2021-09-20)

- Capsulated CSS into Semantic UI Theme
- Fixed UI bugs (sticky header and mobile menu)
- Fixed typos on frontpage
- Fixed button text color
- Fixed footer (footer should still stick to the bottom of the page on pages with small content)
- Fixed Dropdown element font
- Fixed Login/Logout Button
- Added `alt`-text to all images
- Compressed hero images
- Improved Accessibility
- Fix mobile bugs on mobile version
- TU Data renamed to TU Research Data
- Feature section headings renamed
- Fix display of licenses
- Use configured search settings rather than hard-coded values
- Use upstream implementation of "cite as"
- Improve translation support
- Fix checkboxes not having visible check marks


Version 2021.8 (released 2021-07-29, updated 2021-08-12)

- Added hero images.
- Fixed navigation.
- Fix build errors.
- Update module for InvenioRDM 6.0 release.


Version 2021.7 (released 2021-07-29)

- Fix PDF files not being previewed.
- Fix incorrect sources for images in footer.
- Housekeeping (removing old scripts, ...).


Version 2021.6 (released 2021-07-18)

-  Fixes to corporate design, e.g.

   -  login button
   -  flipping tiles
   -  spacing


Version 2021.5 (released 2021-07-16)

- Fix set of distributed files.


Version 2021.4 (released 2021-07-16)

- Implement new TUW corporate design.


Version 2021.3 (released 2021-07-16)

- Fix set of distributed files.


Version 2021.2 (released 2021-07-16)

- Rework caching of result for schemaorg metadata.


Version 2021.1 (released 2021-07-15)

- Initial public release.
