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.

82 lines
2.0KB

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