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.

titles.html 1.2KB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="action">
  4. <button onClick="refresh(this)" type="button" value="Refresh" title="new iteration">↻</button>
  5. <button onclick="addRandomTitle()" title="add one">+</button>
  6. <button onclick="removeRandomTitle()" title="remove one">-</button>
  7. </div>
  8. <div class="row">
  9. <div class="col m-5">
  10. <a href="{{ url_for('main.index') }}" class="h1 text-left"> ⇽ </a>
  11. <p class="h1 text-center">Poetics of Titles</p>
  12. </div>
  13. </div>
  14. <div id="page-titles">
  15. {% for title in titles %}
  16. <span class="title">
  17. <a href="{{ url_for('search.id_search', id=title['id'], core='all') }}">
  18. {{ title['title'] }}
  19. </a>
  20. </span>
  21. <span class="joint">&</span>
  22. {% endfor %}
  23. </div>
  24. <script type="text/javascript">
  25. var titles = {{ additional_titles|tojson }};
  26. x = 0;
  27. function addRandomTitle(){
  28. var record_array = titles[x];
  29. document.querySelector('#page-titles').innerHTML += "<a href='/search/id?id=" + record_array['id'] + "&core=all'><span class='title'>" + record_array['title'] + "</span></a><span class='joint'>&</span>";
  30. x++;
  31. window.scrollTo(0, document.body.scrollHeight);
  32. }
  33. </script>
  34. {% endblock %}