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

Change how publications associate with a project #484

Open
keelinm opened this issue Oct 24, 2022 · 1 comment
Open

Change how publications associate with a project #484

keelinm opened this issue Oct 24, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request Priority: Medium Medium priority issue

Comments

@keelinm
Copy link
Collaborator

keelinm commented Oct 24, 2022

Currently when a project page is created, the publications (bibkeys) associated with that project must be added to that project page, and members have to remember whenever they have a new publication to (not only add it to diag.bib, but) separately add it to the project page. Ideally the project should have a project-tag which could be mentioned in the diag.bib entry. The publications list for the project would then update automatically when the diag.bib had a related publication added.

One issue is that retrospective fixes would be needed. I think there are 2 ways to handle this:

  1. We allow projects/publications to be connected both the old way and the new way (so a bibkey in the project page, or a project-tag in the diag.bib)
  2. We make a script to go over the project pages and add the bibkeys mentioned in them into the related diag.bib entries
@keelinm keelinm added the enhancement New feature or request label Oct 24, 2022
@keelinm keelinm self-assigned this Nov 9, 2022
@JoeySpronck
Copy link
Contributor

Approach to solve:

  1. in bibparser: make a function that returns a list of all project names
  2. in bibparser: make dict with key project names and value list of related bibkeys/publications --> save as json
  3. in bibloader (in plugins): load this json and make a new variable that can be accessed via pelican (use signals: generator function)
  4. in the projects-single template: access the pelican variable and fill the bibkeys in the project template

@JoeySpronck JoeySpronck self-assigned this Jan 18, 2023
@marinadamato marinadamato added the Priority: Medium Medium priority issue label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: Medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

5 participants