Thanks Michiel, this is awesome.
I chose to add the XML file and sure enough, the additional calendar (10) 
appears in the SysConfig.
One question though, theoretically, the number of calendars could go up  to n 
with both the approaches, so why is there a limit on 99 (calendars)?

Regards,
Sunjay

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
[email protected]
Sent: Friday, September 18, 2009 2:44 PM
To: [email protected]
Subject: itsm Digest, Vol 28, Issue 4

Send itsm mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.otrs.org/mailman/listinfo/itsm
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of itsm digest..."


Today's Topics:

   1. Re:  Calendars (Michiel Beijen)


----------------------------------------------------------------------

Message: 1
Date: Fri, 18 Sep 2009 11:13:05 +0200
From: Michiel Beijen <[email protected]>
Subject: Re: [itsm] Calendars
To: "OTRS::ITSM User questions and discussions" <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi Sunjay,

There are actually two ways to achieve what you want:

You can manage additional calendars from Config.pm by adding the following
lines:

$Self->{'TimeWorkingHours::Calendar10'} =  {
  'Fri' => [
    '9',
    '10',
  ],
  'Mon' => [
    '9',
    '10',
  ],
  'Sat' => [
    '9',
    '10',
  ],
  'Sun' => [
    '9',
    '10',
  ],
  'Thu' => [
    '9',
    '10',
  ],
  'Tue' => [
    '9',
    '10',
  ],
  'Wed' => [
    '9',
    '10',
  ]
};
$Self->{'TimeVacationDays::Calendar10'} =  {
  '1' => {
    '1' => 'New Year\'s Day'
  },
  '12' => {
    '25' => 'First Christmas Day',
    '26' => 'Second Christmas Day'
  },
  '4' => {
    '30' => 'Queens Day'
  }
};
$Self->{'TimeZone::Calendar10'} =  '+6';
$Self->{'TimeZone::Calendar10Name'} =  'My Calendar Name';

Repeat for every additional calendar, but change all references from
Calendar10 to Calendar11.

Another way, even nicer, would be to create a new XML file
'AdditionalCalendars.xml' in otrs/Kernel/Config/Files, see attached sample.
You can now manage the calendars via the sysconfig, just as you would with
the calendar 1 to 9...
with the attached sample you only get one additional calendar, calendar10,
but you get the idea I guess...

Regards,
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl


On Fri, Sep 18, 2009 at 10:40 AM, Kaul, Sunjay <[email protected]>wrote:

>  Hi,
>
> How do I get to configure/use the 99 calendars as mentioned in the ITSM
> Admin Manual. So far, I can see and am able to use the default 9 but don?t
> have any idea of how to bring up the remaining 90.
>
> Any help is appreciated
>
> Regards,
>
> Sunjay
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> OTRS mailing list: itsm - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/itsm
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm
>
> NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
> http://www.otrs.com/en/support/enterprise-subscription/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.otrs.org/pipermail/itsm/attachments/20090918/e229c6ff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AdditionalCalendars.xml
Type: text/xml
Size: 6938 bytes
Desc: not available
URL: 
<http://lists.otrs.org/pipermail/itsm/attachments/20090918/e229c6ff/attachment.xml>

------------------------------

---------------------------------------------------------------------
OTRS mailing list: itsm - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/itsm
To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

End of itsm Digest, Vol 28, Issue 4
***********************************






This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.

---------------------------------------------------------------------
OTRS mailing list: itsm - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/itsm
To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to