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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-14 / +17 lines)
Lines 76-81 $(document).ready(function() { Link Here
76
        }
76
        }
77
    });
77
    });
78
78
79
    $('#duplicate').on('click', function() {
80
        $("input[name='op']").val('modify');
81
        $("input[name='borrowernumber']").val('[% check_member %]');
82
        $('#entryform').submit();
83
    });
84
85
    $('#not-duplicate').on('click', function() {
86
        $("input[name='nodouble']").val('1');
87
        $('#entryform').submit();
88
    });
79
});
89
});
80
90
81
        var MSG_SEPARATOR = _("Separator must be / in field %s");
91
        var MSG_SEPARATOR = _("Separator must be / in field %s");
Lines 138-155 $(document).ready(function() { Link Here
138
			<div class="dialog alert">
148
			<div class="dialog alert">
139
				<h3>Duplicate patron record?</h3>
149
				<h3>Duplicate patron record?</h3>
140
                <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&amp;borrowernumber=[% check_member %]');return false;" >View existing record</a></p>
150
                <p><a class="popup" href="#" onclick="Dopop('moremember.pl?print=brief&amp;borrowernumber=[% check_member %]');return false;" >View existing record</a></p>
141
                <form action="/cgi-bin/koha/members/memberentry.pl" method="get">
151
                <button id="duplicate" type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate.
142
                    <input type="hidden" name="op" value="modify" />
152
                Edit existing record</button>
143
                    <input type="hidden" name="borrowernumber" value="[% check_member %]" />
144
                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
145
                    <button type="submit" class="new"><i class="fa fa-pencil"></i> It is a duplicate.
146
                    Edit existing record</button>
147
                </form>
148
153
149
                <form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off">
154
                <button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate.
150
				<input type="hidden" name="nodouble" value="1" />
151
                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
152
                <button type="submit" class="new"><i class="fa fa-plus"></i> Not a duplicate.
153
                Save as new record</button>
155
                Save as new record</button>
154
			</div>
156
			</div>
155
	[% END %]
157
	[% END %]
Lines 222-229 $(document).ready(function() { Link Here
222
[% END %]
224
[% END %]
223
</div>
225
</div>
224
226
225
[% UNLESS ( check_member ) %]<form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" >
227
<form name="form" id="entryform"  action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" >
226
<input type="hidden" name="nodouble"  value="[% nodouble %]" /> [% END %]
228
[% UNLESS ( check_member ) %]
229
    <input type="hidden" name="nodouble"  value="[% nodouble %]" />
230
[% END %]
227
<!--    field always hidden in different form (1,2,3) -->
231
<!--    field always hidden in different form (1,2,3) -->
228
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
232
<input type="hidden" name="BorrowerMandatoryField" value="[% BorrowerMandatoryField %]" />
229
<input type="hidden" name="category_type" value="[% category_type %]" />
233
<input type="hidden" name="category_type" value="[% category_type %]" />
230
- 

Return to bug 19443