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

DOI field improvements #1072

Merged
merged 10 commits into from
Apr 5, 2016
Merged

DOI field improvements #1072

merged 10 commits into from
Apr 5, 2016

Conversation

stefan-kolb
Copy link
Member

Major changes of this PR

  • Removed unused BROWSE action
  • Remove double click action for URL and DOI fields
  • Add open and fetch from buttons for URL and DOI
  • Only activate button if field includes valid DOI/URL

New Look

image

@stefan-kolb stefan-kolb added the ui label Mar 31, 2016
@oscargus
Copy link
Contributor

I use doubleclick and think it is a quite neat feature. Especially when only a single field is available.

@oscargus
Copy link
Contributor

Regarding browse I believe it can be useful in combination with filespecific fields (which we currently try to avoid, so I'm fine with the removal).

@stefan-kolb
Copy link
Member Author

Double-click might be a neat feature, but is neither intuitive from a UI usage perspective nor shown anywhere. So it is just a feature that can be used by insiders which is really not what I think is our intention.

@oscargus
Copy link
Contributor

Maybe. What about a tool tip text then? I would expect requests to get it back if we remove it.

@stefan-kolb
Copy link
Member Author

Intuitive to me would be 2 options:

  • Adding a open button to the right (ugly)
  • Highlighting the text so that one can see it is clickable (problems when one wants to only edit it)

@Siedlerchr
Copy link
Member

I use that doubleclick feature, too. It is natural to expect Jabref to open the link etc then.
I agree with @oscargus, to me a tooltip à la "Double click to open URL/DOI" would be an easy solution

@oscargus
Copy link
Contributor

oscargus commented Mar 31, 2016 via email

@stefan-kolb
Copy link
Member Author

It is natural to expect Jabref to open the link etc then.

To be honest I've never experienced that double clicking a text input field opens a link or does anything with the text except marking it.

@Siedlerchr
Copy link
Member

@stefan-kolb I thought you meant the Entry Table DOI Field

@stefan-kolb
Copy link
Member Author

I mean this DOI field:
image

@tobiasdiez
Copy link
Member

I would propose to add an inline-button, in the textbox, similar to something like the clear symbol here

which appears on mouse-over and opens the url. Not sure if this can be done with Swing or should wait until JavaFX. Until then an ugly Open button might be an interim solution.

@matthiasgeiger
Copy link
Member

@tobiasdiez We have already discussed with the "clear search" button. Unfortunately, this is no built in function of Swing and requires some quick ugly hacks to implement. But I agree, in general that would be the nicest solution.
However, for the moment I would add an "open" button - especially as @stefan-kolb will already add another button for the "fetch from DOI" logic.

@stefan-kolb stefan-kolb added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Apr 4, 2016
@stefan-kolb stefan-kolb added this to the v3.3 milestone Apr 4, 2016
@stefan-kolb
Copy link
Member Author

Ok, this is ready for your comments!

@@ -171,14 +171,6 @@ public RightClickMenu(JabRefFrame frame, BasePanel panel) {
}
});

add(new GeneralAction(Actions.MERGE_DOI, Localization.lang("Get BibTeX data from DOI")) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I so prefer it to stay here (as well). This has been one of my most used features recently.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next step would be to add #1098, so I prefer not to add it back in this context menu.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, maybe rename it differently using "autocomplete with BibTeX data from DOI"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really seeing the problem. A button somewhere else won't help the (superior) habit of right-clicking on an entry and selecting in a menu compared to double-clicking to open the editor, change to the right tab and clicking a button. Marking, click on another button is slightly better, but I still do not see what the problem with the right-click menu staying is. "New from DOI" is not going to end up in the right-click menu?

I thought the purpose of #1098 was to add e new entry (which IMHO would be better splitting web search and "add/fetch") so I do not see marking and clicking that button as a replacement.

The context here is that one do get slightly different information when searching and when adding information from DOI, so I usually do both at once. Not to mention improving all my old bib-files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries. :) Action in right click menu stayed in there. 🏆

The right click menu now only contains actions related to selected entries in the table. Hence, the "new from doi" was moved to the menu.

@oscargus
Copy link
Contributor

oscargus commented Apr 5, 2016

Looks good to me! I'd really like to keep the right-click menu though.

With this PR the use of the entry editor has slightly changed from editing to actually using the information (although it was hidden there earlier through double-click). Not sure if it is worth thinking about what we really want the entry editor for.

@simonharrer
Copy link
Contributor

👍 LGTM

@simonharrer simonharrer merged commit 29f470f into master Apr 5, 2016
@simonharrer simonharrer deleted the doi-field branch April 5, 2016 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants