Revision 4484
Added by ben leinfelder about 16 years ago
cart.jsp | ||
---|---|---|
53 | 53 |
var metacatURL = "<%=CONTEXT_URL%>/metacat"; |
54 | 54 |
|
55 | 55 |
var docids = new Array(); |
56 |
var objs = document.getElementsByName("@packageId");
|
|
56 |
var objs = window.document.getElementById("iframeheaderclass").contentDocument.getElementsByName("@packageId");
|
|
57 | 57 |
if (objs.length == 0) { |
58 | 58 |
return; |
59 | 59 |
} |
... | ... | |
91 | 91 |
}); |
92 | 92 |
} |
93 | 93 |
|
94 |
|
|
95 |
|
|
94 | 96 |
</script> |
95 | 97 |
</head> |
96 | 98 |
<body onload="listAssessments()"> |
... | ... | |
99 | 101 |
insertSearchBox("<%=CONTEXT_URL%>"); |
100 | 102 |
</script> |
101 | 103 |
|
102 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
104 |
<table width="100%" border="0" cellspacing="20" cellpadding="0">
|
|
103 | 105 |
<tr> |
104 | 106 |
<th>Cart</th> |
105 |
<th> |
|
106 |
<form method="POST" action="<%=SERVLET_URL%>" target="_top" id="searchForm"> |
|
107 |
<input name="qformat" value="first-assessment" type="hidden"> |
|
108 |
<input name="action" value="squery" type="hidden"> |
|
109 |
|
|
110 |
<% |
|
111 |
String[] docids = |
|
112 |
SessionService.getRegisteredSession(request.getSession().getId()).getDocumentCart().getDocids() ; |
|
113 |
for (int i = 0; i < docids.length; i++) { |
|
114 |
%> |
|
115 |
<input name="@packageId" value="<%=docids[i] %>" type="hidden"> |
|
116 |
<%} %> |
|
117 |
</form> |
|
118 |
</th> |
|
119 |
<th align="right" style="text-align:right;"> |
|
120 |
<a href="<%=SERVLET_URL%>?action=logout&qformat=first">Logout</a> |
|
121 |
</th> |
|
122 | 107 |
</tr> |
123 | 108 |
<tr> |
124 |
<td colspan="3"">
|
|
109 |
<td colspan="1">
|
|
125 | 110 |
<p class="emphasis">Selected Metadata Fields: </p> |
126 | 111 |
<p> |
127 | 112 |
<table> |
... | ... | |
145 | 130 |
</td> |
146 | 131 |
</tr> |
147 | 132 |
<tr> |
148 |
<th colspan="3">
|
|
133 |
<th colspan="1">
|
|
149 | 134 |
|
150 | 135 |
</th> |
151 | 136 |
</tr> |
152 | 137 |
<tr> |
153 |
<td colspan="3">
|
|
138 |
<td colspan="1">
|
|
154 | 139 |
<div id="ajaxCartResults" style="/*display:none;*/"> |
155 | 140 |
<p class="emphasis">Cart is Empty</p> |
156 | 141 |
</div> |
Also available in: Unified diff
redesign the look and feel - save point.
-cart editing is done by clicking individual assessments rather than doing them in batches.
-cart status is shown in the search results (but still need a refresh for after adding cart items from search...)