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

feat: bib -> acceptance, acceptance_rate, location, cve_score #2325

Merged

Conversation

CheariX
Copy link
Contributor

@CheariX CheariX commented Apr 7, 2024

I added further filds to bib.liquid.

A common field is location, which is now printed.

I added fields for acceptance and acceptance_rate. These fields might be usefull for external people to better determine a vanue's quality.
acceptance is used for the accepted vs submitted papers.
acceptance_rate is a percent-value.

Bildschirmfoto 2024-04-07 um 18 11 49

The existence of two distinct variables stems from the fact that the 'acceptance_rate' is represented using the venue color. On my website, I employ venue colors correlated with computer science conference rankings, which naturally leads to associating the acceptance rate with the same color scheme for coherence and better understanding.

Bildschirmfoto 2024-04-07 um 18 14 54

You can find more examples on my website.

Also, I added a CVE Score, which is mainly usefull for IT-Security researchers, see this example.


Let me know what you think about this proposal.

@george-gca
Copy link
Collaborator

This CVE Score is what is shown as CVSS: 4.4 (Medium). 2022? I believe maybe we could add a field for extra information, and render as markdown. What do you think? This way this would be more general for different kinds of scores. As for the other information, it is ok for me. What do you think @alshedivat?

@alshedivat
Copy link
Owner

alshedivat commented Apr 7, 2024

instead of creating all these new fields, I'm wondering if we could pass all these additional fields as a "dictionary" with extra information? something like this: additional_info={acceptance: "9/123", acceptance_rate: "7%", CVSS: "4.4 (Medium)"}. then we can make the template iterate over all key-value pairs and render them. I'm not sure if jekyll-scholar would natively support this though.

@george-gca
Copy link
Collaborator

I believe it does, and I agree with your idea. Can you implement it this way @CheariX?

@CheariX
Copy link
Contributor Author

CheariX commented Apr 8, 2024

I can have at look at this. My first thoughts are:

  1. Do these dictionaries work with Zotero? Currently, I use Zotero for enrching my bib files with such additional information. I could imagine that many other people do so as well, so I will have to find out how to put data there that betterbibtext exports the as a dictionary.
  2. I want to use colors from my _venues.yml. Using this dictionary approach, it would not be possible. All I could do is manually add them into my bibtex file.
  3. I'm not sure why we need a dictionary at all? The same behavior couldbe achived using a simple string additional_info that uses HTML to seperate different data. My main use case was to put such data at different positions in the bib.liquid

What do you think about:

a. We add a additional_info as a simple string so that most people can use it for multiple purposes.
b. We add some kind of inclusion hook:

  • We could include a specific file, such as bib.hook.liquid only if it exist.
  • This file wont be provided by the al-folio template so that people won't get into trouble when updating.
  • If the filebib.hook.liquid does not exist, this step is simply skipped
  • I'm not sure if it is possible to implement this, i.e. I don't know if a function checking the existance of a file exists in Jekyll.

@george-gca
Copy link
Collaborator

I implemented a plugin to allow checking if a file exists. You can see it being used here. But why would you implement a hook?

Actually when I thought about a dictionary, I thought about it like, iterate through all other key/value pairs and use them that way, this I believe it is possible. So in your case, instead of having additional_info={acceptance: "9/123", acceptance_rate: "7%", CVSS: "4.4 (Medium)"} you would have:

acceptance: "9/123"
acceptance_rate: "7%"
CVSS: "4.4 (Medium)"

as other key/value pairs in your bib entry, and these values would be retrieved in order and rendered just below the regular ones. Of course this way it wouldn't work for using the same color as the conference, but I believe the color part is some specific solution for your case, so maybe it is not fit for the template code.

Now, I agree that another good solution is to add additional_info as a field in the bib entry with support for markdown/html inside, and just render it with markdownify. Which solution do you think is best @alshedivat?

@CheariX
Copy link
Contributor Author

CheariX commented Apr 10, 2024

I experimented with various options and made several observations:

  1. Jekyll-Scholar interprets additional_info={acceptance: "9/123", acceptance_rate: "7%", CVSS: "4.4 (Medium)"} as a plain string, not JSON. Or perhaps I have made an error? In this case, we would need to implement additional steps to parse the key/value pairs.
  2. Even if the key/value pairs were accessible, there must be some "hardcoded" assumptions:
    • For example, what is the separator between the previous entry and the first additional_info entry (dot, comma)?
    • What character do we use to separate key and value? Maybe there are cases where people want something else?
    • If we want it more flexible, more complex code would be needed.
  3. Due to these reasons, I opted to treat additional_info as a string. Users can add data in any format they like, using markdown.
  4. For more sophisticated scenarios, I introduced a hook file. This file is only created if it exists. For instance, this file could be used to handle other BibTeX fields, such as acceptance_rate. Additionally, it allows the use of CSS styles, as shown in my example with the venue styles.
    • The primary advantage of this hook approach is that future updates of al-folio would not result in any merge conflicts, since this hook file does not exist in the template repository. Users must create them individually.

Example:

Bildschirmfoto 2024-04-10 um 22 36 58

I'd be happy to hear your feedback.

@alshedivat
Copy link
Owner

thanks for the discussion and updates. I support the overall approach of using markdownify instead of trying to parse a string into a key-value pairs and then custom-handle that.

@CheariX
Copy link
Contributor Author

CheariX commented Apr 13, 2024

I apprecieate that you like it, @alshedivat
So I assume that this is ready to go?

@alshedivat alshedivat merged commit 0f46f80 into alshedivat:master Apr 13, 2024
2 of 3 checks passed
@CheariX CheariX deleted the feat-bibfields_acceptance_location_cve branch April 13, 2024 16:02
BoAi01 pushed a commit to BoAi01/boai01.github.io that referenced this pull request May 7, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers. 
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
siril-teja pushed a commit to siril-teja/siril-teja.github.io-old that referenced this pull request Jun 19, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers. 
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
karapostK pushed a commit to karapostK/karapostK.github.io that referenced this pull request Jul 4, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers. 
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
Suraj-Bhor pushed a commit to Suraj-Bhor/suraj-bhor.github.io that referenced this pull request Aug 13, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers. 
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
meiqing-wang pushed a commit to meiqing-wang/meiqing-wang.github.io that referenced this pull request Oct 13, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers. 
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
avishekanand pushed a commit to avishekanand/al-folio-homepage that referenced this pull request Oct 22, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers. 
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
mattleblanc pushed a commit to mattleblanc/mattleblanc.github.io that referenced this pull request Dec 29, 2024
…ivat#2325)

I added further filds to `bib.liquid`.

A common field is `location`, which is now printed.

I added fields for `acceptance` and `acceptance_rate`. These fields
might be usefull for external people to better determine a vanue's
quality.
`acceptance` is used for the accepted vs submitted papers.
`acceptance_rate` is a percent-value.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 11 49"
src="https://github.com/alshedivat/al-folio/assets/1998723/d5eaeb08-7f67-4fb7-b9b9-fd5f4a3c331c">

The existence of two distinct variables stems from the fact that the
'acceptance_rate' is represented using the venue color. On my website, I
employ venue colors correlated with computer science conference
rankings, which naturally leads to associating the acceptance rate with
the same color scheme for coherence and better understanding.

<img width="785" alt="Bildschirmfoto 2024-04-07 um 18 14 54"
src="https://github.com/alshedivat/al-folio/assets/1998723/33ef0419-00ee-4fea-93d9-18c0269188de">

You can find more examples on my
[website](https://christianmainka.de/publications/peerreviewed).

Also, I added a CVE Score, which is mainly usefull for IT-Security
researchers, see this [example](https://christianmainka.de/cve/).

***

Let me know what you think about this proposal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants