get main agencyID for calls to saou
check for librarytype (public libraries starts with 7) and return appropiate message as link