Browse Source

finishing integration of Joana's design

solr_update
Simon Bowie 2 years ago
parent
commit
b95684642d
7 changed files with 29 additions and 37 deletions
  1. +0
    -1
      web/app/ops.py
  2. +0
    -1
      web/app/solr.py
  3. +1
    -1
      web/app/static/styles/custom.css
  4. +3
    -1
      web/app/templates/base.html
  5. +10
    -18
      web/app/templates/compare.html
  6. +5
    -5
      web/app/templates/images.html
  7. +10
    -10
      web/app/templates/record.html

+ 0
- 1
web/app/ops.py View File

# @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>

+ 0
- 1
web/app/solr.py View File

# @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>

+ 1
- 1
web/app/static/styles/custom.css View File



/* 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;
} }



+ 3
- 1
web/app/templates/base.html View File

<!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">

+ 10
- 18
web/app/templates/compare.html View File

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 %}



+ 5
- 5
web/app/templates/images.html View File

{% 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 %}

+ 10
- 10
web/app/templates/record.html View File

{% 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 %}



Loading…
Cancel
Save