-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DS-4135 prevent escaping for citation_ tags #2317
DS-4135 prevent escaping for citation_ tags #2317
Conversation
@bram-atmire : This looks like a good start, though I see the changes are only being applied to Mirage 2 XMLUI theme. I'm assuming we'd need similar/identical changes to Mirage 1? Also, have we verified this does NOT occur in the JSPUI? |
Hi @tdonohue - apologies for not catching your comments sooner.
|
Just added the fix in for Mirage 1. |
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.
👍 Code looks good to me. I haven't tested it though, so it may be good to do a quick sanity check test prior to merging.
Tested and confirmed working on 6.4-SNAPSHOT with an item using non-ASCII Vietnamese text. Before:
After:
|
I think it need some changes. The quote character ("), and others characters, should be escaped. Testing it with the title:
Shows an incorrect output:
|
@toniprieto perhaps we should recommend merging this, as it fixes the citation tags in some corner cases (ie Vietnamese text), and then open a new Jira issue for the incorrect quoting? At this rate I think we need to prioritize getting as many fixes into DSpace 6.4 as possible so we can release it ASAP. What do you think, @J4bbi? The amount of energy going into preparing DSpace 7 is really killing the DSpace 6.x effort—to say nothing of DSpace 5.x—for several years now! |
@alanorth , I think you are right, filing a separate issue seems like a good solution considering, ideally we would want to get 6.4 out this year @kshepherd , what do you think? I've not tested |
@J4bbi I just verified that the quotation bug is present in vanilla DSpace 6.3, so we should definitely merge this and open a new issue for that. This pull request correctly fixes non-ASCII text in the citation tags. |
@alanorth , thanks I'll merge this, would you mind opening an issue for the quotation bug? |
Thanks. No problem, I've opened DS-4585: Incorrect escaping of citation_ meta tags when metadata contains quote characters. BTW how do I get edit permissions on Jira? The formatting is messed up in my bug and I can't edit it. |
thanks
@alanorth, I think when you're logged in there should be an edit button => https://jira.lyrasis.org/secure/EditIssue!default.jspa?id=38071 |
I don't see a link. But when I use your link it says:
|
@bram-atmire, thanks for this PR |
https://jira.duraspace.org/browse/DS-4135