The fight to keep the library open comes after concerns were raised that Aberdeenshire Council could face being dragged to court over the planned closure of 13 library buildings across the region.