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
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

80 lines
1.0KB

  1. <?php
  2. # @name: 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
  8. include '../solr.php';
  9. ?>
  10. <?php
  11. $search_results = solr_search($_POST["search"]);
  12. //print_r($search_results);
  13. foreach($search_results as $result):
  14. ?>
  15. Application ID:
  16. <?php
  17. echo $result['application_id'];
  18. ?>
  19. <br><br>
  20. EPO publication:
  21. <a href=<?php echo $result['epo_publication_url']; ?>>
  22. <?php
  23. echo $result['epo_publication_url'];
  24. ?>
  25. </a>
  26. <br><br>
  27. IPC publication:
  28. <a href=<?php echo $result['ipc_publication_url']; ?>>
  29. <?php
  30. echo $result['ipc_publication_url'];
  31. ?>
  32. </a>
  33. <br><br>
  34. Title:
  35. <?php
  36. echo $result['title'];
  37. ?>
  38. <br><br>
  39. <?php
  40. if ($result['abstract']):
  41. ?>
  42. Abstract:
  43. <?php
  44. echo $result['abstract'];
  45. ?>
  46. <br><br>
  47. <hr>
  48. <?
  49. endif;
  50. ?>
  51. <?php
  52. endforeach;
  53. ?>