Committed by
Bob DuCharme
Adjusted GRAPH URI to point to graph containing the table templates
Showing
2 changed files
with
36 additions
and
36 deletions
This diff is collapsed. Click to expand it.
| 1 | -<ui:call ui:template="{= ?template }" arg:report="{= ?report }"> | 1 | +<ui:call ui:template="{= ?template }" arg:report="{= ?report }"> |
| 2 | - <ui:if ui:condition="{= spr:rowCount(?rs) > 0 }"> | 2 | + <ui:if ui:condition="{= spr:rowCount(?rs) > 0 }"> |
| 3 | - <div> | 3 | + <div> |
| 4 | - <hr /> | 4 | + <hr /> |
| 5 | - <ui:setContext ui:queryGraph="<http://www.reportinghub.no/ep/spin/ddr-tables>"> | 5 | + <ui:setContext ui:queryGraph="<http://www.reportinghub.no/ep/spin/mpr-tables>"> |
| 6 | - <h2>{= ui:label(?template) }</h2> | 6 | + <h2>{= ui:label(?template) }</h2> |
| 7 | - </ui:setContext> | 7 | + </ui:setContext> |
| 8 | - <table class="ddrTable" letrs:hrs="{# | 8 | + <table class="ddrTable" letrs:hrs="{# |
| 9 | - SELECT ?header ?left | 9 | + SELECT ?header ?left |
| 10 | - WHERE { | 10 | + WHERE { |
| 11 | - GRAPH <http://www.reportinghub.no/ep/spin/ddr-tables> { | 11 | + GRAPH <http://www.reportinghub.no/ep/spin/mpr-tables> { |
| 12 | - ?template rhspin:tableHeaders ?list . | 12 | + ?template rhspin:tableHeaders ?list . |
| 13 | - ?list <http://jena.hpl.hp.com/ARQ/list#member> ?str . | 13 | + ?list <http://jena.hpl.hp.com/ARQ/list#member> ?str . |
| 14 | - BIND (fn:starts-with(?str, '*') AS ?left) . | 14 | + BIND (fn:starts-with(?str, '*') AS ?left) . |
| 15 | - BIND (IF(?left, fn:substring(?str, 2), ?str) AS ?header) . | 15 | + BIND (IF(?left, fn:substring(?str, 2), ?str) AS ?header) . |
| 16 | - } | 16 | + } |
| 17 | - } | 17 | + } |
| 18 | - }"> | 18 | + }"> |
| 19 | - <tr class="ddrTR"> | 19 | + <tr class="ddrTR"> |
| 20 | - <ui:forEach ui:resultSet="{= ?hrs }"> | 20 | + <ui:forEach ui:resultSet="{= ?hrs }"> |
| 21 | - <th class="ddrTH" style="text-align: {= IF(?left, 'left', 'center') }" | 21 | + <th class="ddrTH" style="text-align: {= IF(?left, 'left', 'center') }" |
| 22 | - ><ui:parse ui:str="{= html:encodeBRs(spif:replaceAll(?header, ' ', ' ')) }" /></th> | 22 | + ><ui:parse ui:str="{= html:encodeBRs(spif:replaceAll(?header, ' ', ' ')) }" /></th> |
| 23 | - </ui:forEach> | 23 | + </ui:forEach> |
| 24 | - </tr> | 24 | + </tr> |
| 25 | - <ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }"> | 25 | + <ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }"> |
| 26 | - <tr class="ddrTR"> | 26 | + <tr class="ddrTR"> |
| 27 | - <ui:forEach ui:resultSet="{# SELECT ?cell ?colIndex WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?colIndex) } }"> | 27 | + <ui:forEach ui:resultSet="{# SELECT ?cell ?colIndex WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?colIndex) } }"> |
| 28 | - <!--td class="ddrTD" style="text-align: {= IF(spr:cell(?hrs, ?colIndex, 1), 'left', 'center') }"--> | 28 | + <!--td class="ddrTD" style="text-align: {= IF(spr:cell(?hrs, ?colIndex, 1), 'left', 'center') }"--> |
| 29 | - <td class="ddrTD">{= ?cell }</td> | 29 | + <td class="ddrTD">{= ?cell }</td> |
| 30 | - </ui:forEach> | 30 | + </ui:forEach> |
| 31 | - </tr> | 31 | + </tr> |
| 32 | - </ui:forEach> | 32 | + </ui:forEach> |
| 33 | - </table> | 33 | + </table> |
| 34 | - <br /> | 34 | + <br /> |
| 35 | - </div> | 35 | + </div> |
| 36 | - </ui:if> | 36 | + </ui:if> |
| 37 | </ui:call> | 37 | </ui:call> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment