# @name: ops.py | # @name: ops.py | ||||
# @version: 0.1 | |||||
# @creation_date: 2022-09-08 | # @creation_date: 2022-09-08 | ||||
# @license: The MIT License <https://opensource.org/licenses/MIT> | # @license: The MIT License <https://opensource.org/licenses/MIT> | ||||
# @author: Simon Bowie <simon.bowie.19@gmail.com> | # @author: Simon Bowie <simon.bowie.19@gmail.com> |
# @name: solr.py | # @name: solr.py | ||||
# @version: 0.1 | |||||
# @creation_date: 2022-09-07 | # @creation_date: 2022-09-07 | ||||
# @license: The MIT License <https://opensource.org/licenses/MIT> | # @license: The MIT License <https://opensource.org/licenses/MIT> | ||||
# @author: Simon Bowie <simon.bowie.19@gmail.com> | # @author: Simon Bowie <simon.bowie.19@gmail.com> |
/* PAGE —> RANDOM IMAGES */ | /* PAGE —> RANDOM IMAGES */ | ||||
#random-img-page{ | |||||
body#random-img-page{ | |||||
background-color: var(--color-dark) !important; | background-color: var(--color-dark) !important; | ||||
} | } | ||||
<!DOCTYPE html> | <!DOCTYPE html> | ||||
<html> | <html> | ||||
<head> | <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 charset="utf-8"> | ||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||
<script src="{{ url_for('static',filename='js/main.js') }}"></script> | <script src="{{ url_for('static',filename='js/main.js') }}"></script> | ||||
</head> | </head> | ||||
{% block body %} | |||||
<body class="d-flex flex-column min-vh-100" id="main"> | <body class="d-flex flex-column min-vh-100" id="main"> | ||||
{% endblock %} | |||||
<main class="flex-shrink-0"> | <main class="flex-shrink-0"> | ||||
<div class="container-fluid p-5 mb-5"> | <div class="container-fluid p-5 mb-5"> |
Title: | Title: | ||||
{{ result['title'] }} | {{ result['title'] }} | ||||
</p> | </p> | ||||
<br> | |||||
{% endif %} | {% endif %} | ||||
{% if result['year'] is defined %} | {% if result['year'] is defined %} | ||||
</p> | </p> | ||||
{% endif %} | {% endif %} | ||||
{% if result['title'] is defined %} | |||||
Title: | |||||
{{ result['title'] }} | |||||
<br><br> | |||||
{% endif %} | |||||
{% if result['original_title'] is defined %} | {% if result['original_title'] is defined %} | ||||
<p class="mb-2"> | |||||
Original language title: | Original language title: | ||||
{{ result['original_title'] }} | {{ result['original_title'] }} | ||||
<br><br> | |||||
</p> | |||||
{% endif %} | {% endif %} | ||||
{% if result['abstract'] is defined %} | {% if result['abstract'] is defined %} | ||||
<p> | |||||
<p class="mb-2"> | |||||
Abstract: | Abstract: | ||||
{{ result['abstract'] }} | {{ result['abstract'] }} | ||||
<br><br> | |||||
</p> | </p> | ||||
{% endif %} | {% endif %} | ||||
{% if result['original_abstract'] is defined %} | {% if result['original_abstract'] is defined %} | ||||
<p> | |||||
<p class="mb-2"> | |||||
Original language abstract: | Original language abstract: | ||||
{{ result['original_abstract'] }} | {{ result['original_abstract'] }} | ||||
<br><br> | |||||
</p> | </p> | ||||
{% endif %} | {% 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'] }} | {{ result['application_id'] }} | ||||
</span> | |||||
</a> | |||||
</a> | |||||
</p> | |||||
{% if result['image'] is defined %} | {% if result['image'] is defined %} | ||||
<div class="col text-center"> | <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> | </div> | ||||
{% endif %} | {% endif %} | ||||
{% extends "base.html" %} | {% extends "base.html" %} | ||||
{% block content %} | |||||
{% block body %} | |||||
<body id="random-img-page"> | |||||
{% endblock %} | |||||
<div id="random-img-page"> | |||||
{% block content %} | |||||
<div class="action"> | <div class="action"> | ||||
<button onClick="refresh(this)" type="button" value="Refresh" title="new iteration">↻</button> | <button onClick="refresh(this)" type="button" value="Refresh" title="new iteration">↻</button> | ||||
{% for result in results %} | {% 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 %} | {% endfor %} | ||||
</div> | </div> | ||||
</div> | |||||
{% endblock %} | {% endblock %} |
{% endif %} | {% endif %} | ||||
{% if result['original_title'] is defined %} | {% if result['original_title'] is defined %} | ||||
<p class="mb-2"> | |||||
Original language title: | Original language title: | ||||
{{ result['original_title'] }} | {{ result['original_title'] }} | ||||
<br><br> | |||||
</p> | |||||
{% endif %} | {% endif %} | ||||
{% if result['abstract'] is defined %} | {% if result['abstract'] is defined %} | ||||
<p> | |||||
<p class="mb-2"> | |||||
Abstract: | Abstract: | ||||
{{ result['abstract'] }} | {{ result['abstract'] }} | ||||
</p> | </p> | ||||
{% endif %} | {% endif %} | ||||
{% if result['original_abstract'] is defined %} | {% if result['original_abstract'] is defined %} | ||||
<p> | |||||
<p class="mb-2"> | |||||
Original language abstract: | Original language abstract: | ||||
{{ result['original_abstract'] }} | {{ result['original_abstract'] }} | ||||
</p> | </p> | ||||
<br><br> | |||||
{% endif %} | {% 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'] }} | {{ result['application_id'] }} | ||||
</span> | |||||
</a> | |||||
</a> | |||||
</p> | |||||
{% if result['image'] is defined %} | {% if result['image'] is defined %} | ||||
<div class="col text-center"> | <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> | </div> | ||||
{% endif %} | {% endif %} | ||||