From 47a75d2968c8e23c21dc6499fca7c7e2f3ecffc2 Mon Sep 17 00:00:00 2001 From: tipaul Date: Thu, 1 Dec 2005 15:05:59 +0000 Subject: [PATCH] improving look when a biblio has X subscriptions --- C4/Bull.pm | 4 ++ .../default/en/bull/bull-home.tmpl | 36 +++++++++-- .../default/en/bull/lateissues.tmpl | 60 ++++++++----------- 3 files changed, 61 insertions(+), 39 deletions(-) diff --git a/C4/Bull.pm b/C4/Bull.pm index bdef7ee562..db49451fe6 100755 --- a/C4/Bull.pm +++ b/C4/Bull.pm @@ -324,12 +324,16 @@ sub getsubscriptions { } my @results; my $previoustitle=""; + my $odd=1; while (my $line = $sth->fetchrow_hashref) { if ($previoustitle eq $line->{title}) { $line->{title}=""; $line->{issn}=""; + $line->{toggle} = 1 if $odd==1; } else { $previoustitle=$line->{title}; + $odd=-$odd; + $line->{toggle} = 1 if $odd==1; } push @results, $line; } diff --git a/koha-tmpl/intranet-tmpl/default/en/bull/bull-home.tmpl b/koha-tmpl/intranet-tmpl/default/en/bull/bull-home.tmpl index b9f0594c9a..374c99a106 100644 --- a/koha-tmpl/intranet-tmpl/default/en/bull/bull-home.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/bull/bull-home.tmpl @@ -28,20 +28,46 @@ - + + + + + " class="button bull" title="Issues history"> - - + + + + + + + + + | + - + + + + + () - + + + + + " class="button bull" title="subscription detail">Detail + + + + + + " class="button bull" title="receive issues for this subscription">Receive diff --git a/koha-tmpl/intranet-tmpl/default/en/bull/lateissues.tmpl b/koha-tmpl/intranet-tmpl/default/en/bull/lateissues.tmpl index ad54f0710a..8efd0ab86b 100644 --- a/koha-tmpl/intranet-tmpl/default/en/bull/lateissues.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/bull/lateissues.tmpl @@ -2,49 +2,41 @@

Late issues

+

+

+ + Phone: + Fax: +

" class="button bull"> + +

+

- - - - - - - - - - - - - + + + + + + + + + + +
Supplier Title Issue number Late since  
- - -

- Phone: - Fax: -

" class="button bull"> -

-
- -
- - - - - - - - - " class="button bull">Detail - " class="button bull">Recieve - | + " class="button bull">Detail + " class="button bull">Recieve + + " class="button bull">Detail + " class="button bull">Recieve +
-- 2.39.5