1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:webct="http://www.xxx.com/jsp/jstl/webct"
version="2.0">
<jsp:directive.page contentType="text/html"/>
<jsp:directive.page import="com.xxx.xxx.shared.Services"/>
<c:set var="mode" value="${webct:getCurrentUserContextMode(pageContext.session)}"/>
<c:set var="locrefdu" value="${webct:getParameter(pageContext.servletContext, 'view.du')}"/>
<jsp:output doctype-root-element="HTML"
doctype-public="-//W3C//DTD HTML 4.01//EN"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
<html>
<head>
<title>navtree</title>
<script type="text/javascript" src="js/shared.js">
<!-- -->
</script>
<script type="text/javascript" src="js/navtree.js">
<!-- -->
</script>
<script type="text/javascript">
var locrefdu
</script>
<script type="text/javascript">
var ok=1;
</script>
</head>
<body onload="">
<c:set var="locrefdu" value="'${locrefdu}'" />
<script type="text/javascript">
locrefdu =){locrefdu};
</script>
<p>
<c:choose>
<c:when test='${mode == 1}'>
<c:set var="context" value="${webct:getUserContext(1, pageContext.session)}"/>
<c:set var="key" value="${context.parameter.manual.key}" />
Library Access<br/>
${context.parameter.manual}
</c:when>
<c:when test='${mode == 2}'>
<c:set var="context" value="${webct:getUserContext(2, pageContext.session)}"/>
<c:set var="key" value="${context.parameter.bookmarkItem.referenceID}" />
<c:set var="bookmarkMode" value="${context.parameter.bookmarkItem.accessContext.mode}"/>
<c:set var="bookmarkParam" value="${context.parameter.bookmarkItem.accessContext.parameter}"/>
<c:choose>
<c:when test='${bookmarkMode == 1}'>
<c:set var="bookmarkContext" value="${bookmarkParam.manual}"/>
<c:set var="bookmarkStringMode" value="Library mode"/>
</c:when>
<c:when test='${bookmarkMode == 31}'>
<c:choose>
<c:when test='${bookmarkParam.operator == 0}'>
<c:set var="operator" value="Or"/>
</c:when>
<c:otherwise>
<c:set var="operator" value="And"/>
</c:otherwise>
</c:choose>
<c:set var="bookmarkStringMode" value="Word Search mode"/>
<c:set var="bookmarkContext">
){bookmarkParam.manualSearchParameter}, <br/>${bookmarkParam.words}, <br/>${operator}"
</c:set>
</c:when>
<c:when test='${bookmarkMode == 32}'>
<c:set var="bookmarkStringMode" value="Interface Search mode"/>
<c:set var="bookmarkContext" value="${bookmarkParam.manualSearchParameter}"/>
</c:when>
<c:when test='${bookmarkMode == 33}'>
<c:set var="bookmarkStringMode" value="Index Search mode"/>
<c:set var="bookmarkContext">
){bookmarkParam.manualSearchParameter}, <br/>${bookmarkParam.context}"
</c:set>
</c:when>
</c:choose>
Bookmark Access<br/>
${context.parameter.bookmarkItem.title}, <br/>${bookmarkStringMode}, <br/>${bookmarkContext}
</c:when>
<c:when test='${mode == 31}'>
<c:set var="context" value="${webct:getUserContext(31, pageContext.session)}"/>
<c:choose>
<c:when test='${context.parameter.operator == 0}'>
<c:set var="operator" value="Or"/>
</c:when>
<c:otherwise>
<c:set var="operator" value="And"/>
</c:otherwise>
</c:choose>
Word Search Access<br/>
${context.parameter.manualSearchParameter}, <br/>${context.parameter.words}, <br/>${operator}
</c:when>
<c:when test='${mode == 32}'>
<c:set var="context" value="${webct:getUserContext(32, pageContext.session)}"/>
Interface Search Access<br/>
${context.parameter.manualSearchParameter}
</c:when>
<c:when test='${mode == 33}'>
<c:set var="context" value="${webct:getUserContext(33, pageContext.session)}"/>
Index Search Access<br/>
${context.parameter.manualSearchParameter}, <br/>${context.parameter.context}
</c:when>
<c:otherwise>
Unknown access mode
</c:otherwise>
</c:choose>
</p>
<APPLET WIDTH="205" HEIGHT="490">
<PARAM NAME = "CODE" VALUE = "com.xxx.xxx.NavTreeApplet.class" />
<PARAM NAME = "ARCHIVE" VALUE = "navtree.jar, jh.jar, ct.jar, ct-shared.jar, shared.jar, webct.jar" />
<PARAM NAME = "NAME" VALUE = "navtree_applet" />
<PARAM NAME = "ID" VALUE = "navtree_applet" />
<PARAM NAME = "MAYSCRIPT" VALUE = "mayscript" />
<PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.2_05" />
<PARAM NAME = "scriptable" VALUE = "false" />
<PARAM NAME = "keySelected" VALUE = "${key}" />
</APPLET>
</body>
</html>
</jsp:root> |
Partager