From: Frank Brehm Date: Sat, 6 Mar 2010 22:23:38 +0000 (+0000) Subject: Anmerkungen zum Buch editierbar gemacht X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=b98884d13612ab108c11e2078cc300f6a4553c0c;p=books.git Anmerkungen zum Buch editierbar gemacht --- diff --git a/lib/FrBr/Books/Controller/Books.pm b/lib/FrBr/Books/Controller/Books.pm index a5adb8f..6b8cfeb 100644 --- a/lib/FrBr/Books/Controller/Books.pm +++ b/lib/FrBr/Books/Controller/Books.pm @@ -981,6 +981,7 @@ sub bookdata_session2stash : Private { $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'} ) ); @@ -1247,6 +1248,9 @@ sub bookdata_cgi2session : Private { $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'}; diff --git a/root/src/autor/view.tt2 b/root/src/autor/view.tt2 index 9fc963d..506f015 100644 --- a/root/src/autor/view.tt2 +++ b/root/src/autor/view.tt2 @@ -10,15 +10,21 @@ Ü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', @@ -69,6 +75,12 @@ Autorenanzeige --> Über den Autor: [% ForumCode.forumcode( autor.about ) %] + + Autor erfasst am: + [% autor.created_at | html %] + + Letzte Änderung: + [% autor.changed_at | html %] Bücher: [% IF autor.books.size > 0 %][% IF autor.books.size > 1 %]