| Line 219... |
Line 219... |
| 219 |
NSString *topic = [selectedItem objectForKey:kDataManagerData];
|
219 |
NSString *topic = [selectedItem objectForKey:kDataManagerData];
|
| 220 |
NSRange r = [topic rangeOfString:@" ("];
|
220 |
NSRange r = [topic rangeOfString:@" ("];
|
| 221 |
if (r.length > 0 && [topic length] - r.length > 3) // some datasets have the topic in parents
|
221 |
if (r.length > 0 && [topic length] - r.length > 3) // some datasets have the topic in parents
|
| 222 |
topic = [topic substringWithRange: NSMakeRange(r.location + 2, [topic length] - r.location - 3)];
|
222 |
topic = [topic substringWithRange: NSMakeRange(r.location + 2, [topic length] - r.location - 3)];
|
| 223 |
|
223 |
|
| 224 |
urlText = [NSString stringWithFormat:@"http://127.0.0.1:%d/library/%@/html/%@.html", port, [selectedItem objectForKey:kDataManagerPackage], topic];
|
224 |
urlText = [NSString stringWithFormat:@"http://localhost:%d/library/%@/html/%@.html", port, [selectedItem objectForKey:kDataManagerPackage], topic];
|
| 225 |
|
225 |
|
| 226 |
[[dataInfoView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlText]]];
|
226 |
[[dataInfoView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlText]]];
|
| 227 |
|
227 |
|
| 228 |
}
|
228 |
}
|
| 229 |
|
229 |
|