Search the Norwegian national patron database
[% IF (error) %]
[% IF ( error.nlenabled == 0 ) %]
You need to activate this function with the NorwegianPatronDBEnable system preference in order to use it.
[% END %]
[% IF ( error.endpoint == 0 ) %]
You need to specify an endpoint with the NorwegianPatronDBEndpoint system preference.
[% END %]
[% IF ( error.userpass == 0 ) %]
You need to fill in the NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences in order to use this function.
[% END %]
[% IF ( error == 'COULD_NOT_ADD_PATRON' ) %]
Could not add a new patron.
[% END %]
[% ELSE %]
[% SET nl_search_form_title='Search' %]
[% INCLUDE 'nl-search-form.tt' %]
[% END %]
[% IF ( local_result ) %]
Existing patrons
[% FOREACH patron IN local_result %]
[%# Find the category_type %]
[% FOREACH category IN categories %]
[% IF category.categorycode == patron.categorycode %]
[% patron.category_type = category.category_type %]
[% END %]
[% END %]
- [% patron.firstname %] [% patron.surname %] [% patron.cardnumber %] |
Details |
Edit |
Check out
[% END %]
[% END %]
[% IF ( result ) %]
[% IF result.antall_poster_returnert == 0 %]
No results found in the Norwegian national patron database. Message: "[% result.melding %]"
[% ELSE %]
Results from the Norwegian national patron database
[% PROCESS patron_detail p=result.respons_poster.0 %]
[% IF ( result.respons_poster.1 ) %]
[% PROCESS patron_detail p=result.respons_poster.1 %]
[% END %]
[% END %]
[% END %]