Skip to content

Commit

Permalink
Merge pull request #557 from osmandin/80575150-1
Browse files Browse the repository at this point in the history
Elevate ldp:contains for visibility in UI

Resolves: https://www.pivotaltracker.com/story/show/80575150
  • Loading branch information
Andrew Woods committed Oct 18, 2014
2 parents 9282a90 + f0891ac commit 7357c19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fcrepo-http-api/src/main/resources/views/common-metadata.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<dt>Last Modified at</dt> <dd>$helpers.getObjectsAsString($rdf, $topic, $rdfLexicon.LAST_MODIFIED_DATE, true)
by $esc.html($helpers.getObjectsAsString($rdf, $topic, $rdfLexicon.LAST_MODIFIED_BY, true))</dd>

<dt>Children <span class="badge">$helpers.getObjectsAsString($rdf, $topic, $rdfLexicon.HAS_CHILD_COUNT, true)</span></dt>
<dt>Children <span id="badge" class="badge"> </span></dt>
<dd>
<ol>
#foreach($quad in $helpers.getObjects($rdf, $topic, $rdfLexicon.HAS_CHILD))
<ol id="childList">
#foreach($quad in $helpers.getObjects($rdf, $topic, $rdfLexicon.CONTAINS))
<li><a href="$quad.getObject().getURI()">$esc.html($helpers.getObjectTitle($rdf, $quad.getObject()))</a></li>
#end
</ol>
Expand Down
3 changes: 3 additions & 0 deletions fcrepo-http-api/src/main/resources/views/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ $(function() {
$('#action_revert').submit(patchAndReload);
$('#action_remove_version').submit(removeVersion);

var ldpContains = $('#childList li').length;
$('#badge').text(ldpContains);

});

function submitAndFollowLocation() {
Expand Down

0 comments on commit 7357c19

Please sign in to comment.