Libraries are public institutions funded by tax payers and mainly employ civil servants and government employees. It would be terribly ironic if a public institution did not abide by the law or respect your rights. Not to mention they do not exist for profit.