View | Details | Raw Unified | Return to bug 19869
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123a.tt (-11 / +12 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123a builder</title>
3
<title>UNIMARC field 123a builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 30-46 Link Here
30
</table>
31
</table>
31
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
32
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
32
</form>
33
</form>
33
<script type="text/javascript">
34
34
//<![CDATA[
35
[% MACRO jsinclude BLOCK %]
35
function report() {
36
    <script type="text/javascript">
36
	    var doc   = opener.document; 
37
        function report() {
38
            var doc   = opener.document;
37
            var field = doc.getElementById("[% index %]");
39
            var field = doc.getElementById("[% index %]");
38
            field.value =  document.f_pop.f1.value;
40
            field.value =  document.f_pop.f1.value;
39
	    self.close();
41
            self.close();
40
	    return false;
42
            return false;
41
	}
43
        }
42
//]]>
44
    </script>
43
</script>
45
[% END %]
44
45
46
46
[% INCLUDE 'popup-bottom.inc' %]
47
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123d.tt (-11 / +12 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123d builder</title>
3
<title>UNIMARC field 123d builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 46-54 Link Here
46
</table>
47
</table>
47
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
</form>
49
</form>
49
<script type="text/javascript">
50
50
//<![CDATA[
51
[% MACRO jsinclude BLOCK %]
51
	function report() {
52
    <script type="text/javascript">
53
        function report() {
52
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
54
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
53
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
55
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
54
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
56
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
Lines 56-69 Link Here
56
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
58
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
57
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
59
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
58
60
59
            var doc   = opener.document; 
61
            var doc   = opener.document;
60
            var field = doc.getElementById("[% index %]");
62
            var field = doc.getElementById("[% index %]");
61
        
62
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
63
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
63
	    window.close();
64
            window.close();
64
	    return false;
65
            return false;
65
	}
66
        }
66
//]]>
67
    </script>
67
</script>
68
[% END %]
68
69
69
[% INCLUDE 'popup-bottom.inc' %]
70
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123e.tt (-11 / +13 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123e builder</title>
3
<title>UNIMARC field 123e builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 46-54 Link Here
46
</table>
47
</table>
47
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
</form>
49
</form>
49
<script type="text/javascript">
50
50
//<![CDATA[
51
[% MACRO jsinclude BLOCK %]
51
	function report() {
52
    <script type="text/javascript">
53
        function report() {
52
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
54
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
53
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
55
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
54
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
56
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
Lines 56-69 Link Here
56
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
58
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
57
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
59
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
58
60
59
            var doc   = opener.document; 
61
            var doc   = opener.document;
60
            var field = doc.getElementById("[% index %]");
62
            var field = doc.getElementById("[% index %]");
61
        
63
62
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
64
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
63
	    window.close();
65
            window.close();
64
	    return false;
66
            return false;
65
	}
67
        }
66
//]]>
68
    </script>
67
</script>
69
[% END %]
68
70
69
[% INCLUDE 'popup-bottom.inc' %]
71
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123f.tt (-11 / +13 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123f builder</title>
3
<title>UNIMARC field 123f builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 46-54 Link Here
46
</table>
47
</table>
47
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
</form>
49
</form>
49
<script type="text/javascript">
50
50
//<![CDATA[
51
[% MACRO jsinclude BLOCK %]
51
	function report() {
52
    <script type="text/javascript">
53
        function report() {
52
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
54
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
53
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
55
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
54
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
56
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
Lines 56-69 Link Here
56
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
58
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
57
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
59
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
58
60
59
            var doc   = opener.document; 
61
            var doc   = opener.document;
60
            var field = doc.getElementById("[% index %]");
62
            var field = doc.getElementById("[% index %]");
61
        
63
62
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
64
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
63
	    window.close();
65
            window.close();
64
	    return false;
66
            return false;
65
	}
67
        }
66
//]]>
68
    </script>
67
</script>
69
[% END %]
68
70
69
[% INCLUDE 'popup-bottom.inc' %]
71
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123g.tt (-11 / +13 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123g builder</title>
3
<title>UNIMARC field 123g builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 46-54 Link Here
46
</table>
47
</table>
47
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48
</form>
49
</form>
49
<script type="text/javascript">
50
50
//<![CDATA[
51
[% MACRO jsinclude BLOCK %]
51
	function report() {
52
    <script type="text/javascript">
53
        function report() {
52
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
54
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
53
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
55
            document.f_pop.f3.value=document.f_pop.f3.value+'  ';
54
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
56
            document.f_pop.f4.value=document.f_pop.f4.value+'  ';
Lines 56-69 Link Here
56
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
58
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,2);
57
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
59
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,2);
58
60
59
            var doc   = opener.document; 
61
            var doc   = opener.document;
60
            var field = doc.getElementById("[% index %]");
62
            var field = doc.getElementById("[% index %]");
61
        
63
62
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
64
            field.value =  document.f_pop.f1.value+document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value;
63
	    window.close();
65
            window.close();
64
	    return false;
66
            return false;
65
	}
67
        }
66
//]]>
68
    </script>
67
</script>
69
[% END %]
68
70
69
[% INCLUDE 'popup-bottom.inc' %]
71
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_123i_j.tt (-19 / +20 lines)
Lines 1-3 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 123i/j builder</title>
3
<title>UNIMARC field 123i/j builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 36-57 Link Here
36
</table>
37
</table>
37
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
38
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
38
</form>
39
</form>
39
<script type="text/javascript">
40
//<![CDATA[
41
    function report() {
42
        var f2= "000" + document.f_pop.f2.value;
43
        f2 = f2.substring(f2.length-3);
44
        var f3= "00" + document.f_pop.f3.value;
45
        f3 = f3.substring(f3.length-2);
46
        var f4= "00" + document.f_pop.f4.value;
47
        f4 = f4.substring(f4.length-2);
48
        var doc   = opener.document;
49
        var field = doc.getElementById("[% index %]");
50
        field.value =  document.f_pop.f1.value+ f2 + f3 + f4;
51
        window.close();
52
        return false;
53
    }
54
//]]>
55
</script>
56
40
57
[% INCLUDE 'popup-bottom.inc' %]
41
[% MACRO jsinclude BLOCK %]
42
    <script type="text/javascript">
43
        function report() {
44
            var f2= "000" + document.f_pop.f2.value;
45
            f2 = f2.substring(f2.length-3);
46
            var f3= "00" + document.f_pop.f3.value;
47
            f3 = f3.substring(f3.length-2);
48
            var f4= "00" + document.f_pop.f4.value;
49
            f4 = f4.substring(f4.length-2);
50
            var doc   = opener.document;
51
            var field = doc.getElementById("[% index %]");
52
            field.value =  document.f_pop.f1.value+ f2 + f3 + f4;
53
            window.close();
54
            return false;
55
        }
56
    </script>
57
[% END %]
58
59
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
58
- 

Return to bug 19869