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
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

131 lines
2.3KB

  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. $random_record = one_random_record();
  11. ?>
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15. <meta charset="utf-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1">
  17. <link rel="stylesheet" type="text/css" href="css/style.css">
  18. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  19. <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>
  20. </head>
  21. <body>
  22. <div class="container-fluid">
  23. Application ID:
  24. <?php
  25. echo $random_record['application_id'];
  26. ?>
  27. <br><br>
  28. EPO publication:
  29. <a href=<?php echo $random_record['epo_publication_url']; ?>>
  30. <?php
  31. echo $random_record['epo_publication_url'];
  32. ?>
  33. </a>
  34. <br><br>
  35. IPC publication:
  36. <a href=<?php echo $random_record['ipc_publication_url']; ?>>
  37. <?php
  38. echo $random_record['ipc_publication_url'];
  39. ?>
  40. </a>
  41. <br><br>
  42. Title:
  43. <?php
  44. echo $random_record['title'];
  45. ?>
  46. <br><br>
  47. <?php
  48. if ($random_record['abstract']):
  49. ?>
  50. Abstract:
  51. <?php
  52. echo $random_record['abstract'];
  53. ?>
  54. <br><br>
  55. <?
  56. endif;
  57. ?>
  58. <?php
  59. $publication_details = get_publication_details($random_record['doc_ref']);
  60. if (isset($publication_details['original_title'])):
  61. ?>
  62. Original language title:
  63. <?php
  64. echo $publication_details['original_title'];
  65. ?>
  66. <br><br>
  67. <?php
  68. endif;
  69. ?>
  70. <?php
  71. if (isset($publication_details['original_abstract'])):
  72. ?>
  73. Original language abstract:
  74. <?php
  75. echo $publication_details['original_abstract'];
  76. ?>
  77. <br><br>
  78. <?php
  79. endif;
  80. ?>
  81. <?php
  82. if (check_for_images($random_record['doc_ref'])):
  83. ?>
  84. <iframe src="./ops_image.php?doc_ref=<?php echo $random_record['doc_ref'] ?>" width="100%" height="500px">
  85. </iframe>
  86. <br><br>
  87. <?php
  88. endif;
  89. ?>
  90. </div>
  91. </body>
  92. </html>