Allow multiple sources.
[redakcja.git] / src / catalogue / urls.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.urls import path
5 from . import views
6
7
8 urlpatterns = [
9     path("", views.CatalogueView.as_view(), name="catalogue"),
10     path("author/<slug:slug>/", views.AuthorView.as_view(), name="catalogue_author"),
11     path("book/<slug:slug>/", views.BookView.as_view(), name="catalogue_book"),
12     path("book/<slug:slug>.json", views.BookAPIView.as_view(), name="catalogue_book_api"),
13
14     path('terms/audience/', views.AudienceTerms.as_view()),
15     path('terms/epoch/', views.EpochTerms.as_view()),
16     path('terms/kind/', views.KindTerms.as_view()),
17     path('terms/genre/', views.GenreTerms.as_view()),
18     path('terms/wluri/', views.WLURITerms.as_view()),
19     path('terms/book_title/', views.BookTitleTerms.as_view()),
20     path('terms/author/', views.AuthorTerms.as_view()),
21     path('terms/thema/', views.ThemaTerms.as_view()),
22     path('terms/thema-main/', views.MainThemaTerms.as_view()),
23
24     path('terms/editor/', views.EditorTerms.as_view()),
25
26     path('chooser/thema/', views.ThemaChooser.as_view()),
27     path('chooser/thema-main/', views.MainThemaChooser.as_view()),
28
29     path('wikidata/<slug:model>/<qid>', views.WikidataView.as_view()),
30
31     path('publish/author/<int:pk>/', views.publish_author, name='catalogue_publish_author'),
32     path('publish/genre/<int:pk>/', views.publish_genre, name='catalogue_publish_genre'),
33     path('publish/kind/<int:pk>/', views.publish_kind, name='catalogue_publish_kind'),
34     path('publish/epoch/<int:pk>/', views.publish_epoch, name='catalogue_publish_epoch'),
35     path('publish/collection/<int:pk>/', views.publish_collection, name='catalogue_publish_collection'),
36
37     path('woblink/<category>/autocomplete', views.woblink_autocomplete,
38          name='catalogue_woblink_autocomplete'),
39 ]