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
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

133 líneas
2.4KB

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