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
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

116 Zeilen
3.8KB

  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 '../solr.php';
  9. $cores = array("active", "expanding", "invisible", "multispecies", "pissing", "secret", "defending", "surviving", "working");
  10. ?>
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14. <title>Performing Patents Otherwise: Archival conversations with 320.000 clothing inventions</title>
  15. <meta charset="utf-8">
  16. <meta name="viewport" content="width=device-width, initial-scale=1">
  17. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  18. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
  19. <link rel="stylesheet" type="text/css" href="css/style.css">
  20. </head>
  21. <body class="d-flex flex-column min-vh-100">
  22. <main class="flex-shrink-0">
  23. <div class="container-fluid p-5 my-5 border">
  24. <div class="row">
  25. <div class="col text-center">
  26. <p class="h1">Performing Patents Otherwise</p>
  27. <p class="h2">Archival conversations with 320,000 clothing inventions</p>
  28. </div>
  29. </div>
  30. <div class="row justify-content-center p-3">
  31. <div class="col-sm-6 text-center">
  32. <form action="search.php" method="POST">
  33. <input type="text" name="search" placeholder="search for a patent record">
  34. <input type="submit" id="submit" value="search">
  35. </form>
  36. </div>
  37. </div>
  38. <div class="row p-3">
  39. <div class="col text-center">
  40. <a href="./random.php">show a random record</a>
  41. </div>
  42. <div class="col text-center">
  43. <a href="./compare.php">compare two random records</a>
  44. </div>
  45. </div>
  46. <div class="row p-3">
  47. <div class="col text-center">
  48. <a href="./titles.php">ten random titles</a>
  49. </div>
  50. <div class="col text-center">
  51. <a href="./abstracts.php">ten random abstracts</a>
  52. </div>
  53. <div class="col text-center">
  54. <a href="./random_images.php">ten random images (takes a long time to load)</a>
  55. </div>
  56. </div>
  57. <?php
  58. foreach($cores as $core):
  59. ?>
  60. <div class="row p-3 m-3 border">
  61. <div class="col-1 border border-dark text-center verticaltext">
  62. <span class="text-uppercase"><?php echo $core; ?></span>
  63. </div>
  64. <div class="col-11">
  65. <div class="row p-3">
  66. <?php
  67. $random_record = one_random_record($core);
  68. ?>
  69. <a href="id_search.php?id=<? echo $random_record['id']; ?>&core=<? echo $core; ?>">
  70. <?php
  71. if(isset($random_record['title'])){
  72. echo $random_record['title'];
  73. }
  74. ?>
  75. </a>
  76. </div>
  77. <div class="row p-3">
  78. <?php
  79. if(isset($random_record['abstract'])){
  80. echo $random_record['abstract'];
  81. }
  82. ?>
  83. </div>
  84. </div>
  85. </div>
  86. <?php
  87. endforeach;
  88. ?>
  89. </div>
  90. </main>
  91. <footer class="footer py-3 mt-auto bg-light">
  92. <div class="container">
  93. <span class="text-muted">Data from the <a href="https://www.epo.org/">European Patent Office's</a> <a href="https://worldwide.espacenet.com/">Espacenet patent search engine</a> and reconfigured by Goldsmiths, University of London's Archival Conversations project.</span>
  94. </div>
  95. </footer>
  96. </body>
  97. </html>