slideshow/slideshowPane.js
function (subject) {
    var kb = UI.store
    var ns = UI.ns
    var t = kb.findTypeURIs(subject)
    if (t[ns.ldp('Container').uri] || t[ns.ldp('BasicContainer').uri]) {
      var contents = kb.each(subject, ns.ldp('contains'))
      var count = 0
      contents.map(function (file) {
        if (UI.widgets.isImage(file)) count++
      })
      return count > 0 ? 'Slideshow' : null
    }
    return null
  }
function (subject) {
    var kb = UI.store
    var ns = UI.ns
    var t = kb.findTypeURIs(subject)
    if (t[ns.ldp('Container').uri] || t[ns.ldp('BasicContainer').uri]) {
      var contents = kb.each(subject, ns.ldp('contains'))
      var count = 0
      contents.map(function (file) {
        if (UI.widgets.isImage(file)) count++
      })
      return count > 0 ? 'Slideshow' : null
    }
    return null
  }
function ( subject ) { var kb = UI . store var ns = UI . ns var t = kb . findTypeURIs ( subject ) if ( t [ ns . ldp ( 'Container' ) . uri ] || t [ ns . ldp ( 'BasicContainer' ) . uri ] ) { var contents = kb . each ( subject , ns . ldp ( 'contains' ) ) var count = 0 contents . map ( function ( file ) { if ( UI . widgets . isImage ( file ) ) count ++ } ) return count > 0 ? 'Slideshow' : null } return null }
Does the subject deserve an slideshow pane?
Does the subject deserve an slideshow pane?