בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,708
רעדאגירונגען
(אקדמיה) |
אין תקציר עריכה צייכן: צוריקגעשטעלט |
||
| שורה 1,754: | שורה 1,754: | ||
params[j] = undefined; | params[j] = undefined; | ||
} | } | ||
} else if (typeof curParam.json != "undefined") { | |||
// Find the script element and get its text | |||
var jsonElement = jQuery('html').find(curParam.json[0]); | |||
if (jsonElement.length) { | |||
try { | |||
var jsonObj = JSON.parse(jsonElement.text()); | |||
// Navigate the path (e.g., "work.authors.0.displayName") | |||
var path = curParam.json[1].split('.'); | |||
params[j] = jsonObj; | |||
for (var pi = 0; pi < path.length; pi++) { | |||
params[j] = params[j][path[pi]]; | |||
if (params[j] === undefined || params[j] === null) break; | |||
} | |||
} catch (e) { | |||
console.error("JSON parse error", e); | |||
params[j] = ''; | |||
} | |||
} | |||
else if (typeof curParam.urlparam != "undefined") { | else if (typeof curParam.urlparam != "undefined") { | ||
params[j] = getParameterByName(curParam.urlparam) || ""; | params[j] = getParameterByName(curParam.urlparam) || ""; | ||
רעדאגירונגען