Project

General

Profile

1
<%@ page contentType="text/html; charset=UTF-8" %>
2
<%@ taglib prefix="s" uri="/struts-tags" %>
3
 
4
 <s:set name="browsefield" value="#application['webInterfaceLayoutManager'].labelMap[browseField]" />
5
 
6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8
   
9
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
10
 <head>
11
 	<title> <s:text name="Browse_by_title" /> <s:property value="@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#browsefield, locale)" /> </title>
12
 	
13
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
14
 	
15
 	<link href='<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/<s:property value="#application['webInterfaceLayoutManager'].cssFileName" />' rel="stylesheet" type="text/css" />
16
    <link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
17
 </head>
18
 
19
 
20
 <body>  
21
 	<div id="center">
22
		<div id="wrapper">
23
			<div class="wrapper_shadowleft">
24
				<div class="wrapper_shadowright">
25
					<div id="container">
26
						<jsp:include page="/pages/banner.jsp"/>
27
						<jsp:include page="/pages/menu.jsp"/>
28
			
29
						<div id="leftcolumn">
30
							<b class="curved_top">
31
								<b class="curved_t1"></b>
32
								<b class="curved_t2"></b>
33
								<b class="curved_t3"></b>
34
								<b class="curved_t4"></b>
35
							</b>
36
							
37
							<div class="curved_container clearfix">
38
								<div class="featured_top leftcolumn_top"> <s:text name="Browse_by" /> </div>
39
								<div class="mydrivermenu">
40
									<s:iterator value="#application['webInterfaceLayoutManager'].browseFields" var="bf">
41
                     					<div class="mydrivermenuitem">
42
                       				      <s:if test="%{@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#bf, locale).equals(@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#browsefield, locale))}">
43
                          			           <span class="selected">
44
                          		                   <s:property value="@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#browsefield, locale)"/>
45
                           			          </span>
46
                           				  </s:if>
47
                         			      <s:else>
48
											<s:url action="browseData" id="menuLink">
49
												<s:param name="field"><s:property value="#bf.name"/></s:param>
50
											</s:url>
51
											<s:a href="%{#menuLink}">
52
												<s:property value="@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#bf, locale)"/>
53
											</s:a>
54
                           					</s:else>
55
                     					</div>
56
    					         	</s:iterator>
57
								</div>
58
							</div>
59
														
60
							<b class="curved_bottom">
61
								<b class="curved_b4"></b>
62
								<b class="curved_b3"></b>
63
								<b class="curved_b2"></b>
64
								<b class="curved_b1"></b>
65
							</b>
66
						</div>
67
						
68
						<div id="maincolumn2">
69
							<b class="curved_top">
70
								<b class="curved_t1"></b>
71
								<b class="curved_t2"></b>
72
								<b class="curved_t3"></b>
73
								<b class="curved_t4"></b>
74
							</b>
75
							<div class="curved_container clearfix">
76
								<div class="featured_top maincolumn2_top">
77
									<s:iterator value="getText('alphabet').split(\" \")" id="letter">
78
										<s:if test="%{#parameters['prefix'] == null || !#parameters['prefix'][0].equals(#letter) }">
79
										<s:url action="browseData" id="alphaUrl">
80
											<s:param name="field" value="#parameters['field']" />
81
											<s:param name="alphabet" value="#parameters['alphabet']" />
82
											<s:param name="prefix" value="#letter" />
83
										</s:url>
84
										<span class="alphaLetter">
85
											<s:a href="%{alphaUrl}">
86
												<s:property />
87
											</s:a>
88
										</span>
89
									</s:if>
90
									<s:else>
91
										<span class="alphaLetterSelected"> <s:property /> </span>
92
									</s:else>
93
								</s:iterator>
94
								<s:if test="%{#parameters['prefix'][0].equals(\"ALL\")}">
95
									<span class="alphaLetterSelected"> <s:text name="all" /> </span>
96
								</s:if>
97
								<s:else>
98
									<s:url action="browseData" id="alphaUrl">
99
										<s:param name="field" value="#parameters['field']" />
100
										<s:param name="alphabet" value="#parameters['alphabet']" />
101
										<s:param name="prefix">ALL</s:param>
102
									</s:url>
103
									<span class="alphaLetter">
104
										<s:a href="%{alphaUrl}">
105
											<s:text name="all"/>
106
										</s:a>
107
									</span>
108
								</s:else>
109
								</div>
110
								<s:if test="%{#request['enhancedBrowseData']!=null && !#request['enhancedBrowseData'].getData().isEmpty()}">
111
									<table  id="listtbl" cellspacing="0" width="100%">
112
										<tr>
113
											<s:url action="browseData" id="bdata">
114
												<s:param name="field" value="#parameters['field']"/>
115
												<s:param name="alphabet" value="true"/>
116
												<s:param name="prefix" value="#parameters['prefix']" />
117
											</s:url> 
118
											<th width="22px">
119
												<s:a href="%{bdata}" title="Sort alphabetically"> 
120
													<img border="0" height="18px" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/sortalpha.png"/>
121
												</s:a>
122
											</th>
123
											<th width="auto">
124
												<s:a href="%{bdata}" title="Sort alphabetically">
125
													<s:property value="@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#browsefield, locale)"/>
126
                                                </s:a>
127
											</th>						
128
											<s:url action="browseData" id="bdata">
129
												<s:param name="field" value="#parameters['field']"/>
130
												<s:param name="alphabet" value="false"/>
131
												<s:param name="prefix" value="#parameters['prefix']" />
132
											</s:url>
133
											<th width="22px"> 
134
												<s:a href="%{bdata}" title="Sort by document number"> 
135
													<img height="18px" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/sortdesc.png"/>
136
												</s:a>
137
											</th>
138
											<th>
139
												<s:a href="%{bdata}" title="Sort by document number">
140
													<s:text name="Number_of_Documents" />
141
												</s:a>
142
											</th>
143
										</tr>
144
										
145
								     	<s:iterator value="#request['enhancedBrowseData'].getFieldValues(#browsefield.indexType)" id="bdata" status="status">
146
								        <tr>
147
								        	<td>&nbsp; </td>
148
								        	<td>
149
								        		<s:url action="showResults" id="searchLink">
150
								        			<s:param name="query">(<s:property value="#browsefield.name"/>="<s:property value="#request['enhancedBrowseData'].getFieldEncodings(#browsefield.indexType)[#status.index]" escape="false"/>")</s:param>
151
								        			<s:param name="size">10</s:param>
152
								        			<s:param name="page">1</s:param>
153
								        		</s:url>
154
								        		<s:a href="%{searchLink}" cssClass="searchlink"><s:property value="#bdata"/></s:a>
155
								        	</td>
156
								        	<td>&nbsp; </td>
157
								        	<td>
158
								        		<s:text name="format.number">
159
								        			<s:param name="value" value="#request['enhancedBrowseData'].getFieldCounts(#browsefield.indexType)[#status.index]" />
160
								        		</s:text>
161
								        	</td>
162
								        </tr>
163
								     	</s:iterator>
164
								     	
165
									 </table>
166
									</s:if>
167
									
168
									<s:else>
169
										<p>
170
											<s:if test="%{#parameters['prefix']!=null}">
171
												<s:text name="no_browse_data_starting_from_prefix_available">
172
													<s:param value="@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#browsefield, locale)" />
173
													<s:param value="#parameters['prefix'][0]"></s:param>
174
												</s:text>
175
											</s:if>
176
											<s:else>
177
												<s:text name="no_browse_data_available">
178
													<s:param value="@gr.uoa.di.web.utils.LocaleDescriptionUtil@getSearchableDescription(#browsefield, locale)" />
179
												</s:text>
180
											</s:else>
181
										</p>
182
									</s:else>
183
							</div> <!-- clear fix -->
184
							<b class="curved_bottom">
185
								<b class="curved_b4"></b>
186
								<b class="curved_b3"></b>
187
								<b class="curved_b2"></b>
188
								<b class="curved_b1"></b>
189
							</b>
190
						</div> 
191
						<div id="footer">
192
							<s:action name="FooterPage" executeResult="true"/>
193
						</div>
194
					</div>
195
				</div>
196
			</div>
197
		</div>
198
	</div>
199
</body>
200
</html>
(2-2/27)