A search interface for the Performing Patents Otherwise publication as part of 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 OPS API. https://patents.copim.ac.uk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

search.html 2.1KB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="row">
  4. <div class="col m-5">
  5. <a href="{{ url_for('main.index') }}" class="h1 text-left"> ⇽ </a>
  6. <p class="h1 text-center">a timeline of inventions</p>
  7. <p class="mt-2 text-center">{{ num_found }} patents found out of 320,000</p>
  8. </div>
  9. </div>
  10. <div class="row p-3">
  11. <form action="{{ url_for('search.basic_search') }}" method="POST">
  12. <input type="hidden" name="search" value="{{ search }}">
  13. <input type="hidden" name="searchopt" value="{{ core }}">
  14. sort by:
  15. <select name="sort" id="sort" onchange="this.form.submit()">
  16. <option value="relevance" {% if sort == 'relevance' %} selected {% endif %}>relevance</option>
  17. <option value="year desc" {% if sort == 'year desc' %} selected {% endif %}>year descending</option>
  18. <option value="year asc" {% if sort == 'year asc' %} selected {% endif %}>year ascending</option>
  19. </select>
  20. <noscript>
  21. <input type="submit" class="btn btn-default" value="Set" />
  22. </noscript>
  23. </form>
  24. </div>
  25. {% if results == 'no results found' %}
  26. {{ results }}
  27. {% else %}
  28. {% for result in results %}
  29. <p class="h1">
  30. Year:
  31. {{ result['year'] }}
  32. </p>
  33. {% if result['title'] is defined %}
  34. <p class="mb-2 mt-5">
  35. <span class="emphasis">Title:</span>
  36. <span class="result-entry">
  37. {{ result['title'] }}
  38. </span>
  39. </p>
  40. {% endif %}
  41. {% if result['abstract'] is defined %}
  42. <p class="mb-2">
  43. <span class="emphasis">Abstract:</span>
  44. <span class="result-entry">
  45. {{ result['abstract'] }}
  46. </span>
  47. </p>
  48. {% endif %}
  49. <div class="mt-2 mb-5 search-links">
  50. <p>
  51. <span class="emphasis">European Patent Office PDF:</span>
  52. <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}">
  53. <span class="result-entry">
  54. {{ result['application_id'] }}
  55. </span>
  56. </a>
  57. </p>
  58. </div>
  59. {% endfor %}
  60. {% endif %}
  61. <script type="text/javascript">
  62. highlightSearchTerms({{ search|tojson}})
  63. </script>
  64. {% endblock %}