Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding restricted view warning for EDS #4208

Conversation

ThoWagen
Copy link
Contributor

This PR allows you to display a warning to the users if they only have a restricted view in EDS searches and records.

It also fixes the loginForAccess.phtml message for users that are already logged in but still lack permission for the full access.

Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ThoWagen -- a few thoughts below!

themes/bootstrap5/templates/error/loginForAccess.phtml Outdated Show resolved Hide resolved
@@ -76,6 +76,10 @@
<?php endif; ?>
<?=$this->record($this->driver)->getLabelList() ?>

<?php if (($this->showRestrictedViewWarning ?? false) && $restrictedView): ?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've put this only in the EDS-specific core.phtml. Should we also include it in the DefaultRecord version, on the assumption that this generic mechanism might also be used in other scenarios?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the DefaultRecord version we don't have a $restrictedView variable we could use.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense -- I think it's fine as it is!

module/VuFind/src/VuFind/Controller/AbstractRecord.php Outdated Show resolved Hide resolved
…nd using logginForAcces in more places with better text
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ThoWagen -- just one more minor suggestion below. Once that's updated, I'll find some time for hands-on testing, and hopefully will be able to merge after that!

themes/bootstrap5/templates/RecordDriver/EDS/core.phtml Outdated Show resolved Hide resolved
@@ -76,6 +76,10 @@
<?php endif; ?>
<?=$this->record($this->driver)->getLabelList() ?>

<?php if (($this->showRestrictedViewWarning ?? false) && $restrictedView): ?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense -- I think it's fine as it is!

@demiankatz demiankatz added this to the 11.0 milestone Jan 27, 2025
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @ThoWagen!

@demiankatz demiankatz merged commit 1b3a9fd into vufind-org:dev Jan 27, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants