Owen Leonard
2a4e76876b
This patch modifies the staff client administration templates so that JavaScript is included in the footer instead of the header. To test, apply the patch and test the JavaScript-driven features of the modified templates: All button controls, DataTables functionality, tabs, etc. To test the changes to localization.tt you must have more than one translation installed. Go to admin/itemtypes.pl, edit an itemtype, and click the 'Translate into other languages' link. To test the changes to sur_modmapping.tt, go to admin/z3950servers.pl and create a new SRU server. Click the 'Modify' button next to 'SRU Search fields mapping' Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
100 lines
4.2 KiB
Text
100 lines
4.2 KiB
Text
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › SRU search fields mapping</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
|
|
<body id="admin_sru_modmapping" class="admin">
|
|
|
|
<div id="custom-doc" class="yui-t7">
|
|
|
|
<div id="bd">
|
|
<h1>Modify SRU search fields mapping</h1>
|
|
<form id="form01" method="post">
|
|
<fieldset class="rows">
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<ol>
|
|
<li>
|
|
<label for="title">Title: </label>
|
|
<input id="title" type="text" value="[% mapping.title %]" />
|
|
</li>
|
|
<li>
|
|
<label for="isbn">ISBN: </label>
|
|
<input id="isbn" type="text" value="[% mapping.isbn %]" />
|
|
</li>
|
|
<li>
|
|
<label for="lccall">LC call number: </label>
|
|
<input id="lccall" type="text" value="[% mapping.lccall %]" />
|
|
</li>
|
|
<li>
|
|
<label for="controlnumber">Control number: </label>
|
|
<input id="controlnumber" type="text" value="[% mapping.controlnumber %]" />
|
|
</li>
|
|
<li>
|
|
<label for="srchany">Any: </label>
|
|
<input id="srchany" type="text" value="[% mapping.srchany %]" />
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<div class="yui-u">
|
|
<ol>
|
|
<li>
|
|
<label for="author">Author: </label>
|
|
<input id="author" type="text" value="[% mapping.author %]" />
|
|
</li>
|
|
<li>
|
|
<label for="issn">ISSN: </label>
|
|
<input id="issn" type="text" value="[% mapping.issn %]" />
|
|
</li>
|
|
<li>
|
|
<label for="subject">Subject: </label>
|
|
<input id="subject" type="text" value="[% mapping.subject %]" />
|
|
</li>
|
|
<li>
|
|
<label for="dewey">Dewey: </label>
|
|
<input id="dewey" type="text" value="[% mapping.dewey %]" />
|
|
</li>
|
|
<li>
|
|
<label for="stdid">Standard ID: </label>
|
|
<input id="stdid" type="text" value="[% mapping.stdid %]" />
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset class="action">
|
|
<input type="submit" value="Save" class="submit" />
|
|
<a class="close cancel" href="#">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
|
|
[% MACRO jsinclude BLOCK %]
|
|
<script type="text/javascript" src="[% interface %]/[% theme %]/js/admin-menu.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$("#form01").submit(function(event) {
|
|
if(window.opener) {
|
|
var newmap=allInputs();
|
|
window.opener.$('#show_sru_fields').val(newmap);
|
|
window.close();
|
|
} else {
|
|
// In this case not called as a popup. Just do nothing.
|
|
event.preventDefault();
|
|
}
|
|
});
|
|
});
|
|
function allInputs () {
|
|
var aInput= new Array();
|
|
$("form :input").each(function() {
|
|
if( this.id && $(this).val() ) {
|
|
aInput.push(this.id+'='+$(this).val());
|
|
}
|
|
});
|
|
return aInput.join(',');
|
|
}
|
|
</script>
|
|
[% END %]
|
|
|
|
[% INCLUDE 'popup-bottom.inc' %]
|