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.

76 lines
1.0KB

  1. <?php
  2. # @name: id_search.php
  3. # @version: 0.1
  4. # @creation_date: 2021-09-30
  5. # @license: The MIT License <https://opensource.org/licenses/MIT>
  6. # @author: Simon Bowie <ad7588@coventry.ac.uk>
  7. # @purpose: Searches the Solr index by ID for one particular record
  8. include '../solr.php';
  9. ?>
  10. <?php
  11. $search_results = solr_search_id($_GET["id"]);
  12. foreach($search_results as $result):
  13. ?>
  14. Application ID:
  15. <?php
  16. echo $result['application_id'];
  17. ?>
  18. <br><br>
  19. EPO publication:
  20. <a href=<?php echo $result['epo_publication_url']; ?>>
  21. <?php
  22. echo $result['epo_publication_url'];
  23. ?>
  24. </a>
  25. <br><br>
  26. IPC publication:
  27. <a href=<?php echo $result['ipc_publication_url']; ?>>
  28. <?php
  29. echo $result['ipc_publication_url'];
  30. ?>
  31. </a>
  32. <br><br>
  33. Title:
  34. <?php
  35. echo $result['title'];
  36. ?>
  37. <br><br>
  38. <?php
  39. if ($result['abstract']):
  40. ?>
  41. Abstract:
  42. <?php
  43. echo $result['abstract'];
  44. ?>
  45. <br><br>
  46. <?
  47. endif;
  48. ?>
  49. <?php
  50. endforeach;
  51. ?>