
Hi Dirk, we added this function to the current cvs head (OTRS 2.0). Here you are able to configure the lite customer view shown attributes. PS: Thanks for your idea! -Martin Dirk Scheer wrote:
Hello out there,
our agents use the lite queue view, because of the compressed format (better overview). But they've missed some informations about the customer. So they always have to zoom a ticket to see this information.
I've attached the necessary diffs to display customer informations on the lite queue view too. It should not be very hard to apply them, because they are based on current CVS.
Similar to the standard queue view, you can configure the appearance of the lite queue view from Config.pm with the following variables:
$Self->{ShowCustomerInfoQueueLite} = 1; $Self->{ShowCustomerInfoQueueLiteMaxSize} = 18;
If you set ShowCustomerInfoQueueLite = 0, your OTRS will work like before.
Moreover you can control, how customer informations should be displayed. Therefore I've added one field at the end of the CustomerUser=>Map. With 0/1 you can control, which entries should be shown in the lite queue view (analogous to field #4 for the standard queue view). Here are some sample entries. Please keep in mind, that you have to extend every entry this way (please do not forget the empty string for the http-link):
# var, frontend, storage, shown, required, storage-type, http-link, lite-shown [ 'UserSalutation', 'Salutation', 'salutation', 0, 0, 'var', "", 0 ], [ 'UserFirstname', 'Firstname', 'first_name', 1, 1, 'var', "", 0 ], [ 'UserLastname', 'Lastname', 'last_name', 1, 1, 'var', "", 1 ], [ 'UserPhone', 'Telefon', 'phone', 1, 0, 'var', "", 1 ],
I'll you hope, these changes are useful for you too.
CU Dirk
------------------------------------------------------------------------
--- Agent.pm.org 2004-02-11 02:39:14.000000000 +0100 +++ Agent.pm 2004-02-11 02:41:41.000000000 +0100 @@ -142,14 +142,18 @@ sub AgentCustomerViewTable { my $Self = shift; my %Param = @_; + my $showflag = 3; + if ($Param{Lite} && $Param{Lite} == 1) { + $showflag = 7; + } if (ref($Param{Data}) eq 'HASH' && %{$Param{Data}}) { my $Map = $Param{Data}->{Config}->{Map}; # build html table $Param{Table} = '<table>'; foreach my $Field (@{$Map}) { - if ($Field->[3] && $Param{Data}->{$Field->[0]}) { + if ($Field->[$showflag] && $Param{Data}->{$Field->[0]}) { $Param{Table} .= "<tr><td><b>\$Text{\"$Field->[1]\"}:</b></td><td>"; - if ($Field->[6]) { + if ($Field->[6] && $Field->[6] ne "") { $Param{Table} .= "[6]\">"; } $Param{Table} .= '<div title="'.$Self->Ascii2Html(Text => $Param{Data}->{$Field->[0]}).'">'.$Self->Ascii2Html(Text => $Param{Data}->{$Field->[0]}, Max => $Param{Max}).'</div>';
------------------------------------------------------------------------
--- TicketViewLite.dtl.org 2004-02-08 22:16:49.000000000 +0100 +++ TicketViewLite.dtl 2004-02-11 00:44:55.000000000 +0100 @@ -36,7 +36,10 @@ </tr> </table>
-<table border="0" width="100%" cellspacing="0" cellpadding="3" cols="3"> +
+ + +