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

(-)a/cataloguing/value_builder/marc21_field_003.pl (-2 / +2 lines)
Lines 32-39 my $builder = sub { Link Here
32
<script type=\"text/javascript\">
32
<script type=\"text/javascript\">
33
//<![CDATA[
33
//<![CDATA[
34
34
35
function Focus$function_name(subfield_managed) {
35
function Focus$function_name(event) {
36
    document.getElementById(\"$params->{id}\").value='$org';
36
    document.getElementById(event.data.id).value='$org';
37
    return 0;
37
    return 0;
38
}
38
}
39
39
(-)a/cataloguing/value_builder/marc21_field_005.pl (-2 / +2 lines)
Lines 33-40 my $builder = sub { Link Here
33
<script type=\"text/javascript\">
33
<script type=\"text/javascript\">
34
//<![CDATA[
34
//<![CDATA[
35
35
36
function Focus$function_name(subfield_managed) {
36
function Focus$function_name(event) {
37
    document.getElementById(\"$params->{id}\").value='$date';
37
    document.getElementById(event.data.id).value='$date';
38
    return 0;
38
    return 0;
39
}
39
}
40
40
(-)a/cataloguing/value_builder/marc21_field_006.pl (-3 / +3 lines)
Lines 36-44 my $builder = sub { Link Here
36
<script type=\"text/javascript\">
36
<script type=\"text/javascript\">
37
//<![CDATA[
37
//<![CDATA[
38
38
39
function Click$function_name(i) {
39
function Click$function_name(event) {
40
    defaultvalue=document.getElementById(\"$params->{id}\").value;
40
    defaultvalue=document.getElementById(event.data.id).value;
41
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_006.pl&index=$params->{id}&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
41
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_006.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
42
42
43
}
43
}
44
//]]>
44
//]]>
(-)a/cataloguing/value_builder/marc21_field_007.pl (-3 / +3 lines)
Lines 35-43 my $builder = sub { Link Here
35
<script type=\"text/javascript\">
35
<script type=\"text/javascript\">
36
//<![CDATA[
36
//<![CDATA[
37
37
38
function Click$function_name(i) {
38
function Click$function_name(event) {
39
    defaultvalue=document.getElementById(\"$params->{id}\").value;
39
    defaultvalue=document.getElementById(event.data.id).value;
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_007.pl&index=$params->{id}&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_007.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
41
41
42
}
42
}
43
//]]>
43
//]]>
(-)a/cataloguing/value_builder/marc21_field_008.pl (-6 / +6 lines)
Lines 43-59 my $builder = sub { Link Here
43
<script type=\"text/javascript\">
43
<script type=\"text/javascript\">
44
//<![CDATA[
44
//<![CDATA[
45
45
46
function Focus$function_name(subfield_managed) {
46
function Focus$function_name(event) {
47
    if ( document.getElementById(\"$params->{id}\").value ) {
47
    if ( document.getElementById(event.data.id).value ) {
48
	}
48
	}
49
	else {
49
	else {
50
        document.getElementById(\"$params->{id}\").value='$dateentered' + 'b        xxu||||| |||| 00| 0 $lang d';
50
        document.getElementById(event.data.id).value='$dateentered' + 'b        xxu||||| |||| 00| 0 $lang d';
51
	}
51
	}
52
    return 1;
52
    return 1;
53
}
53
}
54
54
55
function Click$function_name(i) {
55
function Click$function_name(event) {
56
    defaultvalue=document.getElementById(\"$params->{id}\").value;
56
    defaultvalue=document.getElementById(event.data.id).value;
57
    //Retrieve full leader string and pass it to the 008 tag editor
57
    //Retrieve full leader string and pass it to the 008 tag editor
58
    var leader_value = \$(\"input[id^='tag_000']\").val();
58
    var leader_value = \$(\"input[id^='tag_000']\").val();
59
    var leader_parameter = \"\";
59
    var leader_parameter = \"\";
Lines 61-67 function Click$function_name(i) { Link Here
61
        //Only add the parameter to the URL if there is a value to add
61
        //Only add the parameter to the URL if there is a value to add
62
        leader_parameter = \"&leader=\"+leader_value;
62
        leader_parameter = \"&leader=\"+leader_value;
63
    }
63
    }
64
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_008.pl&index=$params->{id}&result=\"+defaultvalue+leader_parameter,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
64
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_008.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue+leader_parameter,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
65
65
66
}
66
}
67
//]]>
67
//]]>
(-)a/cataloguing/value_builder/marc21_field_008_authorities.pl (-6 / +6 lines)
Lines 40-61 my $builder = sub { Link Here
40
<script type=\"text/javascript\">
40
<script type=\"text/javascript\">
41
//<![CDATA[
41
//<![CDATA[
42
42
43
function Focus$function_name(subfield_managed) {
43
function Focus$function_name(event) {
44
    if (!document.getElementById(\"$params->{id}\").value) {
44
    if (!document.getElementById(event.data.id).value) {
45
    var authtype=document.forms['f'].elements['authtypecode'].value;
45
    var authtype=document.forms['f'].elements['authtypecode'].value;
46
    var fieldval='$dateentered$defaultval';
46
    var fieldval='$dateentered$defaultval';
47
    if(authtype && (authtype == 'TOPIC_TERM' || authtype == 'GENRE/FORM' || authtype == 'CHRON_TERM')) {
47
    if(authtype && (authtype == 'TOPIC_TERM' || authtype == 'GENRE/FORM' || authtype == 'CHRON_TERM')) {
48
      fieldval= fieldval.substr(0,14)+'b'+fieldval.substr(15);
48
      fieldval= fieldval.substr(0,14)+'b'+fieldval.substr(15);
49
    }
49
    }
50
        document.getElementById(\"$params->{id}\").value=fieldval;
50
        document.getElementById(event.data.id).value=fieldval;
51
    }
51
    }
52
    return 1;
52
    return 1;
53
}
53
}
54
54
55
function Click$function_name(i) {
55
function Click$function_name(event) {
56
    var authtype=document.forms['f'].elements['authtypecode'].value;
56
    var authtype=document.forms['f'].elements['authtypecode'].value;
57
    defaultvalue=document.getElementById(\"$params->{id}\").value;
57
    defaultvalue=document.getElementById(event.data.id).value;
58
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_008_authorities.pl&index=$params->{id}&result=\"+defaultvalue+\"&authtypecode=\"+authtype,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
58
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_field_008_authorities.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue+\"&authtypecode=\"+authtype,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
59
59
60
}
60
}
61
//]]>
61
//]]>
(-)a/cataloguing/value_builder/marc21_field_040c.pl (-2 / +2 lines)
Lines 31-38 my $builder = sub { Link Here
31
<script type=\"text/javascript\">
31
<script type=\"text/javascript\">
32
//<![CDATA[
32
//<![CDATA[
33
33
34
function Focus$function_name(subfield_managed) {
34
function Focus$function_name(event) {
35
    document.getElementById(\"$params->{id}\").value='$org';
35
    document.getElementById(event.data.id).value='$org';
36
    return 0;
36
    return 0;
37
}
37
}
38
38
(-)a/cataloguing/value_builder/marc21_field_040d.pl (-2 / +2 lines)
Lines 31-38 my $builder = sub { Link Here
31
<script type=\"text/javascript\">
31
<script type=\"text/javascript\">
32
//<![CDATA[
32
//<![CDATA[
33
33
34
function Focus$function_name(subfield_managed) {
34
function Focus$function_name(event) {
35
    document.getElementById(\"$params->{id}\").value='$org';
35
    document.getElementById(event.data.id).value='$org';
36
    return 0;
36
    return 0;
37
}
37
}
38
38
(-)a/cataloguing/value_builder/marc21_field_245h.pl (-3 / +3 lines)
Lines 30-42 my $builder = sub { Link Here
30
<script type=\"text/javascript\">
30
<script type=\"text/javascript\">
31
//<![CDATA[
31
//<![CDATA[
32
32
33
function Blur$function_name(index) {
33
function Blur$function_name(event) {
34
    var fieldValue = document.getElementById(\"$params->{id}\").value;
34
    var fieldValue = document.getElementById(event.data.id).value;
35
    if (  fieldValue.substring(0,1) != '[' 
35
    if (  fieldValue.substring(0,1) != '[' 
36
          &&
36
          &&
37
          fieldValue.substring(fieldValue.length-1) != '[' 
37
          fieldValue.substring(fieldValue.length-1) != '[' 
38
        ) {
38
        ) {
39
      document.getElementById(\"$params->{id}\").value = '[' + fieldValue + ']';
39
      document.getElementById(event.data.id).value = '[' + fieldValue + ']';
40
    }
40
    }
41
    return 0;
41
    return 0;
42
}
42
}
(-)a/cataloguing/value_builder/marc21_leader.pl (-6 / +6 lines)
Lines 35-50 my $builder = sub { Link Here
35
<script type=\"text/javascript\">
35
<script type=\"text/javascript\">
36
//<![CDATA[
36
//<![CDATA[
37
37
38
function Focus$function_name(subfield_managed) {
38
function Focus$function_name(event) {
39
    if(!document.getElementById(\"$params->{id}\").value){
39
    if(!document.getElementById(event.data.id).value){
40
        document.getElementById(\"$params->{id}\").value = '     nam a22     7a 4500';
40
        document.getElementById(event.data.id).value = '     nam a22     7a 4500';
41
    }
41
    }
42
    return 1;
42
    return 1;
43
}
43
}
44
44
45
function Click$function_name(i) {
45
function Click$function_name(event) {
46
    defaultvalue=document.getElementById(\"$params->{id}\").value;
46
    defaultvalue=document.getElementById(event.data.id).value;
47
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=$params->{id}&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
47
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
48
48
49
}
49
}
50
//]]>
50
//]]>
(-)a/cataloguing/value_builder/marc21_leader_authorities.pl (-6 / +6 lines)
Lines 35-50 my $builder = sub { Link Here
35
<script type=\"text/javascript\">
35
<script type=\"text/javascript\">
36
//<![CDATA[
36
//<![CDATA[
37
37
38
function Focus$function_name(subfield_managed) {
38
function Focus$function_name(event) {
39
    if(!document.getElementById(\"$params->{id}\").value){
39
    if(!document.getElementById(event.data.id).value){
40
        document.getElementById(\"$params->{id}\").value = '     nz  a22     n  4500';
40
        document.getElementById(event.data.id).value = '     nz  a22     n  4500';
41
    }
41
    }
42
    return 1;
42
    return 1;
43
}
43
}
44
44
45
function Click$function_name(i) {
45
function Click$function_name(event) {
46
    defaultvalue=document.getElementById(\"$params->{id}\").value;
46
    defaultvalue=document.getElementById(event.data.id).value;
47
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader_authorities.pl&index=$params->{id}&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
47
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader_authorities.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
48
48
49
}
49
}
50
//]]>
50
//]]>
(-)a/cataloguing/value_builder/marc21_leader_book.pl (-3 / +3 lines)
Lines 35-43 my $builder = sub { Link Here
35
<script type=\"text/javascript\">
35
<script type=\"text/javascript\">
36
//<![CDATA[
36
//<![CDATA[
37
37
38
function Click$function_name(i) {
38
function Click$function_name(event) {
39
    defaultvalue=document.getElementById(\"$params->{id}\").value;
39
    defaultvalue=document.getElementById(event.data.id).value;
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=$params->{id}&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
41
41
42
}
42
}
43
//]]>
43
//]]>
(-)a/cataloguing/value_builder/marc21_leader_computerfile.pl (-3 / +3 lines)
Lines 35-43 my $builder = sub { Link Here
35
<script type=\"text/javascript\">
35
<script type=\"text/javascript\">
36
//<![CDATA[
36
//<![CDATA[
37
37
38
function Click$function_name(i) {
38
function Click$function_name(event) {
39
    defaultvalue=document.getElementById(\"$params->{id}\").value;
39
    defaultvalue=document.getElementById(event.data.id).value;
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=$params->{id}&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
41
41
42
}
42
}
43
//]]>
43
//]]>
(-)a/cataloguing/value_builder/marc21_leader_video.pl (-3 / +3 lines)
Lines 35-43 my $builder = sub { Link Here
35
<script type=\"text/javascript\">
35
<script type=\"text/javascript\">
36
//<![CDATA[
36
//<![CDATA[
37
37
38
function Click$function_name(i) {
38
function Click$function_name(event) {
39
    defaultvalue=document.getElementById(\"$params->{id}\").value;
39
    defaultvalue=document.getElementById(event.data.id).value;
40
	newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=\"+i+\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
40
    newin=window.open(\"../cataloguing/plugin_launcher.pl?plugin_name=marc21_leader.pl&index=\"+ event.data.id +\"&result=\"+defaultvalue,\"tag_editor\",'width=1000,height=600,toolbar=false,scrollbars=yes');
41
41
42
}
42
}
43
//]]>
43
//]]>
(-)a/cataloguing/value_builder/marc21_linking_section.pl (-4 / +3 lines)
Lines 39-47 my $builder = sub { Link Here
39
    my $function_name = $params->{id};
39
    my $function_name = $params->{id};
40
    my $res           = "
40
    my $res           = "
41
  <script type='text/javascript'>
41
  <script type='text/javascript'>
42
             function Click$function_name(i) {
42
             function Click$function_name(event) {
43
                       defaultvalue=document.getElementById(\"$params->{id}\").value;
43
                       defaultvalue=document.getElementById(event.data.id).value;
44
                 window.open(\"/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&index=\" + i + \"&result=\"+defaultvalue,\"marc21_field_7\"+i+\"\",'width=900,height=700,toolbar=false,scrollbars=yes');
44
                 window.open(\"/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&index=\" + event.data.id + \"&result=\"+defaultvalue,\"marc21_field_7\"+ event.data.id +\"\",'width=900,height=700,toolbar=false,scrollbars=yes');
45
45
46
             }
46
             }
47
      </script>
47
      </script>
48
- 

Return to bug 13437