547ddb00825afa542a44cd04d40ad282504fb526
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Administration / StatisticDetails.html
1 {namespace is=TYPO3\CMS\IndexedSearch\ViewHelpers}
2 {namespace core=TYPO3\CMS\Core\ViewHelpers}
3
4 <f:layout name="Administration"/>
5
6 <f:section name="Content">
7 <p class="lead"><f:translate key="administration.document.description"/></p>
8 <f:flashMessages />
9 <f:if condition="{phashRow}">
10 <f:then>
11 <table class="table table-striped table-hover">
12 <thead>
13 <tr>
14 <th colspan="2"><f:translate key="administration.phash.tableHeader"/></th>
15 </tr>
16 </thead>
17 <f:for each="{phashRow}" as="value" key="key">
18 <tr>
19 <td><strong>{key}</strong></td>
20 <td>{value}</td>
21 </tr>
22 </f:for>
23 </table>
24
25 <div class="row">
26 <div class="col-md-12">
27 <f:render section="wordlisting" arguments="{words:words,phash:phash,page:page,keywords:keywords,title:'words'}"/>
28 </div>
29 </div>
30
31 <div class="row">
32 <div class="col-md-6">
33 <f:render section="wordlisting" arguments="{words:topCount,phash:phash,title:'topCount'}"/>
34 </div>
35 <div class="col-md-6">
36 <f:render section="wordlisting" arguments="{words:topFrequency,phash:phash,title:'topFrequency'}"/>
37 </div>
38 </div>
39
40 <f:if condition="{debug}">
41 <h4>
42 <f:translate key="administration.statistics.debug"/>
43 </h4>
44 <f:debug inline="1" title="">{debug}</f:debug>
45 </f:if>
46 <f:if condition="{lexer}">
47 <h4>
48 <f:translate key="administration.statistics.lexer"/>
49 </h4>
50 <f:format.raw>{lexer}</f:format.raw>
51 </f:if>
52
53 <f:if condition="{metaphone}">
54 <h4>
55 <f:translate key="administration.statistics.metaphone"/>
56 </h4>
57 <table class="table table-striped table-hover">
58 <thead>
59 <tr>
60 <th>
61 <f:translate key="field.metaphone"/>
62 </th>
63 <th>
64 <f:translate key="field.pHash"/>
65 </th>
66 <th>
67 <f:translate key="field.wordCount"/>
68 </th>
69 <th>
70 <f:translate key="field.words"/>
71 </th>
72 </tr>
73 </thead>
74 <tbody>
75 <f:for each="{metaphone}" as="row">
76 <tr>
77 <td>{row.metaphone}</td>
78 <td>{row.hash}</td>
79 <td>{f:count(subject:row.words)}</td>
80 <td><f:for each="{row.words}" as="word">
81 {word},
82 </f:for></td>
83 </tr>
84 </f:for>
85 </tbody>
86 </table>
87 </f:if>
88
89 <f:if condition="{sections}">
90 <h4><f:translate key="administration.statistics.sectionRecords"/></h4>
91 <table class="table table-striped table-hover">
92 <thead>
93 <tr>
94 <th><f:translate key="field.pHash"/></th>
95 <th>rl0</th>
96 <th>rl1</th>
97 <th>rl2</th>
98 <th><f:translate key="field.id"/></th>
99 <th><f:translate key="field.uniqueId"/></th>
100 </tr>
101 </thead>
102 <tbody>
103 <f:for each="{sections}" as="row">
104 <tr>
105 <td>{row.phash}</td>
106 <td>{row.rl0}</td>
107 <td>{row.rl1}</td>
108 <td>{row.rl2}</td>
109 <td>{row.page_id}</td>
110 <td>{row.uniqueid}</td>
111 </tr>
112 </f:for>
113 </tbody>
114 </table>
115 </f:if>
116 </f:then>
117 <f:else>
118 <f:be.infobox state="2" message="no record found" />
119 </f:else>
120 </f:if>
121 </f:section>
122
123 <f:section name="wordlisting">
124 <h4><f:translate key="administration.document.{title}"/>
125 <f:if condition="{title}=='words'">
126 ({f:count(subject:words)})
127 </f:if>
128 </h4>
129 <f:if condition="{words}">
130 <f:form method="post" action="saveStopwordsKeywords" name="stopwordskeywords" arguments="{pageHash:phash}">
131 <f:form.hidden name="pageHash" value="{phash}"/>
132 <f:form.hidden name="pageId" value="{page.uid}"/>
133 <table class="table table-striped table-hover">
134 <thead>
135 <tr>
136 <th><f:translate key="administration.stopWords"/></th>
137 <f:if condition="{title}=='words'">
138 <f:if condition="{page}">
139 <th><f:translate key="administration.keywords"/></th>
140 </f:if>
141 </f:if>
142 <th><f:translate key="administration.statistics.word"/></th>
143 <th><f:translate key="field.wordCount"/></th>
144 <th><f:translate key="field.frequency"/></th>
145 <th><f:translate key="field.flag"/></th>
146 </tr>
147 </thead>
148 <tbody>
149 <f:for each="{words}" as="word">
150 <tr>
151 <td>
152 <f:form.checkbox name="stopwords[{word.wid}]" value="1" checked="{word.is_stopword}"/>
153 </td>
154 <f:if condition="{title}=='words'">
155 <f:if condition="{page}">
156 <td>
157 <f:form.checkbox name="keywords[{word.baseword}]" value="1" checked="{word.is_keyword}"/>
158 </td>
159 </f:if>
160 </f:if>
161 <td>
162 <f:link.action action="wordDetail" arguments="{id:word.wid,pageHash:phash}">{word.baseword}</f:link.action>
163 </td>
164 <td>{word.count}</td>
165 <td>{word.freq}</td>
166 <td>
167 <f:if condition="{word.flags} > 0">
168 {is:format.flagValue(flags:word.flags)} ({word.flags})
169 </f:if>
170 </td>
171 </tr>
172 </f:for>
173 </tbody>
174 </table>
175 <f:if condition="{title}=='words'">
176 <f:then>
177 <f:if condition="{keywords}">
178 <div>
179 {f:translate(key:'administration.keywords.current')}:
180 <f:for each="{keywords}" key="keyword" as="_" iteration="i">
181 {f:if(condition:i.isFirst,then:'',else:', ')}<i>{keyword}</i>
182 </f:for>
183 </div>
184 </f:if>
185 <f:form.submit value="{f:translate(key:'administration.stopWordsKeywords.save')}"/>
186 </f:then>
187 <f:else>
188 <f:form.submit value="{f:translate(key:'administration.stopWords.save')}"/>
189 </f:else>
190
191 </f:if>
192
193 </f:form>
194 </f:if>
195 </f:section>
196
197 <f:section name="Buttons">
198 <a href="{f:uri.action(action:'statistic')}" title="{f:translate(key:'administration.back')}">
199 <core:icon identifier="actions-view-go-back" />
200 </a>
201 </f:section>