6.0.0-alpha12
6/8/25

[#3424] Display Owner on Shared Calendar Option
Summary Display Owner on Shared Calendar Option
Queue Kronolith
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners
Requester nchanda (at) tachometry (dot) com
Created 02/08/2006 (7060 days ago)
Due
Updated 06/01/2006 (6947 days ago)
Assigned
Resolved 06/01/2006 (6947 days ago)
Milestone
Patch Yes

History
06/01/2006 05:45:50 PM Chuck Hagenbuch Comment #17
State ⇒ Resolved
Reply to this comment
The Kronolith part of this is already done. I'm really not sure what 
state the mnemo patches are in, but they need to be in a seperate, 
clean ticket for Mnemo.
04/08/2006 11:39:09 PM Chuck Hagenbuch Deleted Original Message
 
04/08/2006 11:38:41 PM Chuck Hagenbuch Comment #16 Reply to this comment
I agree with Jan. You need to read horde/docs/CODING_STANDARDS, 
though, and get rid of tabs, fix some whitespace issues, etc.
04/08/2006 09:01:04 AM Jan Schneider Comment #15 Reply to this comment
I prefer the first candidate, not only because of the missing optgroup 
feature, but also because of the missing 'option class="selected"' 
feature and the addition Horde_Form overhead which isn't necessary here.
04/03/2006 05:10:53 PM nchanda (at) tachometry (dot) com Comment #14
New Attachment: select_candidate2.txt
Reply to this comment
This is the second of two candidate patches moving the select logic to 
the Mnemo class.



This one uses HORDE_FORM and Renderer framework classes to render a 
form element.  This method DOES NOT allow the use of the optgroup 
functionality, but does support the separation of presentation and 
logic recommendations.



This candidate will require additional work as the onchange action 
seems to throw an exception.  I will take the next few steps down this 
path is it seems profitable.  Does anyone have any comments on either 
of the two directions?  Is it permissible to render the select element 
without the form wrapper?


04/03/2006 05:02:18 PM nchanda (at) tachometry (dot) com Comment #13
New Attachment: select_candidate1.txt Download
Reply to this comment
Here are a couple candidate patches moving the select logic to the 
Mnemo class.



This one uses in-line HTML to return a string representation of the 
select element.  This method allows the use of the optgroup 
functionality, but is in conflict with the separation of presentation 
and logic recommendations.



This implementation is full-feature replacement for the earlier patch.


04/01/2006 11:04:25 AM Jan Schneider Comment #12 Reply to this comment
No, there isn't, you need to duplicate code again.
03/31/2006 10:55:30 PM nchanda (at) tachometry (dot) com Comment #11 Reply to this comment
Sounds good.  I was looking at the Horde_Form class.  Do you know if 
it is possible to specify the optgroup from the enum type in any of 
the renderers?
03/30/2006 10:09:51 PM Jan Schneider Comment #10 Reply to this comment
Looks good. Though looking at the mess in menu.inc (which you copied 
from Kronolith, it's not your fault), we should probably move the 
widget generation to Mnemo::/Kronolith:: methods. This should result 
in much cleaner code. At least for the option tags.
03/30/2006 10:05:32 PM Jan Schneider Deleted Original Message
 
03/30/2006 12:03:30 AM nchanda (at) tachometry (dot) com Comment #9
New Attachment: mnemo_shared_display_patch[1].txt Download
Reply to this comment
I have refactered the last patch to remove redundant creation of the 
my_notepads and shared_notepads arrays.  This patch simplifies the 
previous version.



This also eliminates the need to refactor the Mnemo::listNotepads 
method as discussed on the dev list here (#2):

http://lists.horde.org/archives/dev/Week-of-Mon-20060327/019567.html



I believe this pattern is clear and simple enough to implement on the 
other groupware apps.  As always, I am happy to implement other 
suggestions.
03/29/2006 10:37:24 PM nchanda (at) tachometry (dot) com Comment #8
New Attachment: mnemo_shared_display_patch.txt
Reply to this comment
The attached patch is a first pass implementation of the Display 
Notepads functionality for Mnemo.  This implements:

1. Option Group select on the menu.inc drop-down list

2. Display Notepads block w/ checkboxes for the My Notepads page


03/24/2006 07:16:56 PM Chuck Hagenbuch Comment #7 Reply to this comment
Alright, I think this makes sense if we introduce the same preference
in the other groupware apps. The question is, should we make this a
shared preference, so that you turn it on and off globally, or should
it be one preference per application?
I know, admins can change this easily themselves, but I'm talking
about the default setting.
I think it makes sense to have it be shared between all apps.
03/22/2006 06:50:44 PM Jan Schneider Comment #6 Reply to this comment
The other PIM apps do not currently have a "Display {item}" section
under the corresponding "My {item}" page.  I personally like the
display checkboxes and think it would be helpful for other apps.  I
would be willing to take a first pass at adding the Display section
to the appropriate apps if this makes sense.
That would be great, independently from the owner name topic.
03/22/2006 06:10:27 PM nchanda (at) tachometry (dot) com Comment #5 Reply to this comment
I think a global setting makes sense if there is another way for the 
user to determine the element's owner.



The My Calendars -> Display Calendars section has screen room to 
display the owner name next to the calendar name.  So, even if a 
global default was set to hide the owner on the drop-down list, the 
user could still determine the owner through the My Calendars interface.



The other PIM apps do not currently have a "Display {item}" section 
under the corresponding "My {item}" page.  I personally like the 
display checkboxes and think it would be helpful for other apps.  I 
would be willing to take a first pass at adding the Display section to 
the appropriate apps if this makes sense.


03/22/2006 03:13:05 PM Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
Alright, I think this makes sense if we introduce the same preference 
in the other groupware apps. The question is, should we make this a 
shared preference, so that you turn it on and off globally, or should 
it be one preference per application?

I know, admins can change this easily themselves, but I'm talking 
about the default setting.
02/23/2006 12:22:10 AM tevans (at) tachometry (dot) com Comment #3 Reply to this comment
Hi Jan,



Would you mind taking another look at this patch? I agree with your 
assessment that we can create a username hook to shorten the calendar 
owner. However, our users have asked us for a way to suppress the 
calendar owner altogether and only display the calendar name. The 
patch implements this feature as a user preference. We believe it also 
brings the calendar UI more in line with the other shared applications 
(tasks, memos, etc.).



Thanks in advance for your time. We are happy to discuss further as needed.



Tom Evans

Tachometry
02/08/2006 10:25:46 AM Jan Schneider Comment #2
State ⇒ Rejected
Reply to this comment
User names are not email addresses by default, only if your 
authentication backend requires this. Also, there are hooks to convert 
user names in the interface, for example to strip the domain part.
02/08/2006 01:43:46 AM nchanda (at) tachometry (dot) com Comment #1
Priority ⇒ 1. Low
State ⇒ New
New Attachment: kronolith_owner_display.patch.txt Download
Queue ⇒ Kronolith
Summary ⇒ Display Owner on Shared Calendar Option
Type ⇒ Enhancement
Reply to this comment
When using IMP as the authentication mechanism, the username by 
default is a fully qualified e-mail address.  We have found that a 
long username combined with the calendar name in the calendar select 
list forces the menu to break to a second line on monitors with a low 
resolution setting.



In an effort to reduce the effect of this occurrence, I would like to 
suggest the following patch to add a preference setting; allowing the 
user an option to "not display" the username before the calendar name 
in the shared calendars option group in the calendar select list.



I appreciate any thoughts or comments you may have on this 
enhancement.  The submitted patch:



1. Adds a preference for "show_shared_owner" to the preferences file 
with a default value of 1 to support backwards compatibility (will by 
default show the usernames).



2. Adds the preference checkbox to the bottom position of the "User 
Interface" options.



3. Modifies the menu.inc file to check the value of the 
"show_shared_owner" preference before printing the owner name in the 
select list.



Thank you for your consideration.  I appreciate any feedback or 
suggested modifications.

Saved Queries