From 8dfc16996b030a928352343698f4186b9519e0fe Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Thu, 6 Mar 2014 11:40:40 +0000 Subject: [PATCH] Don't show technical reports in main papers list --- i2p2www/anonbib/views.py | 2 +- i2p2www/pages/papers/anonbib.bib | 1 + i2p2www/pages/papers/anonbib.cfg | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/i2p2www/anonbib/views.py b/i2p2www/anonbib/views.py index 7e1434cf2..bc4ecca5a 100644 --- a/i2p2www/anonbib/views.py +++ b/i2p2www/anonbib/views.py @@ -9,7 +9,7 @@ def papers_list(tag='', choice='date'): if tag: rbib = [ b for b in rbib.entries if tag in b.get('www_tags', '').split() ] else: - rbib = rbib.entries + rbib = [ b for b in rbib.entries if 'tech-report' not in b.get('www_tags', '').split() ] if choice == 'topic': sectionType = 'Topics' diff --git a/i2p2www/pages/papers/anonbib.bib b/i2p2www/pages/papers/anonbib.bib index 33c3347e8..c028b8c45 100644 --- a/i2p2www/pages/papers/anonbib.bib +++ b/i2p2www/pages/papers/anonbib.bib @@ -214,4 +214,5 @@ month = Aug, www_pdf_url = {/_static/pdf/i2p_philosophy.pdf}, www_section = comm, + www_tags = {tech-report}, } diff --git a/i2p2www/pages/papers/anonbib.cfg b/i2p2www/pages/papers/anonbib.cfg index be14ab8e4..1d1341414 100644 --- a/i2p2www/pages/papers/anonbib.cfg +++ b/i2p2www/pages/papers/anonbib.cfg @@ -142,21 +142,21 @@ INITIAL_STRINGS = { OMIT_ENTRIES = ("proceedings", "journal") # List of all recognized values for www_tags. -ALL_TAGS = ("selected", ) +ALL_TAGS = ("tech-report", ) # Titles of page, by tag. TAG_TITLES = { "": "I2P Bibliography", - "selected": "Selected I2P Papers" + "tech-report": "I2P Technical Papers" } # As TAG_TITLES, but shorter. TAG_SHORT_TITLES = { "": "I2P Bibliography", - "selected": "Selected I2P Papers", + "tech-report": "I2P Tech Papers", } # Directories where tag pages get generated. TAG_DIRECTORIES = { '': "full", - "selected": "" } + "tech-report": "techrpt" } # Make cached stuff group-writable. Make sure that your cache directories # are sticky! -- GitLab