/**
  * Responds to the ListSets verb.
  * Outputs setSpec and setName for all OAI-PMH sets (Omeka collections).
  * @access public
  */
 public function listSets()
 {
     $collectionlist = new Institutions();
     $collections = $collectionlist->listCollections();
     if (count($collections) === 0) {
         $this->throwError(self::OAI_ERR_NO_SET_HIERARCHY);
     }
     $listSets = $this->document->createElement('ListSets');
     if (!$this->_error) {
         $this->document->documentElement->appendChild($listSets);
         foreach ($collections as $collection) {
             $elements = array('setSpec' => $collection['id'], 'setName' => $collection['name']);
             $this->createElementWithChildren($listSets, 'set', $elements);
         }
     }
 }