Author: sevein
Date: Wed Oct 27 11:58:32 2010
New Revision: 8559
Log:
Cosmetic changes.
Modified:
trunk/plugins/sfSkosPlugin/modules/sfSkosPlugin/templates/indexSuccess.xml.php
Modified:
trunk/plugins/sfSkosPlugin/modules/sfSkosPlugin/templates/indexSuccess.xml.php
==============================================================================
---
trunk/plugins/sfSkosPlugin/modules/sfSkosPlugin/templates/indexSuccess.xml.php
Wed Oct 27 11:50:50 2010 (r8558)
+++
trunk/plugins/sfSkosPlugin/modules/sfSkosPlugin/templates/indexSuccess.xml.php
Wed Oct 27 11:58:32 2010 (r8559)
@@ -7,53 +7,67 @@
xmlns:dc="http://purl.org/dc/elements/1.1/">
<skos:ConceptScheme rdf:about="<?php echo url_for(array($taxonomy, 'module'
=> 'taxonomy'), true) ?>">
-<?php foreach ($taxonomy->taxonomyI18ns as $i18n): ?>
-<?php if (isset($i18n->name)): ?>
- <dc:title xml:lang="<?php echo $i18n->culture ?>"><?php echo $i18n->name
?></dc:title>
-<?php endif; ?>
-<?php endforeach; // i18ns ?>
-<?php foreach($topLevelTerms as $term): ?>
- <skos:hasTopConcept rdf:resource="<?php echo url_for(array($term, 'module'
=> 'term'), true) ?>"/>
-<?php endforeach; // topLevelTerms?>
+
+ <?php foreach ($taxonomy->taxonomyI18ns as $i18n): ?>
+ <?php if (isset($i18n->name)): ?>
+ <dc:title xml:lang="<?php echo $i18n->culture ?>"><?php echo
$i18n->name ?></dc:title>
+ <?php endif; ?>
+ <?php endforeach; // i18ns ?>
+
+ <?php foreach($topLevelTerms as $term): ?>
+ <skos:hasTopConcept rdf:resource="<?php echo url_for(array($term,
'module' => 'term'), true) ?>"/>
+ <?php endforeach; // topLevelTerms?>
+
</skos:ConceptScheme>
-<?php foreach ($terms as $term): ?>
- <skos:Concept rdf:about="<?php echo url_for(array($term, 'module' =>
'term'), true) ?>">
-<?php foreach ($term->termI18ns as $i18n): ?>
-<?php if (null != $i18n->name): ?>
- <skos:prefLabel xml:lang="<?php echo $i18n->culture ?>"><?php echo
$i18n->name ?></skos:prefLabel>
-<?php endif; ?>
-<?php endforeach; ?>
-<?php if (0 < count($term->otherNames)): ?>
-<?php foreach ($term->otherNames as $altLabel): ?>
-<?php foreach ($altLabel->otherNameI18ns as $i18n): ?>
-<?php if (null != $i18n->name): ?>
- <skos:altLabel xml:lang="<?php echo $i18n->culture ?>"><?php echo
$i18n->name ?></skos:altLabel>
-<?php endif; ?>
-<?php endforeach; ?>
-<?php endforeach; ?>
-<?php endif; ?>
- <skos:inScheme rdf:resource="<?php echo url_for(array($taxonomy, 'module'
=> 'taxonomy'), true) ?>"/>
-<?php if (0 < count($scopeNotes = $term->getNotesByType(array('noteTypeId' =>
QubitTerm::SCOPE_NOTE_ID)))): ?>
-<?php foreach ($scopeNotes as $scopeNote): ?>
-<?php foreach ($scopeNote->noteI18ns as $i18n): ?>
-<?php if (isset($i18n->content)): ?>
- <skos:scopeNote xml:lang="<?php echo $i18n->culture ?>"><?php echo
$i18n->content ?></skos:scopeNote>
-<?php endif; ?>
-<?php endforeach; // i18ns ?>
-<?php endforeach; // scopeNotes ?>
-<?php endif; ?>
-<?php if (QubitTerm::ROOT_ID != $term->parentId): ?>
- <skos:broader rdf:resource="<?php echo url_for(array($term->parent,
'module' => 'term'), true) ?>"/>
-<?php endif; ?>
-<?php foreach ($term->getChildren() as $child): ?>
- <skos:narrower rdf:resource="<?php echo url_for(array($child, 'module' =>
'term'), true) ?>"/>
-<?php endforeach; // children ?>
-<?php if (0 < count ($relations =
QubitRelation::getBySubjectOrObjectId($term->id, array('typeId' =>
QubitTerm::TERM_RELATION_ASSOCIATIVE_ID)))): ?>
-<?php foreach($relations as $relation): ?>
- <skos:related rdf:resource="<?php echo
url_for(array($relation->getOpposedObject($term->id), 'module' => 'term'),
true) ?>"/>
-<?php endforeach; ?>
-<?php endif; ?>
- </skos:Concept>
-<?php endforeach; ?>
+ <?php foreach ($terms as $term): ?>
+
+ <skos:Concept rdf:about="<?php echo url_for(array($term, 'module' =>
'term'), true) ?>">
+
+ <?php foreach ($term->termI18ns as $i18n): ?>
+ <?php if (null != $i18n->name): ?>
+ <skos:prefLabel xml:lang="<?php echo $i18n->culture ?>"><?php echo
$i18n->name ?></skos:prefLabel>
+ <?php endif; ?>
+ <?php endforeach; ?>
+
+ <?php if (0 < count($term->otherNames)): ?>
+ <?php foreach ($term->otherNames as $altLabel): ?>
+ <?php foreach ($altLabel->otherNameI18ns as $i18n): ?>
+ <?php if (null != $i18n->name): ?>
+ <skos:altLabel xml:lang="<?php echo $i18n->culture ?>"><?php
echo $i18n->name ?></skos:altLabel>
+ <?php endif; ?>
+ <?php endforeach; ?>
+ <?php endforeach; ?>
+ <?php endif; ?>
+
+ <skos:inScheme rdf:resource="<?php echo url_for(array($taxonomy,
'module' => 'taxonomy'), true) ?>"/>
+
+ <?php if (0 < count($scopeNotes =
$term->getNotesByType(array('noteTypeId' => QubitTerm::SCOPE_NOTE_ID)))): ?>
+ <?php foreach ($scopeNotes as $scopeNote): ?>
+ <?php foreach ($scopeNote->noteI18ns as $i18n): ?>
+ <?php if (isset($i18n->content)): ?>
+ <skos:scopeNote xml:lang="<?php echo $i18n->culture ?>"><?php
echo $i18n->content ?></skos:scopeNote>
+ <?php endif; ?>
+ <?php endforeach; // i18ns ?>
+ <?php endforeach; // scopeNotes ?>
+ <?php endif; ?>
+
+ <?php if (QubitTerm::ROOT_ID != $term->parentId): ?>
+ <skos:broader rdf:resource="<?php echo url_for(array($term->parent,
'module' => 'term'), true) ?>"/>
+ <?php endif; ?>
+
+ <?php foreach ($term->getChildren() as $child): ?>
+ <skos:narrower rdf:resource="<?php echo url_for(array($child, 'module'
=> 'term'), true) ?>"/>
+ <?php endforeach; // children ?>
+
+ <?php if (0 < count ($relations =
QubitRelation::getBySubjectOrObjectId($term->id, array('typeId' =>
QubitTerm::TERM_RELATION_ASSOCIATIVE_ID)))): ?>
+ <?php foreach($relations as $relation): ?>
+ <skos:related rdf:resource="<?php echo
url_for(array($relation->getOpposedObject($term->id), 'module' => 'term'),
true) ?>"/>
+ <?php endforeach; ?>
+ <?php endif; ?>
+
+ </skos:Concept>
+
+ <?php endforeach; ?>
+
</rdf:RDF>
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.