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

(-)a/koha-tmpl/intranet-tmpl/lib/koha/cateditor/marc-editor.js (-1 / +6 lines)
Lines 686-693 define( [ 'marc-record', 'koha-backend', 'preferences', 'text-marc', 'widget' ], Link Here
686
        displayRecord: function( record ) {
686
        displayRecord: function( record ) {
687
            this.cm.setValue( TextMARC.RecordToText(record) );
687
            this.cm.setValue( TextMARC.RecordToText(record) );
688
            this.modified = false;
688
            this.modified = false;
689
            var fwcode = typeof record.frameworkcode !== 'undefined' ? record.frameworkcode : '';
690
            var defaultfw = $("a[data-default='Y']").data('frameworkcode');
691
            if ( typeof record.frameworkcode === 'undefined' && defaultfw ){
692
                fwcode = defaultfw;
693
            }
689
            this.setFrameworkCode(
694
            this.setFrameworkCode(
690
                typeof record.frameworkcode !== 'undefined' ? record.frameworkcode : '',
695
                fwcode,
691
                false,
696
                false,
692
                function ( error ) {
697
                function ( error ) {
693
                    if ( typeof error !== 'undefined' ) {
698
                    if ( typeof error !== 'undefined' ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt (-2 / +5 lines)
Lines 70-76 Link Here
70
                </li>
70
                </li>
71
                [% FOREACH framework IN frameworks %]
71
                [% FOREACH framework IN frameworks %]
72
                    <li>
72
                    <li>
73
                        <a class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]">
73
                        [% IF framework.is_default %]
74
                            <a class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]" data-default="Y">
75
                        [% ELSE %]
76
                            <a class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]">
77
                        [% END %]
74
                            <i class="fa fa-fw fa-check selected"></i>
78
                            <i class="fa fa-fw fa-check selected"></i>
75
                            <i class="fa fa-fw unselected">&nbsp;</i>
79
                            <i class="fa fa-fw unselected">&nbsp;</i>
76
                            [% framework.frameworktext | html %]
80
                            [% framework.frameworktext | html %]
77
- 

Return to bug 23111