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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc (-1 / +20 lines)
Lines 214-219 require( [ 'koha-backend', 'widget', 'text-marc' ], function( KohaBackend, Widge Link Here
214
214
215
            return $result[0];
215
            return $result[0];
216
        },
216
        },
217
        materialTypeMapping: {
218
            a: 'BKS',
219
            c: 'MU',
220
            d: 'MU',
221
            e: 'MPS',
222
            f: 'MPS',
223
            g: 'VM',
224
            i: 'MU',
225
            j: 'MU',
226
            k: 'VM',
227
            m: 'CF',
228
            o: 'VM',
229
            p: 'MX',
230
            r: 'VM',
231
            s: 'CR',
232
            t: 'BKS',
233
        },
234
        getMaterial: function () {
235
            return this.materialTypeMapping[this.text.substring(0, 1)];
236
        },
217
        postCreate: function( node, mark ) {
237
        postCreate: function( node, mark ) {
218
            this.createFromXML( 'marc21/xml/006' );
238
            this.createFromXML( 'marc21/xml/006' );
219
        }
239
        }
220
- 

Return to bug 32321