Add template function returning virtual libraries book is a member of

This pull request replaces the one made from the master branch to make it easier to deal with other changes. The other has been closed, I hope.