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
EPF: Add holdings list to record view #2975
Conversation
@demiankatz This is for discussion purpose only (when you're back from the holiday break). I've implemented the list of holdings two ways, and I'm not sure either is good.
I'm leaning to options 1 or 3 but wanted your input or another idea altogether. Option 3 seems semantically closest to other record types. Option 1 is appealing only because these links are arguably the thing patrons will be interested in 99% of the time they click onto the record view, so why relegate to a tab. What do you think? |
Thanks, @maccabeelevine. I agree that option 2 is the least desirable. I would be happy to use option 1 as the path of least resistance. If you prefer option 3, though, it may be possible to implement the |
@demiankatz Ok, I'm still conflicted on this as well, but I agree that Option 1 is at least a good starting point and a big improvement over what exists now. Can consider Option 3 as a later improvement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question...
foreach($holdings as $holding): | ||
if (!empty($holding)): ?> | ||
<li> | ||
<a href="<?=$holding['URL']?>"><?=$holding['Name']?></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these values need to be escaped? I notice they're also not escaped in full-text-links.phtml, which may be something I overlooked in the original review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely. Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks, @maccabeelevine!
Also escape text within full-text-links on the results page.
Following up on #2973 and specifically this comment.
Provide a core.phtml for EPF instead of relying on the parent record driver (EDS)'s template.