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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tt (-64 / +31 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 100 builder</title>
3
<title>UNIMARC field 100 builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_100" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_100" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 100 builder</h3>
8
<h3>UNIMARC field 100 builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 683-751 languages and obsolete typography)</option> Link Here
683
</table>
685
</table>
684
<p><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a> </p>
686
<p><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a> </p>
685
</form>
687
</form>
686
<script type="text/javascript">
687
//<![CDATA[
688
//     GetPublicationDate(); // running directly.
689
// 
690
//     /**
691
//      *  GetPublicationDate.
692
//      *  This function get the publication date if it's written on 210d
693
//      */
694
//     function GetPublicationDate() {
695
//         var PublicationDate = null;
696
//         
697
//         for (i=0 ; i<NbFields ; i++) {
698
//             if (doc.f.tag[i].value == '210' && doc.f.subfield[i].value == 'd') {
699
//                 if (doc.f.field_value[i].value != ""){
700
//                     PublicationDate = doc.f.field_value[i].value;
701
//                     document.getElementById('pubdate1').value = PublicationDate;
702
//                 }
703
//                 return;
704
//             }
705
//         }
706
//     }
707
//     
708
//     /**
709
//      *  SetPublicationDate.
710
//      *  This function set the publication date here
711
//      */
712
//     function SetPublicationDate() {
713
//         var PublicationDate = document.getElementById('pubdate1').value;
714
//         if (PublicationDate == "    " || !PublicationDate){
715
//             return ;
716
//         }
717
//         for (i=0 ; i<NbFields ; i++) {
718
//             if (doc.f.tag[i].value == '210' && doc.f.subfield[i].value == 'd') {
719
//                 doc.f.field_value[i].value = PublicationDate;
720
//                 break;
721
//             }
722
//         }
723
//     }
724
    
725
    function report() {
726
        var doc   = opener.document;
727
        var field = doc.getElementById("[% index %]");
728
        
729
        document.f_pop.f1.value=document.f_pop.f1.value+'        ';
730
        document.f_pop.f3.value=document.f_pop.f3.value+'    ';
731
        document.f_pop.f4.value=document.f_pop.f4.value+'    ';
732
        document.f_pop.f10.value=document.f_pop.f10.value+'   ';
733
        document.f_pop.f14.value=document.f_pop.f14.value+'    ';
734
688
735
        document.f_pop.f1.value=document.f_pop.f1.value.substring(0,8);
689
[% MACRO jsinclude BLOCK %]
736
        document.f_pop.f3.value=document.f_pop.f3.value.substring(0,4);
690
    <script type="text/javascript">
737
        document.f_pop.f4.value=document.f_pop.f4.value.substring(0,4);
691
        function report() {
738
        document.f_pop.f10.value=document.f_pop.f10.value.substring(0,3);
692
            var doc   = opener.document;
739
        document.f_pop.f14.value=document.f_pop.f14.value.substring(0,4);
693
            var field = doc.getElementById("[% index %]");
694
695
            document.f_pop.f1.value=document.f_pop.f1.value+'        ';
696
            document.f_pop.f3.value=document.f_pop.f3.value+'    ';
697
            document.f_pop.f4.value=document.f_pop.f4.value+'    ';
698
            document.f_pop.f10.value=document.f_pop.f10.value+'   ';
699
            document.f_pop.f14.value=document.f_pop.f14.value+'    ';
700
701
            document.f_pop.f1.value=document.f_pop.f1.value.substring(0,8);
702
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,4);
703
            document.f_pop.f4.value=document.f_pop.f4.value.substring(0,4);
704
            document.f_pop.f10.value=document.f_pop.f10.value.substring(0,3);
705
            document.f_pop.f14.value=document.f_pop.f14.value.substring(0,4);
706
707
            field.value= document.f_pop.f1.value +
708
            document.f_pop.f2.value +document.f_pop.f3.value
709
            +document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value+document.f_pop.f12.value+document.f_pop.f13.value+document.f_pop.f14.value+document.f_pop.f15.value;
710
711
            self.close();
712
            return false;
713
        }
714
    //]]>
715
    </script>
716
[% END %]
740
717
741
        field.value= document.f_pop.f1.value +
718
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
742
        document.f_pop.f2.value +document.f_pop.f3.value
743
        +document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value+document.f_pop.f12.value+document.f_pop.f13.value+document.f_pop.f14.value+document.f_pop.f15.value;
744
        
745
//         SetPublicationDate();
746
        self.close();
747
        return false;
748
    }
749
//]]>
750
</script>
751
[% INCLUDE 'popup-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100_authorities.tt (-24 / +28 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 100 builder</title>
3
<title>UNIMARC field 100 builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_100" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_100" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 100 builder</h3>
8
<h3>UNIMARC field 100 builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 348-374 languages and obsolete typography)</option> Link Here
348
</table>
350
</table>
349
<p><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a> </p>
351
<p><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a> </p>
350
</form>
352
</form>
351
<script type="text/javascript">
353
352
//<![CDATA[
354
[% MACRO jsinclude BLOCK %]
353
    function report() {
355
    <script type="text/javascript">
354
        var doc   = opener.document;
356
        function report() {
355
        var field = doc.getElementById("[% index %]");
357
            var doc   = opener.document;
356
358
            var field = doc.getElementById("[% index %]");
357
        document.f_pop.f1.value=document.f_pop.f1.value+'        ';
359
358
        document.f_pop.f3.value=document.f_pop.f3.value+'   ';
360
            document.f_pop.f1.value=document.f_pop.f1.value+'        ';
359
        document.f_pop.f7.value=document.f_pop.f7.value+'    ';
361
            document.f_pop.f3.value=document.f_pop.f3.value+'   ';
360
362
            document.f_pop.f7.value=document.f_pop.f7.value+'    ';
361
        document.f_pop.f1.value=document.f_pop.f1.value.substring(0,8);
363
362
        document.f_pop.f3.value=document.f_pop.f3.value.substring(0,3);
364
            document.f_pop.f1.value=document.f_pop.f1.value.substring(0,8);
363
        document.f_pop.f7.value=document.f_pop.f7.value.substring(0,4);
365
            document.f_pop.f3.value=document.f_pop.f3.value.substring(0,3);
364
366
            document.f_pop.f7.value=document.f_pop.f7.value.substring(0,4);
365
        field.value= document.f_pop.f1.value +
367
366
        document.f_pop.f2.value +document.f_pop.f3.value
368
            field.value= document.f_pop.f1.value +
367
        +document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value;
369
            document.f_pop.f2.value +document.f_pop.f3.value
368
370
            +document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value;
369
        self.close();
371
370
        return false;
372
            self.close();
371
    }
373
            return false;
372
//]]>
374
        }
373
</script>
375
    </script>
374
[% INCLUDE 'popup-bottom.inc' %]
376
[% END %]
377
378
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_105.tt (-13 / +16 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 105 builder</title>
3
<title>UNIMARC field 105 builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_105" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_105" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 105 builder</h3>
8
<h3>UNIMARC field 105 builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 1133-1149 Link Here
1133
</table>
1135
</table>
1134
<fieldset class="action"><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
1136
<fieldset class="action"><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
1135
</form>
1137
</form>
1136
<script type="text/javascript">
1137
//<![CDATA[
1138
	function report() {
1139
            var doc   = opener.document; 
1140
            var field = doc.getElementById("[% index %]");
1141
        
1142
            field.value = document.f_pop.f1.value + document.f_pop.f2.value +document.f_pop.f3.value +document.f_pop.f4.value +document.f_pop.f5.value +document.f_pop.f6.value +document.f_pop.f7.value +document.f_pop.f8.value +document.f_pop.f9.value +document.f_pop.f10.value +document.f_pop.f11.value +document.f_pop.f12.value +document.f_pop.f13.value;
1143
            window.close();
1144
            return false;
1145
	}
1146
//]]>
1147
</script>
1148
1138
1149
[% INCLUDE 'popup-bottom.inc' %]
1139
[% MACRO jsinclude BLOCK %]
1140
    <script type="text/javascript">
1141
        function report() {
1142
                var doc   = opener.document;
1143
                var field = doc.getElementById("[% index %]");
1144
1145
                field.value = document.f_pop.f1.value + document.f_pop.f2.value +document.f_pop.f3.value +document.f_pop.f4.value +document.f_pop.f5.value +document.f_pop.f6.value +document.f_pop.f7.value +document.f_pop.f8.value +document.f_pop.f9.value +document.f_pop.f10.value +document.f_pop.f11.value +document.f_pop.f12.value +document.f_pop.f13.value;
1146
                window.close();
1147
                return false;
1148
        }
1149
    </script>
1150
[% END %]
1151
1152
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_106.tt (-13 / +14 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 106 builder</title>
3
<title>UNIMARC field 106 builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_106" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_106" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 106 builder</h3>
8
<h3>UNIMARC field 106 builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 83-101 supplement)</option> Link Here
83
</table>
85
</table>
84
<fieldset class="action"><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
86
<fieldset class="action"><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
85
</form>
87
</form>
86
<script type="text/javascript">
87
//<![CDATA[
88
function report() {
89
        var doc   = opener.document; 
90
        var field = doc.getElementById("[% index %]");
91
    
92
        field.value = document.f_pop.f1.value;
93
        self.close();
94
        return false;
95
	}
96
88
97
//]]>
89
[% MACRO jsinclude BLOCK %]
98
</script>
90
    <script type="text/javascript">
91
        function report() {
92
            var doc   = opener.document;
93
            var field = doc.getElementById("[% index %]");
99
94
95
            field.value = document.f_pop.f1.value;
96
            self.close();
97
            return false;
98
        }
99
    </script>
100
[% END %]
100
101
101
[% INCLUDE 'popup-bottom.inc' %]
102
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_110.tt (-15 / +18 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 110 builder</title>
3
<title>UNIMARC field 110 builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_110" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_110" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 110 builder</h3>
8
<h3>UNIMARC field 110 builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 591-608 Link Here
591
</table>
593
</table>
592
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
594
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
593
</form>
595
</form>
594
<script type="text/javascript">
596
595
//<![CDATA[
597
[% MACRO jsinclude BLOCK %]
596
    function report() {
598
    <script type="text/javascript">
597
        document.f_pop.f5.value=document.f_pop.f5.value+'   ';
599
        function report() {
598
        document.f_pop.f5.value=document.f_pop.f5.value.substring(0,3);
600
            document.f_pop.f5.value=document.f_pop.f5.value+'   ';
599
        var doc   = opener.document; 
601
            document.f_pop.f5.value=document.f_pop.f5.value.substring(0,3);
600
        var field = doc.getElementById("[% index %]");
602
            var doc   = opener.document;
601
        field.value =  document.f_pop.f1.value +document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value;
603
            var field = doc.getElementById("[% index %]");
602
        self.close();
604
            field.value =  document.f_pop.f1.value +document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value;
603
        return false;
605
            self.close();
604
    }
606
            return false;
605
//]]>
607
        }
606
</script>
608
    </script>
607
609
[% END %]
608
[% INCLUDE 'popup-bottom.inc' %]
610
611
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115a.tt (-17 / +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 115a builder</title>
3
<title>UNIMARC field 115a builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
Lines 1189-1208 Link Here
1189
</table>
1190
</table>
1190
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
1191
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
1191
</form>
1192
</form>
1192
<script type="text/javascript">
1193
1193
//<![CDATA[
1194
[% MACRO jsinclude BLOCK %]
1194
	function report() {
1195
    <script type="text/javascript">
1195
        document.f_pop.f2.value=document.f_pop.f2.value+'   ';
1196
        function report() {
1196
        document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
1197
            document.f_pop.f2.value=document.f_pop.f2.value+'   ';
1197
1198
            document.f_pop.f2.value=document.f_pop.f2.value.substring(0,3);
1198
        var doc   = opener.document; 
1199
1199
        var field = doc.getElementById("[% index %]");
1200
            var doc   = opener.document;
1200
        
1201
            var field = doc.getElementById("[% index %]");
1201
        field.value =  document.f_pop.f1.value +document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value+document.f_pop.f12.value+document.f_pop.f13.value+document.f_pop.f14.value+document.f_pop.f15.value+document.f_pop.f16.value+document.f_pop.f17.value+document.f_pop.f18.value;
1202
1202
		self.close();
1203
            field.value =  document.f_pop.f1.value +document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value+document.f_pop.f12.value+document.f_pop.f13.value+document.f_pop.f14.value+document.f_pop.f15.value+document.f_pop.f16.value+document.f_pop.f17.value+document.f_pop.f18.value;
1203
		return false;
1204
            self.close();
1204
	}
1205
            return false;
1205
//]]>
1206
        }
1206
</script>
1207
    </script>
1207
1208
[% END %]
1208
[% INCLUDE 'popup-bottom.inc' %]
1209
1210
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
1211
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_115b.tt (-19 / +21 lines)
Lines 1-7 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>UNIMARC field 115b builder</title>
3
<title>UNIMARC field 115b builder</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
</head>
5
</head>
6
5
<body id="cat_unimarc_field_115b" class="cat" style="padding:1em;">
7
<body id="cat_unimarc_field_115b" class="cat" style="padding:1em;">
6
<h3>UNIMARC field 115b builder</h3>
8
<h3>UNIMARC field 115b builder</h3>
7
<form name="f_pop" action="">
9
<form name="f_pop" action="">
Lines 635-655 Link Here
635
	</table>
637
	</table>
636
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
638
<fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
637
</form>
639
</form>
638
<script type="text/javascript">
640
639
//<![CDATA[
641
[% MACRO jsinclude BLOCK %]
640
	function report() {
642
    <script type="text/javascript">
641
            document.f_pop.f10.value=document.f_pop.f10.value+'    ';
643
        function report() {
642
            document.f_pop.f10.value=document.f_pop.f10.value.substring(0,4);
644
                document.f_pop.f10.value=document.f_pop.f10.value+'    ';
643
            document.f_pop.f11.value=document.f_pop.f11.value+'  ';
645
                document.f_pop.f10.value=document.f_pop.f10.value.substring(0,4);
644
            document.f_pop.f11.value=document.f_pop.f11.value.substring(0,2);
646
                document.f_pop.f11.value=document.f_pop.f11.value+'  ';
645
647
                document.f_pop.f11.value=document.f_pop.f11.value.substring(0,2);
646
	    var doc   = opener.document; 
648
647
            var field = doc.getElementById("[% index %]");
649
            var doc   = opener.document;
648
            field.value =  document.f_pop.f1.value +document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value;
650
                var field = doc.getElementById("[% index %]");
649
		self.close();
651
                field.value =  document.f_pop.f1.value +document.f_pop.f2.value+document.f_pop.f3.value+document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value+document.f_pop.f10.value+document.f_pop.f11.value;
650
		return false;
652
            self.close();
651
	}
653
            return false;
652
//]]>
654
        }
653
</script>
655
    </script>
654
656
[% END %]
655
[% INCLUDE 'popup-bottom.inc' %]
657
658
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
656
- 

Return to bug 19866