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

List of publications that are linked to a research area #317

Open
avoelz opened this issue Jul 31, 2024 · 2 comments
Open

List of publications that are linked to a research area #317

avoelz opened this issue Jul 31, 2024 · 2 comments
Assignees
Labels
publications review Programmer said it's done. Owner needs to review changes..

Comments

@avoelz
Copy link

avoelz commented Jul 31, 2024

On our webpage we would like to show for each research area a list of related publications. However, with the shortcode
[cris-custom show="fields" field="..."]#publications#[/cris-custom]
we only get publications that are directly assigned to the field in CRIS and not those that are assigned to projects that are related to this research area. In the past, the shortcode
[cris-custom show="fields" field="..."]#project_publications#[/cris-custom]
returned the desired list of publications that are assigned to projects that are related to this research area and we combined the two results by writing
[cris-custom show="fields" field="..."]#publications# #project_publications#[/cris-custom]
While this solution was not ideal (e.g. no sorting of the joint list), it worked and gave the expected result. However, since the recent updates of the CRIS-plugin, #project_publications# returns the same list as #publications# and we get a subset of the desired publications twice instead of the full set.

I looked through the PHP codes and suspect that the new behaviour could have been introduced by commit 611b579 since the line
if (in_array($einheit, array("person", "orga", "publication", "project", "field", "field_proj", "field_notable")))
was replaced by
if (in_array($einheit, array("person", "orga", "award", "awardnameid", "project", "field")))
and field_proj seems to be the entity that is set by #project_publications#. Maybe it is quite easy to fix the problem by adding field_proj again to the list. On the other hand it would be even better if there were an option to get all publications of the research field without this workaround of combining #publications# and #project_publications#.

@MoorFGDES
Copy link

We have implemented a pragmatic fix which can be inspected at

https://github.com/MoorFGDES/fau-cris

We hope for a merge in near future (or some other solution to this issue).

@BastianMelsheimer
Copy link
Collaborator

Suggestion: use field=12345 for both options, then add a parameter useprojpubls=true for adding the projects' publications.

Will be added in version release after this current one.

aajusah98 added a commit to aajusah98/fau-cris that referenced this issue Nov 20, 2024
@aajusah98 aajusah98 added the review Programmer said it's done. Owner needs to review changes.. label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
publications review Programmer said it's done. Owner needs to review changes..
Projects
None yet
Development

No branches or pull requests

4 participants