Sociological foundations of librarianship