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

Don't report journal name as abbreviated when full name = abbreviated name #4116

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

tobiasdiez
Copy link
Member

Fixes #4115.


  • Change in CHANGELOG.md described
  • Tests created for changes
  • Manually tested changed features in running JabRef
  • Screenshots added in PR description (for bigger UI changes)
  • Ensured that the git commit message is a good one
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)

@tobiasdiez tobiasdiez added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jun 7, 2018
Copy link
Member

@stefan-kolb stefan-kolb left a comment

Choose a reason for hiding this comment

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

I was thinking about this yesterday, too.
Your solution is fine, although it changes the logic of the abbreviation repository in a way that in not 100% intuitive.
What do you think about handling those false positives in the checker instead, so the repository logic stays pure, i.e.:
In the checker,

  • check if abbreviation is found
  • if abbreviation == long form no warning
  • else warning

@tobiasdiez
Copy link
Member Author

Thanks for the feedback. Your solution was my initial idea but then went on to modify the JournalRepository because other (potential) callers of the repository also profit from the change. I wouldn't consider "Bioinformatics" abbreviated when it's also the full journal name (which is of course a question of definition).

In the end it's almost a question of taste and I'm also fine changing it to your solution (if you think the additional work is worth it ;-) ).

@stefan-kolb
Copy link
Member

stefan-kolb commented Jun 13, 2018

That was exactly my thought too (that Bioinformatics is no abbreviation of bioinformatics), but then we should rather cleanup the list than the code?! But then I thought, ok they want to have this journal in there...

@tobiasdiez tobiasdiez merged commit be1117a into master Jun 13, 2018
@tobiasdiez tobiasdiez deleted the fix4115 branch June 13, 2018 16:06
Siedlerchr added a commit that referenced this pull request Jun 15, 2018
* upstream/master: (22 commits)
  fix failing architecture test by making test class public again migrate architecture test to junit jupiter
  Fix build... (#4128)
  fix checkstyle after merge
  Migrate Review field in entry preview to comment (#4100)
  [WIP] Split push to applications in logic and gui (#4110)
  Fix checkstyle
  Fix #4115: Don't report journal name as abbreviated when full name = abbreviated name (#4116)
  Use <kbd>in changelog
  Groups right click (#4061)
  Fix open thread prevents shutdown (#4111)
  Extract v4.x changelog (#4125)
  Saves and reloads window state on close and on open (#4124)
  Fix convert to bibtex moves contents of the file field (#4123)
  Opens the directory of the currently edited file when opening a new file (#4106)
  Don't run on Swing thread
  Properly shutdown telemetry client
  Code cleanup
  Remove Swing stuff (L&F, font customization)
  Properly shutdown JabRef (not with System.exit)
  Replace swing clipboard with JavaFX one
  ...

# Conflicts:
#	src/main/java/org/jabref/gui/BasePanel.java
#	src/main/java/org/jabref/gui/JabRefFrame.java
#	src/main/java/org/jabref/gui/maintable/MainTable.java
#	src/main/java/org/jabref/gui/search/SearchResultFrame.java
#	src/main/java/org/jabref/preferences/JabRefPreferences.java
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants