Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl
Galen Charlton a670f1817e bug 2509: fix file permissions
Following suggestion by Vincent Danjean for Debian
packaging, 0755 -> 0644 for non-executable
files.

Also removed shebang from a few modules in C4.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-21 18:55:02 -05:00

321 lines
15 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Administration &rsaquo; <!-- TMPL_IF NAME="else" -->z39.50 Servers<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_form" --> z39.50 Servers &rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify z39.50 Server <!-- TMPL_VAR NAME="searchfield" --><!-- TMPL_ELSE -->New z39.50 Server<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" -->z39.50 Servers &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" -->z39.50 Servers &rsaquo; z39.50 Server Added<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" -->z39.50 Servers &rsaquo; z39.50 Server Deleted<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_IF NAME="add_form" -->
<script type="text/javascript">
//<![CDATA[
//
function isNotNull(f,noalert) {
if (f.value.length ==0) {
return false;
}
return true;
}
//
function toUC(f) {
var x=f.value.toUpperCase();
f.value=x;
return true;
}
//
function isNum(v,maybenull) {
var n = new Number(v.value);
if (isNaN(n)) {
return false;
}
if (maybenull==0 && v.value=='') {
return false;
}
return true;
}
//
function isDate(f) {
var t = Date.parse(f.value);
if (isNaN(t)) {
return false;
}
}
//
function Check(f) {
var ok=1;
var _alertString="";
var alertString2;
if (f.searchfield.value.length==0) {_alertString += "- target name missing\n";
}
if (f.host.value.length==0) {_alertString += "- host missing\n";
}
if (f.port.value.length==0) {_alertString += "- port missing\n";
}
if (f.db.value.length==0) {_alertString += "- database missing\n";
}
if (isNaN(f.port.value)) {_alertString += "- port must be a number\n";
}
if (isNaN(f.rank.value)) {_alertString += "- rank must be a number\n";
}
if (isNaN(f.checked.value) || f.checked.value<0 || f.checked.value>1) {_alertString += "- checked must be 0 or 1\n";
}
if (_alertString.length==0) {document.Aform.submit();
} else {alertString2 = "Form not submitted because of the following problem(s)\n";alertString2 += "------------------------------------------------------------------------------------\n\n";alertString2 += _alertString;alert(alertString2);
}
}
//]]>
</script>
<!-- /TMPL_IF -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="z3950-admin-search.inc" -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF NAME="else" -->z39.50 Servers<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_form" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> &rsaquo; <!-- TMPL_IF NAME="searchfield" -->Modify z39.50 Server <!-- TMPL_VAR NAME="searchfield" --><!-- TMPL_ELSE -->New z39.50 Server<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> &rsaquo; z39.50 Server Added<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" --> <a href="/cgi-bin/koha/admin/z3950servers.pl">z39.50 Servers</a> &rsaquo; z39.50 Server Deleted<!-- /TMPL_IF --></div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_IF NAME="add_form" -->
<form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
<input type="hidden" name="op" value="add_validate" />
<!-- TMPL_IF NAME="searchfield" -->
<h1>Modify Z39.50 Server</h1>
<!-- TMPL_ELSE -->
<h1>New Z39.50 Server</h1>
<!-- /TMPL_IF -->
<fieldset class="rows">
<ol><!-- TMPL_IF NAME="searchfield" -->
<li><span class="label">Z39.50 Server: </span> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><!-- TMPL_VAR NAME="searchfield" --></li>
<!-- TMPL_ELSE -->
<li><label for="searchfield">Z39.50 Server: </label> <input type="text" name="searchfield" id="searchfield" size="65" maxlength="100" onblur="toUC(this)" /></li>
<!-- /TMPL_IF -->
<li><label for="host">Hostname: </label> <input type="text" name="host" id="host" size="30" value="<!-- TMPL_VAR NAME="host" -->" />
</li>
<li><label for="port">Port: </label> <input type="text" name="port" id="port" size="5" value="<!-- TMPL_VAR NAME="port" -->" onblur="isNum(this)" />
</li>
<li><label for="db">Database: </label> <input type="text" name="db" id="db" value="<!-- TMPL_VAR NAME="db" -->" />
</li>
<li><label for="userid">Userid: </label> <input type="text" name="userid" id="userid" value="<!-- TMPL_VAR NAME="userid" -->" />
</li>
<li><label for="password">Password: </label> <input type="text" name="password" id="password" value="<!-- TMPL_VAR NAME="password" -->" />
</li>
<li><label for="checked">Checked (searched by default): </label> <input type="text" size="1" name="checked" id="checked" value="<!-- TMPL_VAR NAME="checked" -->" onblur="isNum(this)" /> </li>
<li><label for="rank">Rank (display order): </label> <input type="text" name="rank" id="rank" size="4" value="<!-- TMPL_VAR NAME="rank" -->" onblur="isNum(this)" />
</li>
<li><label for="syntax">Syntax (z3950 can send<br /> records in various format. Choose one): </label>
<select name="syntax">
<!-- TMPL_IF NAME="syntaxUNIMARC" -->
<option value="UNIMARC" selected="selected">UNIMARC</option>
<!-- TMPL_ELSE -->
<option value="UNIMARC">UNIMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxINTERMARC" -->
<option value="INTERMARC" selected="selected">INTERMARC</option>
<!-- TMPL_ELSE -->
<option value="INTERMARC">INTERMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxCCF" -->
<option value="CCF" selected="selected">CCF</option>
<!-- TMPL_ELSE -->
<option value="CCF">CCF</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxUSMARC" -->
<option value="USMARC" selected="selected">MARC21/USMARC</option>
<!-- TMPL_ELSE -->
<option value="USMARC">MARC21/USMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxUKMARC" -->
<option value="UKMARC" selected="selected">UKMARC</option>
<!-- TMPL_ELSE -->
<option value="UKMARC">UKMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxNORMARC" -->
<option value="NORMARC" selected="selected">NORMARC</option>
<!-- TMPL_ELSE -->
<option value="NORMARC">NORMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxLIBRISMARC" -->
<option value="LIBRISMARC" selected="selected">LIBRISMARC</option>
<!-- TMPL_ELSE -->
<option value="LIBRISMARC">LIBRISMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxDANMARC" -->
<option value="DANMARC" selected="selected">DANMARC</option>
<!-- TMPL_ELSE -->
<option value="DANMARC">DANMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxFINMARC" -->
<option value="FINMARC" selected="selected">FINMARC</option>
<!-- TMPL_ELSE -->
<option value="FINMARC">FINMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxCANMARC" -->
<option value="CANMARC" selected="selected">CANMARC</option>
<!-- TMPL_ELSE -->
<option value="CANMARC">CANMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxSBN" -->
<option value="SBN" selected="selected">SBN</option>
<!-- TMPL_ELSE -->
<option value="SBN">SBN</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxPICAMARC" -->
<option value="PICAMARC" selected="selected">PICAMARC</option>
<!-- TMPL_ELSE -->
<option value="PICAMARC">PICAMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxAUSMARC" -->
<option value="AUSMARC" selected="selected">AUSMARC</option>
<!-- TMPL_ELSE -->
<option value="AUSMARC">AUSMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxIBERMARC" -->
<option value="IBERMARC" selected="selected">IBERMARC</option>
<!-- TMPL_ELSE -->
<option value="IBERMARC">IBERMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxCATMARC" -->
<option value="CATMARC" selected="selected">CATMARC</option>
<!-- TMPL_ELSE -->
<option value="CATMARC">CATMARC</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="syntaxMALMARC" -->
<option value="MALMARC" selected="selected">MALMARC</option>
<!-- TMPL_ELSE -->
<option value="MALMARC">MALMARC</option>
<!-- /TMPL_IF -->
</select>
</li>
<li><label for="encoding">Encoding (z3950 can send<br /> records in various encodings. Choose one): </label>
<select name="encoding">
<!-- TMPL_IF NAME="encodingutf8" -->
<option value="utf8" selected="selected">UTF-8</option>
<!-- TMPL_ELSE -->
<option value="utf8">UTF-8</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="encodingISO_5426" -->
<option value="ISO_5426" selected="selected">ISO_5426</option>
<!-- TMPL_ELSE -->
<option value="ISO_5426">ISO_5426</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="encodingISO_6937" -->
<option value="ISO_6937" selected="selected">ISO_6937</option>
<!-- TMPL_ELSE -->
<option value="ISO_6937">ISO_6937</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="encodingMARC-8" -->
<option value="MARC-8" selected="selected">MARC-8</option>
<!-- TMPL_ELSE -->
<option value="MARC-8">MARC-8</option>
<!-- /TMPL_IF -->
</select>
</li>
</ol>
</fieldset>
<fieldset class="action"><input type="button" value="Save" onclick="Check(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/z3950servers.pl">Cancel</a></fieldset>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" -->
<h3>Z39.50 Server Added</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="submit" value="OK" />
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" -->
<!-- TMPL_VAR NAME="reqsel" -->
<h3>Confirm Deletion of Server <!-- TMPL_VAR NAME="searchfield" --></h3>
<ul>
<li><strong>Target: </strong> <!-- TMPL_VAR NAME="searchfield" --></li>
<li><strong>Hostname: </strong><!-- TMPL_VAR NAME="host" --></li>
<li><strong>Port: </strong><!-- TMPL_VAR NAME="port" --></li>
<li><strong>Database: </strong><!-- TMPL_VAR NAME="db" --></li>
<li><strong>Userid: </strong><!-- TMPL_VAR NAME="userid" --></li>
<li><strong>Password: </strong><!-- TMPL_VAR NAME="password" --></li>
<li><strong>Checked: </strong><!-- TMPL_VAR NAME="checked" --></li>
<li><strong>Rank: </strong><!-- TMPL_VAR NAME="rank" --></li>
<li><strong>Syntax: </strong><!-- TMPL_VAR NAME="syntax" --></li>
<li><strong>Encoding: </strong><!-- TMPL_VAR NAME="encoding" --></li>
</ul> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="submit" value="Delete this Server" /></form> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="Do Not Delete" /></form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" -->
<h3>Z39.50 Server Deleted</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="submit" value="OK" />
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="else" -->
<div id="toolbar">
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
yuiToolbar();
<!-- TMPL_IF NAME="loop" -->$.tablesorter.defaults.widgets = ['zebra'];
$("#serverst").tablesorter({
sortList: [[0,0]],
headers: { 2: {sorter:false},3: { sorter: false },4: { sorter: false },7: { sorter: false },8: { sorter: false },9: { sorter: false },10: { sorter: false }}
});<!-- /TMPL_IF -->
});
// YUI Toolbar Functions
function yuiToolbar() {
new YAHOO.widget.Button("newserver");
} //]]>
</script>
<ul class="toolbar">
<li><a id="newserver" href="/cgi-bin/koha/admin/z3950servers.pl?op=add_form">New z39.50 Server</a></li>
</ul></div>
<h3>Z39.50 Servers Administration</h3>
<!-- TMPL_IF NAME="searchfield" -->
You searched for <!-- TMPL_VAR NAME="searchfield" -->
<!-- /TMPL_IF -->
<table id="serverst">
<thead><tr><th>Target</th><th>Hostname/Port</th><th>Database</th><th>Userid</th><th>Password</th><th>Checked</th><th>Rank</th> <th>Syntax</th><th>Encoding</th><th colspan="2">&nbsp;</th>
</tr></thead>
<tbody><!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF --><td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&amp;searchfield=<!-- TMPL_VAR NAME="name" -->"><!-- TMPL_VAR NAME="name" --></a></td><td><!-- TMPL_VAR NAME="host" -->:<!-- TMPL_VAR NAME="port" --></td><td><!-- TMPL_VAR NAME="db" --></td><td><!-- TMPL_VAR NAME="userid" --></td><td><!-- TMPL_VAR NAME="password" --></td><td><!-- TMPL_VAR NAME="checked" --></td><td><!-- TMPL_VAR NAME="rank" --></td> <td><!-- TMPL_VAR NAME="syntax" --></td><td><!-- TMPL_VAR NAME="encoding" --></td><td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&amp;searchfield=<!-- TMPL_VAR NAME="name" -->">Edit</a></td><td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="name" -->">Delete</a></td> </tr>
<!-- /TMPL_LOOP --></tbody>
</table>
<!-- TMPL_IF NAME="offsetgtzero" --><form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="prevpage" -->" />
<input type="submit" value="&lt;&lt; Previous">
</form><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ltcount" --><form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" />
<input type="submit" value="Next &gt;&gt;" />
</form> <!-- /TMPL_iF -->
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->