Code does not work because getBookByOutputType() returns the false string. But I have no idea how the correct string looks like.