Library to offer online courses