diff --git a/library/application/csvparser.py b/library/application/csvparser.py index 17db434..df16928 100644 --- a/library/application/csvparser.py +++ b/library/application/csvparser.py @@ -140,7 +140,6 @@ class CsvParser: fieldsofinterest[row["Id"]] = fields return fieldsofinterest - def getfullpublication(self, pubid): """For the single book view, most complete overview""" libcsv = open(os.path.join(DATA_DIR, self.csv_file), "r") diff --git a/library/forms/uploadform.py b/library/forms/uploadform.py index 44f92de..b2b28d2 100644 --- a/library/forms/uploadform.py +++ b/library/forms/uploadform.py @@ -1,8 +1,13 @@ """Form object declaration.""" from flask_wtf import FlaskForm from flask_wtf.file import FileAllowed, FileField -from wtforms import (IntegerField, RadioField, StringField, SubmitField, - validators) +from wtforms import ( + IntegerField, + RadioField, + StringField, + SubmitField, + validators, +) from wtforms.validators import Length, NumberRange @@ -33,7 +38,7 @@ class PublicationForm(FlaskForm): year = IntegerField( "Year:", [validators.InputRequired(), NumberRange(min=0, max=2050)], - default=2023 + default=2023, ) fields = StringField("Fields:") type = StringField( diff --git a/library/page.py b/library/page.py index 2d388eb..059c7d6 100644 --- a/library/page.py +++ b/library/page.py @@ -28,6 +28,7 @@ csvparser = CsvParser( APP.config["LIBRARY_FILENAME"], APP.config["IMAGE_FOLDER"] ) + @APP.route("/") def index(): """Main route, shows all the books and you can filter them diff --git a/library/static/css/style.css b/library/static/css/style.css index fea4c6a..ace4389 100644 --- a/library/static/css/style.css +++ b/library/static/css/style.css @@ -1,6 +1,7 @@ html, body { margin: 0; - font-family: libreBaskerville, serif; + font-family: "libreBaskerville"; + font-style: normal; background-repeat: no-repeat; background-attachment: fixed; } @@ -23,7 +24,7 @@ body:after { @font-face { - font-family: libreBaskerville; + font-family: "libreBaskerville"; src: url(../fonts/LibreBaskerville-Regular.otf); } @@ -137,6 +138,7 @@ table { background-color: #f1f1f1; border-spacing: 0; } +tbody:hover {background-color: #ddd;} tr { margin: 0; diff --git a/library/templates/index.html b/library/templates/index.html index 1559049..2948aa9 100644 --- a/library/templates/index.html +++ b/library/templates/index.html @@ -1,8 +1,8 @@ {% extends "base.html" %} {% block main %} - +
{% for id, pubinfo in publications.items() %}
@@ -17,11 +17,11 @@ {% endif %} - Author/Editor + Author/Editor: {{ pubinfo["Author"] }} - Title + Title: {{ pubinfo["Title"] }}