Context: a library service has two RENEWAL notices - one for "All libraries" plus one specific to "Library A". When items are renewed in the staff interface, the "Library A" RENEWAL notice is sent. When items are renewed in the OPAC, the "All libraries" RENEWAL notice is sent. This does not make sense: renewing from the OPAC should also send the library-specific notice.
I am not sure how the library is currently picked when a library-specific notice is sent for staff interface renewals. OPAC renewals should probably follow the same logic - or use the library set in OpacRenewalBranch.
Bug 29489 and bug 35553 are possibly caused by the same root issue as the one reported here?