From cfa92e45a7f4550885917022ee8e19ee2a410de1 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 31 May 2014 20:12:04 +0100 Subject: Link to the library room booking page --- src/leaflet-soton.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js index 77f0d02..3e030dc 100644 --- a/src/leaflet-soton.js +++ b/src/leaflet-soton.js @@ -962,6 +962,19 @@ SELECT * WHERE {\ tabs.features.appendChild(featureList); } + // TODO: Find a better way to match the rooms, also add the rooms + // on level 5. + var bookableLibraryRoomNames = ["1A", "1B", "1C", "2A", "2B", "2C", + "2D", "3A", "3B", "3C", "3D", "3E", + "3F"]; + if ('name' in properties && + bookableLibraryRoomNames.indexOf(properties.name) != -1) { + + createBlankLink("http://libcal.soton.ac.uk/booking/hartleyrooms", + "This room can be booked through the Library Room Booking system.", + tabs.bookings); + } + if ('images' in properties) { properties.images.forEach(function(image) { -- cgit v1.2.3