<% boolean gallery= "on".equals(request.getParameter("gallery")); String image = org.crosswire.utils.HTTPUtils.sanitize(request.getParameter("image")); String site = org.crosswire.utils.HTTPUtils.sanitize(request.getParameter("site")); String mod = org.crosswire.utils.HTTPUtils.sanitize(request.getParameter("mod")); String key = org.crosswire.utils.HTTPUtils.sanitize(request.getParameter("key")); Integer top = null; try { Integer.parseInt(request.getParameter("top" )); } catch (Exception e) {} Integer left = null; try { Integer.parseInt(request.getParameter("left")); } catch (Exception e) {} boolean ltor = "false".equals(request.getParameter("ltor")) ? false : true; Integer zoom = null; try { Integer.parseInt(request.getParameter("zoom")); } catch (Exception e) {} String title = request.getParameter("title"); String boxes[]= request.getParameterValues("box"); if (boxes != null) { for (int i = 0; i < boxes.length; i++) { boxes[i] = boxes[i].replaceAll("[^0-9/]", ""); } } String legal = ""; String userAgent = request.getHeader("user-agent"); boolean mobile = (userAgent != null && userAgent.toLowerCase().indexOf("mobile") > -1); /* if ((site != null && site.toUpperCase().indexOf("CSNTM") > -1) || (image != null && image.toUpperCase().indexOf("CSNTM") > -1)) { legal = "The requirements that need to be satisfied for using these images in publication vary from manuscript to manuscript. Each possessing institute or individual has its own requirements. If you wish to publish any of these images, you will need to get permission from CSNTM first. We can then direct you to the contact person of the institute that owns the manuscript(s) for further instructions. CSNTM does not charge for the use of these images, though the institute that owns the manuscripts may. At minimum, CSNTM needs to be credited with the photographs and the possessing institute needs to be credited with ownership of the manuscript in all research for which these images are used."; } */ String imagePrefix = ""; // "/modules/papyri/repo/"; if ("CSNTM".equalsIgnoreCase(site)) { imagePrefix = "http://www.csntm.org/Manuscripts/"; } else if (site != null) { imagePrefix = site; } if (image == null) { image = "aleppo1.jpg"; ltor = false; } /* else { imagePrefix=""; } */ %>
<%@ include file="/modules/papyri/viewport.jsp" %>