[% USE KohaDates %] [% 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 %] [% 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 %]
[% INCLUDE 'circ-menu.inc' %]
[% INCLUDE 'intranet-bottom.inc' %] [% BLOCK patron_detail %]

[% p.navn | html_entity %]

    [% IF ( p.kjonn ) %]
  1. kjonn: [% p.kjonn | html_entity %]
  2. [% END %] [% IF ( p.fdato ) %]
  3. fdato: [% p.fdato | html_entity %]
  4. [% END %] [% IF ( p.lnr ) %]
  5. lnr: [% p.lnr | html_entity %]
  6. [% END %] [% IF ( p.fnr_hash ) %]
  7. fnr_hash: [% p.fnr_hash | html_entity %]
  8. [% END %] [% IF ( p.epost ) %]
  9. epost: [% p.epost | html_entity %]
  10. [% END %] [% IF ( p.epost_sjekk ) %]
  11. epost_sjekk: [% p.epost_sjekk | html_entity %]
  12. [% END %] [% IF ( p.tlf_mobil ) %]
  13. tlf_mobil: [% p.tlf_mobil | html_entity %]
  14. [% END %] [% IF ( p.tlf_hjemme ) %]
  15. tlf_hjemme: [% p.tlf_hjemme | html_entity %]
  16. [% END %] [% IF ( p.tlf_jobb ) %]
  17. tlf_jobb: [% p.tlf_jobb | html_entity %]
  18. [% END %] [% IF ( p.p_adresse1 ) %]
  19. p_adresse1: [% p.p_adresse1 | html_entity %]
  20. [% END %] [% IF ( p.p_adresse2 ) %]
  21. p_adresse2: [% p.p_adresse2 | html_entity %]
  22. [% END %] [% IF ( p.p_postnr ) %]
  23. p_postnr: [% p.p_postnr | html_entity %]
  24. [% END %] [% IF ( p.p_sted ) %]
  25. p_sted: [% p.p_sted | html_entity %]
  26. [% END %] [% IF ( p.p_land ) %]
  27. p_land: [% p.p_land | html_entity %]
  28. [% END %] [% IF ( p.p_sjekk ) %]
  29. p_sjekk: [% p.p_sjekk | html_entity %]
  30. [% END %] [% IF ( p.m_adresse1 ) %]
  31. m_adresse1: [% p.m_adresse1 | html_entity %]
  32. [% END %] [% IF ( p.m_adresse2 ) %]
  33. m_adresse2: [% p.m_adresse2 | html_entity %]
  34. [% END %] [% IF ( p.m_postnr ) %]
  35. m_postnr: [% p.m_postnr | html_entity %]
  36. [% END %] [% IF ( p.m_sted ) %]
  37. m_sted: [% p.m_sted | html_entity %]
  38. [% END %] [% IF ( p.m_land ) %]
  39. m_land: [% p.m_land | html_entity %]
  40. [% END %] [% IF ( p.m_sjek ) %]
  41. m_sjekk: [% p.m_sjekk | html_entity %]
  42. [% END %] [% IF ( p.m_gyldig_til ) %]
  43. m_gyldig_til: [% p.m_gyldig_til | html_entity %]
  44. [% END %] [% IF ( p.pin ) %]
  45. pin: [% p.pin | html_entity %]
  46. [% END %] [% IF ( p.passord ) %]
  47. passsord: [% p.passord | html_entity %]
  48. [% END %] [% IF ( p.feide ) %]
  49. feide: [% p.feide | html_entity %]
  50. [% END %] [% IF ( p.folkeregsjekk_dato ) %]
  51. folkeregsjekk_dato: [% p.folkeregsjekk_dato | html_entity %]
  52. [% END %] [% IF ( p.hjemmebibliotek ) %]
  53. hjemmebibliotek: [% p.hjemmebibliotek | html_entity %]
  54. [% END %] [% IF ( p.opprettet ) %]
  55. opprettet: [% p.opprettet | html_entity %]
  56. [% END %] [% IF ( p.opprettet_av ) %]
  57. opprettet_av: [% p.opprettet_av | html_entity %]
  58. [% END %] [% IF ( p.sist_endret ) %]
  59. sist_endret: [% p.sist_endret | html_entity %]
  60. [% END %] [% IF ( p.sist_endret_av ) %]
  61. sist_endret_av: [% p.sist_endret_av | html_entity %]
  62. [% END %] [% IF ( p.gyldig_til ) %]
  63. gyldig_til: [% p.gyldig_til | html_entity %]
  64. [% END %] [% IF ( p.prim_kontakt ) %]
  65. prim_kontakt: [% p.prim_kontakt | html_entity %]
  66. [% END %]
as
[% END %]