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
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 = random_record();
  11. ?>
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15. </head>
  16. <body>
  17. Application ID:
  18. <?php
  19. echo $random_record['application_id'];
  20. ?>
  21. <br><br>
  22. EPO publication:
  23. <a href=<?php echo $random_record['epo_publication_url']; ?>>
  24. <?php
  25. echo $random_record['epo_publication_url'];
  26. ?>
  27. </a>
  28. <br><br>
  29. IPC publication:
  30. <a href=<?php echo $random_record['ipc_publication_url']; ?>>
  31. <?php
  32. echo $random_record['ipc_publication_url'];
  33. ?>
  34. </a>
  35. <br><br>
  36. Title:
  37. <?php
  38. echo $random_record['title'];
  39. ?>
  40. <br><br>
  41. <?php
  42. if ($random_record['abstract']):
  43. ?>
  44. Abstract:
  45. <?php
  46. echo $random_record['abstract'];
  47. ?>
  48. <br><br>
  49. <?
  50. endif;
  51. ?>
  52. <?php
  53. $publication_details = get_publication_details($random_record['doc_ref']);
  54. if (isset($publication_details['original_title'])):
  55. ?>
  56. Original language title:
  57. <?php
  58. echo $publication_details['original_title'];
  59. ?>
  60. <br><br>
  61. <?php
  62. endif;
  63. ?>
  64. <?php
  65. if (isset($publication_details['original_abstract'])):
  66. ?>
  67. Original language abstract:
  68. <?php
  69. echo $publication_details['original_abstract'];
  70. ?>
  71. <br><br>
  72. <?php
  73. endif;
  74. ?>
  75. <?php
  76. if (check_for_images($random_record['doc_ref'])):
  77. ?>
  78. <iframe src="./ops_image.php?doc_ref=<?php echo $random_record['doc_ref'] ?>" width="100%" height="500px">
  79. </iframe>
  80. <br><br>
  81. <?php
  82. endif;
  83. ?>
  84. </body>
  85. </html>