Skip to content

EntryTypeDialog Fetching Autogenerates BibTeX Key#2709

Merged
tobiasdiez merged 3 commits into
masterfrom
fetchers-autogenerate-key
Apr 4, 2017
Merged

EntryTypeDialog Fetching Autogenerates BibTeX Key#2709
tobiasdiez merged 3 commits into
masterfrom
fetchers-autogenerate-key

Conversation

@LinusDietz

Copy link
Copy Markdown
Member

This is aimed to resolve #2687.
I struggled a bit to decide where to add the generation of keys, as they depend on the database. Finally, I have added it directly in the EntryTypeDialog, as I felt that BasePanel.insertEntry() (line 1180) would have too many side-effects for manual inserting.
An alternative would be to write two insertEntry() methods in the BasePanel, one for normal inserts, and one with regeneration of keys.

Also I have deleted the IdBasedEntryFetcher.java, as it was not used anymore anywhere.

  • Change in CHANGELOG.md described
    - [ ] Tests created for changes
    - [ ] Screenshots added (for bigger UI changes)
  • Manually tested changed features in running JabRef
  • Check documentation status (Issue created for outdated help page at help.jabref.org?)
    - [ ] If you changed the localization: Did you run gradle localizationUpdate?

@LinusDietz LinusDietz added component: fetcher status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers labels Apr 4, 2017

@tobiasdiez tobiasdiez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

At some point we should think about a layer between the GUI and fetcher, which handles these kinds of post-processing. For the moment the change is good enough in my opinion.

@tobiasdiez tobiasdiez merged commit 2b1b810 into master Apr 4, 2017
@tobiasdiez tobiasdiez deleted the fetchers-autogenerate-key branch April 4, 2017 10:55
Siedlerchr added a commit that referenced this pull request Apr 5, 2017
* upstream/master:
  fix ID consideration in DuplicateCheck
  Add ArXiv identifier batch lookup (#2710)
  Update mockito from 2.7.19 to 2.7.21
  More defensive identifier list #2708
  Revert "Add more identifier field names #2708"
  Add more identifier field names #2708
  Consider entries as equal if their DOI matches #2708
  Imports
  Imports
  Move duplicate detection to logic
  Reuse edit distance class
  Refactoring
  EntryTypeDialog Fetching Autogenerates BibTeX Key (#2709)
  Add changelog entry
  Increase permitted size of StringUtil
  Make sure that JavaFx shuts down in case another JabRef instance is already open
Siedlerchr added a commit that referenced this pull request Apr 6, 2017
* upstream/master: (35 commits)
  Update antlr from 4.6 to 4.7
  Fix build
  fix ID consideration in DuplicateCheck
  Add ArXiv identifier batch lookup (#2710)
  Update mockito from 2.7.19 to 2.7.21
  More defensive identifier list #2708
  Revert "Add more identifier field names #2708"
  Add more identifier field names #2708
  Consider entries as equal if their DOI matches #2708
  Imports
  Imports
  Move duplicate detection to logic
  Reuse edit distance class
  Refactoring
  EntryTypeDialog Fetching Autogenerates BibTeX Key (#2709)
  Add changelog entry
  Increase permitted size of StringUtil
  Make sure that JavaFx shuts down in case another JabRef instance is already open
  Remove obsolete localization strings
  Hide context menu before group edit/add (probably a JavaFX vs Swing problem)
  ...

# Conflicts:
#	src/main/java/org/jabref/gui/groups/GroupTreeController.java
#	src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: fetcher 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.

The generated BibTeX keys of two different imported entries are not unique?!!

2 participants