]> Frank Brehm's Git Trees - books.git/commitdiff
max. Anzahl der Bücher in anderen Listen konfigurierbar gemacht und ausgewertet
authorFrank Brehm <frank@brehm-online.com>
Sun, 22 Nov 2009 15:22:31 +0000 (15:22 +0000)
committerFrank Brehm <frank@brehm-online.com>
Sun, 22 Nov 2009 15:22:31 +0000 (15:22 +0000)
frbr_books.yml
root/src/autor/list.tt2
root/src/serie/list.tt2
root/src/sessionopts/index.tt2

index 50b6a8db4ad6e13d3450d46baeb7ac592eea73ae..cfe7c01f73bd468aaa1a7d1330d716238c0cf88e 100644 (file)
@@ -10,15 +10,12 @@ debug_level:    0
 log_level:      info
 # Soll die Log-Ausgabe farbig erfolgen ?
 colored_log:    0
-
 #
 # Standard-Listenlaenge
 default_list_length:    20
-
 #
 # Anzahl der angezeigten zugeordneten Bücher in einer anderen Liste
-default_count_books_in_other_list:     10
-
+default_count_books_in_other_list: 5
 #
 # Sitzungsparameter
 session:
index 8a749e8fe311880f130f8acf8244a00234587ec1..f795b6c0bdc2033eafed60f9f40580ff9473cb1d 100644 (file)
@@ -49,7 +49,8 @@
   <tr>
     <td class="[% rowstyle %]">[% author.name %]</td>
     <td class="[% rowstyle %]">[% author.descr %]</td>
-    <td class="[% rowstyle %]"><ul class="buchliste">[% IF author.books and author.books.size > 0 %][% FOREACH book IN author.books %]
+    <td class="[% rowstyle %]"><ul class="buchliste">[% IF author.books and author.books.size > 0 %][% zz = 0 %][% FOREACH book IN author.books %][% zz = zz + 1 %][% IF zz > books_in_other_list %]
+            <li><i>weitere ...</i></li>[% LAST %][% END %]
             <li>[% PROCESS book_entry b=book %]</li>[% END %][% ELSE %]<li><i>keine</i></li>[% END %]
         </ul></td>
     <td class="button [% rowstyle %]"><a href="[% path('/autor/view') %]?view_autor_id=[% author.id %]">Ansehen</a></td>
index 6a29365f51ba07ee9b88f076a3bae12be579f245..7b81bc7b3fcd971036f2719597165202dc2af873 100644 (file)
@@ -50,7 +50,8 @@
   <tr>
     <td class="[% rowstyle %]">[% serie.name %]</td>
     <td class="[% rowstyle %]">[% serie.descr %]</td>
-    <td class="[% rowstyle %]"><ul class="serienliste">[% IF serie.books and serie.books.size > 0 %][% FOREACH b IN serie.books %]
+    <td class="[% rowstyle %]"><ul class="serienliste">[% IF serie.books and serie.books.size > 0 %][% zz = 0 %][% FOREACH b IN serie.books %][% zz = zz + 1 %][% IF zz > books_in_other_list %]
+            <li><i>weitere ...</i></li>[% LAST %][% END %]
             <li>[% PROCESS book_entry book=b %]</li>[% END %][% ELSE %]<li><i>keine</i></li>[% END %]
         </ul></td>
     <td class="button [% rowstyle %]"><a href="[% path('/serie/view') %]?view_serien_id=[% serie.id %]">Ansehen</a></td>
index 0bdc1a8b3266ebb61f7fd8dcfa72139dc5205c1a..83ecb50f26bff5b45b8238cb013661347c06acff 100644 (file)
@@ -9,10 +9,11 @@
 
 -%]
 
-Formulars für Sitzungseinstellungen -->
+Formular für Sitzungseinstellungen -->
 
 [%- META title = 'Sitzungseinstellungen' -%]
 [%- entries = [ 5, 10, 20, 50, 100, 200, 500 ] -%]
+[%- bl_entries = [ 2, 3, 5, 10, 20, 50, 100 ] -%]
 
 <div class="center">
 
@@ -27,6 +28,12 @@ Formulars für Sitzungseinstellungen -->
       <td><select name="list_length" size="1">
         [% FOR e IN entries %]<option class="number" value="[% e %]"[% IF e == list_length %] selected[% END %]>[% e %]</option>[% END %]
         </select></td>
+    </tr><tr>
+      <th>Maximale Anzahl der angezeigten zugeordneten Bücher in einer Liste:<br />
+          <span style="font-weight: normal;">(z.Bsp. Autorenliste)</span></th>
+      <td><select name="books_in_other_list" size="1">
+        [% FOR e IN bl_entries %]<option class="number" value="[% e %]"[% IF e == books_in_other_list %] selected[% END %]>[% e %]</option>[% END %]
+        </select></td>
     </tr><tr>
       <td colspan="2" class="empty"></td>
     </tr><tr>