﻿<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs 
    title="臺大圖書館搜尋小工具" 
    title_url="http://www.lib.ntu.edu.tw" 
    directory_title="NTU Library Search" 
    description="臺大圖書館搜尋小工具中文版，提供快速查詢五個臺大相關網站的介面。想知道更多，請至 http://beta.lib.ntu.edu.tw/?p=46 查看這個小工具的介紹。" 
	author="NTU Library"
	author_email="libsys@ntu.edu.tw"
	author_link="http://beta.lib.ntu.edu.tw/"
	author_location="TW" 
	author_affiliation="NTU Lib. TW"
	author_photo="http://beta.lib.ntu.edu.tw/wp-content/uploads/Logo.png"
	author_aboutme="National Taiwan University Library. Only gadgets on http://beta.lib.ntu.edu.tw/ are officially released version. Others are just being tested and may be removed in short time."
    screenshot="http://beta.lib.ntu.edu.tw/wp-content/uploads/NTU-Library-Search-zh_tw.png" 
    thumbnail="http://beta.lib.ntu.edu.tw/wp-content/uploads/NTU-Library-Search-zh_tw.png" 
    scrolling="false" 
	singleton="true" 
	width="380" height="100">
    <Require feature="tabs" /> 
    <Require feature="dynamic-height" /> 
	<Require feature="analytics" />
  </ModulePrefs>
  
  <UserPref name="showTulipsTab" display_name="臺大圖書館館藏查詢" datatype="bool" default_value="true"/>
  <UserPref name="showMetaCatTab" display_name="臺大整合詢系統" datatype="bool" default_value="true"/>
  <UserPref name="showSGTab" display_name="臺大學術資源網" datatype="bool" default_value="true"/>
  <UserPref name="showIRTab" display_name="臺大機構典藏" datatype="bool" default_value="true"/>
  <UserPref name="showWebArchiveTab" display_name="臺大圖書館網站典藏庫" datatype="bool" default_value="true"/>
  
 <Content type="html">
 <![CDATA[ 
  <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css"> 
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/grids/grids-min.css">
<style>
  .tablib_emptyTab {
    display: none;
  }
  .tablib_spacerTab, .tablib_selected, .tablib_unselected {    
    border-width: 0px;
    border-bottom: 0px solid #d2ecf5;
  }
  .tablib_selected, .tablib_unselected {
    padding:0.30769230769230769230769230769231em;
    *padding:0.3000007500018750046875117187793em;
  }
  .tablib_content_container {
    padding: 0px, 0px, 0px, 0px;
    margin-top: 1.1538461538461538461538461538462em;
    *margin-top:1.1250028125070312675781689454224em;
    background-color: #fff;
    text-align: center;
  }
  .tablib_main_container {   
    padding: 0px;
  }
  .tablib_selected table td, .tablib_unselected table td {    
    text-align: center;
    color: #a40;
  }
  
</style>
<div id="tabs">
<div id="TulipsTab"><form action="http://tulips.ntu.edu.tw/search/a?a" method="post" target="_blank" name="frmTulips"><input type="hidden" value="5" name="searchscope"/><input type="hidden" value="D" name="SORT"/><input type="hidden" value="X" name="searchtype"/><input type="text" value="" name="searcharg" size="40"/><input type="submit" style="display:none" value="search"/></form></div>
<div id="MetaCatTab"><form action="http://metacat.ntu.edu.tw/metacat2/app" method="get" target="_blank" name="frmMetaCat"><input type="type" value="" name="q" size="40"/><input type="hidden" value="ALL" name="t"/><input type="submit" value="search" style="display:none"/></form></div>
<div id="SGTab"><form action="http://sg.lib.ntu.edu.tw/result.jsp" method="get" target="_blank" name="frmSg"><input type="hidden" value="1000" name="totalCnt"/><input type="hidden" value="20" name="perpage"/><input type="hidden" value="UTF-8" name="ei"/><input type="hidden" value="tw_ntulib" name="xpid"/><input type="hidden" value="1" name="begin"/><input type="hidden" value="tw_ntulib" name="xpid"/><input type="hidden" value="1" name="printHeader"/><input type="hidden" value="" name="debug"/><input type="hidden" value="1" name="pagebegin"/><input type="text" value="" name="query" size="40"/><input type="hidden" value="result" name="actPage"/><input type="hidden" value="20" name="perpage1"/><input type="hidden" value="" name="classNo"/><input type="submit" value="search" style="display:none"/></form></div>
<div id="IRTab"><form action="http://ntur.lib.ntu.edu.tw/simple-search" method="get" target="_blank" name="frmIr"><input type="hidden" name="location" value="/"/><input type="text" size="40" value="" name="query"/><input type="submit" style="display:none" value="search" name="submit1"/><input type="hidden" value="1" name="newsubmit"/><input type="hidden" name="subclassType"/><input type="hidden" value="" name="query1"/></form></div>
<div id="WebArchiveTab"><form action="http://webarchive.lib.ntu.edu.tw/list.asp" method="get" target="_blank" name="frmWebArchive"><input type="hidden" name="TYPE" value="3"/><input type="text" size="40" value="" name="keyword"/><input type="submit" style="display:none" value="search"/></form></div>
</div>

<script>
  // Global variables
  //var tabs = new _IG_Tabs(0, '', _gel("tabs"));
  var tabs = new _IG_Tabs();
  var prefs = new _IG_Prefs();
 
  _IG_RegisterOnloadHandler(function() {      
    // Add the directory tab
    if (prefs.getBool("showTulipsTab")){
      tabs.addTab('臺大圖書館館藏', {
        contentContainer: _gel('TulipsTab'),
        callback: showDirectory,
        tooltip: 'NTU Catalog'
      });}
    else{ _gel('TulipsTab').innerHTML = "";}
  
    if (prefs.getBool("showMetaCatTab")){
      tabs.addTab('臺大整合查詢系統', {
        contentContainer: _gel('MetaCatTab'),
        callback: showDirectory,
        tooltip: 'Meta Catalog'
      });}
    else{ _gel('MetaCatTab').innerHTML = "";}
    
    if (prefs.getBool("showSGTab")){
      tabs.addTab('學術資源網', {
        contentContainer: _gel('SGTab'),
        callback: showDirectory,
        tooltip: 'NTU Scholars Gateway'
      });}
    else{ _gel('SGTab').innerHTML = "";}
    
    if (prefs.getBool("showIRTab")){
        tabs.addTab('機構典藏', {
        contentContainer: _gel('IRTab'),
        callback: showDirectory,
        tooltip: 'National Taiwan University Institutional Repository'
      });}
    else{ _gel('IRTab').innerHTML = "";}
    
    if (prefs.getBool("showWebArchiveTab")){
      tabs.addTab('圖書館網站典藏庫', {
        contentContainer: _gel('WebArchiveTab'),
        callback: showDirectory,
        tooltip: 'National Taiwan University Web Archive System'
      });}
    else{ _gel('WebArchiveTab').innerHTML = "";}
  });
  
  function showDirectory(domId) {
    if (_gel(domId).innerHTML) {
      //_IG_AdjustIFrameHeight();
      return;
    }
    //fetchDirectory(domId, 0);
  }
  
  function fetchDirectory(domId, page) {
    // Display loading message
    var container = _gel(domId);
    container.innerHTML = '<div class="status">Loading...</div>';
  }
    _IG_Analytics("UA-414096-10", "iGoogle: NTU-Library-Search-zh_tw");
</script>
  ]]> 
  </Content>
</Module>

