9 | {{- if eq $lang "de" -}}
10 | Hilfe
11 | Die Liste der angezeigten Dokumente kann auf mehrere Arten beeinflusst werden. – Die Möglichkeiten im Einzelnen:
12 |
13 | - Zeige:
14 | - Hier können Sie auswählen, wie viele Dokumente Sie pro Bilschirm-Seite angezeigt bekommen möchten.
15 | Sofern eine Suche mehr als die hier ausgewählte Anzahl von Dokumenten ergibt, können Sie mithilfe der Navigations-Knöpfe zwischen den Seiten wechseln.
16 | - Bücher enthalten:
17 | - In diesem Feld können Sie Such-Begriffe oder -Ausdrücke eingeben.
18 | „Such-Begriffe“ sind einfach Wörter, die in den Angaben zu den einzelnen Dokumenten gesucht werden sollen.
19 | „Such-Ausdrücke“ können die Suche auf einzelne Felder eingrenzen.
20 | Geben Sie beispielsweise Pinker
ein, werden Ihnen alle Dokumente angezeigt, die den Begriff in irgendeinem Feld enthalten.
21 | Geben Sie hingegen ein authors:"~Pinker"
, so werden Ihnen nur jene Dokumente angezeigt, bei denen ein solcher Autorenname eingetragen ist.
22 | Das Tilde-Zeichen ~
in einem solchen Such-Ausdruck bedeutet „enthält“; im obigen Beispiel würden also sowohl Steven Pinker als auch Susan Pinker gefunden (unterstellt Sie haben Bücher von beiden).
23 | Das Gleichheits-Zeichen =
im Such-Ausdruck bedeutet „ist gleich“; würden Sie eingeben authors:"=Pinker"
, so würden höchstwahrscheinlich keine Dokumente gefunden, aber mit dem Ausdruck authors:"=Susan Pinker"
würden Ihnen die Bücher der angegebenen Autorin angezeigt.
24 | Sie können solche Ausdrücke auch logisch verknüpfen: authors:"~Pinker" AND authors:"~Susan"
resultiert in einer Liste von Dokumenten, deren Autoren-Angabe sowohl Pinker
als auch Susan
enthält.
25 | Mit einem führenden Ausrufezeichen !
können Sie einen Such-Ausdruck negieren: authors:"~Pinker" AND !authors:"~Steven"
würde Ihnen alle Dokumente anzeigen, in deren Autorenangabe Pinker
enthalten ist, aber nicht Steven
; der Ausdruck !authors:"~Pinker" AND authors:"~Steven"
ergibt alle Dokumente. die nicht Pinker
in der Autorenangabe haben, aber Steven
.
26 | Sie können auch verschiedene Felder verknüpfen: authors:"~Pinker" AND title:"~Style"
würde z.B. Steven Pinkers Buch „The Sense of Style“ finden (sofern es in Ihrer Calibre Bibliothek enthalten ist).
27 |
28 | - sortiert nach:
29 | - Die gefundenen Dokumente werden sortiert ausgegeben; das Sortierungs-Kriterium können Sie hier einstellen.
30 | - Folge:
31 | - Hier können Sie einstellen, ob die gefundenen Dokumente in aufsteigender oder abfallender Reihenfolge angezeigt werden.
32 | - GUI Sprache:
33 | - Sie können die Sprache der Benutzer-Oberfläche wählen, z.Zt. zwischen „deutsch“ und „englisch“.
34 | Bitte beachten Sie, dass diese Einstellung keinen Einfluss hat auf die Sprache der jeweiligen Dokument-Beschreibungen.
35 | - Layout:
36 | - Hier können Sie wählen, ob Sie die gefundenen Treffer als Liste von Dokumenten sehen möchten oder als ein Gitter gebildet aus den Titelseiten der Dokumente.
37 | - Stil:
38 | - Der von Ihnen gewählte visuelle Stil kann entweder hell oder dunkel sein.
39 | - virt. Bibliothek:
40 | - Sofern Sie in Ihrer Calibre Installation virtuelle Bibliotheken eingerichtet haben, werden diese hier in einer Options-Liste angezeigt.
41 | Die Auswahl einer solchen virtuellen Bibliothek begrenzt die Liste der angezeigten Dokumente entsprechend.
42 | - Suchen
43 | - Wenn Sie eine (oder mehrere) der o.a. Optionen geändert haben, aktivieren Sie durch Anklicken dieses Knopfes die dazu passende Datenbank-Suche.
44 | Abhängig von den jeweils gewählten Optionen wird die Darstellung der Dokumenten-Liste sodann aktualisiert.
45 |
46 | Unter diesen Auswahl-Feldern finden Sie zunächst die Information, wieviele Dokumente aus der Gesamt-Menge der insgesamt gefundenen Dokumente angezeigt werden und dann eine Navigations-Leiste, mit der Sie durch die gefundenen Dokumente blättern können:
47 |
48 | 
49 | - Wenn es mehrere Seiten mit Dokumenten gibt, können Sie durch Anklicken dieses Feldes zur ersten Seite der Trefferliste springen.
50 | 
51 | - Wenn es mehrere Seiten mit Dokumenten gibt, können Sie durch Anklicken dieses Feldes zur vorherigen Seite der Trefferliste springen.
52 | 
53 | - Wenn es mehrere Seiten mit Dokumenten gibt, können Sie durch Anklicken dieses Feldes zur nächsten Seite der Trefferliste springen.
54 | 
55 | - Wenn es mehrere Seiten mit Dokumenten gibt, können Sie durch Anklicken dieses Feldes zur letzten Seite der Trefferliste springen.
56 |
57 | Diese Navigations-Leiste wird auch unter der Liste gefundener Dokumente angezeigt, so dass Sie nicht an den Seiten-Anfang zurückrollen müssen, um sie zu erreichen.
58 | {{- else -}}
59 | Help
60 | The list of displayed documents can be influenced in several ways. - The possibilities in detail:
61 |
62 | - Show:
63 | - Here you can select how many documents you want to display per page. If a search results in more than the number of documents selected here, you can use the navigation buttons to switch between pages.
64 | - Books matching:
65 | - In this field you can enter search terms or expressions.
66 | "Search terms" are simply words that are to be searched for in the details for the individual documents.
67 | "Search expressions" can restrict the search to individual fields.
68 | For example, if you type Pinker
, you will see all documents that contain the term in any field.
69 | However, if you enter authors:"~Pinker"
, only those documents will be displayed for which such an author name is entered.
70 | The tilde character ~
in such a search expression means "contains"; in the above example both Steven Pinker and Susan Pinker would be found (assuming you have books of both).
71 | The equals character =
in the search expression means "is equal"; if you type authors:"=Pinker"
, most likely no documents would be found, but with the expression authors:"=Susan Pinker"
you would see the books of the given author.
72 | You can also logically link such expressions: authors:"~Pinker" AND authors:"~Susan"
results in a list of documents whose author specification contains both Pinker
and Susan
.
73 | With a leading exclamation mark !
you can negate a search expression: authors:"~Pinker" AND !authors:"~Steven"
would show you all documents that contain Pinker
in their author specification, but not Steven
; the expression !authors:"~Pinker" AND authors:"~Steven"
results in all documents that have not Pinker
in the author name, but Steven
.
74 | You can also link different fields: authors:"~Pinker" AND title:"~Style"
would find e.g. Steven Pinker's book "The Sense of Style" (assuming it is included in your Calibre library).
75 | - sorted by:
76 | - The documents found are sorted before output; you can set the sorting criterion here.
77 | - Order:
78 | - Here you can set whether the documents found are displayed in ascending or descending order.
79 | - GUI language:
80 | - You can select the language of the user interface, currently between "German" and "English".
Please note that this setting has no effect on the language of the respective document descriptions.
81 | - Layout:
82 | - Here you can choose whether you want to see the found hits as list of documents or as a grid formed from the title pages of the documents.
83 | - Style:
84 | - The visual style you choose can be either light or dark.
85 | - virt. library:
86 | - If you have set up virtual libraries in your Calibre installation, these will be displayed here in an option list.
87 | Selecting such a virtual library will limit the list of displayed documents accordingly.
88 | - Search
89 | - If you have changed one (or more) of the above options, activate the corresponding database search by clicking this button. Depending on the selected options, the display of the document list will then be updated.
90 |
91 | Under these selection fields you will first find information on how many documents from the total set of documents found are displayed and then a navigation bar with which you can scroll through the documents found:
92 |
93 | 
94 | - If there are several pages with documents, you can jump to the first page of the hit list by clicking on this field.
95 | 
96 | - If there are several pages with documents, you can jump to the previous page of the hit list by clicking on this field.
97 | 
98 | - If there are several pages with documents, you can jump to the next page of the hit list by clicking on this field.
99 | 
100 | - If there are several pages with documents, you can jump to the last page of the hit list by clicking on this field.
101 |
102 | This navigation bar is also displayed below the list of found documents, so you don't have to scroll back to the top of the page to reach it.
103 | {{- end -}}
104 |
105 | {{- end -}}
106 |
--------------------------------------------------------------------------------
/views/imprint.gohtml:
--------------------------------------------------------------------------------
1 | {{- define "imprint" -}}
2 | {{template "htmlpage" .}}
3 | {{- end -}}
4 |
5 | {{- define "bodypage" -}}
6 | {{- $lang := "de" -}}
7 | {{- if .Lang}}{{$lang = .Lang}}{{end -}}
8 |
9 | {{- if eq $lang "de" -}}
10 | Impressum
11 | Dies ist eine private Web-Präsentation von
12 | M.Watermann, Berlin, Deutschland.
13 | Sie können Kontakt aufnehmen mit der EMail-Adresse
14 | support(at)mwat.de
.
15 | {{- else -}}
16 | Imprint
17 | This is a private web presentation by
18 | M.Watermann, Berlin, Germany.
19 | You can get in contact with the email address
20 | support(at)mwat.de
.
21 | {{- end -}}
22 |
23 | {{- end -}}
24 |
--------------------------------------------------------------------------------
/views/index.gohtml:
--------------------------------------------------------------------------------
1 | {{- define "index" -}}
2 | {{template "htmlpage" .}}
3 | {{- end -}}
4 |
5 | {{- define "bodypage" -}}
6 | {{- if $.IsGrid -}}
7 | {{template "gridlayout" .}}
8 | {{- else -}}
9 | {{template "listlayout" .}}
10 | {{- end -}}
11 | {{- end -}}
12 |
--------------------------------------------------------------------------------
/views/layout/01htmlpage.gohtml:
--------------------------------------------------------------------------------
1 | {{- define "htmlpage" -}}
2 |
3 |
4 |
5 |
17 |
{{.LibraryName}}
18 |
19 | {{- template "header" . -}}
20 |
21 |
22 | {{- template "bodypage" . -}}
23 |
24 |
25 | {{- template "footer" . -}}
26 |
27 |
28 | {{- end -}}
29 |
--------------------------------------------------------------------------------
/views/layout/02header.gohtml:
--------------------------------------------------------------------------------
1 | {{- define "header" -}}
2 |
6 | {{- if eq $lang "de" -}}
7 |
Bücher {{if .BFirst}}{{.BFirst}}{{end}} bis {{if .BLast}}{{.BLast}}{{end}} von {{if .BCount}}{{.BCount}}{{end}}
8 | {{- else -}}
9 |
Books {{if .BFirst}}{{.BFirst}}{{end}} to {{if .BLast}}{{.BLast}}{{end}} of {{if .BCount}}{{.BCount}}{{end}}
10 | {{- end -}}
11 |
12 | {{- if $.HasFirst -}}
13 | {{- if eq $lang "de" -}}
14 |
15 | {{- else -}}
16 |
17 | {{- end -}}
18 | {{- end -}}
19 | |
20 | {{- if $.HasPrev -}}
21 | {{- if eq $lang "de" -}}
22 |
23 | {{- else -}}
24 |
25 | {{- end -}}
26 | {{- end -}}
27 | |
28 | {{- if $.HasNext -}}
29 | {{- if eq $lang "de" -}}
30 |
31 | {{- else -}}
32 |
33 | {{- end -}}
34 | {{- end -}}
35 | |
36 | {{- if $.HasLast -}}
37 | {{- if eq $lang "de" -}}
38 |
39 | {{- else -}}
40 |
41 | {{- end -}}
42 | {{- end -}}
43 | |
44 |
45 | {{- end -}}
46 |
--------------------------------------------------------------------------------
/views/layout/05gridlayout.gohtml:
--------------------------------------------------------------------------------
1 | {{- define "gridlayout" -}}
2 | {{- if $.Documents -}}
3 | {{- range $i, $doc := $.Documents -}}
4 |
17 |
18 |

19 |
83 |
84 | {{- end -}}
85 | {{- end -}}
86 | {{- end -}}
--------------------------------------------------------------------------------
/views/layout/07backline.gohtml:
--------------------------------------------------------------------------------
1 | {{- define "backline" -}}
2 | {{- $lang := "de" -}}
3 | {{- if .Lang}}{{$lang = .Lang}}{{end -}}
4 | {{- $doc := $.Document -}}
5 |
9 | {{- if eq $lang "de" -}}
10 | Datenschutz
11 | Diese Web-Präsentation speichert keinerlei personenbeziehbare Daten. Es werden weder Internet-Kekse (eng. „cookies“) verwendet, noch wird JavaScript eingesetzt. Ein sog. „Tracking“ findet nicht statt.
12 | Die von Ihrem Web-Brauser beim Aufruf unserer Seiten übermittelten Daten – insbesondere Ihre IP-Nummer – werden nur in anonymisierter Form gespeichert und ausgewertet. Ein Rückschluss auf Ihre Identität ist damit – auch mit eventueller Hilfe Ihres ISP – nicht möglich.
13 | Keine der im Rahmen Ihrer Nutzung dieser Web-Präsentation anfallenden Daten werden an Dritte weitergegeben. Werkzeuge zur Reichweitenanalyse mittels der anonymisierten Zugriffs-Protokolle werden ausschließlich lokal eingesetzt, um mögliche technische Netzwerk-Probleme aufzuspüren.
14 | {{- else -}}
15 | Privacy
16 | This web-presentation doesn't store personal data of any kind. Neither socalled "cookies" are used nor is JavaScript. A socalled "tracking" does not happen.
17 | The data transmitted by your web browser when calling up our pages - in particular your IP number - will only be stored and evaluated in anonymous form. A traceback to you – even with the assistance of your ISP – is not possible.
18 | None of the data arising from your use of this web-presentation will be passed on to third parties. Tools for range analysis using the anonymous access protocols are only used locally to detect possible technical network problems.
19 | {{- end -}}
20 |
21 | {{- end -}}
22 |
--------------------------------------------------------------------------------
/views_test.go:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright © 2019, 2020 M.Watermann, 10247 Berlin, Germany
3 | All rights reserved
4 | EMail :