+2004-08-13 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.33
+
+ * UIxCalView.m: adjusted shortTextForApt to meet the requirements
+ specifictions.
+
+ * UIxCalDayView.m: removed shortTextForApt (moved to superclass).
+
+ * UIxCal*view.wox: escapeHTML="NO" for shortTextForApt.
+
2004-08-13 Marcus Mueller <znek@mulle-kybernetik.com>
* v0.9.32
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
var:title="tooltipForApt"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
</var:matrix-cell>
</var:vspan-matrix>
</td>
<var:foreach list="aptsForCurrentDate" item="appointment">
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
<br />
</var:foreach>
</td>
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
var:title="tooltipForApt"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
<br />
</var:foreach>
</td>
<a var:href="appointmentViewURL"
var:queryDictionary="currentDateQueryParameters"
var:title="tooltipForApt"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
<br />
</var:foreach>
</td>
</td>
<td class="dayprintview_content">
<var:foreach list="allDayApts" item="appointment">
- <var:string value="shortTextForApt" />
+ <var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ />
<br />
</var:foreach>
</td>
</td>
<var:foreach list="aptsForCurrentDate" item="appointment">
<td class="dayprintview_content">
- <var:string value="shortTextForApt" />
+ <var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ />
</td>
<var:if condition="minRequiredRowSpan" const:value="1" const:negate="YES">
</var:if>
}
-- (NSString *)shortTextForApt {
- NSCalendarDate *startDate, *endDate;
- NSMutableString *aptDescr;
- NSString *s;
- BOOL spansRange;
- id apt;
-
- apt = [self appointment];
- spansRange = NO;
- startDate = [apt valueForKey:@"startDate"];
- [startDate setTimeZone:[self viewTimeZone]];
- endDate = [apt valueForKey:@"endDate"];
- if(endDate != nil) {
- [endDate setTimeZone:[self viewTimeZone]];
- spansRange = ![endDate isEqualToDate:startDate];
- }
- aptDescr = [[NSMutableString alloc] init];
- [aptDescr appendFormat:@"%02i:%02i",
- [startDate hourOfDay],
- [startDate minuteOfHour]];
- if(spansRange) {
- [aptDescr appendFormat:@"- %02i:%02i",
- [endDate hourOfDay],
- [endDate minuteOfHour]];
- }
- s = [apt valueForKey:@"title"];
- if(s) {
- [aptDescr appendFormat:@"; %@", s];
- }
- s = [apt valueForKey:@"location"];
- if(s) {
- [aptDescr appendFormat:@"; %@", s];
- }
- return [aptDescr autorelease];
-}
-
-
/* URLs */
- (NSDictionary *)prevDayQueryParameters {
</var:if>
<var:foreach list="allDayApts" item="appointment">
<a var:href="appointmentViewURL"
- ><var:string value="shortTextForApt"/></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
<br />
</var:foreach>
</var:month-info>
class="monthoverview_content_link"
var:title="tooltipForApt"
var:queryDictionary="currentDayQueryParameters"
- ><var:string value="shortTitleForApt"/></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
<br />
</var:month>
</var:month-overview>
}
- (NSString *)shortTextForApt {
- NSCalendarDate *startDate;
- NSString *ms;
-
- startDate = [[self appointment] valueForKey:@"startDate"];
- [startDate setTimeZone:[self viewTimeZone]];
- ms = [NSString stringWithFormat:@"%02i:%02i %@",
- [startDate hourOfDay],
- [startDate minuteOfHour],
- [[self appointment] valueForKey:@"title"]];
- return ms;
+ NSCalendarDate *startDate, *endDate;
+ NSMutableString *aptDescr;
+ NSString *s;
+ BOOL spansRange;
+ id apt;
+
+ apt = [self appointment];
+ spansRange = NO;
+ startDate = [apt valueForKey:@"startDate"];
+ [startDate setTimeZone:[self viewTimeZone]];
+ endDate = [apt valueForKey:@"endDate"];
+ if(endDate != nil) {
+ [endDate setTimeZone:[self viewTimeZone]];
+ spansRange = ![endDate isEqualToDate:startDate];
+ }
+ aptDescr = [[NSMutableString alloc] init];
+ [aptDescr appendFormat:@"%02i:%02i",
+ [startDate hourOfDay],
+ [startDate minuteOfHour]];
+ if(spansRange) {
+ [aptDescr appendFormat:@", %02i:%02i",
+ [endDate hourOfDay],
+ [endDate minuteOfHour]];
+ }
+ s = [apt valueForKey:@"location"];
+ if(s) {
+ if([s length] > 12) {
+ s = [NSString stringWithFormat:@"%@...",
+ [s substringToIndex:11]];
+ }
+ [aptDescr appendFormat:@" (%@)", s];
+ }
+ s = [apt valueForKey:@"title"];
+ if(s) {
+ [aptDescr appendFormat:@"<br />%@",
+ [self shortTitleForApt]];
+ }
+ return [aptDescr autorelease];
}
- (NSString *)shortTitleForApt {
<var:foreach list="allDayApts" item="appointment">
<a var:href="appointmentViewURL"
var:queryDictionary="currentDayQueryParameters"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
</var:foreach>
</var:week-info>
</var:if>
<var:week>
<a var:href="appointmentViewURL"
- ><small><var:string value="shortTextForApt" /></small></a><br />
+ ><small><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></small></a><br />
</var:week>
</var:week-overview>
</var:component>
<var:foreach list="allDayApts" item="appointment">
<a var:href="appointmentViewURL"
var:queryDictionary="currentDayQueryParameters"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
</var:foreach>
</var:weekcol-info>
</var:if>
<var:weekcol>
<a var:href="appointmentViewURL"
- ><small><var:string value="shortTextForApt" /></small></a><br />
+ ><small><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></small></a><br />
</var:weekcol>
</var:weekcol-view>
</td>
<var:foreach list="allDayApts" item="appointment">
<a var:href="appointmentViewURL"
var:queryDictionary="currentDayQueryParameters"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
</var:foreach>
</var:week-info>
</var:if>
<var:week>
<a var:href="appointmentViewURL"
- ><small><var:string value="shortTextForApt" /></small></a><br />
+ ><small><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></small></a><br />
</var:week>
</var:week-overview>
</var:component>
<var:foreach list="allDayApts" item="appointment">
<a var:href="appointmentViewURL"
var:queryDictionary="currentDayQueryParameters"
- ><var:string value="shortTextForApt" /></a>
+ ><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></a>
</var:foreach>
</var:week-info>
</var:if>
<var:week>
<a var:href="appointmentViewURL"
var:title="tooltipForApt"
- ><small><var:string value="shortTextForApt" /></small></a><br />
+ ><small><var:string value="shortTextForApt"
+ const:escapeHTML="NO"
+ /></small></a><br />
</var:week>
</var:week-overview>
</var:component>
# $Id$
-SUBMINOR_VERSION:=32
+SUBMINOR_VERSION:=33
# v0.9.31 requires libWEExtensions v4.2.52
# v0.9.29 requires libWEExtensions v4.2.51