You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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#.
The text was updated successfully, but these errors were encountered:
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#.
The text was updated successfully, but these errors were encountered: