Exemple #1
0
 /**
  * Get the base URL for search results (including ? parameter prefix).
  *
  * @access  protected
  * @return  string   Base URL
  */
 protected function getBaseUrl()
 {
     // Base URL is different for author searches:
     if ($this->searchType == 'author') {
         if ($this->searchSubType == 'home') {
             return $this->serverUrl . "/Author/Home?";
         }
         if ($this->searchSubType == 'search') {
             return $this->serverUrl . "/Author/Search?";
         }
     } else {
         if ($this->searchType == 'newitem') {
             return $this->serverUrl . '/Search/NewItem?';
         } else {
             if ($this->searchType == 'reserves') {
                 return $this->serverUrl . '/Search/Reserves?';
             } else {
                 if ($this->searchType == 'favorites') {
                     return $this->serverUrl . '/MyResearch/Home?';
                 } else {
                     if ($this->searchType == 'list') {
                         return $this->serverUrl . '/MyResearch/MyList/' . urlencode($_GET['id']) . '?';
                     }
                 }
             }
         }
     }
     // If none of the special cases were met, use the default from the parent:
     return parent::getBaseUrl();
 }