|
Lines 123-142
Link Here
|
| 123 |
<label for="config" class="required json">Configuration: </label> |
123 |
<label for="config" class="required json">Configuration: </label> |
| 124 |
<textarea name="config" id="config" class="required" cols="75" rows="10"></textarea> |
124 |
<textarea name="config" id="config" class="required" cols="75" rows="10"></textarea> |
| 125 |
<span class="required">Required</span> |
125 |
<span class="required">Required</span> |
| 126 |
<div class="hint">Provider's main configuration. <button class="more btn btn-ligth" data-bs-target="config"><i class="fa fa-caret-down"></i> More</button></div> |
126 |
<div class="hint">Provider's main configuration. <button class="more btn btn-light" data-target="config"><i class="fa fa-caret-down"></i> More</button></div> |
| 127 |
<div class="hint more-config" style="display: none"> |
127 |
<div class="hint more-config" style="display: none"> |
| 128 |
<div>This configuration differs for each protocol.</div> |
128 |
<div>This configuration differs for each protocol.</div> |
| 129 |
<div>It is recommended to add the default configuration, and then replace with appropriate values</div> |
129 |
<div>It is recommended to add the default configuration, and then replace with appropriate values</div> |
| 130 |
</div> |
130 |
</div> |
| 131 |
<div class="hint"> |
131 |
<div class="hint"> |
| 132 |
<button class="btn btn-ligth defaults" data-default-target="config" id="default-config">Add default OAuth configuration</button> |
132 |
<button class="btn btn-light defaults" data-default-target="config" id="default-config">Add default OAuth configuration</button> |
| 133 |
</div> |
133 |
</div> |
| 134 |
</li> |
134 |
</li> |
| 135 |
<li> |
135 |
<li> |
| 136 |
<label for="mapping" class="required json">Mapping: </label> |
136 |
<label for="mapping" class="required json">Mapping: </label> |
| 137 |
<textarea name="mapping" id="mapping" class="required" cols="75" rows="10"></textarea> |
137 |
<textarea name="mapping" id="mapping" class="required" cols="75" rows="10"></textarea> |
| 138 |
<span class="required">Required</span> |
138 |
<span class="required">Required</span> |
| 139 |
<div class="hint">Map provider's result to Koha patron's fields. <button class="more btn btn-ligth" data-bs-target="mapping"><i class="fa fa-caret-down"></i> More</button></div> |
139 |
<div class="hint">Map provider's result to Koha patron's fields. <button class="more btn btn-light" data-target="mapping"><i class="fa fa-caret-down"></i> More</button></div> |
| 140 |
<div class="hint more-mapping" style="display: none"> |
140 |
<div class="hint more-mapping" style="display: none"> |
| 141 |
<div>It is recommended to add the default mapping, and then modify to suit this provider's response</div> |
141 |
<div>It is recommended to add the default mapping, and then modify to suit this provider's response</div> |
| 142 |
<div>Keys represent Koha's fields, and values represent the keys in provider's result</div> |
142 |
<div>Keys represent Koha's fields, and values represent the keys in provider's result</div> |
|
Lines 145-151
Link Here
|
| 145 |
<div>If you plan to use auto register feature, either <i>userid</i> or <i>cardnumber</i> must be present in this mapping</div> |
145 |
<div>If you plan to use auto register feature, either <i>userid</i> or <i>cardnumber</i> must be present in this mapping</div> |
| 146 |
</div> |
146 |
</div> |
| 147 |
<div class="hint"> |
147 |
<div class="hint"> |
| 148 |
<button class="btn btn-ligth defaults" data-default-target="mapping" id="default-mapping">Add default OAuth mapping</button> |
148 |
<button class="btn btn-light defaults" data-default-target="mapping" id="default-mapping">Add default OAuth mapping</button> |
| 149 |
</div> |
149 |
</div> |
| 150 |
</li> |
150 |
</li> |
| 151 |
<li> |
151 |
<li> |
|
Lines 288-307
Link Here
|
| 288 |
<label for="config" class="required json">Configuration: </label> |
288 |
<label for="config" class="required json">Configuration: </label> |
| 289 |
<textarea name="config" id="config" class="required" cols="75" rows="10">[%- identity_provider.config | html -%]</textarea> |
289 |
<textarea name="config" id="config" class="required" cols="75" rows="10">[%- identity_provider.config | html -%]</textarea> |
| 290 |
<span class="required">Required</span> |
290 |
<span class="required">Required</span> |
| 291 |
<div class="hint">Provider's main configuration. <button class="more btn btn-ligth" data-bs-target="config"><i class="fa fa-caret-down"></i> More</button></div> |
291 |
<div class="hint">Provider's main configuration. <button class="more btn btn-light" data-target="config"><i class="fa fa-caret-down"></i> More</button></div> |
| 292 |
<div class="hint more-config" style="display: none"> |
292 |
<div class="hint more-config" style="display: none"> |
| 293 |
<div>This configuration differs for each protocol.</div> |
293 |
<div>This configuration differs for each protocol.</div> |
| 294 |
<div>It is recommended to add the default configuration, and then replace with appropriate values</div> |
294 |
<div>It is recommended to add the default configuration, and then replace with appropriate values</div> |
| 295 |
</div> |
295 |
</div> |
| 296 |
<div class="hint"> |
296 |
<div class="hint"> |
| 297 |
<button class="btn btn-ligth defaults" data-default-target="config" id="default-config">Add default [%- identity_provider.protocol | html -%] configuration</button> |
297 |
<button class="btn btn-light defaults" data-default-target="config" id="default-config">Add default [%- identity_provider.protocol | html -%] configuration</button> |
| 298 |
</div> |
298 |
</div> |
| 299 |
</li> |
299 |
</li> |
| 300 |
<li> |
300 |
<li> |
| 301 |
<label for="mapping" class="required json">Mapping: </label> |
301 |
<label for="mapping" class="required json">Mapping: </label> |
| 302 |
<textarea name="mapping" id="mapping" class="required" cols="75" rows="10">[%- identity_provider.mapping | html -%]</textarea> |
302 |
<textarea name="mapping" id="mapping" class="required" cols="75" rows="10">[%- identity_provider.mapping | html -%]</textarea> |
| 303 |
<span class="required">Required</span> |
303 |
<span class="required">Required</span> |
| 304 |
<div class="hint">Map provider's result to Koha patron's fields. <button class="more btn btn-ligth" data-bs-target="mapping"><i class="fa fa-caret-down"></i> More</button></div> |
304 |
<div class="hint">Map provider's result to Koha patron's fields. <button class="more btn btn-light" data-target="mapping"><i class="fa fa-caret-down"></i> More</button></div> |
| 305 |
<div class="hint more-mapping" style="display: none"> |
305 |
<div class="hint more-mapping" style="display: none"> |
| 306 |
<div>It is recommended to add the default mapping, and then modify to suit this provider's response</div> |
306 |
<div>It is recommended to add the default mapping, and then modify to suit this provider's response</div> |
| 307 |
<div>Keys represent Koha's fields, and values represent the keys in provider's result</div> |
307 |
<div>Keys represent Koha's fields, and values represent the keys in provider's result</div> |
|
Lines 310-316
Link Here
|
| 310 |
<div>If you plan to use auto register feature, either <i>userid</i> or <i>cardnumber</i> must be present in this mapping</div> |
310 |
<div>If you plan to use auto register feature, either <i>userid</i> or <i>cardnumber</i> must be present in this mapping</div> |
| 311 |
</div> |
311 |
</div> |
| 312 |
<div class="hint"> |
312 |
<div class="hint"> |
| 313 |
<button class="btn btn-ligth defaults" data-default-target="mapping" id="default-mapping">Add default [%- identity_provider.protocol | html -%] mapping</button> |
313 |
<button class="btn btn-light defaults" data-default-target="mapping" id="default-mapping">Add default [%- identity_provider.protocol | html -%] mapping</button> |
| 314 |
</div> |
314 |
</div> |
| 315 |
</li> |
315 |
</li> |
| 316 |
<li> |
316 |
<li> |
|
Lines 517-523
Link Here
|
| 517 |
$('button.more').on('click', function(event) { |
517 |
$('button.more').on('click', function(event) { |
| 518 |
event.preventDefault(); |
518 |
event.preventDefault(); |
| 519 |
var target = $(this).hide().data('target'); |
519 |
var target = $(this).hide().data('target'); |
| 520 |
$('.more-'+target).show(); |
520 |
$('.more-' + target).show(); |
| 521 |
}); |
521 |
}); |
| 522 |
|
522 |
|
| 523 |
$('#code').rules('add', { |
523 |
$('#code').rules('add', { |
| 524 |
- |
|
|