Beispiel #1
0
def search():
    subjects = ut.get_subjects()
    searchList = bottle.request.forms.getlist("subjects")
    if len(searchList) == 0:
         return bottle.template("home",subjects=subjects,keywordList=[],resultingList=[])
    keywordList = ",".join(searchList)   
    resultingList = ut.search_journals(searchList)
    return bottle.template("home",subjects=subjects,keywordList=keywordList,resultingList=resultingList)
Beispiel #2
0
def home_index():
    subjects = ut.get_subjects()
    content = ut.get_content()
    return bottle.template("home",subjects=subjects,keyword_list="",resultingList=[])