|
@@ -214,8 +214,9 @@ local function generate_coll(s, mconf)
|
|
|
head_tpl = templates.head.data,
|
|
|
header_tpl = templates.header.data,
|
|
|
mconf = mconf,
|
|
|
- uri = s,
|
|
|
+ uid = path.basename(s.data),
|
|
|
members = members,
|
|
|
+ permalink = pkar.gen_pairtree("/res", s.data, ".html", true),
|
|
|
tn_url = get_tn_url(s),
|
|
|
pref_rep = {
|
|
|
url = pref_rep_url,
|
|
@@ -345,7 +346,7 @@ local function generate_dres(s, mconf)
|
|
|
head_tpl = templates.head.data,
|
|
|
header_tpl = templates.header.data,
|
|
|
mconf = mconf,
|
|
|
- uri = s,
|
|
|
+ uid = path.basename(s.data),
|
|
|
dmd = dmd,
|
|
|
rel = rel,
|
|
|
children = children,
|
|
@@ -358,6 +359,7 @@ local function generate_dres(s, mconf)
|
|
|
icon_url = get_icon_url(mconf.lineage),
|
|
|
breadcrumbs = get_breadcrumbs(mconf),
|
|
|
rdf_href = pkar.gen_pairtree("/res", s.data, ".ttl", true),
|
|
|
+ permalink = pkar.gen_pairtree("/res", s.data, ".html", true),
|
|
|
})
|
|
|
|
|
|
local res_path = pkar.gen_pairtree(M.res_dir, s.data, ".html")
|
|
@@ -455,7 +457,7 @@ local function generate_ores(s, mconf)
|
|
|
head_tpl = templates.head.data,
|
|
|
header_tpl = templates.header.data,
|
|
|
mconf = mconf,
|
|
|
- uri = s,
|
|
|
+ uid = path.basename(s.data),
|
|
|
techmd = techmd,
|
|
|
rel = rel,
|
|
|
ls_next = ls_next,
|
|
@@ -463,6 +465,7 @@ local function generate_ores(s, mconf)
|
|
|
breadcrumbs = get_breadcrumbs(mconf),
|
|
|
pres = pres,
|
|
|
thumbnail = tn,
|
|
|
+ permalink = pkar.gen_pairtree("/res", s.data, ".html", true),
|
|
|
rdf_href = pkar.gen_pairtree("/res", s.data, ".ttl", true),
|
|
|
})
|
|
|
|