A search interface for data from the Politics of Patents case study (part of Copim WP6): this parses data from the archive of RTF files and provides additional data from the European Patent Office API. https://patents.copim.ac.uk
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

291 líneas
5.9KB

  1. <title>Solr browse: #core_name</title>
  2. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  3. <link rel="icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
  4. <link rel="shortcut icon" type="image/x-icon" href="#{url_root}/img/favicon.ico"/>
  5. <script type="text/javascript" src="#{url_root}/libs/jquery-3.4.1.min.js"></script>
  6. <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/jquery.tx3-tag-cloud.js&contentType=text/javascript"></script>
  7. <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/dropit.js&contentType=text/javascript"></script>
  8. <script type="text/javascript" src="#{url_for_solr}/admin/file?file=/velocity/js/jquery.autocomplete.js&contentType=text/javascript"></script>
  9. <script type="text/javascript">
  10. $(document).ready(function() {
  11. $("#tagcloud").tx3TagCloud({
  12. multiplier: 1
  13. });
  14. $('.menu').dropit();
  15. $( document ).ajaxComplete(function() {
  16. $("#tagcloud").tx3TagCloud({
  17. multiplier: 5
  18. });
  19. });
  20. $('\#q').keyup(function() {
  21. $('#browse_results').load('#{url_for_home}?#lensNoQ&v.layout.enabled=false&v.template=results&q='+encodeURI($('\#q').val()));
  22. $("\#q").autocomplete('#{url_for_solr}/suggest', {
  23. extraParams: {
  24. 'suggest.q': function() { return $("\#q").val();},
  25. 'suggest.build': 'true',
  26. 'wt': 'json',
  27. }
  28. }).keydown(function(e) {
  29. if (e.keyCode === 13){
  30. $("#query-form").trigger('submit');
  31. }
  32. });
  33. });
  34. });
  35. </script>
  36. <style>
  37. html {
  38. background-color: #F0F8FF;
  39. }
  40. body {
  41. font-family: Helvetica, Arial, sans-serif;
  42. font-size: 10pt;
  43. }
  44. #header {
  45. width: 100%;
  46. font-size: 20pt;
  47. }
  48. #header2 {
  49. margin-left:1200px;
  50. }
  51. #logo {
  52. width: 115px;
  53. margin: 0px 0px 0px 0px;
  54. border-style: none;
  55. }
  56. a {
  57. color: #305CB3;
  58. }
  59. a.hidden {
  60. display:none;
  61. }
  62. em {
  63. color: #FF833D;
  64. }
  65. .error {
  66. color: white;
  67. background-color: red;
  68. left: 210px;
  69. width:80%;
  70. position: relative;
  71. }
  72. .debug { display: none; font-size: 10pt}
  73. #debug_query {
  74. font-family: Helvetica, Arial, sans-serif;
  75. font-size: 10pt;
  76. font-weight: bold;
  77. }
  78. #parsed_query {
  79. font-family: Courier, Courier New, monospaced;
  80. font-size: 10pt;
  81. font-weight: normal;
  82. }
  83. #admin {
  84. text-align: right;
  85. vertical-align: top;
  86. }
  87. #query-form {
  88. width: 90%;
  89. }
  90. #query-box {
  91. padding: 5px;
  92. margin: 5px;
  93. font-weight: normal;
  94. font-size: 24px;
  95. letter-spacing: 0.08em;
  96. }
  97. #constraints {
  98. margin: 10px;
  99. }
  100. #tabs { }
  101. #tabs li { display: inline; font-size: 10px;}
  102. #tabs li a { border-radius: 20px; border: 2px solid #C1CDCD; padding: 10px;color: #42454a; background-color: #dedbde;}
  103. #tabs li a:hover { background-color: #f1f0ee; }
  104. #tabs li a.selected { color: #000; background-color: #f1f0ee; font-weight: bold; padding: 5px }
  105. #tabs li a.no_results { color: #000; background-color: #838B8B; font-style: italic; padding: 5px; pointer-events: none;
  106. cursor: default; text-decoration: none;}
  107. .pagination {
  108. width: 305px;
  109. border-radius: 25px;
  110. border: 2px solid #C1CDCD;
  111. padding: 20px;
  112. padding-left: 10%;
  113. background: #eee;
  114. margin-left: 190px;
  115. margin-top : 42px;
  116. padding-top: 5px;
  117. padding-bottom: 5px;
  118. text-align:left;
  119. }
  120. #results_list { width: 70%; }
  121. .result-document {
  122. border-radius: 25px;
  123. border: 2px solid #C1CDCD;
  124. padding: 10px;
  125. // width: 800px;
  126. // height: 120px;
  127. margin: 5px;
  128. // margin-left: 60px;
  129. // margin-right: 210px;
  130. // margin-bottom: 15px;
  131. transition: 1s ease;
  132. }
  133. .result-document:hover
  134. {
  135. webkit-transform: scale(1.1);
  136. -ms-transform: scale(1.1);
  137. transform: scale(1.1);
  138. transition: 1s ease;
  139. }
  140. .result-document div {
  141. padding: 5px;
  142. }
  143. .result-title {
  144. width:60%;
  145. }
  146. .result-body {
  147. background: #ddd;
  148. }
  149. .result-document:nth-child(2n+1) {
  150. background-color: #FFFFFD;
  151. }
  152. #facets {
  153. margin: 5px;
  154. margin-top: 0px;
  155. padding: 5px;
  156. top: -20px;
  157. position: relative;
  158. float: right;
  159. width: 25%;
  160. }
  161. .facet-field {
  162. font-weight: bold;
  163. }
  164. #facets ul {
  165. list-style: none;
  166. margin: 0;
  167. margin-bottom: 5px;
  168. margin-top: 5px;
  169. padding-left: 10px;
  170. }
  171. #facets ul li {
  172. color: #999;
  173. padding: 2px;
  174. }
  175. div.facet_field {
  176. clear: left;
  177. }
  178. ul.tx3-tag-cloud { }
  179. ul.tx3-tag-cloud li {
  180. display: block;
  181. float: left;
  182. list-style: none;
  183. margin-right: 4px;
  184. }
  185. ul.tx3-tag-cloud li a {
  186. display: block;
  187. text-decoration: none;
  188. color: #c9c9c9;
  189. padding: 3px 10px;
  190. }
  191. ul.tx3-tag-cloud li a:hover {
  192. color: #000000;
  193. -webkit-transition: color 250ms linear;
  194. -moz-transition: color 250ms linear;
  195. -o-transition: color 250ms linear;
  196. -ms-transition: color 250ms linear;
  197. transition: color 250ms linear;
  198. }
  199. .dropit {
  200. list-style: none;
  201. padding: 0;
  202. margin: 0;
  203. }
  204. .dropit .dropit-trigger { position: relative; }
  205. .dropit .dropit-submenu {
  206. position: absolute;
  207. top: 100%;
  208. left: 0; /* dropdown left or right */
  209. z-index: 1000;
  210. display: none;
  211. min-width: 150px;
  212. list-style: none;
  213. padding: 0;
  214. margin: 0;
  215. }
  216. .dropit .dropit-open .dropit-submenu { display: block; }
  217. <!--autocomplete css-->
  218. .ac_results {
  219. padding: 0px;
  220. border: 1px solid black;
  221. background-color: white;
  222. overflow: hidden;
  223. z-index: 99999;
  224. }
  225. .ac_results ul {
  226. width: 100%;
  227. list-style-position: outside;
  228. list-style: none;
  229. padding: 0;
  230. margin: 0;
  231. }
  232. .ac_results li {
  233. margin: 0px;
  234. padding: 2px 5px;
  235. cursor: default;
  236. display: block;
  237. font: menu;
  238. font-size: 12px;
  239. line-height: 16px;
  240. overflow: hidden;
  241. }
  242. .ac_loading {
  243. // background: white url('˜indicator.gif') right center no-repeat;
  244. }
  245. .ac_odd {
  246. background-color: #eee;
  247. }
  248. .ac_over {
  249. background-color: #0A246A;
  250. color: white;
  251. }
  252. </style>