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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc (-1 / +20 lines)
Lines 222-227 require( [ 'koha-backend', 'widget', 'text-marc' ], function( KohaBackend, Widge Link Here
222
222
223
            return $result[0];
223
            return $result[0];
224
        },
224
        },
225
        materialTypeMapping: {
226
            a: 'MPS',
227
            c: 'ER',
228
            d: 'GL',
229
            f: 'TM',
230
            g: 'PG',
231
            h: 'MF',
232
            k: 'NG',
233
            m: 'MP',
234
            o: 'KT',
235
            q: 'NM',
236
            r: 'RI',
237
            s: 'SR',
238
            t: 'TC',
239
            v: 'VR',
240
            z: 'UN'
241
        },
242
        getMaterial: function () {
243
            return this.materialTypeMapping[this.text.substring(0, 1)];
244
        },
225
        postCreate: function( node, mark ) {
245
        postCreate: function( node, mark ) {
226
            this.createFromXML( 'marc21/xml/007' );
246
            this.createFromXML( 'marc21/xml/007' );
227
        }
247
        }
228
- 

Return to bug 21049