A search interface for data from 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 API. https://patents.copim.ac.uk
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?php
  2. # @name: compare.php
  3. # @version: 0.1
  4. # @creation_date: 2021-09-30
  5. # @license: The MIT License <https://opensource.org/licenses/MIT>
  6. # @author: Simon Bowie <ad7588@coventry.ac.uk>
  7. # @purpose: Displays two random records from the Solr index
  8. include '../solr.php';
  9. include '../ops_api.php';
  10. $core = 'all';
  11. $random_records = two_random_records($core);
  12. $record_one = $random_records[0];
  13. $record_two = $random_records[1];
  14. $record_one_details = get_publication_details($record_one['doc_ref']);
  15. $record_two_details = get_publication_details($record_two['doc_ref']);
  16. ?>
  17. <!DOCTYPE html>
  18. <html lang="en">
  19. <head>
  20. <title>Performing Patents Otherwise: Archival conversations with 320.000 clothing inventions</title>
  21. <meta charset="utf-8">
  22. <meta name="viewport" content="width=device-width, initial-scale=1">
  23. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  24. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
  25. <link rel="stylesheet" type="text/css" href="css/style.css">
  26. </head>
  27. <body>
  28. <div class="container-fluid">
  29. <div class="row">
  30. <div class="col-6 text-center">
  31. Application ID:
  32. <a href="id_search.php?id=<? echo $random_record['id']; ?>&core=all">
  33. <?php
  34. echo $record_one['application_id'];
  35. ?>
  36. </a>
  37. <br><br>
  38. Year:
  39. <?php
  40. echo $record_one['year'];
  41. ?>
  42. <br><br>
  43. EPO publication:
  44. <a href=<?php echo $record_one['epo_publication_url']; ?>>
  45. <?php
  46. echo $record_one['epo_publication_url'];
  47. ?>
  48. </a>
  49. <br><br>
  50. IPC publication:
  51. <a href=<?php echo $record_one['ipc_publication_url']; ?>>
  52. <?php
  53. echo $record_one['ipc_publication_url'];
  54. ?>
  55. </a>
  56. <br><br>
  57. <?php
  58. if (isset($record_one['title'])):
  59. ?>
  60. Title:
  61. <?php
  62. echo $record_one['title'];
  63. ?>
  64. <br><br>
  65. <?php
  66. endif;
  67. ?>
  68. <?php
  69. if (isset($record_one_details['original_title'])):
  70. ?>
  71. Original language title:
  72. <?php
  73. echo $record_one_details['original_title'];
  74. ?>
  75. <br><br>
  76. <?php
  77. endif;
  78. ?>
  79. <?php
  80. if (isset($record_one['abstract'])):
  81. ?>
  82. Abstract:
  83. <?php
  84. echo $record_one['abstract'];
  85. ?>
  86. <br><br>
  87. <?
  88. endif;
  89. ?>
  90. <?php
  91. if (isset($record_one_details['original_abstract'])):
  92. ?>
  93. Original language abstract:
  94. <?php
  95. echo $record_one_details['original_abstract'];
  96. ?>
  97. <br><br>
  98. <?php
  99. endif;
  100. ?>
  101. <?php
  102. if (check_for_images($record_one['doc_ref'])):
  103. ?>
  104. <?php
  105. $image = get_images($record_one["doc_ref"]);
  106. ?>
  107. <?php
  108. echo '<img class="img-fluid" src="data:image/jpg;base64,'.base64_encode($image->getImageBlob()).'" alt="Drawing of patent" />';
  109. ?>
  110. <?php
  111. endif;
  112. ?>
  113. </div>
  114. <div class="col-6 text-center">
  115. Application ID:
  116. <a href="id_search.php?id=<? echo $record_two['id']; ?>&core=all">
  117. <?php
  118. echo $record_two['application_id'];
  119. ?>
  120. </a>
  121. <br><br>
  122. Year:
  123. <?php
  124. echo $record_two['year'];
  125. ?>
  126. <br><br>
  127. EPO publication:
  128. <a href=<?php echo $record_two['epo_publication_url']; ?>>
  129. <?php
  130. echo $record_two['epo_publication_url'];
  131. ?>
  132. </a>
  133. <br><br>
  134. IPC publication:
  135. <a href=<?php echo $record_two['ipc_publication_url']; ?>>
  136. <?php
  137. echo $record_two['ipc_publication_url'];
  138. ?>
  139. </a>
  140. <br><br>
  141. <?php
  142. if (isset($record_two['title'])):
  143. ?>
  144. Title:
  145. <?php
  146. echo $record_two['title'];
  147. ?>
  148. <br><br>
  149. <?php
  150. endif;
  151. ?>
  152. <?php
  153. if (isset($record_two_details['original_title'])):
  154. ?>
  155. Original language title:
  156. <?php
  157. echo $record_two_details['original_title'];
  158. ?>
  159. <br><br>
  160. <?php
  161. endif;
  162. ?>
  163. <?php
  164. if (isset($record_two['abstract'])):
  165. ?>
  166. Abstract:
  167. <?php
  168. echo $record_two['abstract'];
  169. ?>
  170. <br><br>
  171. <?
  172. endif;
  173. ?>
  174. <?php
  175. if (isset($record_two_details['original_abstract'])):
  176. ?>
  177. Original language abstract:
  178. <?php
  179. echo $record_two_details['original_abstract'];
  180. ?>
  181. <br><br>
  182. <?php
  183. endif;
  184. ?>
  185. <?php
  186. if (check_for_images($record_two['doc_ref'])):
  187. ?>
  188. <?php
  189. $image = get_images($record_two["doc_ref"]);
  190. ?>
  191. <?php
  192. echo '<img class="img-fluid" src="data:image/jpg;base64,'.base64_encode($image->getImageBlob()).'" alt="Drawing of patent" />';
  193. ?>
  194. <?php
  195. endif;
  196. ?>
  197. </div>
  198. </div>
  199. </div>
  200. </body>
  201. </html>