Преглед изворни кода

finishing integration of Joana's design

solr_update
Simon Bowie пре 2 година
родитељ
комит
b95684642d
7 измењених фајлова са 29 додато и 37 уклоњено
  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 Прегледај датотеку

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

+ 0
- 1
web/app/solr.py Прегледај датотеку

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

+ 1
- 1
web/app/static/styles/custom.css Прегледај датотеку

@@ -273,7 +273,7 @@ p.about-text {

/* PAGE —> RANDOM IMAGES */

#random-img-page{
body#random-img-page{
background-color: var(--color-dark) !important;
}


+ 3
- 1
web/app/templates/base.html Прегледај датотеку

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

+ 10
- 18
web/app/templates/compare.html Прегледај датотеку

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


+ 5
- 5
web/app/templates/images.html Прегледај датотеку

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

+ 10
- 10
web/app/templates/record.html Прегледај датотеку

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


Loading…
Откажи
Сачувај