Ejemplo n.º 1
0
  <?php 
    $langs = explode(',', $_GET['langs']);
    echo '<form>' . "\n" . '<select id="selectLang" onChange="getLanguage(selectLang.value)">' . "\n" . '<option>Velg språk...</option>' . "\n";
    foreach ($langs as $this_lang) {
        if ($this_lang != '') {
            echo "<option>{$this_lang}</option>\n";
        }
    }
    echo "</select>\n</form><br />\n" . '<div id="langsearch"></div>' . "\n";
} elseif (!empty($_GET['lang'])) {
    if (get_type($_GET['bib']) == 'z39.50') {
        if ($zs_result = z_search("eo={$_GET['lang']} and eo=språkkurs", $config['modules']['language']['limit'])) {
            echo "<p>Språkkurs</p>";
            echo $zs_result;
        }
        if ($zl_result = z_search("eo={$_GET['lang']} and eo=lærebøker", $config['modules']['language']['limit'])) {
            echo "<p>Lærebøker</p>";
            echo $zl_result;
        }
        if (!$zs_result && !$zl_result) {
            echo $config['msg']['zero_hits'];
        }
    } else {
        if ($s_result = sru_search("dc.subject = {$_GET['lang']} and dc.subject = språkkurs", $config['modules']['language']['limit'])) {
            echo "<p>Språkkurs</p>";
            echo $s_result;
        }
        if ($l_result = sru_search("dc.subject = {$_GET['lang']} and dc.subject = lærebøker", $config['modules']['language']['limit'])) {
            echo "<p>Lærebøker</p>";
            echo $l_result;
        }
Ejemplo n.º 2
0
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with "Podes reiseplanlegger".  If not, see <http://www.gnu.org/licenses/>.
Source code available from: 
http://github.com/pode/reiseplanlegger/
*/
include_once '../config.php';
if (!$config['modules']['food']['enabled']) {
    exit;
}
include_once '../include/functions.php';
/*
Henter ut reiseskildringer fra katalogen, basert på land
*/
if (!empty($_GET['country']) && !empty($_GET['bib'])) {
    if (get_type($_GET['bib']) == 'z39.50') {
        if ($zresult = z_search("eo={$_GET['country']} and eo=matlaging", $config['modules']['food']['limit'])) {
            echo $zresult;
        } else {
            echo $config['msg']['zero_hits'];
        }
    } else {
        if ($result = sru_search("dc.subject = {$_GET['country']} and dc.subject = matlaging", $config['modules']['food']['limit'])) {
            echo $result;
        } else {
            echo $config['msg']['zero_hits'];
        }
    }
}
?>
 
Ejemplo n.º 3
0
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with "Podes reiseplanlegger".  If not, see <http://www.gnu.org/licenses/>.
Source code available from: 
http://github.com/pode/reiseplanlegger/
*/
include_once '../config.php';
if (!$config['modules']['stories']['enabled']) {
    exit;
}
include_once '../include/functions.php';
/*
Henter ut fortellinger fra katalogen, basert på land
*/
if (!empty($_GET['country']) && !empty($_GET['bib'])) {
    if (get_type($_GET['bib']) == 'z39.50') {
        if ($zresult = z_search("eo={$_GET['country']} fortellinger", $config['modules']['stories']['limit'], 1, 'descending', 'year', true)) {
            echo $zresult;
        } else {
            echo $config['msg']['zero_hits'];
        }
    } else {
        if ($result = sru_search("dc.subject = {$_GET['country']} and dc.subject = fortellinger", $config['modules']['stories']['limit'], 1, 'descending', 'year', true)) {
            echo $result;
        } else {
            echo $config['msg']['zero_hits'];
        }
    }
}
?>
 
Ejemplo n.º 4
0
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with "Podes reiseplanlegger".  If not, see <http://www.gnu.org/licenses/>.
Source code available from: 
http://github.com/pode/reiseplanlegger/
*/
include_once '../config.php';
if (!$config['modules']['travel']['enabled']) {
    exit;
}
include_once '../include/functions.php';
/*
Henter ut reiseskildringer fra katalogen, basert på land
*/
if (!empty($_GET['country']) && !empty($_GET['bib'])) {
    if (get_type($_GET['bib']) == 'z39.50') {
        if ($zresult = z_search("eo={$_GET['country']} and eo=Geografi og reiser", $config['modules']['travel']['limit'])) {
            echo $zresult;
        } else {
            echo $config['msg']['zero_hits'];
        }
    } else {
        if ($result = sru_search("dc.subject = {$_GET['country']} and dc.subject = Geografi og reiser", $config['modules']['travel']['limit'])) {
            echo $result;
        } else {
            echo $config['msg']['zero_hits'];
        }
    }
}
?>
 
Ejemplo n.º 5
0
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with "Podes reiseplanlegger".  If not, see <http://www.gnu.org/licenses/>.
Source code available from: 
http://github.com/pode/reiseplanlegger/
*/
include_once '../config.php';
if (!$config['modules']['culture']['enabled']) {
    exit;
}
include_once '../include/functions.php';
/*
Henter ut reiseskildringer fra katalogen, basert på land
*/
if (!empty($_GET['country']) && !empty($_GET['bib'])) {
    if (get_type($_GET['bib']) == 'z39.50') {
        if ($zresult = z_search("eo={$_GET['country']} and eo=kulturhistorie", $config['modules']['culture']['limit'])) {
            echo $zresult;
        } else {
            echo $config['msg']['zero_hits'];
        }
    } else {
        if ($result = sru_search("dc.subject = {$_GET['country']} and dc.subject = kulturhistorie", $config['modules']['culture']['limit'])) {
            echo $result;
        } else {
            echo $config['msg']['zero_hits'];
        }
    }
}
?>