Loading sopds_web_backend/__pycache__/views.cpython-35.pyc +309 B (9.47 KiB) File changed.No diff preview for this file type. View original file View changed file sopds_web_backend/templates/sopds_breadcrumbs.html 0 → 100644 +7 −0 Original line number Diff line number Diff line <nav aria-label="You are here:" role="navigation"> <ul class="breadcrumbs"> {% for b in breadcrumbs %} <li><a href="#">{{ b }}</a></li> {% endfor %} </ul> </nav> No newline at end of file sopds_web_backend/templates/sopds_main.html +4 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ {% include "sopds_menu.html" %} </div></div> <div class="row"><div class="large-12 column"> {% include "sopds_breadcrumbs.html" %} </div></div> {% if system_message %} <div class="row"><div class="large-12 column"> {% include "sopds_messages.html" %} Loading sopds_web_backend/templates/sopds_menu.html +9 −12 Original line number Diff line number Diff line <div class="menu sopdsmenu" id="main_menu"> <ul class="menu" style="font-size:100%;"> {# vertical medium-horizontal menu #} <li {% if current == "catalog" %} class="active" {% endif %}><a href="{% url "web:catalog" %}">Catalogs</a></li> Loading @@ -8,5 +7,3 @@ <li {% if current == "series" %} class="active" {% endif %}><a href="#">Series</a></li> </ul> </div> <br/> No newline at end of file sopds_web_backend/views.py +17 −5 Original line number Diff line number Diff line Loading @@ -12,11 +12,11 @@ from opds_catalog.settings import MAXITEMS, DOUBLES_HIDE, AUTH, VERSION from sopds_web_backend.settings import HALF_PAGES_LINKS from django.contrib.gis.db.models.aggregates import Collect def sopds_processor(request): args={} args['sopds_auth']=AUTH args['sopds_version']=VERSION user=request.user if user.is_authenticated(): result=[] Loading Loading @@ -142,6 +142,7 @@ def SearchBooksView(request): args['page_range']= [ i for i in range(firstpage,lastpage+1)] args['searchobject'] = 'title' args['current'] = 'search' args['breadcrumbs'] = ['Search','Books',searchterms] return render(request,'sopds_books.html', args) Loading Loading @@ -197,6 +198,7 @@ def SelectSeriesView(request): args['page_range']= [ i for i in range(firstpage,lastpage+1)] args['searchobject'] = 'series' args['current'] = 'search' args['breadcrumbs'] = ['Search','Series',searchterms] return render(request,'sopds_series.html', args) Loading Loading @@ -253,6 +255,7 @@ def SearchAuthorsView(request): args['page_range']= [ i for i in range(firstpage,lastpage+1)] args['searchobject'] = 'author' args['current'] = 'search' args['breadcrumbs'] = ['Search','Authors',searchterms] return render(request,'sopds_authors.html', args) Loading Loading @@ -314,8 +317,17 @@ def CatalogsView(request): args['cat_id'] = cat_id args['current'] = 'catalog' breadcrumbs_list = [] while (cat.parent): breadcrumbs_list.insert(0, cat.cat_name) cat = cat.parent breadcrumbs_list.insert(0, 'ROOT') breadcrumbs_list.insert(0, 'Catalogs') args['breadcrumbs'] = breadcrumbs_list return render(request,'sopds_catalogs.html', args) def hello(request): args = {} args['breadcrumbs'] = ['HOME'] return render(request, 'sopds_main.html', args) Loading
sopds_web_backend/__pycache__/views.cpython-35.pyc +309 B (9.47 KiB) File changed.No diff preview for this file type. View original file View changed file
sopds_web_backend/templates/sopds_breadcrumbs.html 0 → 100644 +7 −0 Original line number Diff line number Diff line <nav aria-label="You are here:" role="navigation"> <ul class="breadcrumbs"> {% for b in breadcrumbs %} <li><a href="#">{{ b }}</a></li> {% endfor %} </ul> </nav> No newline at end of file
sopds_web_backend/templates/sopds_main.html +4 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ {% include "sopds_menu.html" %} </div></div> <div class="row"><div class="large-12 column"> {% include "sopds_breadcrumbs.html" %} </div></div> {% if system_message %} <div class="row"><div class="large-12 column"> {% include "sopds_messages.html" %} Loading
sopds_web_backend/templates/sopds_menu.html +9 −12 Original line number Diff line number Diff line <div class="menu sopdsmenu" id="main_menu"> <ul class="menu" style="font-size:100%;"> {# vertical medium-horizontal menu #} <li {% if current == "catalog" %} class="active" {% endif %}><a href="{% url "web:catalog" %}">Catalogs</a></li> Loading @@ -8,5 +7,3 @@ <li {% if current == "series" %} class="active" {% endif %}><a href="#">Series</a></li> </ul> </div> <br/> No newline at end of file
sopds_web_backend/views.py +17 −5 Original line number Diff line number Diff line Loading @@ -12,11 +12,11 @@ from opds_catalog.settings import MAXITEMS, DOUBLES_HIDE, AUTH, VERSION from sopds_web_backend.settings import HALF_PAGES_LINKS from django.contrib.gis.db.models.aggregates import Collect def sopds_processor(request): args={} args['sopds_auth']=AUTH args['sopds_version']=VERSION user=request.user if user.is_authenticated(): result=[] Loading Loading @@ -142,6 +142,7 @@ def SearchBooksView(request): args['page_range']= [ i for i in range(firstpage,lastpage+1)] args['searchobject'] = 'title' args['current'] = 'search' args['breadcrumbs'] = ['Search','Books',searchterms] return render(request,'sopds_books.html', args) Loading Loading @@ -197,6 +198,7 @@ def SelectSeriesView(request): args['page_range']= [ i for i in range(firstpage,lastpage+1)] args['searchobject'] = 'series' args['current'] = 'search' args['breadcrumbs'] = ['Search','Series',searchterms] return render(request,'sopds_series.html', args) Loading Loading @@ -253,6 +255,7 @@ def SearchAuthorsView(request): args['page_range']= [ i for i in range(firstpage,lastpage+1)] args['searchobject'] = 'author' args['current'] = 'search' args['breadcrumbs'] = ['Search','Authors',searchterms] return render(request,'sopds_authors.html', args) Loading Loading @@ -314,8 +317,17 @@ def CatalogsView(request): args['cat_id'] = cat_id args['current'] = 'catalog' breadcrumbs_list = [] while (cat.parent): breadcrumbs_list.insert(0, cat.cat_name) cat = cat.parent breadcrumbs_list.insert(0, 'ROOT') breadcrumbs_list.insert(0, 'Catalogs') args['breadcrumbs'] = breadcrumbs_list return render(request,'sopds_catalogs.html', args) def hello(request): args = {} args['breadcrumbs'] = ['HOME'] return render(request, 'sopds_main.html', args)