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
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.

3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
3 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. # @name: random.php
  3. # @version: 0.1
  4. # @creation_date: 2021-09-24
  5. # @license: The MIT License <https://opensource.org/licenses/MIT>
  6. # @author: Simon Bowie <ad7588@coventry.ac.uk>
  7. # @purpose: Displays a random record from the Solr index
  8. include '../solr.php';
  9. include '../ops_api.php';
  10. $core = 'all';
  11. $random_record = one_random_record($core);
  12. $publication_details = get_publication_details($random_record['doc_ref']);
  13. ?>
  14. <!DOCTYPE html>
  15. <html lang="en">
  16. <head>
  17. <title>Performing Patents Otherwise: Archival conversations with 320.000 clothing inventions</title>
  18. <meta charset="utf-8">
  19. <meta name="viewport" content="width=device-width, initial-scale=1">
  20. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  21. <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>
  22. <link rel="stylesheet" type="text/css" href="css/style.css">
  23. </head>
  24. <body>
  25. <div class="container-fluid">
  26. Application ID:
  27. <a href="id_search.php?id=<? echo $random_record['id']; ?>&core=all">
  28. <?php
  29. echo $random_record['application_id'];
  30. ?>
  31. </a>
  32. <br><br>
  33. Year:
  34. <?php
  35. echo $random_record['year'];
  36. ?>
  37. <br><br>
  38. EPO publication:
  39. <a href=<?php echo $random_record['epo_publication_url']; ?>>
  40. <?php
  41. echo $random_record['epo_publication_url'];
  42. ?>
  43. </a>
  44. <br><br>
  45. IPC publication:
  46. <a href=<?php echo $random_record['ipc_publication_url']; ?>>
  47. <?php
  48. echo $random_record['ipc_publication_url'];
  49. ?>
  50. </a>
  51. <br><br>
  52. <?php
  53. if (isset($random_record['title'])):
  54. ?>
  55. Title:
  56. <?php
  57. echo $random_record['title'];
  58. ?>
  59. <br><br>
  60. <?php
  61. endif;
  62. ?>
  63. <?php
  64. if (isset($publication_details['original_title'])):
  65. ?>
  66. Original language title:
  67. <?php
  68. echo $publication_details['original_title'];
  69. ?>
  70. <br><br>
  71. <?php
  72. endif;
  73. ?>
  74. <?php
  75. if (isset($random_record['abstract'])):
  76. ?>
  77. Abstract:
  78. <?php
  79. echo $random_record['abstract'];
  80. ?>
  81. <br><br>
  82. <?
  83. endif;
  84. ?>
  85. <?php
  86. if (isset($publication_details['original_abstract'])):
  87. ?>
  88. Original language abstract:
  89. <?php
  90. echo $publication_details['original_abstract'];
  91. ?>
  92. <br><br>
  93. <?php
  94. endif;
  95. ?>
  96. <?php
  97. if (check_for_images($random_record['doc_ref'])):
  98. ?>
  99. <?php
  100. $image = get_images($random_record["doc_ref"]);
  101. ?>
  102. <?php
  103. echo '<img class="img-fluid" src="data:image/jpg;base64,'.base64_encode($image->getImageBlob()).'" alt="Drawing of patent" />';
  104. ?>
  105. <?php
  106. endif;
  107. ?>
  108. </div>
  109. </body>
  110. </html>