|
|
|
@ -35,6 +35,24 @@ nBildertool.strecke = function (data) |
|
|
|
this.fotoCount = null; |
|
|
|
this.path = null; |
|
|
|
|
|
|
|
SPECIAL_CHARS = Array ( |
|
|
|
/ /g, /ä/g, /ü/g, /ö/g, /Ä/g, /Ü/g, /Ö/g, /ß/g, |
|
|
|
/\./g, /:/g, /\!/g, /\?/g, /\,/g, |
|
|
|
/`/g, /"/g, /\'/g, |
|
|
|
/é/g, /è/g, /á/g, /à/g, /ó/g, |
|
|
|
/É/g, /Á/g, /Ó/g, /È/g, /À/g, /Ò/g, |
|
|
|
/EUR/g, /¢/g, /\$/g, |
|
|
|
/@/g, /%/g, /&/g, /\+/g, /§/g, /\(/g, /\)/g); |
|
|
|
|
|
|
|
SPECIAL_CHARS_MAP = Array ( |
|
|
|
'_', 'ae', 'ue', 'oe', 'Ae', 'Ue', 'Oe', 'ss', |
|
|
|
'', '', '', '', '', |
|
|
|
'', '', '', |
|
|
|
'e', 'e', 'a', 'a', 'o', |
|
|
|
'E', 'A', 'O', 'E', 'A', 'O', |
|
|
|
'_euro_', '_cent_', '_dollar_', |
|
|
|
'_at_', '_prozent_', '_und_', '_und_', '_paragraph_', '', ''); |
|
|
|
|
|
|
|
function getOrdnerInfo (value, idx) |
|
|
|
{ |
|
|
|
var val = value.split ('|%|'); |
|
|
|
@ -42,35 +60,35 @@ nBildertool.strecke = function (data) |
|
|
|
return val[idx]; |
|
|
|
} |
|
|
|
|
|
|
|
function getOrdnerId (idx) |
|
|
|
this.getOrdnerId = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.ordnerId, idx); |
|
|
|
} |
|
|
|
function getConnectionId (idx) |
|
|
|
this.getConnectionId = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.connectionId, idx); |
|
|
|
} |
|
|
|
function getFlags (idx) |
|
|
|
this.getFlags = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.flags, idx); |
|
|
|
} |
|
|
|
function getL0Id (idx) |
|
|
|
this.getL0Id = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.l0Id, idx); |
|
|
|
} |
|
|
|
function getL1Id (idx) |
|
|
|
this.getL1Id = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.l1Id, idx); |
|
|
|
} |
|
|
|
function getL2Id (idx) |
|
|
|
this.getL2Id = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.l2Id, idx); |
|
|
|
} |
|
|
|
function getL3Id (idx) |
|
|
|
this.getL3Id = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.l3Id, idx); |
|
|
|
} |
|
|
|
function getOrdnerName (idx) |
|
|
|
this.getOrdnerName = function (idx) |
|
|
|
{ |
|
|
|
return getOrdnerInfo (this.ordnerName, idx); |
|
|
|
} |
|
|
|
@ -85,24 +103,34 @@ nBildertool.strecke = function (data) |
|
|
|
return FRONT_URL + teaserPath + '.jpeg'; |
|
|
|
} |
|
|
|
|
|
|
|
this.getPath = function () |
|
|
|
{ |
|
|
|
var path = this.path; |
|
|
|
|
|
|
|
for (i in SPECIAL_CHARS) |
|
|
|
path = path.replace (SPECIAL_CHARS[i], SPECIAL_CHARS_MAP[i]); |
|
|
|
|
|
|
|
return path; |
|
|
|
} |
|
|
|
|
|
|
|
this.getThumbUrl = function () |
|
|
|
{ |
|
|
|
return FRONT_URL + this.path + 'T.jpeg'; |
|
|
|
return FRONT_URL + this.getPath () + 'T.jpeg'; |
|
|
|
} |
|
|
|
|
|
|
|
this.getScreenUrl = function () |
|
|
|
{ |
|
|
|
return FRONT_URL + this.path + 'S.jpeg'; |
|
|
|
return FRONT_URL + this.getPath () + 'S.jpeg'; |
|
|
|
} |
|
|
|
|
|
|
|
this.getDownlUrl = function () |
|
|
|
{ |
|
|
|
return FRONT_URL + this.path + '.jpeg'; |
|
|
|
return FRONT_URL + this.getPath () + '.jpeg'; |
|
|
|
} |
|
|
|
|
|
|
|
this.getShowUrl = function () |
|
|
|
{ |
|
|
|
return FRONT_URL + this.path + '.html'; |
|
|
|
return FRONT_URL + this.getPath () + '.html'; |
|
|
|
} |
|
|
|
|
|
|
|
nBildertool.strecke.baseConstructor.call (this, data); |
|
|
|
|