-
Notifications
You must be signed in to change notification settings - Fork 5
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
[WIP] add externalFile support to Contents section #516
Conversation
Sigh... so your work looks great here. The sigh is for the view stuff already in there. A few thoughts on how to approach.
This is a tough one, not sure what the best way moving forward is on all of this or how much we can actually get done. |
Because there's so much refactoring to be done, perhaps we should open a new technical debt issue for it? This PR just does some cleanup, no refactoring. |
I'm 👌 with that. |
ok i created #536 |
@mejackreed is there anything else I should address in this PR? |
can_manage, can_view, etc. really aren't defined anywhere else in the application? I swear I've seen the same logic before. Helper would be reasonable. Side note: I prefer the long-line version of those assignments instead of the ugly paragraphs. |
This PR will have conflicts with the APO PR because of the user permission calls like Blocks #532 |
ok, i marked this WIP until #532 clears |
I will resubmit this later... |
This PR fixes #485. It adds External File information into the Contents section of the catalog show page. The
_default_contents.html.erb
has ZERO tests, and all the data parsing, etc. is done in the view that is far from DRY. I did a major overhaul of the code formatting for the view to make it more readable hopefully. The only real part I added was the support for theexternalFile
elements. To test it, you need to create a contentMetadata datastream that has data as described in #485. If the manual testing is not acceptable, then I'd prefer to refactor how the view works (recommendations?). I also made some minor adjustments to the CSS styling.Here's what the new display looks like: