182.817. Notwithstanding the provisions of any other law to the contrary, no library or employee or agent of a library shall be required to release or disclose a library record or portion of a library record to any person or persons except:
(1) In response to a written request of the person identified in that record, according to procedures and forms giving written consent as determined by the library; or
(2) In response to an order issued by a court of competent jurisdiction upon a finding that the disclosure of such record is necessary to protect the public safety or to prosecute a crime.