How libraries can compete with Google and Amazon