Stream: IG creation
Topic: page title
Dan Gottlieb (Jul 06 2020 at 15:08):
Does anyone know where the html page title in a rendered capabilitystatement comes from? http://build.fhir.org/ig/HL7/bulk-data/branches/tech-correct/CapabilityStatement-bulk-data.json.html shows " : /CapabilityStatement-bulk-data.json.html" as the title, even though there's a populated title property in ig.json and in the resource json.
Jose Costa Teixeira (Jul 06 2020 at 15:58):
it's the template
Dan Gottlieb (Jul 06 2020 at 16:03):
What template? Where?
Jose Costa Teixeira (Jul 06 2020 at 16:07):
this is the HL7 IG template. It's not something that you change as part of your IG - it is the infrastructure behind it. I want to see what's happening there, as soon as I finish a few things here.
Dan Gottlieb (Jul 06 2020 at 16:10):
Ah, ok, thanks.
Jose Costa Teixeira (Jul 06 2020 at 16:36):
I just saw the source and this still uses the previous approach (with a config file), which may be the cause for the issue.
So the first questions are:
- @Lloyd McKenzie is this true? Can this be causing the issue with this page's title http://build.fhir.org/ig/HL7/bulk-data/branches/tech-correct/CapabilityStatement-bulk-data.json.html?
- @Dan Gottlieb (when) would you move this to the standard IG template? The grass is soooo much greener on the other side...
Dan Gottlieb (Jul 06 2020 at 17:21):
I wasn't aware there was a new template, but I can try to switch the IG over after the rest of the in-process Argonaut PRs land. I'd still like to get the technical correction branch out asap through since this should have happened a while ago. Ideally, we'll be able to fix the titles, but if not, it won't be any worse than the currently published version :).
Lloyd McKenzie (Jul 06 2020 at 18:24):
I expect the issue is the lack of a title being declared in the ImplementationGuide reference to the CapabilityStatement. I don't think that's template-driven, though certainly updating to the current template is appropriate.
Dan Gottlieb (Jul 06 2020 at 18:40):
Thanks @Lloyd McKenzie. Looking at the resources directory, there's an "ig.xml", "ig-new.xml" and "ig-new.json" and all have the ImplementationGuide.definition.resource.name element populated for the CapabilityStatement. Do we also need a "display" element in the reference itself? Also, do I have to update all three of those files?
Grahame Grieve (Jul 06 2020 at 19:41):
@Dan Gottlieb you don't want to change the HL7 template as an expediency measure; the bulk-data guide is a little different in layout so it's not a straight forward thing
Grahame Grieve (Jul 06 2020 at 19:44):
in the bulk-data spec, this value comes from \spec\_layouts\default.html
<title>{{page.title}} : {{page.url}}</title>
and the variable page.title is not set in format.html
Dan Gottlieb (Jul 06 2020 at 22:05):
Thanks @Grahame Grieve . Any reason I shouldn't add "title: Bulk Data" in the base.html and format.html front matter (seems like the generated files look right in my local build)?
Grahame Grieve (Jul 06 2020 at 22:22):
well, I prefer page titles to reflect the actual page but that's a very personal style preference.So no reason, particularly not to get a release out. Longer term, you should align with the template
Last updated: Apr 12 2022 at 19:14 UTC