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.

search.php 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <?
  48. endif;
  49. ?>
  50. <?php
  51. endforeach;
  52. ?>