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.

101 lines
2.6KB

  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 {{ total_number }}</p>
  8. </div>
  9. </div>
  10. <div class="row p-3">
  11. {% if search is defined %}
  12. <form action="{{ url_for('search.basic_search') }}" method="POST">
  13. <input type="hidden" name="search" value="{{ search }}">
  14. {% elif country_code is defined %}
  15. <form action="{{ url_for('search.country_search') }}" method="POST">
  16. <input type="hidden" name="country_code" value="{{ country_code }}">
  17. {% endif %}
  18. <input type="hidden" name="searchopt" value="{{ core }}">
  19. sort by:
  20. <select name="sort" id="sort" onchange="this.form.submit()">
  21. <option value="relevance" {% if sort == 'relevance' %} selected {% endif %}>relevance</option>
  22. <option value="year desc" {% if sort == 'year desc' %} selected {% endif %}>year descending</option>
  23. <option value="year asc" {% if sort == 'year asc' %} selected {% endif %}>year ascending</option>
  24. </select>
  25. <noscript>
  26. <input type="submit" class="btn btn-default" value="Set" />
  27. </noscript>
  28. </form>
  29. </div>
  30. {% if results == 'no results found' %}
  31. {{ results }}
  32. {% else %}
  33. {% for result in results %}
  34. <p class="h1">
  35. Year:
  36. {{ result['year'] }}
  37. </p>
  38. {% if result['title'] is defined %}
  39. <p class="mb-2 mt-5">
  40. <span class="emphasis">Title:</span>
  41. <span class="result-entry">
  42. {{ result['title'] }}
  43. </span>
  44. </p>
  45. {% endif %}
  46. {% if result['country'] is defined %}
  47. <p class="mb-2">
  48. <span class="emphasis">Country:</span>
  49. {% if result['country'].name is defined %}
  50. {{ result['country'].name }} {{ result['country'].flag }}
  51. {% else %}
  52. {{ result['country'] }}
  53. {% endif %}
  54. </p>
  55. {% endif %}
  56. {% if result['abstract'] is defined %}
  57. <p class="mb-2">
  58. <span class="emphasis">Abstract:</span>
  59. <span class="result-entry">
  60. {{ result['abstract'] }}
  61. </span>
  62. </p>
  63. {% endif %}
  64. <div class="mt-2 mb-5 search-links">
  65. <p>
  66. <span class="emphasis">European Patent Office PDF:</span>
  67. <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}">
  68. <span class="result-entry">
  69. {{ result['application_id'] }}
  70. </span>
  71. </a>
  72. </p>
  73. </div>
  74. {% endfor %}
  75. {% endif %}
  76. {% if search is defined %}
  77. <script type="text/javascript">
  78. highlightSearchTerms({{ search|tojson}})
  79. </script>
  80. {% endif %}
  81. {% endblock %}