Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

100 lines
4.4 KiB

[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; SRU search fields mapping for authorities</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="admin_sru_modmapping" class="admin">
<div class="main container-fluid">
<main>
<h1>Modify SRU search fields mapping for authorities</h1>
<form id="form01" method="post">
<fieldset class="rows">
<div class="row">
<div class="col-xs-6">
<ol>
<li>
<label for="srchany">Keyword (any): </label>
<input id="srchany" type="text" value="[% mapping.srchany | html %]" />
</li>
<li>
<label for="nameany">Name (any): </label>
<input id="nameany" type="text" value="[% mapping.nameany | html %]" />
</li>
<li>
<label for="authorany">Author (any): </label>
<input id="authorany" type="text" value="[% mapping.authorany | html %]" />
</li>
<li>
<label for="authorpersonal">Author (personal): </label>
<input id="authorpersonal" type="text" value="[% mapping.authorpersonal | html %]" />
</li>
<li>
<label for="authorcorp">Author (corporate): </label>
<input id="authorcorp" type="text" value="[% mapping.authorcorp | html %]" />
</li>
<li>
<label for="authormeetingcon">Author (meeting/conference): </label>
<input id="authormeetingcon" type="text" value="[% mapping.authormeetingcon | html %]" />
</li>
</ol>
</div>
<div class="col-xs-6">
<ol>
<li>
<label for="subject">Subject heading: </label>
<input id="subject" type="text" value="[% mapping.subject | html %]" />
</li>
<li>
<label for="subjectsubdiv">Subject sub-division: </label>
<input id="subjectsubdiv" type="text" value="[% mapping.subjectsubdiv | html %]" />
</li>
<li>
<label for="title">Title (any): </label>
<input id="title" type="text" value="[% mapping.title | html %]" />
</li>
<li>
<label for="uniformtitle">Title (uniform): </label>
<input id="uniformtitle" type="text" value="[% mapping.uniformtitle | html %]" />
</li>
</ol>
</div>
</div>
</fieldset>
<fieldset class="action">
<input type="submit" value="Save" class="submit" />
<a class="close cancel" href="#">Cancel</a>
</fieldset>
</form>
</main>
[% MACRO jsinclude BLOCK %]
<script>
$(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 'intranet-bottom.inc' popup_window=1 %]