Bug 11559: Rancor: advanced cataloging interface
[koha.git] / koha-tmpl / intranet-tmpl / lib / koha / cateditor / macros.js
1 /**
2  * Copyright 2015 ByWater Solutions
3  *
4  * This file is part of Koha.
5  *
6  * Koha is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Koha is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Koha; if not, see <http://www.gnu.org/licenses>.
18  */
19
20 define( [ 'macros/its', 'macros/rancor' ], function( ITSMacro, RancorMacro ) {
21     var Macros = {
22         formats: {
23             its: {
24                 description: 'TLCĀ® ITS',
25                 Run: ITSMacro.Run,
26             },
27             rancor: {
28                 description: 'Rancor',
29                 Run: RancorMacro.Run,
30             },
31         },
32         Run: function( editor, format, macro ) {
33             return Macros.formats[format].Run( editor, macro );
34         },
35     };
36
37     return Macros;
38 } );