Project

General

Profile

1
<%@ page contentType="text/html; charset=UTF-8" %>
2
<%@ taglib prefix="s" uri="/struts-tags" %>
3

    
4
<div class="paginationtools">
5
        <s:iterator value="#request['left']" id="arrow">
6
                <s:if test="%{#arrow.value != null}">
7
                        <s:url id="showResults" action="%{#request.referer}">
8
                                <s:param name="query" value="#parameters['query']"/>
9
                                <s:param name="collectionId" value="#parameters['collectionId']"/>
10
                                <s:param name="page" value="#arrow.value" />
11
                                <s:param name="size" value="#parameters['size']" />
12
                                <s:param name="refine" value="#parameters['refine']"/>
13
                                <s:param name="history" value="true" />
14
                                <s:param name="referer" value="#request.referer" />
15
                                <s:param name="id" value="#parameters['id']" />
16
                                <s:param name="includeStats" value="#parameters['includeStats']"/>
17
                        </s:url>
18
                    <s:a href="%{showResults}"> <s:property value="#arrow.key"/> </s:a>
19
                </s:if>
20
        </s:iterator>
21

    
22
         <s:iterator value="#request['pages']" id="num">
23
        <s:if test="%{#num.value != null}">
24
                <s:url id="showResults" action="%{#request.referer}">
25
                                <s:param name="query" value="#parameters['query']"/>
26
                                <s:param name="collectionId" value="#parameters['collectionId']"/>
27
                                <s:param name="page" value="#num.value" />
28
                                <s:param name="size" value="#parameters['size']" />
29
                                <s:param name="refine" value="#parameters['refine']"/>
30
                                <s:param name="history" value="true" />
31
                                <s:param name="referer" value="#request.referer" />
32
                                <s:param name="id" value="#parameters['id']" />
33
                                <s:param name="includeStats" value="#parameters['includeStats']"/>
34
                        </s:url>
35
                <s:a href="%{showResults}"> <s:property value="#num.key"/> </s:a>
36
        </s:if>
37
        <s:else>
38
                <span class="currentpage"><s:property value="#num.key" /></span>
39
        </s:else>
40
        </s:iterator>
41

    
42
    <s:iterator value="#request['right']" id="arrow">
43
        <s:if test="%{#arrow.value != null}">
44
                <s:url id="showResults" action="%{#request.referer}">
45
	                <s:param name="query" value="#parameters['query']"/>
46
	                <s:param name="collectionId" value="#parameters['collectionId']"/>
47
	                <s:param name="page" value="#arrow.value" />
48
	                <s:param name="size" value="#parameters['size']" />
49
	                <s:param name="refine" value="#parameters['refine']"/>
50
	                <s:param name="history" value="true" />
51
	                <s:param name="referer" value="#request.referer" />
52
	                <s:param name="id" value="#parameters['id']" />
53
	                <s:param name="includeStats" value="#parameters['includeStats']"/>
54
				</s:url>
55
                <s:a href="%{showResults}"> <s:property value="#arrow.key"/> </s:a>
56
        </s:if>
57
        </s:iterator>
58
</div>
59

    
60
<p>
61
        <s:if test="%{#request['webDocumentPage'].numberOfDocuments > 0}">
62
	        <s:text name="Found"/> 
63
	        <strong>
64
	        	<s:text name="format.number">
65
	        		<s:param name="value" value="#request['webDocumentPage'].numberOfDocuments"  />
66
	        	</s:text> 
67
	        </strong> 
68
	        <s:text name="documents"/>,
69
	        <s:text name="displaying_page"/> <s:property value="#request['webDocumentPage'].currentPage"/>
70
	        <s:text name="of"/> <s:property value="#request['webDocumentPage'].numberOfPages"/>
71
        </s:if>
72
        <s:else>
73
            <s:text name="Found"/> 
74
	        <strong>
75
	        	<s:text name="format.number">
76
	        		<s:param name="value" value="#request['webDocumentPage'].numberOfDocuments"  />
77
	        	</s:text> 
78
	        </strong> 
79
	        <s:text name="documents"/>
80
        </s:else>
81
</p>
(10-10/27)