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.

91 lines
2.3KB

  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['country'] is defined %}
  42. <p class="mb-2">
  43. <span class="emphasis">Country:</span>
  44. {{ result['country'].name }}
  45. {{ result['country'].flag }}
  46. </p>
  47. {% endif %}
  48. {% if result['abstract'] is defined %}
  49. <p class="mb-2">
  50. <span class="emphasis">Abstract:</span>
  51. <span class="result-entry">
  52. {{ result['abstract'] }}
  53. </span>
  54. </p>
  55. {% endif %}
  56. <div class="mt-2 mb-5 search-links">
  57. <p>
  58. <span class="emphasis">European Patent Office PDF:</span>
  59. <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}">
  60. <span class="result-entry">
  61. {{ result['application_id'] }}
  62. </span>
  63. </a>
  64. </p>
  65. </div>
  66. {% endfor %}
  67. {% endif %}
  68. <script type="text/javascript">
  69. highlightSearchTerms({{ search|tojson}})
  70. </script>
  71. {% endblock %}