-
Notifications
You must be signed in to change notification settings - Fork 281
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
Export citation popup #1375
Export citation popup #1375
Conversation
Build successful. You can preview it here: https://preview.aclanthology.org/export-citation-popup |
This is fantastic. Comments:
|
|
Very excited about this change. |
A further thought: on (3), I like the idea of the inline "Short citation" text, maybe with its own "copy to clipboard" button. We only need to list it once, as rich text; the user can then use system options to paste as rich text or plain text ("paste and match style" on a mac). |
I'll add, that if the feedback complicates this PR, such that it gets stalled, let's just postpone them. This is a fantastic improvement and I'd love to see it get pushed out this week! |
Give me a day though to at least add some kind of plain text citation ;) |
Looks good, I just would switch markdown and bibtex, as bibtex is probably the dominant export format. |
Increasingly picky comments that can be ignored.
|
tl;dr: Adding preformatted citations is not free of problems. Do you feel it's worth it to proceed with this? I've tweaked this a bit more so you can see what the code looks like & what this produces, currently only in the "Cite" popup, for example: Some observations:
I'd love to hear your thoughts on whether it's worth it to proceed with this. I could also move the more controversial/diificult changes to a separate PR, so we could proceed with merging the new citation popup already. |
Seems to me like having multiple citation styles (MLA, Chicago, APA) is overkill—I don't expect the Anthology gets a ton of users who would use that (though who knows, I could be wrong). The plain text ACL seems like a nice-to-have for putting together informal bibliographies (say, in a blog post or course document) that are not in LaTeX. A warning message (beta feature—may contain errors) could excuse having occasional errors in these. |
Have you tried the CSL fix I suggested above? |
I would propose we table the plaintext references for now and merge the easy (i.e. sone) parts. Maybe we can find js bibtex renderer at some point in time and can mitigate the whole up-front generation. |
I like having an RTF citations, but agree we don't need all of them. I don't share David's concern about the text format, but would rather have consensus here before moving forward on this. Moreover, I'm working about increasing the instantiation time, since it really make debugging a pain. Perhaps we should fix #835 first. So how about we factor the controversial stuff into another draft PR, and at least get the new popups live? |
I agree that plain-text/rich-text ACL-style format would be the nicest. If that's all we need, maybe we can also build our own formatter for that in pure Python, to reduce overhead. Yes, but tangential to this, as the CSL style files won't use them for anything.
Not yet! We should, but only if we go forward with having citeproc-py in the pipeline.
Instantiation time shouldn't be increased anymore with the latest commit here; overall build time is. |
➡️ Split off into #1390 |
Oh, I thought we'd at least be keeping Markdown in this PR. Any objections to that? My fear is that #1390 is going to get stalled... I'll lave the squash-merge to you, Marcel! |
But isn't that exactly what David and others were concerned about? |
I thought David's concern stemmed from having a plain text "Short citation" format, inline on the main page. The Markdown format seems different to me (though maybe it's not in his mind). |
It's exactly the same format, though? The "short citation" was just the rendered Markdown string. Of course it's less prominent if it only appears in the popup, and I could also include a footnote there that it's not an official citation format... I dunno, I'll go with whatever you (plural) feel is fine and not too problematic. |
The risk of cutting-and-pasting seems even lower to me (less visible, requires adjusting), but probably we should leave things as they are. |
Maybe the Bootstrap version we use doesn't style |
Yup, after a refresh that looks great. |
Same here. |
Beautiful! Announce the new feature on Twitter? |
Looks great. Tangential question: What does the Search button do? Just searches on the title? |
This implements a feature discussed in #412 and supersedes #1095.(this now does none of these things)This implements a new citation popup modal, making the interface nicer and giving us more options for hopefully providing more citation options soon (re #412).
Feedback welcome!