Add department to mailing address list view
This commit is contained in:
parent
44a87240d5
commit
ef45185c4c
2 changed files with 9 additions and 3 deletions
|
@ -12,7 +12,8 @@
|
|||
SELECT DISTINCT ?subclass
|
||||
?address
|
||||
?localName
|
||||
?label
|
||||
?label
|
||||
?dept
|
||||
?street
|
||||
?city
|
||||
?state
|
||||
|
@ -23,6 +24,7 @@
|
|||
?subject ?property ?address
|
||||
LET ( ?localName := afn:localname(?address) )
|
||||
OPTIONAL { ?address rdfs:label ?label }
|
||||
OPTIONAL { ?address core:addressDepartment ?dept }
|
||||
OPTIONAL { ?address core:addressStreet ?street }
|
||||
OPTIONAL { ?address core:addressCity ?city }
|
||||
OPTIONAL { ?address core:addressState ?state }
|
||||
|
|
|
@ -12,10 +12,14 @@
|
|||
next statement -->
|
||||
<#macro showAddress statement>
|
||||
|
||||
<#if ( statement.street?has_content || statement.city?has_content || statement.state?has_content ||
|
||||
statement.postalCode?has_content || statement.country?has_content )>
|
||||
<#if ( statement.dept?has_content || statement.street?has_content || statement.city?has_content ||
|
||||
statement.state?has_content ||statement.postalCode?has_content || statement.country?has_content )>
|
||||
|
||||
<div class="adr">
|
||||
<#if statement.dept?has_content>
|
||||
<div class="address-dept">${statement.dept}</div>
|
||||
</#if>
|
||||
|
||||
<#if statement.street?has_content>
|
||||
<div class="street-address">${statement.street}</div>
|
||||
</#if>
|
||||
|
|
Loading…
Add table
Reference in a new issue