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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt (-3 / +3 lines)
Lines 15-22 Link Here
15
15
16
        <form id="form01" method="post">
16
        <form id="form01" method="post">
17
            <fieldset class="rows">
17
            <fieldset class="rows">
18
                <div class="yui-g">
18
                <div class="row">
19
                    <div class="yui-u first">
19
                    <div class="col-xs-6">
20
                        <ol>
20
                        <ol>
21
                            <li>
21
                            <li>
22
                                <label for="title">Title: </label>
22
                                <label for="title">Title: </label>
Lines 40-46 Link Here
40
                            </li>
40
                            </li>
41
                        </ol>
41
                        </ol>
42
                    </div>
42
                    </div>
43
                    <div class="yui-u">
43
                    <div class="col-xs-6">
44
                        <ol>
44
                        <ol>
45
                            <li>
45
                            <li>
46
                                <label for="author">Author: </label>
46
                                <label for="author">Author: </label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt (-43 / +44 lines)
Lines 1-88 Link Here
1
[% SET footerjs = 1 %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; SRU search fields mapping for authorities</title>
3
<title>Koha &rsaquo; SRU search fields mapping for authorities</title>
3
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
4
5
<script type="text/javascript">
6
//<![CDATA[
7
    $(document).ready(function() {
8
        $("#form01").submit(function(event) {
9
            if(window.opener) {
10
                var newmap=allInputs();
11
                window.opener.$('#show_sru_fields').val(newmap);
12
                window.close();
13
            } else {
14
                // In this case not called as a popup. Just do nothing.
15
                event.preventDefault();
16
            }
17
        });
18
    });
19
    function allInputs () {
20
        var aInput= new Array();
21
        $("form :input").each(function() {
22
            if( this.id && $(this).val() ) {
23
                aInput.push(this.id+'='+$(this).val());
24
            }
25
        });
26
        return aInput.join(',');
27
    }
28
//]]>
29
</script>
30
</head>
5
</head>
31
6
32
<body id="admin_sru_modmapping" class="admin">
7
<body id="admin_sru_modmapping" class="admin">
33
8
34
<div id="custom-doc" class="yui-t7">
9
<div class="main container-fluid">
35
10
36
    <div id="bd">
11
    <main>
37
        <h1>Modify SRU search fields mapping for authorities</h1>
12
        <h1>Modify SRU search fields mapping for authorities</h1>
38
        <form id="form01" method="post">
13
        <form id="form01" method="post">
39
            <fieldset class="rows">
14
            <fieldset class="rows">
40
                <div class="yui-g">
15
                <div class="row">
41
                    <div class="yui-u first">
16
                    <div class="col-xs-6">
42
                        <ol>
17
                        <ol>
43
                            <li>
18
                            <li>
44
                                <label for="srchany">Keyword (any): </label>
19
                                <label for="srchany">Keyword (any): </label>
45
                                <input id="srchany" type="text" value="[% FILTER html %][% mapping.srchany | html %][% END %]" />
20
                                <input id="srchany" type="text" value="[% mapping.srchany | html %]" />
46
                            </li>
21
                            </li>
47
                            <li>
22
                            <li>
48
                                <label for="nameany">Name (any): </label>
23
                                <label for="nameany">Name (any): </label>
49
                                <input id="nameany" type="text" value="[% FILTER html %][% mapping.nameany | html %][% END %]" />
24
                                <input id="nameany" type="text" value="[% mapping.nameany | html %]" />
50
                            </li>
25
                            </li>
51
                            <li>
26
                            <li>
52
                                <label for="authorany">Author (any): </label>
27
                                <label for="authorany">Author (any): </label>
53
                                <input id="authorany" type="text" value="[% FILTER html %][% mapping.authorany | html %][% END %]" />
28
                                <input id="authorany" type="text" value="[% mapping.authorany | html %]" />
54
                            </li>
29
                            </li>
55
                            <li>
30
                            <li>
56
                                <label for="authorpersonal">Author (personal): </label>
31
                                <label for="authorpersonal">Author (personal): </label>
57
                                <input id="authorpersonal" type="text" value="[% FILTER html %][% mapping.authorpersonal | html %][% END %]" />
32
                                <input id="authorpersonal" type="text" value="[% mapping.authorpersonal | html %]" />
58
                            </li>
33
                            </li>
59
                            <li>
34
                            <li>
60
                                <label for="authorcorp">Author (corporate): </label>
35
                                <label for="authorcorp">Author (corporate): </label>
61
                                <input id="authorcorp" type="text" value="[% FILTER html %][% mapping.authorcorp | html %][% END %]" />
36
                                <input id="authorcorp" type="text" value="[% mapping.authorcorp | html %]" />
62
                            </li>
37
                            </li>
63
                            <li>
38
                            <li>
64
                                <label for="authormeetingcon">Author (meeting/conference): </label>
39
                                <label for="authormeetingcon">Author (meeting/conference): </label>
65
                                <input id="authormeetingcon" type="text" value="[% FILTER html %][% mapping.authormeetingcon | html %][% END %]" />
40
                                <input id="authormeetingcon" type="text" value="[% mapping.authormeetingcon | html %]" />
66
                            </li>
41
                            </li>
67
                        </ol>
42
                        </ol>
68
                    </div>
43
                    </div>
69
                    <div class="yui-u">
44
                    <div class="col-xs-6">
70
                        <ol>
45
                        <ol>
71
                            <li>
46
                            <li>
72
                                <label for="subject">Subject heading: </label>
47
                                <label for="subject">Subject heading: </label>
73
                                <input id="subject" type="text" value="[% FILTER html %][% mapping.subject | html %][% END %]" />
48
                                <input id="subject" type="text" value="[% mapping.subject | html %]" />
74
                            </li>
49
                            </li>
75
                            <li>
50
                            <li>
76
                                <label for="subjectsubdiv">Subject sub-division: </label>
51
                                <label for="subjectsubdiv">Subject sub-division: </label>
77
                                <input id="subjectsubdiv" type="text" value="[% FILTER html %][% mapping.subjectsubdiv | html %][% END %]" />
52
                                <input id="subjectsubdiv" type="text" value="[% mapping.subjectsubdiv | html %]" />
78
                            </li>
53
                            </li>
79
                            <li>
54
                            <li>
80
                                <label for="title">Title (any): </label>
55
                                <label for="title">Title (any): </label>
81
                                <input id="title" type="text" value="[% FILTER html %][% mapping.title | html %][% END %]" />
56
                                <input id="title" type="text" value="[% mapping.title | html %]" />
82
                            </li>
57
                            </li>
83
                            <li>
58
                            <li>
84
                                <label for="uniformtitle">Title (uniform): </label>
59
                                <label for="uniformtitle">Title (uniform): </label>
85
                                <input id="uniformtitle" type="text" value="[% FILTER html %][% mapping.uniformtitle | html %][% END %]" />
60
                                <input id="uniformtitle" type="text" value="[% mapping.uniformtitle | html %]" />
86
                            </li>
61
                            </li>
87
                        </ol>
62
                        </ol>
88
                    </div>
63
                    </div>
Lines 93-98 Link Here
93
                <a class="close cancel" href="#">Cancel</a>
68
                <a class="close cancel" href="#">Cancel</a>
94
            </fieldset>
69
            </fieldset>
95
        </form>
70
        </form>
96
    </div>
71
72
    </main>
73
74
[% MACRO jsinclude BLOCK %]
75
    <script>
76
        $(document).ready(function() {
77
            $("#form01").submit(function(event) {
78
                if(window.opener) {
79
                    var newmap=allInputs();
80
                    window.opener.$('#show_sru_fields').val(newmap);
81
                    window.close();
82
                } else {
83
                    // In this case not called as a popup. Just do nothing.
84
                    event.preventDefault();
85
                }
86
            });
87
        });
88
        function allInputs () {
89
            var aInput= new Array();
90
            $("form :input").each(function() {
91
                if( this.id && $(this).val() ) {
92
                    aInput.push(this.id+'='+$(this).val());
93
                }
94
            });
95
            return aInput.join(',');
96
        }
97
    </script>
98
[% END %]
97
99
98
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
100
[% INCLUDE 'intranet-bottom.inc' popup_window=1 %]
99
- 

Return to bug 21647