Disambiguate for author instead of books

Hello,

I'm customizing an existing style in order to adapt my university requirements.

Here is my goal:
- on first reference, full note (author long name, long title, etc.)
- on subsequent references:
- if there is another author with the same last name, print the long name
- if there is another book with the same author, print the short name and the book short title
- in other cases, simply print the author's short name

Here is an example of what I would like in notes: https://drive.google.com/file/d/1AowPFQI8WZP_3WQxADdAkl25BKtQWlcc/view?usp=sharing

1, 2, 3, 6, 7 and 8: first reference => full reference
5: no ambiguity, so only the last name
4: ambiguity only with the title, so print the last name and the short title
10: ambiguity only with the last name, so print the last and first name
9: ambiguity with the last name and the title, so print the last and first name and the short title

I succeded to print the the last and first name and the short title for any ambiguity, but I don't know how to "discriminate" ambiguities between last names and full name. Here is the current result : https://drive.google.com/file/d/1q1oyKyecQbUcCBFxx1YfzGNy4v82xsu_/view?usp=sharing
Basically, I don't want the first name to be printed for the note 4. Almost there, but I've no idea how to do this

My current code is available here: https://github.com/kfeine/csl-ibb/blob/main/institut-biblique-de-bruxelles.csl

Thanks for your help in advance,
Benjamin
Sign In or Register to comment.