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' %] |