Skip to content

getAuthorString no longer respects browse inclusion in some places #7016

Open
@jnugent

Description

@jnugent

Describe the bug
In OJS 3.1.2 the getAuthorString() method used to pass a boolean true to getAuthors which respected the $includeInBrowse flag. This was useful when displaying an author string on a front end template, like an issue's table of contents. That can be seen here:

https://github.com/pkp/pkp-lib/blob/stable-3_1_2/classes/submission/Submission.inc.php#L257

With the refactor to Publications beginning in 3.2, the getAuthorString() method in the PKPSubmission class just hands off that call to the Publication object, here:

https://github.com/pkp/pkp-lib/blob/stable-3_2_1/classes/submission/PKPSubmission.inc.php#L382

But the Publication object now just fetches the authors property:

https://github.com/pkp/pkp-lib/blob/stable-3_2_1/classes/publication/PKPPublication.inc.php#L137

I'm not quite sure if it's still possible to filter by $includeInBrowse, at least on the front end. This seems like a potentially complicated refactor, but perhaps the templates can iterate over the authors instead of calling this method?

We had a hosted client use the Quick Submit plugin to populate an issue in 3.2 and noticed this behaviour.

What application are you using?
OJS 3.2.1-4 (probably also in 3.3)

Metadata

Metadata

Labels

Bug:1:MinorA bug found in uncommon paths, with low consequences, limited users or has an easy workaroundHostingBug reports and feature requests from Publishing Services's hosted clients.

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions