reconcile rendering changes

This commit is contained in:
Grahame Grieve 2024-06-25 21:22:33 +10:00
parent 88e900110f
commit 170bcf19e6
1 changed files with 8 additions and 2 deletions

View File

@ -289,8 +289,14 @@ public abstract class ResourceRenderer extends DataRenderer {
} else { } else {
CanonicalResource cr = (CanonicalResource) target; CanonicalResource cr = (CanonicalResource) target;
if (!target.hasWebPath()) { if (!target.hasWebPath()) {
x.code().tx(url); if (url.contains("|")) {
x.tx(" ("+cr.present()+")"); x.code().tx(cr.getUrl());
x.tx(context.formatPhrase(RenderingContext.RES_REND_VER, cr.getVersion()));
x.tx(" ("+cr.present()+")");
} else {
x.code().tx(url);
x.tx(" ("+cr.present()+")");
}
} else { } else {
if (url.contains("|")) { if (url.contains("|")) {
x.ah(context.prefixLocalHref(target.getWebPath())).tx(cr.present()+ context.formatPhrase(RenderingContext.RES_REND_VER) +cr.getVersion()+")"); x.ah(context.prefixLocalHref(target.getWebPath())).tx(cr.present()+ context.formatPhrase(RenderingContext.RES_REND_VER) +cr.getVersion()+")");