changeset 38:d3c2ef4eaf6a

Temporary Fix: Launch PDFs Fixed: Download png resized Hackjob fix for having only the launch PDFs have the Download PDF button visible. [note: will remove the 8 PDFs on the to-do list]. Download.png resized for possible future use in diva toolbar Signed-off-by: Alistair-Russell <russell.alistair@gmail.com>
author arussell
date Fri, 12 Jun 2015 23:13:12 +0000
parents a3bf915b62fe
children ec638eda0d68
files src/main/webapp/imageServer/displayDigi.jsp src/main/webapp/imageServer/resources/img/download.png src/main/webapp/public/publicCodex.jsp
diffstat 3 files changed, 22 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/webapp/imageServer/displayDigi.jsp	Wed Jun 10 15:05:03 2015 +0000
+++ b/src/main/webapp/imageServer/displayDigi.jsp	Fri Jun 12 23:13:12 2015 +0000
@@ -208,10 +208,17 @@
 <body bgcolor=white>
 
 	<jsp:include page="header.jsp" />
-	<form method="GET" action='https://images.rasi.mcgill.ca/pdfs/${digiBean.getDigiLabel()}.pdf'>
-		<button type="submit" style="font-size: 12; float: right; width: 100px; margin-right: 33px; margin-top: -10px;">Download PDF</button>
-	</form>
-
+	<c:if test="${digiBean.getDigiLabel().substring(0,6) == 'Glaser'||
+		digiBean.getDigiLabel().substring(0,6) == 'Landbe'||
+		digiBean.getDigiLabel().substring(0,6) == 'Minuto'||
+		digiBean.getDigiLabel().substring(0,6) == 'Ms_or_'||
+		digiBean.getDigiLabel().substring(0,6) == 'Peterm'||
+		digiBean.getDigiLabel().substring(0,6) == 'Spreng'||
+		digiBean.getDigiLabel().substring(0,6) == 'Wetzst'}">
+		<form method="GET" action='https://images.rasi.mcgill.ca/pdfs/${digiBean.getDigiLabel()}.pdf'>
+			<button type="submit" style="font-size: 12; float: right; width: 100px; margin-right: 33px; margin-top: -10px;">Download PDF</button>
+		</form>
+	</c:if>
 	<div class="custom-container">
 
 		<div class="row-fluid">
Binary file src/main/webapp/imageServer/resources/img/download.png has changed
--- a/src/main/webapp/public/publicCodex.jsp	Wed Jun 10 15:05:03 2015 +0000
+++ b/src/main/webapp/public/publicCodex.jsp	Fri Jun 12 23:13:12 2015 +0000
@@ -237,10 +237,17 @@
 	<div class="magnifiedAttributePanel">
 	</div>
 	 -->
-
-	<form method="get" value="<%=codexPage.getDigiLabel()%>" action='https://images.rasi.mcgill.ca/pdfs/${codexPage.getDigiLabel()}.pdf'>
-		<button type="submit" style="font-size: 12; float: right; width: 100px; margin-right: 33px; margin-top: -10px;">Download PDF</button>
-	</form>
+	<c:if test="${digiBean.getDigiLabel().substring(0,6) == 'Glaser'||
+		digiBean.getDigiLabel().substring(0,6) == 'Landbe'||
+		digiBean.getDigiLabel().substring(0,6) == 'Minuto'||
+		digiBean.getDigiLabel().substring(0,6) == 'Ms_or_'||
+		digiBean.getDigiLabel().substring(0,6) == 'Peterm'||
+		digiBean.getDigiLabel().substring(0,6) == 'Spreng'||
+		digiBean.getDigiLabel().substring(0,6) == 'Wetzst'}">
+		<form method="get" value="<%=codexPage.getDigiLabel()%>" action='https://images.rasi.mcgill.ca/pdfs/${codexPage.getDigiLabel()}.pdf'>
+			<button type="submit" style="font-size: 12; float: right; width: 100px; margin-right: 33px; margin-top: -10px;">Download PDF</button>
+		</form>
+	</c:if>
 	<div class="custom-container">