[% USE raw %] [% USE Asset %] [% USE KohaDates %] [% USE Branches %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Search the Norwegian national patron database [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'patron-search.inc' %]

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 %]
  • [% patron.firstname | html %] [% patron.surname | html %] [% patron.cardnumber | html %] | 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 | html %]"

[% 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 %]
[% INCLUDE 'circ-menu.inc' %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'str/members-menu.inc' %] [% Asset.js("js/members-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %] [% BLOCK patron_detail %]

[% p.navn | html_entity %]

    [% IF ( p.kjonn ) %]
  1. Gender: [% p.kjonn | html_entity %]
  2. [% END %] [% IF ( p.fdato ) %]
  3. Date of birth: [% p.fdato | html_entity %]
  4. [% END %] [% IF ( p.lnr ) %]
  5. Card number: [% p.lnr | html_entity %]
  6. [% END %] [% IF ( p.fnr_hash ) %]
  7. Social security number hash: [% p.fnr_hash | html_entity %]
  8. [% END %] [% IF ( p.epost ) %]
  9. Email: [% p.epost | html_entity %]
  10. [% END %] [% IF ( p.epost_sjekk ) %]
  11. Email check: [% p.epost_sjekk | html_entity %]
  12. [% END %] [% IF ( p.tlf_mobil ) %]
  13. Phone - mobile: [% p.tlf_mobil | html_entity %]
  14. [% END %] [% IF ( p.tlf_hjemme ) %]
  15. Phone - home: [% p.tlf_hjemme | html_entity %]
  16. [% END %] [% IF ( p.tlf_jobb ) %]
  17. Phone - work: [% p.tlf_jobb | html_entity %]
  18. [% END %] [% IF ( p.p_adresse1 ) %]
  19. Address: [% p.p_adresse1 | html_entity %]
  20. [% END %] [% IF ( p.p_adresse2 ) %]
  21. Address 2: [% p.p_adresse2 | html_entity %]
  22. [% END %] [% IF ( p.p_postnr ) %]
  23. Zip/Postal code: [% p.p_postnr | html_entity %]
  24. [% END %] [% IF ( p.p_sted ) %]
  25. City: [% p.p_sted | html_entity %]
  26. [% END %] [% IF ( p.p_land ) %]
  27. Country: [% p.p_land | html_entity %]
  28. [% END %] [% IF ( p.p_sjekk ) %]
  29. Check: [% p.p_sjekk | html_entity %]
  30. [% END %] [% IF ( p.m_adresse1 ) %]
  31. Address: [% p.m_adresse1 | html_entity %]
  32. [% END %] [% IF ( p.m_adresse2 ) %]
  33. Address 2: [% p.m_adresse2 | html_entity %]
  34. [% END %] [% IF ( p.m_postnr ) %]
  35. Zip/Postal code: [% p.m_postnr | html_entity %]
  36. [% END %] [% IF ( p.m_sted ) %]
  37. City: [% p.m_sted | html_entity %]
  38. [% END %] [% IF ( p.m_land ) %]
  39. Country: [% p.m_land | html_entity %]
  40. [% END %] [% IF ( p.m_sjek ) %]
  41. Check: [% p.m_sjekk | html_entity %]
  42. [% END %] [% IF ( p.m_gyldig_til ) %]
  43. Valid until: [% p.m_gyldig_til | html_entity %]
  44. [% END %] [% IF ( p.pin ) %]
  45. PIN: [% p.pin | html_entity %]
  46. [% END %] [% IF ( p.passord ) %]
  47. Password: [% p.passord | html_entity %]
  48. [% END %] [% IF ( p.feide ) %]
  49. FEIDE: [% p.feide | html_entity %]
  50. [% END %] [% IF ( p.folkeregsjekk_dato ) %]
  51. Population registry date check: [% p.folkeregsjekk_dato | html_entity %]
  52. [% END %] [% IF ( p.hjemmebibliotek ) %]
  53. Home library: [% p.hjemmebibliotek | html_entity %]
  54. [% END %] [% IF ( p.opprettet ) %]
  55. Created: [% p.opprettet | html_entity %]
  56. [% END %] [% IF ( p.opprettet_av ) %]
  57. Created by: [% p.opprettet_av | html_entity %]
  58. [% END %] [% IF ( p.sist_endret ) %]
  59. Last changed: [% p.sist_endret | html_entity %]
  60. [% END %] [% IF ( p.sist_endret_av ) %]
  61. Last changed by: [% p.sist_endret_av | html_entity %]
  62. [% END %] [% IF ( p.gyldig_til ) %]
  63. Valid until: [% p.gyldig_til | html_entity %]
  64. [% END %] [% IF ( p.prim_kontakt ) %]
  65. Primary contact: [% p.prim_kontakt | html_entity %]
  66. [% END %]
as
[% END %]