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

(-)a/cataloguing/addbiblio.pl (+6 lines)
Lines 1023-1028 $template->param( title => $record->title() ) if ( $record ne "-1" ); Link Here
1023
if (C4::Context->preference("marcflavour") eq "MARC21"){
1023
if (C4::Context->preference("marcflavour") eq "MARC21"){
1024
    $template->param(MARC21 => 1);
1024
    $template->param(MARC21 => 1);
1025
}
1025
}
1026
1027
if (C4::Context->preference("enableMARCdocs")){
1028
    $template->param(enableMARCdocs => 1);
1029
}
1030
1031
1026
$template->param(
1032
$template->param(
1027
    popup => $mode,
1033
    popup => $mode,
1028
    frameworkcode => $frameworkcode,
1034
    frameworkcode => $frameworkcode,
(-)a/installer/data/mysql/en/mandatory/sysprefs.sql (+1 lines)
Lines 278-280 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
278
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ILS-DI:AuthorizedIPs','','.','Restricts usage of ILS-DI to some IPs','Free');
278
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ILS-DI:AuthorizedIPs','','.','Restricts usage of ILS-DI to some IPs','Free');
279
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OverduesBlockCirc','noblock','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','noblock|confirmation|block','Choice');
279
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OverduesBlockCirc','noblock','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','noblock|confirmation|block','Choice');
280
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DisplayMultiPlaceHold','1','Display the ability to place multiple holds or not','','YesNo');
280
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DisplayMultiPlaceHold','1','Display the ability to place multiple holds or not','','YesNo');
281
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('enableMARCdocs',1,'If ON, enables display of MARC documentation links',NULL,'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 3915-3920 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
3915
    SetVersion ($DBversion);
3915
    SetVersion ($DBversion);
3916
}
3916
}
3917
3917
3918
$DBversion = 'XXX';
3919
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
3920
    $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('enableMARCdocs',1,'If Yes, enables display of MARC documentation links',NULL,'YesNo')");
3921
    print "Upgrade to $DBversion done (Add enableMARCdocs syspref)\n";
3922
    SetVersion ($DBversion);
3923
}
3924
3918
3925
3919
3926
3920
=head1 FUNCTIONS
3927
=head1 FUNCTIONS
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+6 lines)
Lines 100-105 Cataloging: Link Here
100
                  economical: Do
100
                  economical: Do
101
            - collapse repeated tags of the same type into one tag entry on the display.
101
            - collapse repeated tags of the same type into one tag entry on the display.
102
        -
102
        -
103
            - pref: enableMARCdocs
104
              choices:
105
                  yes: Display
106
                  no: "Don't display"
107
            - "MARC documentation links"
108
        -
103
            - By default, display biblio records in
109
            - By default, display biblio records in
104
            - pref: IntranetBiblioDefaultView
110
            - pref: IntranetBiblioDefaultView
105
              choices:
111
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl (-3 / +7 lines)
Lines 67-72 function PopupZ3950() { Link Here
67
    } 
67
    } 
68
}
68
}
69
69
70
<!-- TMPL_IF NAME="enableMARCdocs" -->
70
function PopupMARCFieldDoc(field, fieldnumber) {
71
function PopupMARCFieldDoc(field, fieldnumber) {
71
    <!-- TMPL_IF NAME="MARC21" -->
72
    <!-- TMPL_IF NAME="MARC21" -->
72
        _MARC21FieldDoc(field);
73
        _MARC21FieldDoc(field);
Lines 101-106 function _UNIMARCFieldDoc(field,fieldnumber) { Link Here
101
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni9.htm");
102
        window.open("http://archive.ifla.org/VI/3/p1996-1/uni9.htm");
102
    }
103
    }
103
}
104
}
105
<!-- /TMPL_IF -->
104
106
105
/**
107
/**
106
 * check if mandatory subfields are written
108
 * check if mandatory subfields are written
Lines 784-791 function unHideSubfield(index,labelindex) { // FIXME :: is it used ? Link Here
784
            	<!-- TMPL_IF NAME="advancedMARCEditor" -->
786
            	<!-- TMPL_IF NAME="advancedMARCEditor" -->
785
		<a href="#" tabindex="1" class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib"--> - Click to Expand this Tag" onclick="ExpandField('tag_<!-- TMPL_VAR NAME="tag"-->_<!-- TMPL_VAR NAME='index' --><!-- TMPL_VAR NAME="random" -->'); return false;"><!-- TMPL_VAR NAME="tag" --></a>
787
		<a href="#" tabindex="1" class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib"--> - Click to Expand this Tag" onclick="ExpandField('tag_<!-- TMPL_VAR NAME="tag"-->_<!-- TMPL_VAR NAME='index' --><!-- TMPL_VAR NAME="random" -->'); return false;"><!-- TMPL_VAR NAME="tag" --></a>
786
		<!-- TMPL_ELSE -->
788
		<!-- TMPL_ELSE -->
787
                        <span class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" --><a 
789
                        <span class="tagnum" title="<!-- TMPL_VAR NAME="tag_lib" -->"><!-- TMPL_VAR NAME="tag" -->
788
                 onclick="PopupMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->, <!-- TMPL_VAR NAME="number" -->); return false;">&nbsp;?</a></span>
790
                            <!-- TMPL_IF NAME="enableMARCdocs" --><a 
791
                 onclick="PopupMARCFieldDoc(<!-- TMPL_VAR NAME="tag" -->, <!-- TMPL_VAR NAME="number" -->); return false;">&nbsp;?</a>
792
                            <!-- /TMPL_IF -->
793
                        </span>
789
		<!-- /TMPL_IF -->
794
		<!-- /TMPL_IF -->
790
                <!-- TMPL_IF NAME="fixedfield" -->
795
                <!-- TMPL_IF NAME="fixedfield" -->
791
	                <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" />
796
	                <input tabindex="1" class="indicator flat" type="text" style="display:none;" name="tag_<!-- TMPL_VAR NAME="tag" -->_indicator1_<!-- TMPL_VAR NAME='index'--><!-- TMPL_VAR name="random" -->" size="1" maxlength="1" value="<!-- TMPL_VAR NAME="indicator1" -->" />
792
- 

Return to bug 5546