|
@@ -20,30 +20,19 @@
|
20
|
20
|
|
21
|
21
|
<div id="apis">
|
22
|
22
|
{{ _('Download results') }}
|
|
23
|
+ {% for output_type in ('csv', 'json', 'rss') %}
|
23
|
24
|
<form method="post" action="/">
|
24
|
25
|
<div class="left">
|
25
|
26
|
<input type="hidden" name="q" value="{{ q }}" />
|
26
|
|
- <input type="hidden" name="format" value="csv" />
|
27
|
|
- <input type="hidden" name="pageno" value="{{ pageno }}" />
|
28
|
|
- <input type="submit" value="csv" />
|
29
|
|
- </div>
|
30
|
|
- </form>
|
31
|
|
- <form method="post" action="/">
|
32
|
|
- <div class="left">
|
33
|
|
- <input type="hidden" name="q" value="{{ q }}" />
|
34
|
|
- <input type="hidden" name="format" value="json" />
|
35
|
|
- <input type="hidden" name="pageno" value="{{ pageno }}" />
|
36
|
|
- <input type="submit" value="json" />
|
37
|
|
- </div>
|
38
|
|
- </form>
|
39
|
|
- <form method="post" action="/">
|
40
|
|
- <div class="">
|
41
|
|
- <input type="hidden" name="q" value="{{ q }}" />
|
42
|
|
- <input type="hidden" name="format" value="rss" />
|
|
27
|
+ <input type="hidden" name="format" value="{{ output_type }}" />
|
|
28
|
+ {% for category in selected_categories %}
|
|
29
|
+ <input type="hidden" name="category_{{ category }}" value="1"/>
|
|
30
|
+ {% endfor %}
|
43
|
31
|
<input type="hidden" name="pageno" value="{{ pageno }}" />
|
44
|
|
- <input type="submit" value="rss" />
|
|
32
|
+ <input type="submit" value="{{ output_type }}" />
|
45
|
33
|
</div>
|
46
|
34
|
</form>
|
|
35
|
+ {% endfor %}
|
47
|
36
|
</div>
|
48
|
37
|
</div>
|
49
|
38
|
|