summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-05-31 20:12:04 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-05-31 20:12:04 +0100
commitcfa92e45a7f4550885917022ee8e19ee2a410de1 (patch)
tree25dfc5e241543a4ee129bd36c2d8f2f43653f68a /src
parentae5bfa1c2c3fd9fbdf25e082949d4c3478219a68 (diff)
downloadleaflet-soton-cfa92e45a7f4550885917022ee8e19ee2a410de1.tar
leaflet-soton-cfa92e45a7f4550885917022ee8e19ee2a410de1.tar.gz
Link to the library room booking page
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js13
1 files changed, 13 insertions, 0 deletions
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) {