abartov / bybeconv

Project Ben-Yehuda's content management system.
https://benyehuda.org/
Other
10 stars 5 forks source link

Refactor Person methods #350

Closed damisul closed 1 month ago

damisul commented 1 month ago

As a followup to comments in https://github.com/abartov/bybeconv/pull/345#discussion_r1601018191

Updated method Person.published_manifestations, to accept several roles to filter. Added method Person.manifestations with optional roles array as an argument to return all manifestations (including unpublished).

Updated several methods in Person to consider work as 'original' work only when person is listed as an author (previously it worked for any work-level involvements, e.g. illustrators) using published_manifestations and manifestations methods.