Browse Source

tested upload functionality with magium zine

master
crunk 4 years ago
parent
commit
fd7dc36b52
  1. 1
      library/csvparser/csvparser.py
  2. 2
      library/csvparser/varlib.csv
  3. BIN
      library/static/images/image-37.jpg
  4. BIN
      library/static/images/image-5.jpg
  5. BIN
      library/static/images/image-63.jpg
  6. 7
      library/templates/publication.html

1
library/csvparser/csvparser.py

@ -138,6 +138,7 @@ def getpublicationfromcsvrow(row):
"Highlights": row["Highlights"],
"Comments": row["Comments"],
"Borrowed": borrowed,
"Image": hasimage(row["Id"])
}
return pubinfo

2
library/csvparser/varlib.csv

@ -52,4 +52,4 @@ Id,Publication,Author,Year,Custodian,Fields,Type,Publishers,License,LicenseShort
60,Networks of one's own #1: Etherbox,"Michael Murtaugh, An Mertens, Roel Roscam Abbing, Femke Snelting",2018,Varia,"Networks, Digital Infrastructures, DIY, DIWO, Executable publication, Experimental Publishing, wireless",Paperback,Constant Verlag,Copyleft,Copyleft,,,
61,Mots de la cage aux ours - woorden uit de berenkuil,Constant,2012,Varia,"words, language, Bruxelles",Softcover,Constant,Copyleft,Copyleft,,,
62,Snake rituals and switching circuits,Florian Cramer,2009,Danny,"mass communication, personal communication, new media",paperback,Piet Zwart Institute,Creative Commons Attribution-Share Alike 3.0,Creative Commons,The function of a medium is ultimately decided by its users and not by its creators,,
63,Magium issue 1: On Eating in isolation,Alice Strete,2020,Varia,"food, sharing, personal stories, consumption",zine,Self Published,Free Art License,Free Art License,,,Danny
63,Magium issue 1: On Eating in isolation,Alice Strete,2020,Varia,"food, sharing, personal stories, consumption",zine,Self Published,Free Art License,Free Art License,,,No one

Can't render this file because it has a wrong number of fields in line 10.

BIN
library/static/images/image-37.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
library/static/images/image-5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
library/static/images/image-63.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

7
library/templates/publication.html

@ -6,6 +6,13 @@
</div>
<table id="publication">
<tbody>
{%if fullpublication["Image"]%}
<tr>
<td colspan="2" class="tdimage">
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(publicationID))}}" alt="">
</td>
</tr>
{% endif %}
<tr>
<td>Title of publication</td>
<td>{{ fullpublication["Title"] }}</td>

Loading…
Cancel
Save