| @@ -1,5 +1,4 @@ | |||
| # @name: ops.py | |||
| # @version: 0.1 | |||
| # @creation_date: 2022-09-08 | |||
| # @license: The MIT License <https://opensource.org/licenses/MIT> | |||
| # @author: Simon Bowie <simon.bowie.19@gmail.com> | |||
| @@ -1,5 +1,4 @@ | |||
| # @name: solr.py | |||
| # @version: 0.1 | |||
| # @creation_date: 2022-09-07 | |||
| # @license: The MIT License <https://opensource.org/licenses/MIT> | |||
| # @author: Simon Bowie <simon.bowie.19@gmail.com> | |||
| @@ -273,7 +273,7 @@ p.about-text { | |||
| /* PAGE —> RANDOM IMAGES */ | |||
| #random-img-page{ | |||
| body#random-img-page{ | |||
| background-color: var(--color-dark) !important; | |||
| } | |||
| @@ -16,7 +16,7 @@ | |||
| <!DOCTYPE html> | |||
| <html> | |||
| <head> | |||
| <title>Performing Patents Otherwise: Archival conversations with 320.000 clothing inventions</title> | |||
| <title>Performing Patents Otherwise: Archival conversations with 320,000 clothing inventions</title> | |||
| <meta charset="utf-8"> | |||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |||
| @@ -29,7 +29,9 @@ | |||
| <script src="{{ url_for('static',filename='js/main.js') }}"></script> | |||
| </head> | |||
| {% block body %} | |||
| <body class="d-flex flex-column min-vh-100" id="main"> | |||
| {% endblock %} | |||
| <main class="flex-shrink-0"> | |||
| <div class="container-fluid p-5 mb-5"> | |||
| @@ -18,7 +18,6 @@ | |||
| Title: | |||
| {{ result['title'] }} | |||
| </p> | |||
| <br> | |||
| {% endif %} | |||
| {% if result['year'] is defined %} | |||
| @@ -28,44 +27,37 @@ | |||
| </p> | |||
| {% endif %} | |||
| {% if result['title'] is defined %} | |||
| Title: | |||
| {{ result['title'] }} | |||
| <br><br> | |||
| {% endif %} | |||
| {% if result['original_title'] is defined %} | |||
| <p class="mb-2"> | |||
| Original language title: | |||
| {{ result['original_title'] }} | |||
| <br><br> | |||
| </p> | |||
| {% endif %} | |||
| {% if result['abstract'] is defined %} | |||
| <p> | |||
| <p class="mb-2"> | |||
| Abstract: | |||
| {{ result['abstract'] }} | |||
| <br><br> | |||
| </p> | |||
| {% endif %} | |||
| {% if result['original_abstract'] is defined %} | |||
| <p> | |||
| <p class="mb-2"> | |||
| Original language abstract: | |||
| {{ result['original_abstract'] }} | |||
| <br><br> | |||
| </p> | |||
| {% endif %} | |||
| European Patent Office PDF: | |||
| <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}"> | |||
| <span class="result-entry"> | |||
| <p class="mb-2"> | |||
| European Patent Office PDF: | |||
| <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}"> | |||
| {{ result['application_id'] }} | |||
| </span> | |||
| </a> | |||
| </a> | |||
| </p> | |||
| {% if result['image'] is defined %} | |||
| <div class="col text-center"> | |||
| <img class="img-fluid" src="data:image/jpg;base64,{{ result['image'] }}" alt="Drawing accompanying patent for{{ result['title'] }}" /> | |||
| <img class="img-fluid" src="data:image/jpg;base64,{{ result['image'] }}" alt="Drawing accompanying patent for {{ result['title'] }}" /> | |||
| </div> | |||
| {% endif %} | |||
| @@ -1,8 +1,10 @@ | |||
| {% extends "base.html" %} | |||
| {% block content %} | |||
| {% block body %} | |||
| <body id="random-img-page"> | |||
| {% endblock %} | |||
| <div id="random-img-page"> | |||
| {% block content %} | |||
| <div class="action"> | |||
| <button onClick="refresh(this)" type="button" value="Refresh" title="new iteration">↻</button> | |||
| @@ -22,12 +24,10 @@ | |||
| {% for result in results %} | |||
| <img class="img-fluid" src="data:image/jpg;base64,{{ result['image'] }}" alt="Drawing accompanying patent for{{ result['title'] }}" /> | |||
| <img class="img-fluid" src="data:image/jpg;base64,{{ result['image'] }}" alt="Drawing accompanying patent for {{ result['title'] }}" /> | |||
| {% endfor %} | |||
| </div> | |||
| </div> | |||
| {% endblock %} | |||
| @@ -26,36 +26,36 @@ | |||
| {% endif %} | |||
| {% if result['original_title'] is defined %} | |||
| <p class="mb-2"> | |||
| Original language title: | |||
| {{ result['original_title'] }} | |||
| <br><br> | |||
| </p> | |||
| {% endif %} | |||
| {% if result['abstract'] is defined %} | |||
| <p> | |||
| <p class="mb-2"> | |||
| Abstract: | |||
| {{ result['abstract'] }} | |||
| </p> | |||
| {% endif %} | |||
| {% if result['original_abstract'] is defined %} | |||
| <p> | |||
| <p class="mb-2"> | |||
| Original language abstract: | |||
| {{ result['original_abstract'] }} | |||
| </p> | |||
| <br><br> | |||
| {% endif %} | |||
| European Patent Office PDF: | |||
| <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}"> | |||
| <span class="result-entry"> | |||
| <p class="mb-2"> | |||
| European Patent Office PDF: | |||
| <a href="{{ url_for('search.id_search', id=result['id'], core='all') }}"> | |||
| {{ result['application_id'] }} | |||
| </span> | |||
| </a> | |||
| </a> | |||
| </p> | |||
| {% if result['image'] is defined %} | |||
| <div class="col text-center"> | |||
| <img class="img-fluid" src="data:image/jpg;base64,{{ result['image'] }}" alt="Drawing accompanying patent for{{ result['title'] }}" /> | |||
| <img class="img-fluid" src="data:image/jpg;base64,{{ result['image'] }}" alt="Drawing accompanying patent for {{ result['title'] }}" /> | |||
| </div> | |||
| {% endif %} | |||