From 2488749cddb2707fe0f4e4328f91381df5ddb4d9 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Wed, 9 Jan 2008 23:47:33 -0600 Subject: [PATCH] Shelves reworking - fix handling of itemtype images, symlink to opac icons. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../en/modules/virtualshelves/shelves.tmpl | 180 ++++++++---------- koha-tmpl/intranet-tmpl/prog/img/itemtypeimg | 1 + virtualshelves/shelves.pl | 15 +- 3 files changed, 97 insertions(+), 99 deletions(-) create mode 120000 koha-tmpl/intranet-tmpl/prog/img/itemtypeimg diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl index b8f80464b0..d24f9969c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl @@ -64,36 +64,34 @@ function confirmDelete(s,n){ - +
- -
-
-
- -
- +
+
+
+
-
+
" /> -
-Contents of +
+ Contents of + - + @@ -102,7 +100,14 @@ function confirmDelete(s,n){ " /> +
  TypeIcon Title Author Call No.  
- /../img/.gif" alt="" title="" /> + + + + /../img/itemtypeimg/" alt="" title="" /> + + /../img/itemtypeimg/.gif" alt="" title="" /> + @@ -126,40 +131,41 @@ function confirmDelete(s,n){
-
-
+
+
- - - -
+ +
- -
-
- - + +
+ +
+
-
+
Add an item to
  1. - " />
-
+
-
- + +
+ + +
Edit is on ()
+
seflag is on ()
- +
A List with that name already exists!
@@ -168,25 +174,56 @@ function confirmDelete(s,n){ -
+
-
+ + + Create a new List
    -
  1. +
  2. Owner: " />
  3. -
- -
Cancel
-
- +
  • +
  • + + + + " /> + Edit List +
      +
    1. " />
    2. +
    3. " />
    4. +
    5. +
    + + + +
    Cancel
    +
      @@ -196,77 +233,28 @@ function confirmDelete(s,n){
    - - - -
    -
    -
    A List with that name already exists!
    -
    - - " /> -
    Edit List -
      -
    1. " />
    2. -
    3. " />
    4. -
    5. -
    -
    Cancel
    - -
    -
    -
    -
    • A Private List is managed by you and can be seen only by you.
    • -
    • A Public List can be seen by everybody, but managed only by you.
    • -
    • An Open List can be seen and managed by everybody.
    • -
    -
    + - - - - - +

    Lists

    - - class="highlight">
    NameCategoryItems 
    "> -Private -Public -Open + Private + Public + Open ">Edit =1" onclick="return confirmDelete(_('Are you sure you want to remove this List?'))">Delete 
    - - - +
    - diff --git a/koha-tmpl/intranet-tmpl/prog/img/itemtypeimg b/koha-tmpl/intranet-tmpl/prog/img/itemtypeimg new file mode 120000 index 0000000000..30dd26690c --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/img/itemtypeimg @@ -0,0 +1 @@ +../../../opac-tmpl/prog/itemtypeimg/ \ No newline at end of file diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index 6c82e53ad0..ffa9508125 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -178,12 +178,12 @@ SWITCH: { } $template->param( paramsloop => \@paramsloop ); my ($shelflist) = GetShelves( $loggedinuser, 2 ); - my $color = ''; + my $color = 0; my @shelvesloop; foreach my $element ( sort keys %$shelflist ) { my %line; - ( $color eq 1 ) ? ( $color = 0 ) : ( $color = 1 ); - $line{'toggle'} = $color; + $color = ($color==1) ? 0 : 1; + $color and $line{'toggle'} = $color; $line{'shelf'} = $element; $line{'shelfname'} = $shelflist->{$element}->{'shelfname'}; $line{'shelfvirtualcount'} = $shelflist->{$element}->{'count'}; @@ -224,6 +224,15 @@ $template->param( shelvesloop => \@shelvesloop, numberCanManage => $numberCanManage, ); +if ($template->param('viewshelf') or + $template->param( 'shelves' ) or + $template->param( 'edit' ) ) { + $template->param(vseflag => 1); +} +if ($template->param( 'shelves' ) or + $template->param( 'edit' ) ) { + $template->param( seflag => 1); +} output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5