Skip to content

Commit

Permalink
wip #161
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Feb 27, 2024
1 parent 9906f69 commit e5e5dc3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dumper/templates/dumper/export.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="display-1 text-center">Export</h1>
versehen und können ohne Rücksprache verwendet und weiter
bearbeitet werden.</p>
<p>Einzelne Einträge können über die API (die JSON- oder TEI-Symbole bei einem Eintrag) geladen werden.</p>
<p>Die REST-API ist über "https://pmb.acdh.oeaw.ac.at/apis/api/" anzusprechen, beispielsweise "https://pmb.acdh.oeaw.ac.at/apis/api/entities/place/5/".</p>
<p>Die REST-API ist über "<a href="https://pmb.acdh.oeaw.ac.at/apis/api/">https://pmb.acdh.oeaw.ac.at/apis/api/</a>" anzusprechen, beispielsweise <a href="https://pmb.acdh.oeaw.ac.at/apis/api/entities/place/5/">https://pmb.acdh.oeaw.ac.at/apis/api/entities/place/5/"</a>.</p>
<p>Als TEI-XML-Listen können sie zur Gänze geladen werden (rechte Maustaste: »speichern unter«):</p>
<ul>
<li><a href="https://pmb.acdh.oeaw.ac.at/media/listperson.xml" target="_blank">Personen</a>.</li>
Expand Down
5 changes: 5 additions & 0 deletions dumper/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ def test_08_imprint(self):
url = reverse("dumper:about")
response = client.get(url)
self.assertEqual(response.status_code, 200)

def test_09_imprint(self):
url = reverse("dumper:export")
response = client.get(url)
self.assertEqual(response.status_code, 200)
1 change: 1 addition & 0 deletions dumper/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
urlpatterns = [
path("", views.HomePageView.as_view(), name="home"),
path("about/", views.AboutView.as_view(), name="about"),
path("export/", views.ExportView.as_view(), name="export"),
path("imprint/", views.ImprintView.as_view(), name="imprint"),
path("login/", views.user_login, name="user_login"),
path("logout/", views.user_logout, name="user_logout"),
Expand Down
4 changes: 4 additions & 0 deletions dumper/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class AboutView(TemplateView):
template_name = "dumper/about.html"


class ExportView(TemplateView):
template_name = "dumper/export.html"


class ImprintView(TemplateView):
template_name = "dumper/imprint.html"

Expand Down
6 changes: 5 additions & 1 deletion templates/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
Info
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="{% url 'dumper:about' %}">Über das Projekt</a>
<li>
<a class="dropdown-item" href="{% url 'dumper:about' %}">Über das Projekt</a>
</li>
<li>
<a class="dropdown-item" href="{% url 'dumper:export' %}">Datenexport</a>
</li>
</ul>
</li>
Expand Down

0 comments on commit e5e5dc3

Please sign in to comment.