Coder Social home page Coder Social logo

Comments (7)

LenkaBuebnkova avatar LenkaBuebnkova commented on May 20, 2024 1

Hi, I would like to try to solve this issue, if it's possible :)

from jabref.

ryan-carpenter avatar ryan-carpenter commented on May 20, 2024 1

The BibTeX source shows relevance = {relevant} for true or no data for false

from jabref.

koppor avatar koppor commented on May 20, 2024 1

I can reproduce.

The issue is that we treat toggle fields differently than fields with more than one value.

grafik

Long ago, we decided that it has to be possible to quickly change the state. We did not want to distinguish between undefined, true, and false. We decided to have following to cases:

relevance = {relevant} if entry is relevant

@Article{,
  priority   = {prio1},
  readstatus = {read},
  relevance  = {relevant},
}

and relevance not existing if not relevant

@Article{,
  priority   = {prio1},
  readstatus = {read},
}

We are aware that this cases huge diffs if changing that state, but we accept it in favor of a smaller BibTeX file.


One sees that we use the same color for "relevant" and for "toggle relevance" (on hover). This is not an issue for the read status, because we use colors if set.

There is not a consistency between the contents for the star-ratings (1 to 5 stars if set - all unset stars are gray) and the hover for the other fields.

We do not want to do a deep change to relevance (e.g., introducing slightly relevant, relevant, highly relevant), but keep as is.

We do following:

  • Show relevance star only when relevance = true (already implemented)
  • Use a different indicator on hover when relevance = false --> we will use a different color (consistent with the stars)

Fix: Color the icons to the colors of the five gray stars (instead of the black). Hoping that the user can distinguish gray from black.

from jabref.

github-actions avatar github-actions commented on May 20, 2024

As a general advice for newcomers: check out Contributing for a start. Also, guidelines for setting up a local workspace is worth having a look at.

Feel free to ask here at GitHub, if you have any issue related questions. If you have questions about how to setup your workspace use JabRef's Gitter chat. Try to open a (draft) pull-request early on, so that people can see you are working on the issue and so that they can see the direction the pull request is heading towards. This way, you will likely receive valuable feedback.

from jabref.

ThiloteE avatar ThiloteE commented on May 20, 2024

Thanks, @LenkaBuebnkova
To test your changes, you can go to File > Preferences > Entry table > ... and add Relevance (Special) to the table.
image
image

from jabref.

LenkaBuebnkova avatar LenkaBuebnkova commented on May 20, 2024

Hello, I'd appreciate a more comprehensive explanation. While I grasp the general idea, I'm struggling to pinpoint the specific section of the code responsible for setting the 'RELEVANCE' value. Could you kindly assist me in locating this information?

from jabref.

koppor avatar koppor commented on May 20, 2024

@LenkaBuebnkova I think, maybe the code is somewhere in org.jabref.gui.maintable.columns.SpecialFieldColum. I currently do not see where the actual data is filled. You need to read the code.

Note that you can search for an arbitrary string in the code using Ctrl+Shift+F. Maybe that helps to locate some code.

from jabref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.