- Issue created by @tklawsuc
- π¬π§United Kingdom scott_euser
Thanks for raising the issue - could you provide a screenshot or list of the options you have enabled in the text format?
- π¬π§United Kingdom scott_euser
Thinking about this a bit more, I'm not sure if we should prevent this when manually adding eg "1" twice. What I think we could do though is prevent automated numbering from using a number that is manually added.
- π¨π¦Canada tklawsuc
Are you referring to the filters? I made sure that footnotes is at the top of the list. I also tried this with just the footnotes filter enabled and get the same.
My thought with the options is to allow the user to determine how to handle duplicate values. This would also apply to conflict with manual value and automated numbering. Maybe to keep things simple, you remove that feature all together and treat each entry as it's own in an indexed array and any duplicates will be on the user to resolve. This would be similar to the "do nothing" option I proposed above. - Merge request !43Footnotes with same values are not displayed properly β (Merged) created by scott_euser
- Status changed to Needs review
12 months ago 8:14pm 12 April 2024 - π¬π§United Kingdom scott_euser
Aha, I see; actually because of how the backlinks are already set up, the smallest change is your 'letter' option like attached
- 1st two footnotes have the same text so are combined
- 1 regular footnote
- 1 footnote numbered 5 with text "Footnote text 5 one"
- 1 footnote numbered 5 with text "Footnote text 5 two"
- π¬π§United Kingdom scott_euser
What do you think? Next step to add tests if you think this solves the problem well enough.
- π¨π¦Canada tklawsuc
I think you are on the right track. Here is my perspective on the duplicate text/values. Let's say you use the auto numbering and add the same footnotes in different places. The link in the body will be "1" for each footnote. But the summary has 1a1b which to me is confusing. I would just expect to have "1" in the summary since the body has "1" for each instance. Similarly for the different content (your example with 5a and 5b), I would add the letter to the body so you can visually see 5a and 5b without having to figure out if the #5 you are looking at in the content area is the a or b reference.
On another note, I also noticed you can't user some punctuations (*, !, #, ^) for the value field which is not clear. You can see it in the editor but when you view the page it reverts to auto-numbering. So the user won't know until they view the content and check for the footnotes. Probably not a deal breaker but there should be something to warn the user. You can however use html entities like β and β‘
- π¬π§United Kingdom scott_euser
It think starting to modify the body is going to add a lot of complexity I'd rather not do, particularly since this is somewhat edge case already. I would be willing to entertain it if someone else is willing to code it with appropriate test coverage.
What can go into the value manually sounds like you're raising a seperate issue. Do feel free to do so, perhaps you can open a merge request with a suggested change to the field description in the config install folder of the module.
- π¨π¦Canada tklawsuc
Makes sense to me. I like the change you made for the 5a and 5b option to at least show the footnotes where values get duplicated. I would still ask you consider my suggestion about not adding letters for cases where the footnotes are the same and just show the number. Thanks for entertaining my ideas.
- Status changed to Needs work
12 months ago 9:57pm 12 April 2024 - π¬π§United Kingdom scott_euser
So leaving the citations untouched and removing the a and b after my 5s from the references section? Yeah I think that should be pretty straightforward.
- π¨π¦Canada tklawsuc
My thoughts are:
- remove a/b where the footnote value and text are the same...like the 1a1b example. So I would just show "1" since the two annotations are referencing the same footnote (1).
- do the separation you started here where values are the same (e.g. the 5 in your sample) but the text is different. Although it might not be ideal where the numbers are both "5" in the body and 5a and 5b in summary, it will at least show the footnote and the user can then device to change the values if applicable. - π¬π§United Kingdom scott_euser
- remove a/b where the footnote value and text are the same...like the 1a1b example. So I would just show "1" since the two annotations are referencing the same footnote (1).
Oh sorry I wasn't really asking about that one, I had just left that in my screenshot - that was the accepted practice our publications team recommended and they do publications for a lot of research organisations. It's theme-able if you want to override that for your own use case. Feel free to raise it as a separate issue in case the wider community wants to debate it, as reference styles like AMA etc don't cover digital so they have the concept of citations and references but do not have backlinks, so there are only opinions on backlinks.
- do the separation you started here where values are the same (e.g. the 5 in your sample) but the text is different. Although it might not be ideal where the numbers are both "5" in the body and 5a and 5b in summary, it will at least show the footnote and the user can then decide to change the values if applicable.
Yes this is in the MR already, just removing a and b from after the 5 will add to the code. This is also not covered by AMA etc as its really a content entry error - editors should either do all manual or all automated. If they choose to mix they do so at own risk. This issue at least helps mitigate one case.
-
scott_euser β
committed 6435bed2 on 4.0.x
Issue #3440532 by scott_euser, tklawsuc: Footnotes with same values are...
-
scott_euser β
committed 6435bed2 on 4.0.x
- Status changed to Fixed
12 months ago 6:02am 13 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.