Browse Source

luckily we have more copyleft than copyright books, also there is a single book view

master
crunk 4 years ago
parent
commit
c595ce8658
  1. 62
      library/csvparser/csvparser.py
  2. 117
      library/csvparser/varlib.csv
  3. 15
      library/page.py
  4. 4
      library/static/css/dropdown.css
  5. 26
      library/static/css/style.css
  6. 5
      library/static/js/script.js
  7. 2
      library/templates/base.html
  8. 2
      library/templates/index.html
  9. 10
      library/templates/menu.html
  10. 55
      library/templates/publication.html

62
library/csvparser/csvparser.py

@ -28,6 +28,7 @@ def getpublications():
"Author": row["Author"], "Author": row["Author"],
"Type": row["Type"].lower(), "Type": row["Type"].lower(),
"Year": year, "Year": year,
"License": row["LicenseShort"].lower(),
} }
publications[row["Id"]] = pubinfo publications[row["Id"]] = pubinfo
return publications return publications
@ -60,6 +61,61 @@ def getyears():
return listofyears return listofyears
# test = getpublications() def getlicenses():
# for ids, pubinfo in test.items(): libcsv = open(os.path.join(script_dir, "varlib.csv"), "r")
# print(pubinfo["Title"]) with libcsv:
csv_as_dict = csv.DictReader(libcsv)
listoflicenses = []
for row in csv_as_dict:
license = row["LicenseShort"].lower()
if not license:
license = "no license mentioned"
if license not in listoflicenses:
listoflicenses.append(license)
return listoflicenses
def getpublicationfromcsvrow(row):
year = row["Year"]
if not year:
year = "Unknown"
license = row["License"]
if not license:
license = "No license mentioned"
borrowed = row["Currently borrowed by"]
if not borrowed:
borrowed = "No one"
pubinfo = {
"Title": row["Publication"],
"Author": row["Author"],
"Year": year,
"Custodian": row["Custodian"],
"Fields": row["Fields"],
"Type": row["Type"],
"Publishers": row["Publishers"],
"License": license,
"Highlights": row["Highlights"],
"Comments": row["Comments"],
"Borrowed": borrowed,
}
return pubinfo
def getfullpublication(pubid):
libcsv = open(os.path.join(script_dir, "varlib.csv"), "r")
pubinfo = {}
print(type(pubid))
with libcsv:
csv_as_dict = csv.DictReader(libcsv)
for row in csv_as_dict:
if pubid == row["Id"]:
pubinfo = getpublicationfromcsvrow(row)
# print(pubinfo)
return pubinfo
# print(getlicenses())

117
library/csvparser/varlib.csv

@ -1,62 +1,55 @@
Id,Publication,Author,Year,Custodian,Fields,Type,Publishers,License,Highlights,Comments,Currently borrowed by Id,Publication,Author,Year,Custodian,Fields,Type,Publishers,License,LicenseShort,Highlights,Comments,"Currently borrowed by"
1,The Economics of Anarchism,Anarcho,2012,Varia,"Economics, Anarchism",Zine,theanarchistlibrary.org,Anti-copyright,"The labourer retains, even after he has recieved his wages, a natural right in the thing he has produced",, 1,"The Economics of Anarchism",Anarcho,2012,Varia,"Economics, Anarchism",Zine,theanarchistlibrary.org,Anti-copyright,Anti-copyright,"The labourer retains, even after he has recieved his wages, a natural right in the thing he has produced",,
2,Identity Politics - An Anthology,The Anarchist Library,,Varia,Identity politics,Zine,Paper Jam Collective,No license mentioned,,"Skipping through, I'm not sure if this is in line with our own politics. (ccl)", 2,"Identity Politics - An Anthology","The Anarchist Library",,Varia,"Identity politics",Zine,"Paper Jam Collective","No license mentioned","No license mentioned",,me,
3,The mythology of work,CrimeThinc.com,,Varia,"Work, Anticapitalism",Zine,CrimeThinc.com,No license mentioned,,"A selection from 'Work', a 376-page analysis of contemporary capitalism", 3,"The mythology of work",CrimeThinc.com,,Varia,"Work, Anticapitalism",Zine,CrimeThinc.com,"No license mentioned","No license mentioned",,"A selection from 'Work', a 376-page analysis of contemporary capitalism",
4,Forget Shorter Showers - Why Personal Change Does Not Equal Political Change,Derrick Jensen,2009,Varia,Environmental justice,Zine,,No license mentioned,Green consumerism isn't enough.,, 4,"Forget Shorter Showers - Why Personal Change Does Not Equal Political Change","Derrick Jensen",2009,Varia,"Environmental justice",Zine,,"No license mentioned","No license mentioned","Green consumerism isn't enough.",,
5,Choreo-Graphic-Hypothesis,"<meta-author=""Joana Chicau"";>",2018,Varia,"Live Coding, Choreography",Paperback,Self published: Joana Chicau,Free Art Liceense 1.3,"Theatrical actions are not necessary to the performance, Avoid if at all possible",, 5,Choreo-Graphic-Hypothesis,"<meta-author=""Joana Chicau"";>",2018,Varia,"Live Coding, Choreography",Paperback,"Self published: Joana Chicau","Free Art License 1.3","Free Art License","Theatrical actions are not necessary to the performance, Avoid if at all possible",,
6,Point of no Return,,2013,Varia,Anarchism in the West,Zine,,No license mentioned,,Stories about becoming an anarchist in the West in the 80s, 6,"Point of no Return",,2013,Varia,"Anarchism in the West",Zine,,"No license mentioned","No license mentioned",,"Stories about becoming an anarchist in the West in the 80s",
7,Waar slapen de kroegtijgers van Oud Charlois,Jacco Weener,,Varia,"Oud Charlois, Drawing",Paperback,Self-published,No license mentioned,,, 7,"Waar slapen de kroegtijgers van Oud Charlois","Jacco Weener",,Varia,"Oud Charlois, Drawing",Paperback,Self-published,"No license mentioned","No license mentioned",,,
8,Dubbeldruk Play with me,"Editorial team: Karin de Jong, Giulia de Giovanelli, Floor van Luijk",2019,Varia,"Copyright, Publishing, Printing",Parazine,Printroom,Free art license,,"Confusing licenses mentioned in the about text on the back of the publication, FAL, Copy-left and copy right all mentioned", 8,"Dubbeldruk Play with me","Editorial team: Karin de Jong, Giulia de Giovanelli, Floor van Luijk",2019,Varia,"Copyright, Publishing, Printing",Parazine,Printroom,"Free art license","Free art license",,"Confusing licenses mentioned in the about text on the back of the publication, FAL, Copy-left and copy right all mentioned",
9,To Boldly Go: a starters guide to hand made and diy films,Film Werkplaats Worm Rotterdam,2008,Varia,"Experimental film, Analog film, DIY, Hand-made",Paperback,Knust (Nijmegen),'No license mentioned,,, 9,"To Boldly Go: a starters guide to hand made and diy films","Film Werkplaats Worm Rotterdam",2008,Varia,"Experimental film, Analog film, DIY, Hand-made",Paperback,"Knust (Nijmegen)","'No license mentioned","No license mentioned",,,
10,Anarchism: Basic concepts and ideas,Peter Storm,2018,Varia,"Anarchism, Dutch Theory",Zine,Ravotr Editions in collaboration with Paper Jam,Feel free to use and copy this text as you see fit. Mentioning source and author would be greatly appreciated.,,Revised text of a transcribed lecture Storm gave in Rotterdam., 10,"Anarchism: Basic concepts and ideas","Peter Storm",2018,Varia,"Anarchism, Dutch Theory",Zine,"Ravotr Editions in collaboration with Paper Jam","Feel free to use and copy this text as you see fit. Mentioning source and author would be greatly appreciated.","No license mentioned",,"Revised text of a transcribed lecture Storm gave in Rotterdam.",
11,Queering Anarchism,"Deric Shannon, Abbey Willis",,Varia,"Anarchism, Queer Theory",Zine,Paper Jam Collective,No license mentioned,,, 11,"Queering Anarchism","Deric Shannon, Abbey Willis",,Varia,"Anarchism, Queer Theory",Zine,"Paper Jam Collective","No license mentioned","No license mentioned",,,
12,Abolish restaurants,Prole.info,2010,Varia,"Labour, Food industry",Paperback,Pm Press,Copyright 2010,Drawing on a range of anti-capitalist ideas as well as a heaping plate of personal experience,, 12,"Abolish restaurants",Prole.info,2010,Varia,"Labour, Food industry",Paperback,"Pm Press","Copyright 2010",Copyright,"Drawing on a range of anti-capitalist ideas as well as a heaping plate of personal experience",,
13,"Elk Woord Een Vonk: Verboden Teksten, verwerpelijke vervolging: de zaak Joke Kaviaar",Steungroep 13 September,2014,Varia (or Luke?),"Joke Kaviaar, Immigration, Activism, Forbidden Texts, Incarceration",Softcover,Self-published,Copyleft,,https://13-september.nl, 13,"Elk Woord Een Vonk: Verboden Teksten, verwerpelijke vervolging: de zaak Joke Kaviaar","Steungroep 13 September",2014,"Varia (or Luke?)","Joke Kaviaar, Immigration, Activism, Forbidden Texts, Incarceration",Softcover,Self-published,Copyleft,Copyleft,,https://13-september.nl,
14,A NO BORDERS manifesto,Ill Will Editions,2015,Varia,Migrant justice,Zine,Self-published,No license mentioned,,, 14,"A NO BORDERS manifesto","Ill Will Editions",2015,Varia,"Migrant justice",Zine,Self-published,"No license mentioned","No license mentioned",,,
15,Short Circuit: Towards an Arnarchist to Gentrification,,,Varia,"Gentrification, Anarchism",Zine,Self-published,No license mentioned,"Anarchists understandably feel an intrinsic and visceral opposition to gentrification 15,"Short Circuit: Towards an Arnarchist to Gentrification",,,Varia,"Gentrification, Anarchism",Zine,Self-published,"No license mentioned","No license mentioned","Anarchists understandably feel an intrinsic and visceral opposition to gentrification
16 Futur Musique De fanfare voor vooruit strevende volksmuziek 2018 Varia Musical Instruments, DIY Zine Self-published No license mentioned Copied instructions on building one's own musical instruments ",,
17 Franchir le cap Quentin Juhel 2019 Varia Convivial computation Zine Self-publsihed Creative commons CC-BY-SA 16,"Futur Musique","De fanfare voor vooruit strevende volksmuziek",2018,Varia,"Musical Instruments, DIY",Zine,Self-published,"No license mentioned","No license mentioned","Copied instructions on building one's own musical instruments",,
18 Consensus: Decision Making Seeds For Change UK 2010 Varia Decision making, Consensus Zine Self-published No license mentioned Short guide 17,"Franchir le cap","Quentin Juhel",2019,Varia,"Convivial computation",Zine,Self-publsihed,"Creative commons CC-BY-SA","Creative commons",,,
19 Waar ook op gestemd wordt, wij laten ons niet regeren Anarchistische Groep Nijmegen 2014 Varia Democracy Zine Self-published No license mentioned 18,"Consensus: Decision Making","Seeds For Change UK",2010,Varia,"Decision making, Consensus",Zine,Self-published,"No license mentioned","No license mentioned","Short guide ",,
20 The NGO sector: the trojan horse of capitalism Crn Blok Varia Anti-capitalism, NGO Zine Self-published Copyleft 19,"Waar ook op gestemd wordt, wij laten ons niet regeren","Anarchistische Groep Nijmegen",2014,Varia,Democracy,Zine,Self-published,"No license mentioned","No license mentioned",,,
21 Messing Around With Packet Radio Roel Roscam Abbing, Dennis De Bel Varia Packet radio, DIY Zine Self-published Public domain 20,"The NGO sector: the trojan horse of capitalism","Crn Blok",,Varia,"Anti-capitalism, NGO",Zine,Self-published,Copyleft,Copyleft,,,
22 Organising Socially: affinity groups & decision making Seeds for change Varia Consensus, Decision making, Affinity groups Zine Paper Jam Collective No license mentioned 21,"Messing Around With Packet Radio","Roel Roscam Abbing, Dennis De Bel",,Varia,"Packet radio, DIY",Zine,Self-published,"Public domain","Public domain",,,
23 The Moral of the Xerox Florian Cramer, Clara Lobregat Balaguer 2017 Varia Piracy, Cultural Appropriation Zine Self-published No license mentioned Printed in diocese of Cologne, Germany on the joyous occasion of the Pluriversale VII: Stealing from the west for the critical parishioners of Akademie der Kunste der Welt 22,"Organising Socially: affinity groups & decision making","Seeds for change",,Varia,"Consensus, Decision making, Affinity groups",Zine,"Paper Jam Collective","No license mentioned","No license mentioned",,,
24 Non-Western Anarchisms Jason Adams Varia Non-Western Anarchisms Zine Zaba Books No license mentioned The purpose of this paper is to help anarchist/anti-authoritarian movements active today to reconceptualise the history and theory of first-wave anarchism on the global level, and to reconsider its relevance to the continuing anarchist project.",, 23,"The Moral of the Xerox","Florian Cramer, Clara Lobregat Balaguer",2017,Varia,"Piracy, Cultural Appropriation",Zine,Self-published,"No license mentioned","No license mentioned","Printed in diocese of Cologne, Germany on the joyous occasion of the Pluriversale VII: Stealing from the west for the critical parishioners of Akademie der Kunste der Welt",,
25,Build Those collectives,Moose and Inza,,Varia,"Collectivism, Revolution",Zine,Paper Jam Collective,No License mentioned,,, 24,"Non-Western Anarchisms","Jason Adams",,Varia,"Non-Western Anarchisms",Zine,"Zaba Books","No license mentioned","No license mentioned","The purpose of this paper is to help anarchist/anti-authoritarian movements active today to reconceptualise the history and theory of first-wave anarchism on the global level, and to reconsider its relevance to the continuing anarchist project.",,
26,Learning Good Consent,Riot Grrrr Press,,Varia,"Consent, Sex",Zine,Paper Jam Collective,No license mentioned,,, 33,"The immaterial labor union #7: immersive advertisement","Lídia Pereira and Δεριζαματζορ Προμπλεμ ιναυστραλια",,Varia,"labour, Advertisement, immersion, social media",Zine,Self-published,"Zine is published under Gnu free documentation license 1.3 unless otherwise specified ","GNU Free Documentation License",,,
27,The Library is Open,Piet Zwart Institute,2019,Varia,Libraries,Paperback,Self-published,Copyleft,,https://issue.xpub.nl/09, 34,"The immateriality labor union #10: immateriality","Lídia Pereira and Δεριζαματζορ Προμπλεμ ιναυστραλια",2017,Varia,"Labour, Immateriality",Zine,Self-published,"GNU Free Documentation License","GNU Free Documentation License",,,
28,Pretty Fly for a Wi-Fi,Roel Roscam Abbing,2017,Varia,"Wifi, DIY, Antennas",Paperback,Self-published in collaboration with Publication Studio Rotterdam,GNU Free Documenation License 1.3,,http://roelof.info, 35,"The immaterial labor union. Special Issue #1: Homebrew Server Club","Homebrew Server Club",2017,Varia,"Self-Hosting, Servers, DIY",Zine,Self-published,CC-BY-SA,"Creative commons",,,
29,Superficial Intelligence,"Cybre Arts & Letters, Brendan Howell",2019,Varia,"AI, Crapularity",Paperback,Self-published,No license mentioned,,, 36,"Pervasive labour union. Special issue #2: The Entreprecariat","Silvio Lorusso",2017,Varia,"Entreprecariat, Labour, Precarity",Zine,Self-published,,,,"Between April and May 2017 the Zine's name changed from Immaterial Labor Union to Pervasive Labour Union",
30,Save and Forget,Thomas Walsklaar,2018,Varia,"Media, preservation, archiving, storage media",Paperback,Self-published (lulu.com),Creative commons BY-NC-ND,,, 37,"'Pervasive labour union #13: Fed Up","Lídia Pereira",2019,Varia,"Labour, DIY, federation",Zine,Self-published,"GNU Free Documentation License 1.3, CC-0, Copyright (C) 2019, Julia Janssen, Peer Production License","GNU Free Documentation License",,,
31,<nettime> interview ,Katharine Wimett,2018,Varia,"Preservation, Nettime, Net discourse",Paperback,Self-published,No license mentioned,,Interview by Katherine with Tilman Baumgaertel and Petra Heck, 38,"Each Page a Function","Raphaël Bastide",2019,Varia,"Automation, Drawing, Web to Print",Paperback,"LeMegot editions","No license mentioned","No license mentioned",,,
32,The immaterial labor union #6: Facebook Reactions,Lídia Pereira and Δεριζαματζορ Προμπλεμ ιναυστραλια,2016,Varia,"Labour, reactions, emotions, facebook, emojis",Zine,Self-published,"GNU General Public License, Peer Production License",,, 39,"In Beweging: Magazine van de Anarchistische Groep Nijmegen","Anarchistische Groep Nijmegen ",2018,Varia,"Anarchism, 1st of May, Nijmegen",Zine,Self-published,"No license mentioned","No license mentioned",,"Anarchistische Bieb de Zwarte Uil. library in Nijmegen open on saturday from 12:00 till 17:30",
33,The immaterial labor union #7: immersive advertisement,Lídia Pereira and Δεριζαματζορ Προμπλεμ ιναυστραλια,,Varia,"labour, Advertisement, immersion, social media",Zine,Self-published,Zine is published under Gnu free documentation license 1.3 unless otherwise specified ,,, 40,"Deep pockets #2 Shadowbook: Writing throiugh the digital 2014-2018","Miriam Rasch",2018,Varia,"Language, digital, communication",Paperback,"Institute of Network Cultures","CC BY-NC-SA 4.0","Creative Commons",,,
34,The immateriality labor union #10: immateriality,Lídia Pereira and Δεριζαματζορ Προμπλεμ ιναυστραλια,2017,Varia,"Labour, Immateriality",Zine,Self-published,GNU Free Documentation License,,, 41,"The Techno Galactic Software Observatory Reader",Constant,2018,Varia,"Software Studies, Software Curious People, Observation",Paperback,"Self- published","No license mentioned","No license mentioned",,"Reader for Techno Galactic Software Observatory work session",
35,The immaterial labor union. Special Issue #1: Homebrew Server Club,Homebrew Server Club,2017,Varia,"Self-Hosting, Servers, DIY",Zine,Self-published,CC-BY-SA,,, 42,"Upsetting Settings","Piet Zwart Institute",2019,Varia,"Catalogue, Experimental publishing",Softcover,XPUB,Copyleft,Copyleft,,"Dissertations from the Piet Zwart Institute 2017-2019",
36,Pervasive labour union. Special issue #2: The Entreprecariat,Silvio Lorusso,2017,Varia,"Entreprecariat, Labour, Precarity",Zine,Self-published,,,Between April and May 2017 the Zine's name changed from Immaterial Labor Union to Pervasive Labour Union, 43,"I Have Witnessed First Time Experiences ","Connie Butler",2016,Varia,"Fine Art",Softcover,"Piet Zwart institute MFA","Copyright 2016",Copyright,,,
37,'Pervasive labour union #13: Fed Up,Lídia Pereira,2019,Varia,"Labour, DIY, federation",Zine,Self-published,"GNU Free Documentation License 1.3, CC-0, Copyright (C) 2019, Julia Janssen, Peer Production License",,, 44,"The Age of Aquariums: old horoscopes for the new year","Brenda Bosma",2013,Varia,Horoscope,Paperback,Subbacultcha!,"No license mentioned","No license mentioned",,,
38,Each Page a Function,Raphaël Bastide,2019,Varia,"Automation, Drawing, Web to Print",Paperback,LeMegot editions,No license mentioned,,, 45,"The Internet Measurement Handbook",,2018,Varia,"Internet, blackout, cyber-security",Paperback,Netblocks,CC,"Creative Commons",,,
39,In Beweging: Magazine van de Anarchistische Groep Nijmegen,Anarchistische Groep Nijmegen ,2018,Varia,"Anarchism, 1st of May, Nijmegen",Zine,Self-published,No license mentioned,,Anarchistische Bieb de Zwarte Uil. library in Nijmegen open on saturday from 12:00 till 17:30, 46,"Issue #4 2019","Design Department Sandberg",2019,"Varia ","Design theory",Paperback,"Drukkerij RaddraaierSSP","No license mentioned","No license mentioned",,"Dissertations from the Design Museum",
40,Deep pockets #2 Shadowbook: Writing throiugh the digital 2014-2018,Miriam Rasch,2018,Varia,"Language, digital, communication",Paperback,Institute of Network Cultures,CC BY-NC-SA 4.0,,, 47,"O Bike and Friends","Dennis De Bel",,Varia,"Bike sharing, DIY",Zine,Self-published,"No license mentioned","No license mentioned",,,
41,The Techno Galactic Software Observatory Reader,Constant,2018,Varia,"Software Studies, Software Curious People, Observation",Paperback,Self- published,No license mentioned,,Reader for Techno Galactic Software Observatory work session, 48,"Algoliterary Encounters",Algolit,2017,Varia,"Natural text processing, machine learning, algorithms",Catalogue,Algolit,"Free Art License","Free Art License",,,
42,Upsetting Settings,Piet Zwart Institute,2019,Varia,"Catalogue, Experimental publishing",Softcover,XPUB,Copyleft,,Dissertations from the Piet Zwart Institute 2017-2019, 49,"Der Fall von Afrin",Unknown,,Varia,"Turkish politics",Zine,Unknown,"No license mentioned","No license mentioned",,,
43,I Have Witnessed First Time Experiences ,Connie Butler,2016,Varia,Fine Art,Softcover,Piet Zwart institute MFA,Copyright 2016,,, 50,"Andy de Fiets: Letter to Robin Kinross ","Paul Haworth, Sam de Groot",2010,Varia,Typography,Paperback,"TRUE TRUE TRUE Amsterdam","Copyright 2009,2010",Copyright,,,
44,The Age of Aquariums: old horoscopes for the new year,Brenda Bosma,2013,Varia,Horoscope,Paperback,Subbacultcha!,No license mentioned,,, 51,"Ora Elastică",ODD,2018,Varia,"Art, Indonesia, Romania, non-western art theory",Softcover,frACTalia,"No license mentioned","No license mentioned",,,
45,The Internet Measurement Handbook,,2018,Varia,"Internet, blackout, cyber-security",Paperback,Netblocks,CC,,, 52,"4 x Through The Labyrinth","O. Nicolai & J. Wenzel, translated by Sadie Plant",2012,"Joana Chicau",Labyrinths,Softcover,"Rollo Press",Copyright,Copyright,,,
46,Issue #4 2019,Design Department Sandberg,2019,Varia ,Design theory,Paperback,Drukkerij RaddraaierSSP,No license mentioned,,Dissertations from the Design Museum, 53,"Towards an Immersive Intelligence","Joseph Nechvatal",2009,"Joana Chicau?","Virtual reality, Computer Art",Paperback,Edgewise,Copyright,Copyright,,,
47,O Bike and Friends,Dennis De Bel,,Varia,"Bike sharing, DIY",Zine,Self-published,No license mentioned,,, 54,"Xavan et Jaluka - The Death of the Authors 1946","Peter Westenberg",2018,Varia,"Public domain",Zine,"Constant Verlag",Copyleft,Copyleft,,,
48,Algoliterary Encounters,Algolit,2017,Varia,"Natural text processing, machine learning, algorithms",Catalogue,Algolit,Free Art Licence,,, 55,"Spreekt U Sint-Gillis? Parlez-vous Saint-Gillois?",,,Varia,"Bruxelles, Language, Sint-Gillis",Softcover,"Constant Verlag",Copyleft,Copyleft,,,
49,Der Fall von Afrin,Unknown,,Varia,Turkish politics,Zine,Unknown,No license mentioned,,, 56,"Mondothèque: a radiated book","André Castro , Sînziana Păltineanu , Dennis Pohl , Dick Reckard , Natacha Roussel , Femke Snelting , Alexia de Visscher",2016,Varia,"Archive, Otlet, Library science, Mondaneum, Google, Mons",Softcover,Constant,Copyleft,Copyleft,,,
50,Andy de Fiets: Letter to Robin Kinross ,"Paul Haworth, Sam de Groot",2010,Varia,Typography,Paperback,TRUE TRUE TRUE Amsterdam,"Copyright 2009,2010",,, " ","The Death of the Authors: 'James Joyce, Rabindranath Tagore & Their Return to Life in Four Seasons","A Constant Remix",2013,Varia,"James Joyce, Ulysses",Softcover,Constant,"Public domain","Public domain",,"'generated from Public domain sources",
51,Ora Elastică,ODD,2018,Varia,"Art, Indonesia, Romania, non-western art theory",Softcover,frACTalia,No license mentioned,,, 58,"Verbindingen/Jonctions 10 : Tracks in electr(on)ic fields",Constant,2009,Varia,"Art, activism, technological culture",Softcover,Constant,Copyleft,Copyleft,,,
52,4 x Through The Labyrinth,"O. Nicolai & J. Wenzel, translated by Sadie Plant",2012,Joana Chicau,Labyrinths,Softcover,Rollo Press,Copyright,,, 59,Conversations,Constant,2014,Varia,"Software studies, Libre graphics",Softcover,"Constant Verlag",Copyleft,Copyleft,,,
53,Towards an Immersive Intelligence,Joseph Nechvatal,2009,Joana Chicau?,"Virtual reality, Computer Art",Paperback,Edgewise,Copyright,,, 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",Paperback,"Constant Verlag",Copyleft,Copyleft,,,
54,Xavan et Jaluka - The Death of the Authors 1946,Peter Westenberg,2018,Varia,Public domain,Zine,Constant Verlag,Copyleft,,, 61,"Mots de la cage aux ours - woorden uit de berenkuil",Constant,2012,Varia,"words, language, Bruxelles",Softcover,Constant,Copyleft,Copyleft,,,
55,Spreekt U Sint-Gillis? Parlez-vous Saint-Gillois?,,,Varia,"Bruxelles, Language, Sint-Gillis",Softcover,Constant Verlag,Copyleft,,,
56,Mondothèque: a radiated book,"André Castro , Sînziana Păltineanu , Dennis Pohl , Dick Reckard , Natacha Roussel , Femke Snelting , Alexia de Visscher",2016,Varia,"Archive, Otlet, Library science, Mondaneum, Google, Mons",Softcover,Constant,Copyleft,,,
,"The Death of the Authors: 'James Joyce, Rabindranath Tagore & Their Return to Life in Four Seasons",A Constant Remix,2013,Varia,"James Joyce, Ulysses",Softcover,Constant,Public domain,,'generated from Public domain sources,
58,Verbindingen/Jonctions 10 : Tracks in electr(on)ic fields,Constant,2009,Varia,"Art, activism, technological culture",Softcover,Constant,Copyleft,,,
59,Conversations,Constant,2014,Varia,"Software studies, Libre graphics",Softcover,Constant Verlag,Copyleft,,,
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",Paperback,Constant Verlag,Copyleft,,,
61,Mots de la cage aux ours - woorden uit de berenkuil,Constant,2012,Varia,"words, language, Bruxelles",Softcover,Constant,Copyleft,,,

Can't render this file because it contains an unexpected character in line 11 and column 0.

15
library/page.py

@ -4,7 +4,13 @@
import flask import flask
from flask import render_template from flask import render_template
from csvparser.csvparser import getpublications, gettypes, getyears from csvparser.csvparser import (
getlicenses,
getpublications,
gettypes,
getyears,
getfullpublication,
)
APP = flask.Flask(__name__, static_folder="static") APP = flask.Flask(__name__, static_folder="static")
@ -14,12 +20,14 @@ def index():
"""Main route, shows all the books and you can filter them, a bit""" """Main route, shows all the books and you can filter them, a bit"""
pubtypes = gettypes() pubtypes = gettypes()
pubyears = getyears() pubyears = getyears()
publicenses = getlicenses()
publicatons = getpublications() publicatons = getpublications()
template = render_template( template = render_template(
"index.html", "index.html",
publications=publicatons, publications=publicatons,
pubtypes=pubtypes, pubtypes=pubtypes,
pubyears=pubyears pubyears=pubyears,
publicenses=publicenses,
) )
return template return template
@ -27,8 +35,9 @@ def index():
@APP.route("/<publicationID>") @APP.route("/<publicationID>")
def show_book(publicationID): def show_book(publicationID):
"""route for a publication, still needs to be made""" """route for a publication, still needs to be made"""
fullpublication = getfullpublication(publicationID)
# parse csv, render template with full list. # parse csv, render template with full list.
return render_template("publication.html") return render_template("publication.html", fullpublication=fullpublication)
@APP.route("/<publication>") @APP.route("/<publication>")

4
library/static/css/dropdown.css

@ -35,7 +35,9 @@
text-decoration: none; text-decoration: none;
display: block; display: block;
} }
.dropbtn {
margin-top: 1em;
}
/* Change color of dropdown links on hover */ /* Change color of dropdown links on hover */
.dropdown-content button:hover {background-color: #62b264;} .dropdown-content button:hover {background-color: #62b264;}

26
library/static/css/style.css

@ -1,5 +1,6 @@
html, body { html, body {
margin: 0; margin: 0;
font-family: Garamond, serif;
} }
body:after { body:after {
@ -19,6 +20,7 @@ body:after {
border-radius: 50%; border-radius: 50%;
filter: url(#filter); filter: url(#filter);
z-index: -1; z-index: -1;
position: fixed;
} }
@font-face { @font-face {
@ -48,7 +50,9 @@ body:after {
margin 0 auto; margin 0 auto;
} }
#leftmostbtn{
margin-left: 1em;
}
button { button {
z-index: 10; z-index: 10;
border: 3px solid black; border: 3px solid black;
@ -57,3 +61,23 @@ button {
min-width: auto; min-width: auto;
background-color: #f1f1f1; background-color: #f1f1f1;
} }
table {
margin: 1em;
z-index: 10;
border: 3px solid black;
background-color: #f1f1f1;
border-spacing: 0;
border-collapse: collapse;
}
tr {
margin: 0;
}
td {
margin:0;
padding: 0.5em;
min-width: auto;
max-width: 60%;
border: 1px solid black;
background-color: #f1f1f1;
}

5
library/static/js/script.js

@ -11,7 +11,7 @@ function boxShadows(max) {
let ret = []; let ret = [];
for (let i = 0; i < max; ++i) { for (let i = 0; i < max; ++i) {
ret.push(` ret.push(`
${ rn(1, 100) }vw ${ rn(1, 100) }vh ${ rn(20, 40) }vmin ${ rn(1, 20) }vmin ${ rn(1, 100) }vw ${ rn(1, 100) }vh ${ rn(20, 60) }vmin ${ rn(10, 30) }vmin
${ rs('#F52D75', '#CCBD4F', '#32497F', '#EB4377') } ${ rs('#F52D75', '#CCBD4F', '#32497F', '#EB4377') }
`) `)
} }
@ -19,8 +19,9 @@ function boxShadows(max) {
} }
const cloud = document.querySelector('#cloud'); const cloud = document.querySelector('#cloud');
function update() { function update() {
cloud.style.boxShadow = boxShadows(120); cloud.style.boxShadow = boxShadows(30);
} }
// Filter section ===================== old school code divider ================ // Filter section ===================== old school code divider ================

2
library/templates/base.html

@ -11,7 +11,7 @@
<svg width="0"> <svg width="0">
<filter id="filter"> <filter id="filter">
<feTurbulence type="fractalNoise" <feTurbulence type="fractalNoise"
baseFrequency=".001" numOctaves="7" /> baseFrequency=".001" numOctaves="5" />
<feDisplacementMap in="SourceGraphic" scale="240" /> <feDisplacementMap in="SourceGraphic" scale="240" />
</filter> </filter>
</svg> </svg>

2
library/templates/index.html

@ -7,7 +7,7 @@
<div id="main"> <div id="main">
<ul> <ul>
{% for id, pubinfo in publications.items() %} {% for id, pubinfo in publications.items() %}
<li class='filter {{ pubinfo["Type"] }} {{ pubinfo["Year"] }}'><a href='{{ id }}'>{{ pubinfo["Author"] }} - {{ pubinfo["Title"] }}</a></li> <li class='filter {{ pubinfo["Type"] }} {{ pubinfo["Year"] }} {{ pubinfo["License"] }}'><a href='{{ id }}'>{{ pubinfo["Author"] }} - {{ pubinfo["Title"] }}</a></li>
{% endfor%} {% endfor%}
</ul> </ul>
</div> </div>

10
library/templates/menu.html

@ -1,5 +1,5 @@
{% block menu %} {% block menu %}
<button onclick="filterSelection('all')">All books</button> <button id="leftmostbtn" onclick="filterSelection('all')">All books</button>
<button><a href="/upload">Upload</a></button> <button><a href="/upload">Upload</a></button>
<div class="dropdown"> <div class="dropdown">
<button class="dropbtn">Type</button> <button class="dropbtn">Type</button>
@ -17,4 +17,12 @@
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
<div class="dropdown">
<button class="dropbtn">License</button>
<div class="dropdown-content">
{% for publicense in publicenses %}
<button type="button" name="button" onclick="filterSelection('{{ publicense }}')" >{{ publicense }}</button>
{% endfor %}
</div>
</div>
{% endblock menu %} {% endblock menu %}

55
library/templates/publication.html

@ -0,0 +1,55 @@
{% extends "base.html" %}
{% block main %}
<div id="nav" class="container">
<button id="leftmostbtn"><a href="/">All books</a></button>
<button><a href="/upload">Upload</a></button>
</div>
<table>
<tbody>
<tr>
<td>Title of publication</td>
<td>{{ fullpublication["Title"] }}</td>
</tr>
<tr>
<td>Author/Editor</td>
<td>{{ fullpublication["Author"] }}</td>
</tr>
<tr>
<td>Year</td>
<td>{{ fullpublication["Year"] }}</td>
</tr>
<tr>
<td>Custodian</td>
<td>{{ fullpublication["Custodian"] }}</td>
</tr>
<tr>
<td>Fields</td>
<td>{{ fullpublication["Fields"] }}</td>
</tr>
<tr>
<td>Type of publication</td>
<td>{{ fullpublication["Type"] }}</td>
</tr>
<tr>
<td>Publishers</td>
<td>{{ fullpublication["Publishers"] }}</td>
</tr>
<tr>
<td>License</td>
<td>{{ fullpublication["License"] }}</td>
</tr>
<tr>
<td>Highlights</td>
<td><p>{{ fullpublication["Highlights"] }}</p></td>
</tr>
<tr>
<td>Comments</td>
<td><p>{{ fullpublication["Comments"] }}</p></td>
</tr>
<tr>
<td>Currently borrowed by</td>
<td>No one</td>
</tr>
</tbody>
</table>
{% endblock %}
Loading…
Cancel
Save