Patron records shall not be disclosed or released to any person not a member of the library staff in the performance of his duties, except upon written consent of the person identified in the record, or except upon court order issued to the library. The library shall have the right to be represented by counsel at any hearing on disclosure or release of its patron records.