-
Notifications
You must be signed in to change notification settings - Fork 150
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
records/macros/detail.html: Allow funding entry with award number only #2912
base: master
Are you sure you want to change the base?
records/macros/detail.html: Allow funding entry with award number only #2912
Conversation
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.
I'd lean toward putting the title first and simplifying the template.
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html
Show resolved
Hide resolved
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html
Outdated
Show resolved
Hide resolved
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html
Show resolved
Hide resolved
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html
Outdated
Show resolved
Hide resolved
Hi @tmorrell , is this the way you were thinking? |
Could you add one or two screenshots? |
Perhaps the wrong place here (surely the wrong place here!) but it's just a thought: did someone bother to look if the change has implications on OAI-PMH output? If the transformers rely on number AND title instead of number OR title?! |
@wgresshoff Funding isn't serialized in the default dc oai output. The DataCite output should be alright assuming I understand how |
</span> | ||
{%- endif -%} | ||
{%- if item.award.number -%} | ||
<span class="ui mini basic ml-0 label {% if item.award.title_l10n %}mr-5{% endif %}" id="number-label-{{ index }}"> |
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.
<span class="ui mini basic ml-0 label {% if item.award.title_l10n %}mr-5{% endif %}" id="number-label-{{ index }}"> | |
<span class="ui mini basic label {% if not item.award.title_l10n %}ml-0{% endif %}" id="number-label-{{ index }}"> |
The serialized formats are fine. Since inveniosoftware/invenio-vocabularies#429 has been released it would be great to get this change merged so the award number shows up consistently. There seems to be a bit of a spacing issue around the award number: I've just made a suggestion that re-works the spacing. I think we should merge after that change is added, unless folks want to do more re-designing. |
Sorry Tom that I missed that... Looks nice this way, I'd opt for merging this. |
Could you make the change #2912 (comment) in your fork? Then I should be able to merge it. |
❤️ Thank you for your contribution!
Description
In order to display funding entries with only an award number after inveniosoftware/invenio-vocabularies#429 has been merged this PR changes the display logic.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: