Bug 19872: Move template JavaScript to the footer: UNIMARC editor plugins, part 4
This patch updates more and more UNIMARC plugin templates so that JavaScript is included in the footer following the same pattern as other templates which have been modified to fix Bug 17858. To test you do not need a UNIMARC system. Apply the patch and for each plugin, configure a MARC subfield (e.g. 100$a) to use that plugin. From the MARC edit page, trigger the plugin and confirm that changes made in the popup window are saved to the corresponding field in the editor. - unimarc_field_124a.tt - unimarc_field_124b.tt - unimarc_field_124c.tt - unimarc_field_124d.tt - unimarc_field_124e.tt - unimarc_field_124f.tt - unimarc_field_124g.tt Signed-off-by: delaye <stephane.delaye@biblibre.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
fbfbcae838
commit
7ea03cefd6
7 changed files with 107 additions and 86 deletions
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124a builder</title>
|
<title>UNIMARC field 124a builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124a" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124a" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124a builder</h3>
|
<h3>UNIMARC field 124a builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -30,17 +32,18 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
self.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
self.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124b builder</title>
|
<title>UNIMARC field 124b builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124b" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124b" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124b builder</h3>
|
<h3>UNIMARC field 124b builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -71,17 +73,18 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
self.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
self.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124c builder</title>
|
<title>UNIMARC field 124c builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124c" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124c" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124c builder</h3>
|
<h3>UNIMARC field 124c builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -126,16 +128,17 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
window.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
window.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124d builder</title>
|
<title>UNIMARC field 124d builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124d" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124d" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124d builder</h3>
|
<h3>UNIMARC field 124d builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -30,16 +32,17 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
window.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
window.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124e builder</title>
|
<title>UNIMARC field 124e builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124e" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124e" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124e builder</h3>
|
<h3>UNIMARC field 124e builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -31,16 +33,17 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
window.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
window.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124f builder</title>
|
<title>UNIMARC field 124f builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124f" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124f" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124f builder</h3>
|
<h3>UNIMARC field 124f builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -105,16 +107,17 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
self.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
self.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
|
@ -1,7 +1,9 @@
|
||||||
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>UNIMARC field 124g builder</title>
|
<title>UNIMARC field 124g builder</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="cat_unimarc_field_124g" class="cat" style="padding:1em;">
|
<body id="cat_unimarc_field_124g" class="cat" style="padding:1em;">
|
||||||
<h3>UNIMARC field 124g builder</h3>
|
<h3>UNIMARC field 124g builder</h3>
|
||||||
<form name="f_pop" action="">
|
<form name="f_pop" action="">
|
||||||
|
@ -66,16 +68,17 @@
|
||||||
</table>
|
</table>
|
||||||
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
//<![CDATA[
|
|
||||||
function report() {
|
|
||||||
var doc = opener.document;
|
|
||||||
var field = doc.getElementById("[% index %]");
|
|
||||||
field.value = document.f_pop.f1.value;
|
|
||||||
window.close();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
//]]>
|
|
||||||
</script>
|
|
||||||
|
|
||||||
[% INCLUDE 'popup-bottom.inc' %]
|
[% MACRO jsinclude BLOCK %]
|
||||||
|
<script type="text/javascript">
|
||||||
|
function report() {
|
||||||
|
var doc = opener.document;
|
||||||
|
var field = doc.getElementById("[% index %]");
|
||||||
|
field.value = document.f_pop.f1.value;
|
||||||
|
window.close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
|
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
|
Loading…
Reference in a new issue