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 72-78 Link Here
72
                </li>
72
                </li>
73
                [% FOREACH framework IN frameworks %]
73
                [% FOREACH framework IN frameworks %]
74
                    <li>
74
                    <li>
75
                        <a class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]">
75
                        [% IF framework.is_default %]
76
                            <a class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]" data-default="Y">
77
                        [% ELSE %]
78
                            <a class="change-framework" data-frameworkcode="[% framework.frameworkcode | html %]">
79
                        [% END %]
76
                            <i class="fa fa-fw fa-check selected"></i>
80
                            <i class="fa fa-fw fa-check selected"></i>
77
                            <i class="fa fa-fw unselected">&nbsp;</i>
81
                            <i class="fa fa-fw unselected">&nbsp;</i>
78
                            [% framework.frameworktext | html %]
82
                            [% framework.frameworktext | html %]
79
- 

Return to bug 23111