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

Display data license #745

Merged
merged 20 commits into from
Dec 20, 2023
Merged

Display data license #745

merged 20 commits into from
Dec 20, 2023

Conversation

ItIsJordan
Copy link
Collaborator

Closes #740, closes #744. Updates record page to show licence information in the table section. Also displays record licence information on the additional resources widget and resource landing page. Adds a button link to the landing page to the additional resources widget.

ItIsJordan and others added 19 commits December 11, 2023 18:20
Adds the data licence information to the get_details function and process_resource functions in records/views.py to allow for passing of licence data.
Updates the table section in the records page, and the additional resources widget on the same page to display licence information for the current resource/table.
Update test_upload_max_size to use a regex to avoid breaking should TestHEPSubmission.zip change size.
Adds data licence information to the resource landing page display
* ctx.record.title is not defined for a Sandbox record.
Adds the text "Licence: " to the record page display for a table.
Fixes a bug where records page licence text wasn't clearing. This caused table refreshes to append an extra url to the element instead of clearing and appending.
Adds the text "Licence: " to the resource landing page data licence section.
Updates table render code to append licence url to use updated class names
Adds the a button to the landing_page version of a resource to the resource widget code and header text. Also adds css.
Fixes a test (test_home) broken by licence data changes.
Updates the resource widget download button text to be more accurate.
Fixes missing indentation in resource_details.html
Updates the resource record test in test_records.py to include a check for the licence
Fixes landing button text
Updates record page resource widget licence url text to be a lighter colour (lightblue)
* Set file_contents to the URL (instead of '') in the JSON metadata.
* Redirect to the URL if the resource is viewed with "view=true".
@coveralls
Copy link

coveralls commented Dec 20, 2023

Coverage Status

coverage: 83.262% (-0.02%) from 83.284%
when pulling 122be77 on display-data-license
into 19cd1c4 on main.

@GraemeWatt GraemeWatt merged commit 87bc1ce into main Dec 20, 2023
9 checks passed
@GraemeWatt GraemeWatt deleted the display-data-license branch December 20, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

records: add link to landing page for local resource files records: display license information if specified
3 participants