|
9 | 9 |
|
10 | 10 | {%- block content %} |
11 | 11 | {#- TODO: display order in taxonomy? -#} |
12 | | -<p class="tagline">arXiv is a free distribution service and an open-access archive for {% if document_count -%}{{ "{:,}".format(document_count) }}{%- endif %} |
13 | | - scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics. |
14 | | - Materials on this site are not peer-reviewed by arXiv. |
15 | | -</p> |
16 | 12 |
|
17 | | -<br> |
18 | | -{#- /multi sends to either search, catchup or form interface based on which button is hit. -#} |
19 | | -<form name="home-adv-search" class="home-search" action="/multi" method="get" role="search"> |
20 | | - Subject search and browse: |
21 | | - <select name="group" title="Search in"> |
22 | | - {%- for group_key, group_details in groups.items() if not group_details.is_test %} |
23 | | - <option |
24 | | - value ="{{group_key}}" |
25 | | - data-url="{{url_for('search_archive', archive=group_key[4:])}}" |
26 | | - {% if group_key == 'grp_physics' %}selected="selected"{% endif %}> |
27 | | - {{ group_details.name }} |
28 | | - </option> |
29 | | - {%- endfor %} |
30 | | - </select> |
31 | | - <input id="adv-search-btn" type="button" value="Search"> |
32 | | - <input type="submit" name="/form" value="Form Interface"> |
33 | | - <input type="submit" name="/catchup" value="Catchup"> |
34 | | -</form> |
| 13 | +<div class="columns"> |
| 14 | + <div class="column"> |
| 15 | + <p class="tagline">arXiv is a free distribution service and an open-access archive for {% if document_count -%}{{ "{:,}".format(document_count) }}{%- endif %} |
| 16 | + scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics. |
| 17 | + Materials on this site are not peer-reviewed by arXiv. |
| 18 | + </p> |
35 | 19 |
|
36 | | -<script type="text/javascript"> |
37 | | - function doAdvSearchBtn(event) { |
38 | | - sel = document.querySelector('select[name="group"]') |
39 | | - if(sel && sel.options && sel.options[sel.selectedIndex].dataset.url ){ |
40 | | - data_url = sel.options[sel.selectedIndex].dataset.url |
41 | | - if( data_url ){ |
42 | | - window.location = data_url; |
43 | | - }else{ |
44 | | - console.error('home page search button: no data_url found for search'); |
| 20 | + {#- /multi sends to either search, catchup or form interface based on which button is hit. -#} |
| 21 | + <form name="home-adv-search" class="home-search" action="/multi" method="get" role="search"> |
| 22 | + <label for="search-category">Subject search and browse:</label><br> |
| 23 | + <select name="group" title="Search in" id="search-category"> |
| 24 | + {%- for group_key, group_details in groups.items() if not group_details.is_test %} |
| 25 | + <option |
| 26 | + value ="{{group_key}}" |
| 27 | + data-url="{{url_for('search_archive', archive=group_key[4:])}}" |
| 28 | + {% if group_key == 'grp_physics' %}selected="selected"{% endif %}> |
| 29 | + {{ group_details.name }} |
| 30 | + </option> |
| 31 | + {%- endfor %} |
| 32 | + </select> |
| 33 | + <input id="adv-search-btn" type="button" value="Search"> |
| 34 | + <input type="submit" name="/form" value="Form Interface"> |
| 35 | + <input type="submit" name="/catchup" value="Catchup"> |
| 36 | + </form> |
| 37 | + <script type="text/javascript"> |
| 38 | + function doAdvSearchBtn(event) { |
| 39 | + sel = document.querySelector('select[name="group"]') |
| 40 | + if(sel && sel.options && sel.options[sel.selectedIndex].dataset.url ){ |
| 41 | + data_url = sel.options[sel.selectedIndex].dataset.url |
| 42 | + if( data_url ){ |
| 43 | + window.location = data_url; |
| 44 | + }else{ |
| 45 | + console.error('home page search button: no data_url found for search'); |
| 46 | + } |
45 | 47 | } |
46 | 48 | } |
47 | | - } |
48 | | - document.addEventListener('DOMContentLoaded',function() { |
49 | | - document.getElementById('adv-search-btn').onclick=doAdvSearchBtn; |
50 | | - },false); |
51 | | -</script> |
52 | | -<p> |
53 | | -{%- include "home/news.html" -%} |
54 | | -See cumulative <a href="/new/">"What's New"</a> pages. |
55 | | -Read <a href="/help/robots">robots beware</a> before attempting any automated download |
56 | | -</p> |
| 49 | + document.addEventListener('DOMContentLoaded',function() { |
| 50 | + document.getElementById('adv-search-btn').onclick=doAdvSearchBtn; |
| 51 | + },false); |
| 52 | + </script> |
| 53 | + <h4 class="homepage-news-title">News</h4> |
| 54 | + See cumulative <a href="/new/">"What's New"</a> pages. |
| 55 | + Read <a href="/help/robots">robots beware</a> before attempting any automated download |
| 56 | + </div> |
| 57 | + <!-- special news column --> |
| 58 | + {%- include "home/news.html" -%} |
| 59 | +</div> |
| 60 | + |
57 | 61 | {#- TODO: define display order in taxonomy? -#} |
58 | 62 | {{- group_section(('grp_physics','grp_math','grp_cs','grp_q-bio','grp_q-fin','grp_stat','grp_eess','grp_econ')) }} |
59 | 63 |
|
|
0 commit comments