6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Search the Norwegian national patron database</title>
8 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="pat_nl_search" class="pat">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'patron-search.inc' %]
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> › Search the Norwegian national patron database</div>
16 <div id="doc3" class="yui-t2">
21 <h1>Search the Norwegian national patron database</h1>
24 <div class="dialog alert">
25 [% IF ( error.nlenabled == 0 ) %]<p>You need to activate this function with the NorwegianPatronDBEnable system preference in order to use it.</p>[% END %]
26 [% IF ( error.endpoint == 0 ) %]<p>You need to specify an endpoint with the NorwegianPatronDBEndpoint system preference.</p>[% END %]
27 [% IF ( error.userpass == 0 ) %]<p>You need to fill in the NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences in order to use this function.</p>[% END %]
28 [% IF ( error == 'COULD_NOT_ADD_PATRON' ) %]<p>Could not add a new patron.</p>[% END %]
31 [% SET nl_search_form_title='Search' %]
32 [% INCLUDE 'nl-search-form.tt' %]
35 [% IF ( local_result ) %]
36 <h3>Existing patrons</h3>
38 [% FOREACH patron IN local_result %]
39 <li>[% patron.firstname | html %] [% patron.surname | html %] [% patron.cardnumber | html %] |
40 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">Details</a> |
41 <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber | html %]">Edit</a> |
42 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber | html %]">Check out</a>
50 [% IF result.antall_poster_returnert == 0 %]
52 <div class="dialog alert">
53 <p>No results found in the Norwegian national patron database. Message: "[% result.melding | html %]"</p>
58 <h3>Results from the Norwegian national patron database</h3>
60 <div class="yui-u first">
61 [% PROCESS patron_detail p=result.respons_poster.0 %]
63 [% IF ( result.respons_poster.1 ) %]
65 [% PROCESS patron_detail p=result.respons_poster.1 %]
78 [% INCLUDE 'circ-menu.inc' %]
82 [% MACRO jsinclude BLOCK %]
83 [% INCLUDE 'str/members-menu.inc' %]
84 [% Asset.js("js/members-menu.js") | $raw %]
87 [% INCLUDE 'intranet-bottom.inc' %]
89 [% BLOCK patron_detail %]
91 <h4>[% p.navn | html_entity %]</h4>
93 [% IF ( p.kjonn ) %]<li><span class="label">Gender:</span> [% p.kjonn | html_entity %]</li>[% END %]
94 [% IF ( p.fdato ) %]<li><span class="label">Date of birth:</span> [% p.fdato | html_entity %]</li>[% END %]
95 [% IF ( p.lnr ) %]<li><span class="label">Card number:</span> [% p.lnr | html_entity %]</li>[% END %]
96 [% IF ( p.fnr_hash ) %]<li><span class="label">Social security number hash:</span> [% p.fnr_hash | html_entity %]</li>[% END %]
98 [% IF ( p.epost ) %]<li><span class="label">Email:</span> [% p.epost | html_entity %]</li>[% END %]
99 [% IF ( p.epost_sjekk ) %]<li><span class="label">Email check:</span> [% p.epost_sjekk | html_entity %]</li>[% END %]
101 [% IF ( p.tlf_mobil ) %]<li><span class="label">Phone - mobile:</span> [% p.tlf_mobil | html_entity %]</li>[% END %]
102 [% IF ( p.tlf_hjemme ) %]<li><span class="label">Phone - home:</span> [% p.tlf_hjemme | html_entity %]</li>[% END %]
103 [% IF ( p.tlf_jobb ) %]<li><span class="label">Phone - work:</span> [% p.tlf_jobb | html_entity %]</li>[% END %]
105 [% IF ( p.p_adresse1 ) %]<li><span class="label">Address:</span> [% p.p_adresse1 | html_entity %]</li>[% END %]
106 [% IF ( p.p_adresse2 ) %]<li><span class="label">Address 2:</span> [% p.p_adresse2 | html_entity %]</li>[% END %]
107 [% IF ( p.p_postnr ) %]<li><span class="label">Zip/Postal code:</span> [% p.p_postnr | html_entity %]</li>[% END %]
108 [% IF ( p.p_sted ) %]<li><span class="label">City:</span> [% p.p_sted | html_entity %]</li>[% END %]
109 [% IF ( p.p_land ) %]<li><span class="label">Country:</span> [% p.p_land | html_entity %]</li>[% END %]
110 [% IF ( p.p_sjekk ) %]<li><span class="label">Check:</span> [% p.p_sjekk | html_entity %]</li>[% END %]
112 [% IF ( p.m_adresse1 ) %]<li><span class="label">Address:</span> [% p.m_adresse1 | html_entity %]</li>[% END %]
113 [% IF ( p.m_adresse2 ) %]<li><span class="label">Address 2:</span> [% p.m_adresse2 | html_entity %]</li>[% END %]
114 [% IF ( p.m_postnr ) %]<li><span class="label">Zip/Postal code:</span> [% p.m_postnr | html_entity %]</li>[% END %]
115 [% IF ( p.m_sted ) %]<li><span class="label">City:</span> [% p.m_sted | html_entity %]</li>[% END %]
116 [% IF ( p.m_land ) %]<li><span class="label">Country:</span> [% p.m_land | html_entity %]</li>[% END %]
117 [% IF ( p.m_sjek ) %]<li><span class="label">Check:</span> [% p.m_sjekk | html_entity %]</li>[% END %]
118 [% IF ( p.m_gyldig_til ) %]<li><span class="label">Valid until:</span> [% p.m_gyldig_til | html_entity %]</li>[% END %]
120 [% IF ( p.pin ) %]<li><span class="label">PIN:</span> [% p.pin | html_entity %]</li>[% END %]
121 [% IF ( p.passord ) %]<li><span class="label">Password:</span> [% p.passord | html_entity %]</li>[% END %]
122 [% IF ( p.feide ) %]<li><span class="label">FEIDE:</span> [% p.feide | html_entity %]</li>[% END %]
123 [% IF ( p.folkeregsjekk_dato ) %]<li><span class="label">Population registry date check:</span> [% p.folkeregsjekk_dato | html_entity %]</li>[% END %]
125 [% IF ( p.hjemmebibliotek ) %]<li><span class="label">Home library:</span> [% p.hjemmebibliotek | html_entity %]</li>[% END %]
126 [% IF ( p.opprettet ) %]<li><span class="label">Created:</span> [% p.opprettet | html_entity %]</li>[% END %]
127 [% IF ( p.opprettet_av ) %]<li><span class="label">Created by:</span> [% p.opprettet_av | html_entity %]</li>[% END %]
128 [% IF ( p.sist_endret ) %]<li><span class="label">Last changed:</span> [% p.sist_endret | html_entity %]</li>[% END %]
129 [% IF ( p.sist_endret_av ) %]<li><span class="label">Last changed by:</span> [% p.sist_endret_av | html_entity %]</li>[% END %]
130 [% IF ( p.gyldig_til ) %]<li><span class="label">Valid until:</span> [% p.gyldig_til | html_entity %]</li>[% END %]
132 [% IF ( p.prim_kontakt ) %]<li><span class="label">Primary contact:</span> [% p.prim_kontakt | html_entity %]</li>[% END %]
135 <form action="nl-search.pl" method="POST">
136 <input type="hidden" name="op" value="save" />
137 <input type="hidden" name="navn" value="[% p.navn | html_entity %]" />
138 <input type="hidden" name="kjonn" value="[% p.kjonn | html_entity %]" />
139 <input type="hidden" name="fdato" value="[% p.fdato | html_entity %]" />
140 <input type="hidden" name="lnr" value="[% p.lnr | html_entity %]" />
141 <input type="hidden" name="fnr_hash" value="[% p.fnr_hash | html_entity %]" />
142 <input type="hidden" name="p_adresse1" value="[% p.p_adresse1 | html_entity %]" />
143 <input type="hidden" name="p_adresse2" value="[% p.p_adresse2 | html_entity %]" />
144 <input type="hidden" name="p_postnr" value="[% p.p_postnr | html_entity %]" />
145 <input type="hidden" name="p_sted" value="[% p.p_sted | html_entity %]" />
146 <input type="hidden" name="p_land" value="[% p.p_land | html_entity %]" />
147 <input type="hidden" name="p_sjekk" value="[% p.p_sjekk | html_entity %]" />
148 <input type="hidden" name="m_adresse1" value="[% p.m_adresse1 | html_entity %]" />
149 <input type="hidden" name="m_adresse2" value="[% p.m_adresse2 | html_entity %]" />
150 <input type="hidden" name="m_postnr" value="[% p.m_postnr | html_entity %]" />
151 <input type="hidden" name="m_sted" value="[% p.m_sted | html_entity %]" />
152 <input type="hidden" name="m_land" value="[% p.m_land | html_entity %]" />
153 <input type="hidden" name="m_sjekk" value="[% p.m_sjekk | html_entity %]" />
154 <input type="hidden" name="m_gyldig_til" value="[% p.m_gyldig_til | html_entity %]" />
155 <input type="hidden" name="pin" value="[% p.pin | html %]" />
156 <input type="hidden" name="passord" value="[% p.passord | html_entity %]" />
157 <input type="hidden" name="feide" value="[% p.feide | html_entity %]" />
158 <input type="hidden" name="folkeregsjekk_dato" value="[% p.folkeregsjekk_dato | html_entity %]" />
159 <input type="hidden" name="hjemmebibliotek" value="[% p.hjemmebibliotek | html_entity %]" />
160 <input type="hidden" name="opprettet" value="[% p.opprettet | html_entity %]" />
161 <input type="hidden" name="opprettet_av" value="[% p.opprettet_av | html_entity %]" />
162 <input type="hidden" name="sist_endret" value="[% p.sist_endret | html_entity %]" />
163 <input type="hidden" name="sist_endret_av" value="[% p.sist_endret_av | html_entity %]" />
164 <input type="hidden" name="gyldig_til" value="[% p.gyldig_til | html_entity %]" />
165 <input type="hidden" name="epost" value="[% p.epost | html_entity %]" />
166 <input type="hidden" name="epost_sjekk" value="[% p.epost_sjekk | html_entity %]" />
167 <input type="hidden" name="tlf_mobil" value="[% p.tlf_mobil | html_entity %]" />
168 <input type="hidden" name="tlf_hjemme" value="[% p.tlf_hjemme | html_entity %]" />
169 <input type="hidden" name="tlf_jobb" value="[% p.tlf_jobb | html_entity %]" />
170 <input type="hidden" name="prim_kontakt" value="[% p.prim_kontakt | html_entity %]" />
171 <input type="submit" value="Import this patron" />
173 <select name="categorycode">
174 [% FOREACH c IN categories %]
175 <option value="[% c.categorycode | html %]">[% c.description | html %]</option>