Lines 1-6
Link Here
|
1 |
<!-- js-patron-title.inc --> |
1 |
<!-- js-patron-title.inc --> |
2 |
<script> |
2 |
<script> |
3 |
(function() { |
3 |
(function() { |
|
|
4 |
/** |
5 |
* Format the patron response from a Koha RESTful API request. |
6 |
* @param {Object} patron The patron json object as returned from the Koha RESTful API |
7 |
* @param {Object} config A configuration object |
8 |
* Valid keys are: `invert_name`, `display_cardnumber` and `url` |
9 |
* @return {string} The formatted HTML string |
10 |
*/ |
4 |
window.$patron_to_html = function( patron, config ) { |
11 |
window.$patron_to_html = function( patron, config ) { |
5 |
|
12 |
|
6 |
if ( patron === undefined ) { |
13 |
if ( patron === undefined ) { |
7 |
- |
|
|