Oh, so I forgot there is actually a method already, woops
Although there could be some caveat, looking at the comment. Don't remember whta it's about or if it's fixable
Might be possible to rewrite the raw sql from getEditionsCreditedToAuthor/getEditionGroupsCreditedToAuthor using the ORM methods `.leftJoin(…)`, `.where(…)` etc, as the issue seems to be returning a promise
though we might not be able to fetch other edition attribs (like Identifiers) using this method.
would it be fine if i use the ac method instead?
monkey: is it possible for two different edition to have same authorCreditID?
In theory it would be possible, but in practice not sure that will happen
If I remember correctly we create a new AC for each Edition, even if the value is the same as another AC
Didn't think we had that optimization already coded.
So indeed expect multiple Editions and EGs with same AC
agatzk has quit
agatzk joined the channel
monkey: prefilling author credit editor with author in query params `?author=bbid` sounds good to you?
I would expect it to be possible to seed with an author name which would fill the AC search input and allow the user to search easily. Not sure how hard that'll be to do with current setup, but worth a try
The search also supports BBIDs so that makes sense