Open avoelz opened 3 months ago
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).
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.
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 611b5791 since the line
if (in_array($einheit, array("person", "orga", "publication", "project", "field", "field_proj", "field_notable")))
was replaced byif (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#.