$c->stash->{'book_edit'}{'seiten'} = $c->session->{'book_data_edit'}{'seiten'};
$c->stash->{'book_edit'}{'preis'} = $c->session->{'book_data_edit'}{'preis'};
$c->stash->{'book_edit'}{'waehrungs_id'} = $c->session->{'book_data_edit'}{'waehrungs_id'};
+ $c->stash->{'book_edit'}{'notes'} = $c->session->{'book_data_edit'}{'notes'};
$c->stash->{'book_edit'}{'kurzinhalt'} = $c->session->{'book_data_edit'}{'kurzinhalt'};
$c->log->debug( get_output_string( $K . "Buch-Infos im Stash: ", $c->stash->{'book_edit'} ) );
$c->session->{'book_data_edit'}{'preis'} = $preis;
}
+ # Sonstige Anmerkungen zum Buch
+ $c->session->{'book_data_edit'}{'notes'} = $c->request->params->{'book_notes'} if defined $c->request->params->{'book_notes'};
+
# Kurzbeschreibung des Inhalts
$c->session->{'book_data_edit'}{'kurzinhalt'} = $c->request->params->{'book_kurzinhalt'} if defined $c->request->params->{'book_kurzinhalt'};
Übergebene Struktur in [autor]:
$autor = {
- 'id' => 1,
- 'name' => 'J.R.R. Tolkien',
- 'titel' => undef,
- 'vorname' => 'J.R.R.',
- 'mittelname' => undef,
- 'nachname' => 'Tolkien',
- 'name_suffix' => undef,
- 'descr' => 'Bla Blub',
- 'books' => [
+ 'id' => 1,
+ 'name' => 'J.R.R. Tolkien',
+ 'titel' => undef,
+ 'vorname' => 'J.R.R.',
+ 'mittelname' => undef,
+ 'nachname' => 'Tolkien',
+ 'name_suffix' => undef,
+ 'descr' => 'Bla Blub',
+ 'changed_at' => '2010-02-25 21:45:18',
+ 'created_at' => '2010-02-25 21:45:18',
+ 'id_changed_by' => '1',
+ 'id_created_by' => '1',
+ 'name_changed_by' => 'Frank Brehm',
+ 'name_created_by' => 'Frank Brehm',
+ 'books' => [
{
'id' => 22,
'title' => 'Der Herr der Ringe',
</tr><tr>
<th>Über den Autor:</th>
<td>[% ForumCode.forumcode( autor.about ) %]</td>
+ </tr><tr>
+ <th>Autor erfasst am:</th>
+ <td>[% autor.created_at | html %]</td>
+ </tr><tr>
+ <th>Letzte Änderung:</th>
+ <td>[% autor.changed_at | html %]</td>
</tr><tr>
<th>Bücher:</th>
<td>[% IF autor.books.size > 0 %][% IF autor.books.size > 1 %]<ul>[% FOR buch IN autor.books %]<li>[% PROCESS book_entry b=buch %]</li>
<option value="">-- Währung auswählen --</option>[% FOR waehrungsid IN waehrungs_ids %]
<option value="[% waehrungsid %]"[% IF book_edit.waehrungs_id == waehrungsid %] selected[% END %]>[% waehrungsliste.$waehrungsid.kuerzel %]</option>[% END %]
</select> <input type="button" name="neue_waehrung" value="*" class="shift_button" title="Neue Währung" /></td>
+ </tr><tr>
+ <th>Anmerkungen:<br />
+ [% forumcode_snipped %]</th>
+ <td><textarea name="book_notes" cols="80" rows="5">[% book_edit.notes | html %]</textarea></td>
</tr><tr>
<th>Kurzinhalt:<br />
[% forumcode_snipped %]</th>
Übergebene Struktur in [book]:
$buch = {
- 'ausgabejahr' => '2003',
- 'autoren' => [
+ 'ausgabejahr' => '2003',
+ 'autoren' => [
'Bill Napier'
],
- 'bindungsart' => 'Softcover (Taschenbuch)',
- 'bindungsart_id' => '4',
- 'buch_nr' => '093314',
- 'druckjahr' => '2007',
- 'id' => '5',
- 'isbn' => undef,
- 'kategorien' => [
+ 'bindungsart' => 'Softcover (Taschenbuch)',
+ 'bindungsart_id' => '4',
+ 'buch_nr' => '093314',
+ 'changed_at' => '2010-02-25 21:45:18',
+ 'created_at' => '2010-02-25 21:45:18',
+ 'druckjahr' => '2007',
+ 'id' => '5',
+ 'id_changed_by' => '1',
+ 'id_created_by' => '1',
+ 'isbn' => undef,
+ 'kategorien' => [
'Mystery-Thriller'
],
- 'kurzinhalt' => => 'Bla Sülz, tolles Buch',
- 'ort_beschreibung' => undef,
- 'ort_ist_statisch' => undef,
- 'orts_id' => undef,
- 'ortsname' => undef,
- 'preis' => '7.45',
- 'seiten' => '416',
- 'serien' => [],
- 'title' => 'Der 77. Grad',
- 'title_original' => 'Shattered Icon',
+ 'kurzinhalt' => 'Bla Sülz, tolles Buch',
+ 'name_changed_by' => 'Frank Brehm',
+ 'name_created_by' => 'Frank Brehm',
+ 'notes' => 'tolles Buch, wie gesagt',
+ 'ort_beschreibung' => undef,
+ 'ort_ist_statisch' => undef,
+ 'orts_id' => undef,
+ 'ortsname' => undef,
+ 'preis' => '7.45',
+ 'seiten' => '416',
+ 'serien' => [],
+ 'title' => 'Der 77. Grad',
+ 'title_original' => 'Shattered Icon',
'umrechnung_in_euro' => '1',
- 'untertitel' => undef,
- 'verlags_id' => '3',
- 'verlagsname_long' => 'Bertelsmann Club GmbH - Taschenbuch',
- 'verlagsname_short' => 'Club Taschenbuch',
- 'waehrungs_id' => '1',
- 'waehrungs_kuerzel' => '€',
- 'waehrungs_name' => 'Euro'
+ 'untertitel' => undef,
+ 'verlags_id' => '3',
+ 'verlagsname_long' => 'Bertelsmann Club GmbH - Taschenbuch',
+ 'verlagsname_short' => 'Club Taschenbuch',
+ 'waehrungs_id' => '1',
+ 'waehrungs_kuerzel' => '€',
+ 'waehrungs_name' => 'Euro'
}
-%]
</tr><tr>
<th>Preis:</th>
<td>[% book.preis | format('%.2f') | replace('\.', ',') %] [% book.waehrungs_kuerzel | html %]</td>
+ </tr><tr>
+ <th>Anmerkungen:</th>
+ <td>[% ForumCode.forumcode( book.notes ) %]</td>
</tr><tr>
<th>Kurzinhalt:</th>
<td>[% ForumCode.forumcode( book.kurzinhalt ) %]</td>
+ </tr><tr>
+ <th>Buch erfasst am:</th>
+ <td>[% book.created_at | html %]</td>
+ </tr><tr>
+ <th>Letzte Änderung:</th>
+ <td>[% book.changed_at | html %]</td>
</table>
<div class="back">
Übergebene Struktur in [kategorie]:
$kategorie = {
- 'books' => [
- {
- 'ausgabejahr' => '1982',
- 'autor_ids' => [
- '22',
- '20',
- '21'
- ],
- 'autoren' => [
- 'Henry Lincoln',
- 'Michael Baigent',
- 'Richard Leigh'
- ],
- 'bindungsart' => 'Softcover (Taschenbuch)',
- 'bindungsart_id' => '4',
- 'buch_nr' => undef,
- 'druckjahr' => '2005',
- 'id' => '34',
- 'isbn' => '3-404-77002-1',
- 'kategorie_id' => '6',
- 'ort_beschreibung' => '',
- 'ort_ist_statisch' => 'n',
- 'orts_id' => '2',
- 'ortsname' => 'Flur - Glasvitrine',
- 'preis' => '5',
- 'seiten' => '472',
- 'title' => 'Der Heilige Gral und seine Erben',
- 'title_original' => 'The Holy Blood and the Holy Gral',
- 'umrechnung_in_euro' => '1',
- 'untertitel' => 'Ursprung und Gegewart eines geheimen Ordens. Sein Wissen und seine Macht.',
- 'verlags_name_long' => 'Bastei Lübbe Taschenbuchverlag (Imprint der Verlagsgruppe Lübbe)',
- 'verlags_name_short' => 'Bastei Lübbe',
- 'waehrungs_id' => '1',
- 'waehrungs_kuerzel' => '€',
- 'waehrungs_name' => 'Euro',
- }
- ],
- 'count_books' => '1',
- 'id' => '6',
- 'name' => 'Dokumentation',
+ 'books' => [
+ {
+ 'ausgabejahr' => '1982',
+ 'autor_ids' => [
+ '22',
+ '20',
+ '21'
+ ],
+ 'autoren' => [
+ 'Henry Lincoln',
+ 'Michael Baigent',
+ 'Richard Leigh'
+ ],
+ 'bindungsart' => 'Softcover (Taschenbuch)',
+ 'bindungsart_id' => '4',
+ 'buch_nr' => undef,
+ 'druckjahr' => '2005',
+ 'id' => '34',
+ 'isbn' => '3-404-77002-1',
+ 'kategorie_id' => '6',
+ 'ort_beschreibung' => '',
+ 'ort_ist_statisch' => 'n',
+ 'orts_id' => '2',
+ 'ortsname' => 'Flur - Glasvitrine',
+ 'preis' => '5',
+ 'seiten' => '472',
+ 'title' => 'Der Heilige Gral und seine Erben',
+ 'title_original' => 'The Holy Blood and the Holy Gral',
+ 'umrechnung_in_euro' => '1',
+ 'untertitel' => 'Ursprung und Gegewart eines geheimen Ordens. Sein Wissen und seine Macht.',
+ 'verlags_name_long' => 'Bastei Lübbe Taschenbuchverlag (Imprint der Verlagsgruppe Lübbe)',
+ 'verlags_name_short' => 'Bastei Lübbe',
+ 'waehrungs_id' => '1',
+ 'waehrungs_kuerzel' => '€',
+ 'waehrungs_name' => 'Euro',
+ },
+ ],
+ 'count_books' => '1',
+ 'id' => '6',
+ 'name' => 'Dokumentation',
+ 'changed_at' => '2010-02-25 21:45:18',
+ 'created_at' => '2010-02-25 21:45:18',
+ 'id_changed_by' => '1',
+ 'id_created_by' => '1',
+ 'name_changed_by' => 'Frank Brehm',
+ 'name_created_by' => 'Frank Brehm',
};
-%]
[%- END -%]
-Verlagsanzeige -->
+Kategorieanzeige -->
<table class="ftable" cellspacing="0">
<tr>
</tr><tr>
<th>Kategorie:</th>
<td>[%- kategorie.name | html -%]</td>
+ </tr><tr>
+ <th>Kategorie erfasst am:</th>
+ <td>[% kategorie.created_at | html %]</td>
+ </tr><tr>
+ <th>Letzte Änderung:</th>
+ <td>[% kategorie.changed_at | html %]</td>
</tr><tr>
<th>Anzahl Bücher:</th>
<td>[%- kategorie.count_books | html -%]</td>
Übergebene Struktur in [ort]:
$ort = {
- 'count_books' => '1',
- 'descr' => '',
- 'id' => '1',
- 'name' => 'Ausgeliehen',
- 'statisch' => 'y',
+ 'count_books' => '1',
+ 'descr' => '',
+ 'id' => '1',
+ 'name' => 'Ausgeliehen',
+ 'statisch' => 'y',
+ 'changed_at' => '2010-02-25 21:45:18',
+ 'created_at' => '2010-02-25 21:45:18',
+ 'id_changed_by' => '1',
+ 'id_created_by' => '1',
+ 'name_changed_by' => 'Frank Brehm',
+ 'name_created_by' => 'Frank Brehm',
'books' => [
{
'id' => 8,
</tr><tr>
<th>Beschreibung:</th>
<td>[%- ort.descr | html %]</td>
+ </tr><tr>
+ <th>Aufbewahrungsort erfasst am:</th>
+ <td>[% ort.created_at | html %]</td>
+ </tr><tr>
+ <th>Letzte Änderung:</th>
+ <td>[% ort.changed_at | html %]</td>
</tr><tr>
<th>Anzahl Bücher:</th>
<td>[%- ort.count_books | html -%]</td>
Übergebene Struktur in [serie]:
$serie = {
- 'id' => 1,
- 'name' => 'Perry Rhodan',
- 'descr' => 'Abenteuer des Weltraumspezis',
- 'count_books' => 60,
- 'books' => [
+ 'id' => 1,
+ 'name' => 'Perry Rhodan',
+ 'descr' => 'Abenteuer des Weltraumspezis',
+ 'changed_at' => '2010-02-25 21:45:18',
+ 'created_at' => '2010-02-25 21:45:18',
+ 'id_changed_by' => '1',
+ 'id_created_by' => '1',
+ 'name_changed_by' => 'Frank Brehm',
+ 'name_created_by' => 'Frank Brehm',
+ 'count_books' => 60,
+ 'books' => [
{
'id' => 2,
'serien_ord_num' => 60,
</tr><tr>
<th>Beschreibung:</th>
<td>[% serie.descr | html %]</td>
+ </tr><tr>
+ <th>Buchserie erfasst am:</th>
+ <td>[% serie.created_at | html %]</td>
+ </tr><tr>
+ <th>Letzte Änderung:</th>
+ <td>[% serie.changed_at | html %]</td>
</tr><tr>
<th>Anzahl der Bücher:</th>
<td>[% serie.count_books | html %]</td>
...
},
],
- 'count_books' => '1',
- 'name_long => '',
- 'id' => '8',
- 'name' => 'Piper',
+ 'count_books' => '1',
+ 'name_long => '',
+ 'id' => '8',
+ 'name' => 'Piper',
+ 'changed_at' => '2010-02-25 21:45:18',
+ 'created_at' => '2010-02-25 21:45:18',
+ 'id_changed_by' => '1',
+ 'id_created_by' => '1',
+ 'name_changed_by' => 'Frank Brehm',
+ 'name_created_by' => 'Frank Brehm',
};
-%]
</tr><tr>
<th>Kompletter Verlagsname / Beschreibung:</th>
<td>[%- verlag.name_long | html %]</td>
+ </tr><tr>
+ <th>Verlag erfasst am:</th>
+ <td>[% verlag.created_at | html %]</td>
+ </tr><tr>
+ <th>Letzte Änderung:</th>
+ <td>[% verlag.changed_at | html %]</td>
</tr><tr>
<th>Anzahl Bücher:</th>
<td>[%- verlag.count_books | html -%]</td>