strecke.js
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
if (typeof (nBildertool) === 'undefined')
nBildertool = {};
if (typeof (FRONT_URL) === 'undefined')
FRONT_URL = 'http://foto.westfaelische-nachrichten.de/';
// strecke wird ausschliesslich ueber einen entsprechenden xml Datensatz
// gefuellt.
nBildertool.strecke = function (data)
{
this.streckeId = null;
this.date = null;
this.showDate = null;
this.titel = null;
this.prio = null;
this.sektionen = null;
this.template = null;
this.ordnerId = null;
this.connectionId = null;
this.flags = null;
this.l0Id = null;
this.l1Id = null;
this.l2Id = null;
this.l3Id = null;
this.ordnerName = null;
this.viewFoto = null;
this.viewIndex = null;
this.downloads = null;
this.ffId = null;
this.ffBildzeile = null;
this.ffCopy = null;
this.ffSId = null;
this.ffSBildzeile = null;
this.ffSCopy = null;
this.fotoCount = null;
this.path = null;
function getOrdnerInfo (value, idx)
{
var val = value.split ('|%|');
if (typeof (idx) === 'undefined') return val;
return val[idx];
}
function getOrdnerId (idx)
{
return getOrdnerInfo (this.ordnerId, idx);
}
function getConnectionId (idx)
{
return getOrdnerInfo (this.connectionId, idx);
}
function getFlags (idx)
{
return getOrdnerInfo (this.flags, idx);
}
function getL0Id (idx)
{
return getOrdnerInfo (this.l0Id, idx);
}
function getL1Id (idx)
{
return getOrdnerInfo (this.l1Id, idx);
}
function getL2Id (idx)
{
return getOrdnerInfo (this.l2Id, idx);
}
function getL3Id (idx)
{
return getOrdnerInfo (this.l3Id, idx);
}
function getOrdnerName (idx)
{
return getOrdnerInfo (this.ordnerName, idx);
}
this.getTeaserUrl = function ()
{
var teaserPath =
escape (this.titel) + '/' +
this.streckeId.substr (this.streckeId.length-2) + '/' +
this.streckeId;
return FRONT_URL + teaserPath + '.jpeg';
}
this.getThumbUrl = function ()
{
return FRONT_URL + this.path + 'T.jpeg';
}
this.getScreenUrl = function ()
{
return FRONT_URL + this.path + 'S.jpeg';
}
this.getDownlUrl = function ()
{
return FRONT_URL + this.path + '.jpeg';
}
this.getShowUrl = function ()
{
return FRONT_URL + this.path + '.html';
}
nBildertool.strecke.baseConstructor.call (this, data);
}
nBildertool.extend (nBildertool.strecke, nBildertool.c_xmlify);