]> Frank Brehm's Git Trees - books.git/commitdiff
Anmerkungen zum Buch editierbar gemacht
authorFrank Brehm <frank@brehm-online.com>
Sat, 6 Mar 2010 22:23:38 +0000 (22:23 +0000)
committerFrank Brehm <frank@brehm-online.com>
Sat, 6 Mar 2010 22:23:38 +0000 (22:23 +0000)
lib/FrBr/Books/Controller/Books.pm
root/src/autor/view.tt2
root/src/books/form.tt2
root/src/books/view.tt2
root/src/category/view.tt2
root/src/ort/view.tt2
root/src/serie/view.tt2
root/src/verlag/view.tt2

index a5adb8ff85cdfec9b930bc2beb563b8090d1a70e..6b8cfeb8d48ea5a9e9d6ee6667375cd2809a93bc 100644 (file)
@@ -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'};
 
index 9fc963d941ec88fe42a3e8deb9589bcbd15308ed..506f01526a4bc3321300076b994eca0efbe0756a 100644 (file)
     Ü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 -->
   </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>
index 25e4c39c6d8581867b453fad8a594779753d233c..94b62659f4af5ae763c3e58ecde4d78d6b2bc7af 100644 (file)
@@ -162,6 +162,10 @@ function goto_new_ort() {
             <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>&nbsp;<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>
index d2c806ef6b3fd17d5635b5990d06bc951ee40a71..b00e119276da769b212df6efc29dda51dbc66213 100644 (file)
@@ -9,37 +9,44 @@
     Ü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'
     }
 
 -%]
@@ -97,9 +104,18 @@ Buchanzeige -->
   </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">
index 9de4c94a45eeb8920af082d312e2741f9e01f362..908fee9c182a29aa85b92bd72c2b0179fd87c36d 100644 (file)
     Ü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',
        };
 
 -%]
@@ -59,7 +65,7 @@
 [%- END -%]
 
 
-Verlagsanzeige -->
+Kategorieanzeige -->
 
 <table class="ftable" cellspacing="0">
   <tr>
@@ -69,6 +75,12 @@ Verlagsanzeige -->
   </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>
index 9ddf78f9d2095eee23c54976ecdc272ae7c5ff36..9bc03f41bb9dcf97133a0cbaf3f183acfa7beecf 100644 (file)
     Ü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,
@@ -65,6 +71,12 @@ Anzeige Aufbewahrungsort -->
   </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>
index cd901952dbf28c0bb9cc4741a73bc403bb11a72b..e679e381bad226f2db711794d8f8300ac5ad72df 100644 (file)
     Ü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,
@@ -67,6 +73,12 @@ Anzeige einer Buchserie -->
   </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>
index 6e69063d3246b19b3e222858577ddd496942a0a7..bd3a125e583d3ded5263b42f76fab81c3ad42cdc 100644 (file)
                                ...
                        },
                ],
-               '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',
        };
 
 -%]
@@ -69,6 +75,12 @@ Verlagsanzeige -->
   </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>