Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt
Owen Leonard 2c67096c07
Bug 34407: Inconsistencies in Z39.50 servers page titles, breadcrumbs, and header
This patch makes changes to the Z39.50 servers administration and
related templates in order to make them more consistent with other pages
in Koha.

One case has been added to page title and breadcrumb navigation: An
indication that a search has been performed. The subheading is modified
to make it clear that the search is a "starts with" search.

To test, apply the patch and go to Administration -> Z39.50/SRU
servers. View each variation of the page to confirm that breadcrumb
navigation, page title, and page headings are consistent with each
other.

- Z39.50/SRU servers list.
  - New Z39.50 server
  - New SRU server
  - Edit Z39.50 server
  - Edit SRU server
    - Modify SRU search field mapping for a bibliographic record
      server
    - Modify SRU search field mapping for an authority record server
  - Use the header search form to search for a server by name

Signed-off-by: Émily-Rose Francoeur <emily-rose.francoeur@inLibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-18 12:06:13 -03:00

110 lines
4.8 KiB
Text

[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("SRU search field mapping for authorities") | html %] &rsaquo;
[% t("Z39.50/SRU servers") | html %] &rsaquo;
[% t("Administration") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="admin_sru_modmapping" class="admin">
<div class="main container-fluid">
<main>
<h1>SRU search field 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="controlnumber">Control number: </label>
<input id="controlnumber" type="text" value="[% mapping.controlnumber | html %]" />
</li>
<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" class="btn btn-primary" value="Save" />
<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 %]