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.

100 lines
1.3KB

  1. <?php
  2. # @name: index.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: Home page for the application
  8. include '../random.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. if (get_publication_details($random_record['doc_ref'])):
  54. ?>
  55. <br><br>
  56. <?php
  57. endif;
  58. ?>
  59. <?php
  60. if (check_for_images($random_record['doc_ref'])):
  61. ?>
  62. <iframe src="./ops_image.php?doc_ref=<?php echo $random_record['doc_ref'] ?>" width="100%" height="500px">
  63. </iframe>
  64. <br><br>
  65. <?php
  66. endif;
  67. ?>
  68. </body>
  69. </html>