Bug 10904: Limit patron update request management by branch
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / members / nl-search.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Search the Norwegian national patron database</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="pat_nl_search" class="pat">
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'patron-search.inc' %]
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a>  &rsaquo; Search the Norwegian national patron database</div>
11
12 <div id="doc3" class="yui-t2">
13     <div id="bd">
14         <div id="yui-main">
15             <div class="yui-b">
16
17                 <h1>Search the Norwegian national patron database</h1>
18
19                 [% IF (error) %]
20                     <div class="dialog alert">
21                     [% IF ( error.nlenabled == 0 ) %]<p>You need to activate this function with the NorwegianPatronDBEnable system preference in order to use it.</p>[% END %]
22                     [% IF ( error.endpoint  == 0 ) %]<p>You need to specify an endpoint with the NorwegianPatronDBEndpoint system preference.</p>[% END %]
23                     [% IF ( error.userpass  == 0 ) %]<p>You need to fill in the NorwegianPatronDBUsername and NorwegianPatronDBPassword system preferences in order to use this function.</p>[% END %]
24                     [% IF ( error == 'COULD_NOT_ADD_PATRON' ) %]<p>Could not add a new patron.</p>[% END %]
25                     </div>
26                 [% ELSE %]
27                     [% SET nl_search_form_title='Search' %]
28                     [% INCLUDE 'nl-search-form.tt' %]
29                 [% END %]
30
31                 [% IF ( local_result ) %]
32                     <h3>Existing patrons</h3>
33                     <ul>
34                         [% FOREACH patron IN local_result %]
35                             <li>[% patron.firstname %] [% patron.surname %] [% patron.cardnumber %] |
36                                 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber %]">Details</a> |
37                                 <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=[% patron.borrowernumber %]">Edit</a> |
38                                 <a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% patron.borrowernumber %]">Check out</a>
39                             </li>
40                         [% END %]
41                     </ul>
42                 [% END %]
43
44                 [% IF ( result ) %]
45
46                     [% IF result.antall_poster_returnert == 0 %]
47
48                         <div class="dialog alert">
49                             <p>No results found in the Norwegian national patron database. Message: "[% result.melding %]"</p>
50                         </div>
51
52                     [% ELSE %]
53
54                         <h3>Results from the Norwegian national patron database</h3>
55                         <div class="yui-g">
56                         <div class="yui-u first">
57                         [% PROCESS patron_detail p=result.respons_poster.0 %]
58                         </div>
59                         [% IF ( result.respons_poster.1 ) %]
60                             <div class="yui-u">
61                             [% PROCESS patron_detail p=result.respons_poster.1 %]
62                             </div>
63                         [% END %]
64                         </div>
65
66                     [% END %]
67
68                 [% END %]
69
70             </div>
71         </div>
72
73         <div class="yui-b">
74             [% INCLUDE 'circ-menu.inc' %]
75         </div>
76     </div>
77 [% INCLUDE 'intranet-bottom.inc' %]
78
79 [% BLOCK patron_detail %]
80 <div class="rows">
81 <h4>[% p.navn | html_entity %]</h4>
82 <ol>
83 [% IF ( p.kjonn ) %]<li><span class="label">kjonn: </span>[% p.kjonn | html_entity %]</li>[% END %]
84 [% IF ( p.fdato ) %]<li><span class="label">fdato: </span>[% p.fdato | html_entity %]</li>[% END %]
85 [% IF ( p.lnr ) %]<li><span class="label">lnr: </span>[% p.lnr | html_entity %]</li>[% END %]
86 [% IF ( p.fnr_hash ) %]<li><span class="label">fnr_hash: </span>[% p.fnr_hash | html_entity %]</li>[% END %]
87
88 [% IF ( p.epost ) %]<li><span class="label">epost: </span>[% p.epost | html_entity %]</li>[% END %]
89 [% IF ( p.epost_sjekk ) %]<li><span class="label">epost_sjekk: </span>[% p.epost_sjekk | html_entity %]</li>[% END %]
90
91 [% IF ( p.tlf_mobil ) %]<li><span class="label">tlf_mobil: </span>[% p.tlf_mobil | html_entity %]</li>[% END %]
92 [% IF ( p.tlf_hjemme ) %]<li><span class="label">tlf_hjemme: </span>[% p.tlf_hjemme | html_entity %]</li>[% END %]
93 [% IF ( p.tlf_jobb ) %]<li><span class="label">tlf_jobb: </span>[% p.tlf_jobb | html_entity %]</li>[% END %]
94
95 [% IF ( p.p_adresse1 ) %]<li><span class="label">p_adresse1: </span>[% p.p_adresse1 | html_entity %]</li>[% END %]
96 [% IF ( p.p_adresse2 ) %]<li><span class="label">p_adresse2: </span>[% p.p_adresse2 | html_entity %]</li>[% END %]
97 [% IF ( p.p_postnr ) %]<li><span class="label">p_postnr: </span>[% p.p_postnr | html_entity %]</li>[% END %]
98 [% IF ( p.p_sted ) %]<li><span class="label">p_sted: </span>[% p.p_sted | html_entity %]</li>[% END %]
99 [% IF ( p.p_land ) %]<li><span class="label">p_land: </span>[% p.p_land | html_entity %]</li>[% END %]
100 [% IF ( p.p_sjekk ) %]<li><span class="label">p_sjekk: </span>[% p.p_sjekk | html_entity %]</li>[% END %]
101
102 [% IF ( p.m_adresse1 ) %]<li><span class="label">m_adresse1: </span>[% p.m_adresse1 | html_entity %]</li>[% END %]
103 [% IF ( p.m_adresse2 ) %]<li><span class="label">m_adresse2: </span>[% p.m_adresse2 | html_entity %]</li>[% END %]
104 [% IF ( p.m_postnr ) %]<li><span class="label">m_postnr: </span>[% p.m_postnr | html_entity %]</li>[% END %]
105 [% IF ( p.m_sted ) %]<li><span class="label">m_sted: </span>[% p.m_sted | html_entity %]</li>[% END %]
106 [% IF ( p.m_land ) %]<li><span class="label">m_land: </span>[% p.m_land | html_entity %]</li>[% END %]
107 [% IF ( p.m_sjek ) %]<li><span class="label">m_sjekk: </span>[% p.m_sjekk | html_entity %]</li>[% END %]
108 [% IF ( p.m_gyldig_til ) %]<li><span class="label">m_gyldig_til: </span>[% p.m_gyldig_til | html_entity %]</li>[% END %]
109
110 [% IF ( p.pin ) %]<li><span class="label">pin: </span>[% p.pin | html_entity %]</li>[% END %]
111 [% IF ( p.passord ) %]<li><span class="label">passsord: </span>[% p.passord | html_entity %]</li>[% END %]
112 [% IF ( p.feide ) %]<li><span class="label">feide: </span>[% p.feide | html_entity %]</li>[% END %]
113 [% IF ( p.folkeregsjekk_dato ) %]<li><span class="label">folkeregsjekk_dato: </span>[% p.folkeregsjekk_dato | html_entity %]</li>[% END %]
114
115 [% IF ( p.hjemmebibliotek ) %]<li><span class="label">hjemmebibliotek: </span>[% p.hjemmebibliotek | html_entity %]</li>[% END %]
116 [% IF ( p.opprettet ) %]<li><span class="label">opprettet: </span>[% p.opprettet | html_entity %]</li>[% END %]
117 [% IF ( p.opprettet_av ) %]<li><span class="label">opprettet_av: </span>[% p.opprettet_av | html_entity %]</li>[% END %]
118 [% IF ( p.sist_endret ) %]<li><span class="label">sist_endret: </span>[% p.sist_endret | html_entity %]</li>[% END %]
119 [% IF ( p.sist_endret_av ) %]<li><span class="label">sist_endret_av: </span>[% p.sist_endret_av | html_entity %]</li>[% END %]
120 [% IF ( p.gyldig_til ) %]<li><span class="label">gyldig_til: </span>[% p.gyldig_til | html_entity %]</li>[% END %]
121
122 [% IF ( p.prim_kontakt ) %]<li><span class="label">prim_kontakt: </span>[% p.prim_kontakt | html_entity %]</li>[% END %]
123 </ol>
124
125 <form action="nl-search.pl" method="POST">
126 <input type="hidden" name="op" value="save" />
127 <input type="hidden" name="navn" value="[% p.navn | html_entity %]" />
128 <input type="hidden" name="kjonn" value="[% p.kjonn | html_entity %]" />
129 <input type="hidden" name="fdato" value="[% p.fdato | html_entity %]" />
130 <input type="hidden" name="lnr" value="[% p.lnr | html_entity %]" />
131 <input type="hidden" name="fnr_hash" value="[% p.fnr_hash | html_entity %]" />
132 <input type="hidden" name="p_adresse1" value="[% p.p_adresse1 | html_entity %]" />
133 <input type="hidden" name="p_adresse2" value="[% p.p_adresse2 | html_entity %]" />
134 <input type="hidden" name="p_postnr" value="[% p.p_postnr | html_entity %]" />
135 <input type="hidden" name="p_sted" value="[% p.p_sted | html_entity %]" />
136 <input type="hidden" name="p_land" value="[% p.p_land | html_entity %]" />
137 <input type="hidden" name="p_sjekk" value="[% p.p_sjekk | html_entity %]" />
138 <input type="hidden" name="m_adresse1" value="[% p.m_adresse1 | html_entity %]" />
139 <input type="hidden" name="m_adresse2" value="[% p.m_adresse2 | html_entity %]" />
140 <input type="hidden" name="m_postnr" value="[% p.m_postnr | html_entity %]" />
141 <input type="hidden" name="m_sted" value="[% p.m_sted | html_entity %]" />
142 <input type="hidden" name="m_land" value="[% p.m_land | html_entity %]" />
143 <input type="hidden" name="m_sjekk" value="[% p.m_sjekk | html_entity %]" />
144 <input type="hidden" name="m_gyldig_til" value="[% p.m_gyldig_til | html_entity %]" />
145 <input type="hidden" name="pin" value="[% p.pin %]" />
146 <input type="hidden" name="passord" value="[% p.passord | html_entity %]" />
147 <input type="hidden" name="feide" value="[% p.feide | html_entity %]" />
148 <input type="hidden" name="folkeregsjekk_dato" value="[% p.folkeregsjekk_dato | html_entity %]" />
149 <input type="hidden" name="hjemmebibliotek" value="[% p.hjemmebibliotek | html_entity %]" />
150 <input type="hidden" name="opprettet" value="[% p.opprettet | html_entity %]" />
151 <input type="hidden" name="opprettet_av" value="[% p.opprettet_av | html_entity %]" />
152 <input type="hidden" name="sist_endret" value="[% p.sist_endret | html_entity %]" />
153 <input type="hidden" name="sist_endret_av" value="[% p.sist_endret_av | html_entity %]" />
154 <input type="hidden" name="gyldig_til" value="[% p.gyldig_til | html_entity %]" />
155 <input type="hidden" name="epost" value="[% p.epost | html_entity %]" />
156 <input type="hidden" name="epost_sjekk" value="[% p.epost_sjekk | html_entity %]" />
157 <input type="hidden" name="tlf_mobil" value="[% p.tlf_mobil | html_entity %]" />
158 <input type="hidden" name="tlf_hjemme" value="[% p.tlf_hjemme | html_entity %]" />
159 <input type="hidden" name="tlf_jobb" value="[% p.tlf_jobb | html_entity %]" />
160 <input type="hidden" name="prim_kontakt" value="[% p.prim_kontakt | html_entity %]" />
161 <input type="submit" value="Import this patron" />
162 as
163 <select name="categorycode">
164 [% FOREACH c IN categories %]
165     <option value="[% c.categorycode %]">[% c.description %]</option>
166 [% END %]
167 </select>
168 </form>
169 </div>
170 [% END %]