Stream: IG creation
Topic: New error around URLs not being valid
Jean Duteau (Mar 26 2020 at 18:23):
I did just update to the latest publisher (v1.0.73-SNAPSHOT) and I'm now getting an error that I didn't see before. It is in three of my examples in the generated summary:
Composition/SampleICSRComposition: Composition.text.div error The URL {{[type]}}-{{[id]}}.html is not valid
So that URL is there but it's obviously a generated URL so it's not an error I can fix.
Lloyd McKenzie (Mar 26 2020 at 18:55):
Grahame indicated that that's a template issue, but I don't really understand because it wasn't a problem before. Haven't had time to dig further to understand
Grahame Grieve (Mar 26 2020 at 19:03):
well, it was worth making that change. It's not a valid URL and there's something wrong, I'll out it on my list to investigate
Jean Duteau (Mar 26 2020 at 20:04):
If you need some pointers to investigate: The examples that have that error in the generated summary have references. So the publisher isn't generating the link to the referenced resource properly. Instead of <a href="Composition-SampleICSRComposition.html"> it is generating the <a href="{{[type]}}-{{[id]}}.html">.
Grahame Grieve (Mar 26 2020 at 22:18):
how can I reproduce this?
Jean Duteau (Mar 26 2020 at 22:19):
Just have an example that has a reference.
Jean Duteau (Mar 26 2020 at 22:20):
it is the reference html that is messed up. i tried walking the code to see where it might be going wrong, but I couldn't help without debugging it and I didn't want to go that far.
Grahame Grieve (Mar 26 2020 at 22:31):
the {{[type]}} syntax should never appear in an instance. It's a template thing
Lloyd McKenzie (Mar 26 2020 at 22:44):
It wasn't a template thing...
Lloyd McKenzie (Mar 26 2020 at 22:45):
Templates don't fill those in
Lloyd McKenzie (Mar 26 2020 at 22:45):
i.e. those aren't Jekyll variables
Grahame Grieve (Mar 26 2020 at 22:50):
it's a pre-processing syntax commonly used in the page templates. it shouldn't be in the resources
Jean Duteau (Mar 27 2020 at 00:08):
Are you sure that it's a template thing? It's the publisher code that is auto-generating the narrative and I don't think it's using a template to do that.
Grahame Grieve (Mar 27 2020 at 02:19):
I've run several IGs for other reasons today and I've not seen the error. So tell me where i can reproduce it...
Oliver Egger (Mar 27 2020 at 08:58):
This IG shows the error with the url on th ci-build http://build.fhir.org/ig/hl7ch/covid-19-prom/branches/master/qa.html, but not on my old local igpublisher version 1.0.72-SNAPSHOT, the templates did not change in the mean time. Source of the ig is here https://github.com/hl7ch/covid-19-prom
Grahame Grieve (Mar 27 2020 at 10:30):
fixed next release
Last updated: Apr 12 2022 at 19:14 UTC