Skip to content

Commit

Permalink
generator was using collection:publication instead of publications
Browse files Browse the repository at this point in the history
  • Loading branch information
staeiou committed Mar 25, 2017
1 parent fa02c8f commit b21eb3b
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions markdown_generator/publications.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 4,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -488,19 +488,19 @@
"18 A short paper showing the recent explosive gro... "
]
},
"execution_count": 2,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"articles = pd.read_csv(\"articles.tsv\", sep=\"\\t\", header=0)\n",
"articles"
"publications = pd.read_csv(\"publications.tsv\", sep=\"\\t\", header=0)\n",
"publications"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 5,
"metadata": {
"collapsed": true
},
Expand All @@ -521,20 +521,20 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import os\n",
"for row, item in articles.iterrows():\n",
"for row, item in publications.iterrows():\n",
" md_filename = str(item.pub_date) + \"-\" + item.slug + \".md\"\n",
" html_filename = str(item.pub_date) + \"-\" + item.slug \n",
" year = item.pub_date[:4]\n",
" md = \"---\\ntitle: \\\"\" + item.title + '\"\\n'\n",
" \n",
" md += \"\"\"collection: publication\\npermalink: /publication/\"\"\" + html_filename\n",
" md += \"\"\"collection: publications\\npermalink: /publication/\"\"\" + html_filename\n",
" md += \"\\nexcerpt: '<i>Published in \" + item.venue + \", \" + str(year) + \"</i><br/>\" + html_escape(item.summary) + \"'\"\n",
" md += \"\\ndate: \" + str(item.pub_date) \n",
" md += \"\\nvenue: '\" + html_escape(item.venue) + \"'\"\n",
Expand All @@ -551,7 +551,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 7,
"metadata": {
"collapsed": false
},
Expand All @@ -560,25 +560,26 @@
"name": "stdout",
"output_type": "stream",
"text": [
"-rw-r--r-- 1 tools.paws tools.paws 1.5K Sep 27 21:57 2009-10-01-gnovis-habermas-understand-internet.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.3K Sep 27 21:57 2009-10-27-wikisym-social-roles-bots.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.4K Sep 27 21:57 2010-02-25-cscw-banning-vandal.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Sep 27 21:57 2011-01-03-hicss-trace-ethnography.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Sep 27 21:57 2011-10-05-wikisym-article-deletion.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.4K Sep 27 21:57 2011-11-01-cpov-lives-of-bots.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Sep 27 21:57 2012-05-02-altchi-ipoxp.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2012-06-05-icwsm-socialization-wikipedia.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.8K Sep 27 21:57 2012-08-29-wikisym-wikipedia-literate.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2012-11-05-infoorg-artifacts-that-organize.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.8K Sep 27 21:57 2013-02-23-cscw-edit-sessions.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2013-05-01-abs-rise-and-decline-wikipedia.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2013-08-03-wikisym-levee-breaks-bots.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2013-09-01-ecosoc-lter-students.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Sep 27 21:57 2014-01-03-ics-bots-bespoke-code.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2014-05-01-chi-snuggle-wikipedia.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.7K Sep 27 21:57 2014-09-10-jobem-old-against-new.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.8K Sep 27 21:57 2014-11-02-hcomp-values-in-crowdsourcing.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Sep 27 21:57 2016-03-21-blockbots-ics.md\r\n"
"-rw-r--r-- 1 tools.paws tools.paws 1.5K Mar 25 17:22 2009-10-01-gnovis-habermas-understand-internet.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.3K Mar 25 17:22 2009-10-27-wikisym-social-roles-bots.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.4K Mar 25 17:22 2010-02-25-cscw-banning-vandal.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Mar 25 17:22 2011-01-03-hicss-trace-ethnography.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Mar 25 17:22 2011-10-05-wikisym-article-deletion.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.4K Mar 25 17:22 2011-11-01-cpov-lives-of-bots.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Mar 25 17:22 2012-05-02-altchi-ipoxp.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2012-06-05-icwsm-socialization-wikipedia.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.8K Mar 25 17:22 2012-08-29-wikisym-wikipedia-literate.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2012-11-05-infoorg-artifacts-that-organize.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.8K Mar 25 17:22 2013-02-23-cscw-edit-sessions.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2013-05-01-abs-rise-and-decline-wikipedia.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2013-08-03-wikisym-levee-breaks-bots.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2013-09-01-ecosoc-lter-students.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.6K Mar 25 17:22 2014-01-03-ics-bots-bespoke-code.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2014-05-01-chi-snuggle-wikipedia.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.7K Mar 25 17:22 2014-09-10-jobem-old-against-new.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.8K Mar 25 17:22 2014-11-02-hcomp-values-in-crowdsourcing.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 1.9K Mar 25 17:22 2016-03-21-blockbots-ics.md\r\n",
"-rw-r--r-- 1 tools.paws tools.paws 493 Mar 25 17:20 readme.md\r\n"
]
}
],
Expand All @@ -588,7 +589,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"metadata": {
"collapsed": false
},
Expand All @@ -599,7 +600,7 @@
"text": [
"---\r\n",
"title: \"Does Habermas Understand the Internet? The Algorithmic Construction of the Blogo/Public Sphere\"\r\n",
"collection: publication\r\n",
"collection: publications\r\n",
"permalink: /publication/2009-10-01-gnovis-habermas-understand-internet\r\n",
"excerpt: '<i>Published in Gnovis, 2009</i><br/>Habermasians have been debating about the role of the Internet in the public sphere, but they have all taken for granted the highly-automated software infrastructures that mediate our knowledge of the blogosphere.'\r\n",
"date: 2009-10-01\r\n",
Expand Down

0 comments on commit b21eb3b

Please sign in to comment.