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

Preview style change notification #4580

Closed
1 task done
alfureu opened this issue Jan 11, 2019 · 6 comments
Closed
1 task done

Preview style change notification #4580

alfureu opened this issue Jan 11, 2019 · 6 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs good first issue An issue intended for project-newcomers. Varies in difficulty. ui

Comments

@alfureu
Copy link

alfureu commented Jan 11, 2019

JabRef 5.0-dev--snapshot--2019-01-10--master--84573cc38
Windows 10 10.0 amd64
Java 1.8.0_172

Steps to reproduce the behavior:

  1. Open 2 bib files on separate tabs
  2. Switch from one tab to another
  3. On the bottom always a notification appears "Preview style changed to: Preview"

There should not be any such a notification all the time. This is not a type of notification we should be warned about every single occurrence.

A side note: did you consider to link the notifications in Windows/macOS to Notification panel/banners?

@tobiasdiez tobiasdiez added bug Confirmed bugs or reports that are very likely to be bugs ui good first issue An issue intended for project-newcomers. Varies in difficulty. labels Jan 11, 2019
@chel-seyy
Copy link
Contributor

Hi I'm interested to take up this issue. Would you like to remove the notification from the panel?
Can I also know what is a preview style?

@Siedlerchr
Copy link
Member

Hi thanks for your interest.
The preview style is the default style for the entry preview in the entry editor.
In the settings you can choose from a list of styles.
I would only print out that notification when the user cycles through the styles in the preview panel (there is a key binding) and if current style is not the same as the previous one

@alfureu
Copy link
Author

alfureu commented Jan 13, 2019

I agree with @Siedlerchr, many thanks for looking into this

@chel-seyy
Copy link
Contributor

chel-seyy commented Jan 13, 2019

Sorry I am still new to this software and need some help. I can't seem to add another entry preview style under the Preferences. There is no option for me to add another preview style. 2 errors have also occurred:

While loading a new bib file:

[JavaFX Application Thread] ERROR org.jabref.logic.citationstyle.CitationStyle - Could not find file: /ieee.csl

After clicking Preferences:

[JavaFX Application Thread] ERROR org.jabref.logic.citationstyle.CitationStyle - Can only load style files: Preview

I am using jdk1.8.0_192. What could be the issue causing this?
Many thanks.

@Siedlerchr
Copy link
Member

Siedlerchr commented Jan 13, 2019

@chelseyong No problem. If you have cloned the repository then you need to first execute
git submodule update --init because the CSL styles are integrated as a git submodule.

In the Entry Preview you can then cycle through the styles with F9.

Regarding the second message: That error message should be adapted and formulated much clearer. It is misleading now. Should be reworded in Can only load style files, but got the following file {}:
The error should come if it is not a csl style and not a preview.

You can ask any further question also at our gitter channel https://gitter.im/JabRef/jabref

    public static Optional<CitationStyle> createCitationStyleFromFile(final String styleFile) {
        if (!isCitationStyleFile(styleFile)) {
            LOGGER.error("Can only load style files: {}", styleFile);
            return Optional.empty();
        }

@Siedlerchr
Copy link
Member

Thanks to @chelseyong this issue should be fixed in the latest master

github-actions bot pushed a commit that referenced this issue Feb 26, 2020
f03dece Bump nokogiri from 1.10.7 to 1.10.8 (#4580)
31bacc1 JCL: Fix formatting & space before locator
adfc9b0 Add The Journal of Comparative Law (#4576)
599d39c Create uni-freiburg-geschichte.csl (#4561)
3ad8d40 Add Begell House styles (#4575)
223527b Create begell-apa.csl (#4574)
d73b9a9 Update journal-of-neolithic-archaeology.csl (#4572)
5b2810c Create anatomical-sciences-education.csl (#4573)
9454897 Update ASA style
b3c6efd Reorder/reindent (#4571)
aa52aaa Encrypt Travis CI notification email addresses (#4570)
d8f2843 Update ayer.csl (#4569)
448e67e Create ayer.csl (#4565)
bf1ddae Update springer-basic-author-date.csl (#4562)
db525ac Update american-journal-of-physical-anthropology.csl (#4567)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: f03dece
github-actions bot pushed a commit to systemoperator/jabref that referenced this issue Feb 26, 2020
f03dece Bump nokogiri from 1.10.7 to 1.10.8 (JabRef#4580)
31bacc1 JCL: Fix formatting & space before locator
adfc9b0 Add The Journal of Comparative Law (JabRef#4576)
599d39c Create uni-freiburg-geschichte.csl (JabRef#4561)
3ad8d40 Add Begell House styles (JabRef#4575)
223527b Create begell-apa.csl (JabRef#4574)
d73b9a9 Update journal-of-neolithic-archaeology.csl (JabRef#4572)
5b2810c Create anatomical-sciences-education.csl (JabRef#4573)
9454897 Update ASA style
b3c6efd Reorder/reindent (JabRef#4571)
aa52aaa Encrypt Travis CI notification email addresses (JabRef#4570)
d8f2843 Update ayer.csl (JabRef#4569)
448e67e Create ayer.csl (JabRef#4565)
bf1ddae Update springer-basic-author-date.csl (JabRef#4562)
db525ac Update american-journal-of-physical-anthropology.csl (JabRef#4567)
9e81857 Update marine-ornithology.csl (JabRef#4566)
938537e Update government-and-opposition.csl (JabRef#4564)
50d0635 Update annales-de-demographie-historique.csl (JabRef#4560)
42b54d9 Create marine-ornithology.csl (JabRef#4559)
eff41bb Create dermatology-online.csl (JabRef#4558)
3911696 Update journal-of-forensic-sciences.csl (JabRef#4554)
059ea33 Small capitals and categories (JabRef#4556)
97b8c84 Create CSL Styles: estudios_hispanicos.csl (JabRef#4557)
57e0f9d Update sciences-po-ecole-doctorale-note-french.csl (JabRef#4552)
f481ea3 Create ipb-ppki-3.csl (JabRef#4550)
899d302 Update journal-of-neolithic-archaeology.csl (JabRef#4553)
e106215 Create annales-de-demographie-historique.csl (JabRef#4512)
4dd974e Create lauterbornia.csl (JabRef#4525)
e5277ae Update sciences-po-ecole-doctorale-note-french.csl (JabRef#4551)
f9cfe40 Add new IOP dependents (JabRef#4549)
daff985 Create brazilian-journal-of-veterinary-research-and-animal-science.csl (JabRef#4544)
10c6fa8 Update ens-de-lyon-centre-d-ingenierie-documentaire.csl (JabRef#4545)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: f03dece
github-actions bot pushed a commit to calixtus/jabref that referenced this issue Feb 27, 2020
f03dece Bump nokogiri from 1.10.7 to 1.10.8 (JabRef#4580)
31bacc1 JCL: Fix formatting & space before locator
adfc9b0 Add The Journal of Comparative Law (JabRef#4576)
599d39c Create uni-freiburg-geschichte.csl (JabRef#4561)
3ad8d40 Add Begell House styles (JabRef#4575)
223527b Create begell-apa.csl (JabRef#4574)
d73b9a9 Update journal-of-neolithic-archaeology.csl (JabRef#4572)
5b2810c Create anatomical-sciences-education.csl (JabRef#4573)
9454897 Update ASA style
b3c6efd Reorder/reindent (JabRef#4571)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: f03dece
github-actions bot pushed a commit to CaptainDaVinci/jabref that referenced this issue Mar 1, 2020
566df87 Create archeologicke-rozhledy.csl (JabRef#4586)
4205586 Update mcgill-en.csl - include render-legislation macro (JabRef#4579)
7d857f1 Create journal-of-plankton-research.csl (JabRef#4581)
05c8aca Update mercator-institut-fur-sprachforderung-und-deutsch-als-zweitsprache.csl (JabRef#4582)
564dc5f Update vodohospodarske-technicko-ekonomicke-informace.csl (JabRef#4584)
f03dece Bump nokogiri from 1.10.7 to 1.10.8 (JabRef#4580)
31bacc1 JCL: Fix formatting & space before locator
adfc9b0 Add The Journal of Comparative Law (JabRef#4576)
599d39c Create uni-freiburg-geschichte.csl (JabRef#4561)
3ad8d40 Add Begell House styles (JabRef#4575)
223527b Create begell-apa.csl (JabRef#4574)
d73b9a9 Update journal-of-neolithic-archaeology.csl (JabRef#4572)
5b2810c Create anatomical-sciences-education.csl (JabRef#4573)
9454897 Update ASA style
b3c6efd Reorder/reindent (JabRef#4571)
aa52aaa Encrypt Travis CI notification email addresses (JabRef#4570)
d8f2843 Update ayer.csl (JabRef#4569)
448e67e Create ayer.csl (JabRef#4565)
bf1ddae Update springer-basic-author-date.csl (JabRef#4562)
db525ac Update american-journal-of-physical-anthropology.csl (JabRef#4567)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: 566df87
github-actions bot pushed a commit to NikodemKch/jabref-1 that referenced this issue Mar 1, 2020
566df87 Create archeologicke-rozhledy.csl (JabRef#4586)
4205586 Update mcgill-en.csl - include render-legislation macro (JabRef#4579)
7d857f1 Create journal-of-plankton-research.csl (JabRef#4581)
05c8aca Update mercator-institut-fur-sprachforderung-und-deutsch-als-zweitsprache.csl (JabRef#4582)
564dc5f Update vodohospodarske-technicko-ekonomicke-informace.csl (JabRef#4584)
f03dece Bump nokogiri from 1.10.7 to 1.10.8 (JabRef#4580)
31bacc1 JCL: Fix formatting & space before locator
adfc9b0 Add The Journal of Comparative Law (JabRef#4576)
599d39c Create uni-freiburg-geschichte.csl (JabRef#4561)
3ad8d40 Add Begell House styles (JabRef#4575)
223527b Create begell-apa.csl (JabRef#4574)
d73b9a9 Update journal-of-neolithic-archaeology.csl (JabRef#4572)
5b2810c Create anatomical-sciences-education.csl (JabRef#4573)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: 566df87
github-actions bot pushed a commit to abepolk/jabref that referenced this issue Mar 1, 2020
566df87 Create archeologicke-rozhledy.csl (JabRef#4586)
4205586 Update mcgill-en.csl - include render-legislation macro (JabRef#4579)
7d857f1 Create journal-of-plankton-research.csl (JabRef#4581)
05c8aca Update mercator-institut-fur-sprachforderung-und-deutsch-als-zweitsprache.csl (JabRef#4582)
564dc5f Update vodohospodarske-technicko-ekonomicke-informace.csl (JabRef#4584)
f03dece Bump nokogiri from 1.10.7 to 1.10.8 (JabRef#4580)
31bacc1 JCL: Fix formatting & space before locator
adfc9b0 Add The Journal of Comparative Law (JabRef#4576)
599d39c Create uni-freiburg-geschichte.csl (JabRef#4561)
3ad8d40 Add Begell House styles (JabRef#4575)
223527b Create begell-apa.csl (JabRef#4574)
d73b9a9 Update journal-of-neolithic-archaeology.csl (JabRef#4572)
5b2810c Create anatomical-sciences-education.csl (JabRef#4573)

git-subtree-dir: src/main/resources/csl-styles
git-subtree-split: 566df87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs good first issue An issue intended for project-newcomers. Varies in difficulty. ui
Projects
Archived in project
Development

No branches or pull requests

4 participants