Revert "Fix for Bug 3659, Add place hold option from patron checkout tab"
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / csv-profiles.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo; Tools &rsaquo; CSV export profiles</title><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2 <script type="text/javascript">
3 //<![CDATA[
4 function reloadPage(p) {
5         var id = p.value;
6         if (id != 0) { document.location = "/cgi-bin/koha/tools/csv-profiles.pl?id=" + id; }
7 }
8      $(document).ready(function() {
9         $('#csvexporttabs > ul').tabs();
10      });
11 //]]>
12 </script>
13 </head>
14
15 <body>
16         <!-- TMPL_INCLUDE NAME="header.inc" -->
17         <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
18
19         <div id="breadcrumbs">
20                 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
21                 &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
22                 &rsaquo; CSV export profiles
23         </div>
24
25         <div id="doc3" class="yui-t2">
26                 <div id="bd">
27                         <div id="yui-main">
28                                 <div class="yui-b">
29                                     <!-- TMPL_IF EXPR="success || error" -->
30                                             <!-- TMPL_IF NAME="success" -->
31                 <!-- TMPL_IF EXPR="action eq 'create'" --><p>The new CSV profile "<!-- TMPL_VAR NAME="profile_name" -->" has been successfully created.</p><!-- /TMPL_IF -->
32                 <!-- TMPL_IF EXPR="action eq 'edit'"   --><p>The CSV profile has been successfully modified.</p><!-- /TMPL_IF -->
33                 <!-- TMPL_IF EXPR="action eq 'delete'" --><p>The CSV profile has been successfully deleted.</p><!-- /TMPL_IF -->
34                                             <!-- TMPL_ELSE -->
35                 <!-- TMPL_IF EXPR="action eq 'create'" --><p class="error">The new CSV profile "<!-- TMPL_VAR NAME="profile_name" -->" has not been created.</p><!-- /TMPL_IF -->
36                 <!-- TMPL_IF EXPR="action eq 'edit'"   --><p class="error">The CSV profile has not been modified.</p><!-- /TMPL_IF -->
37                 <!-- TMPL_IF EXPR="action eq 'delete'" --><p class="error">The CSV profile has not been deleted.</p><!-- /TMPL_IF -->
38                                             <!-- /TMPL_IF -->
39                                     <!-- /TMPL_IF -->
40 <div id="csvexporttabs" class="toptabs">
41 <ul>
42         <li><a href="csv-profiles.pl#csvnew">New profile</a></li>
43         <!-- TMPL_IF NAME="existing_profiles" -->
44         <!-- TMPL_IF NAME="selected_profile_id" -->
45         <li class="ui-tabs-selected">
46         <!-- TMPL_ELSE -->
47         <li>
48          <!-- /TMPL_IF -->
49         <a href="csv-profiles.pl#csvedit">Edit existing profile</a></li> <!-- /TMPL_IF -->
50 </ul>
51         <div id="csvnew">
52                                         <h3>New CSV export profile</h3>
53
54                                              <form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
55                                                 <fieldset class="rows">
56                                                     <ol><li><label for="profile_name" class="required">Profile name: </label>
57                                                     <input type="text" id="profile_name" name="profile_name" /></li>
58
59                                                     <li><label for="profile_description">Profile description: </label>
60                                                     <textarea cols="50" rows="2" name="profile_description" id="profile_description"></textarea></li>
61
62                                                     <li><label for="new_csv_separator">CSV separator: </label>
63                                                     <select name="csv_separator" id="new_csv_separator">
64                                                         <option value=":">Colon (:)</option>
65                                                         <option value="," selected="selected">Comma (,)</option>
66                                                         <option value="|">Pipe (|)</option>
67                                                         <option value=";">Semi-colon (;)</option>
68                                                         <option value="#">Sharp (#)</option>
69                                                         <option value=" ">Space ( )</option>
70                                                         <option value="\t">Tabulation (\t)</option>
71                                                         <option value="\n">New line (\n)</option>
72                                                     </select>
73                             </li>
74
75                                                     <li><label for="new_field_separator">Field separator: </label>
76                                                     <select name="field_separator" id="new_field_separator">
77                                                         <option value=":">Colon (:)</option>
78                                                         <option value=",">Comma (,)</option>
79                                                         <option value="|">Pipe (|)</option>
80                                                         <option value=";">Semi-colon (;)</option>
81                                                         <option value="#" selected="selected">Sharp (#)</option>
82                                                         <option value=" ">Space ( )</option>
83                                                         <option value="\t">Tabulation (\t)</option>
84                                                         <option value="\n">New line (\n)</option>
85                                                     </select>
86                             </li>
87
88                                                     <li><label for="new_subfield_separator">Subfield separator: </label>
89                                                     <select name="subfield_separator" id="new_subfield_separator">
90                                                         <option value=":">Colon (:)</option>
91                                                         <option value=",">Comma (,)</option>
92                                                         <option value="|" selected="selected">Pipe (|)</option>
93                                                         <option value=";">Semi-colon (;)</option>
94                                                         <option value="#">Sharp (#)</option>
95                                                         <option value=" ">Space ( )</option>
96                                                         <option value="\t">Tabulation (\t)</option>
97                                                         <option value="\n">New line (\n)</option>
98                                                     </select>
99                             </li>
100                                         
101                                                     <li><label for="new_encoding">Encoding: </label>
102                                                     <select name="encoding" id="new_encoding">
103                                                         <!-- TMPL_LOOP NAME="encodings" -->
104                                                             <option<!-- TMPL_IF EXPR="encoding eq 'utf8'" --> selected="selected" <!-- /TMPL_IF -->><!-- TMPL_VAR NAME="encoding" --></option>
105                                                         <!-- /TMPL_LOOP -->
106                                                     </select></li>
107
108
109                                                     <li><label for="new_profile_content">Profile marcfields: </label>
110                                                     <textarea cols="50" rows="2" name="profile_content" id="new_profile_content"></textarea>
111                                                     <p>You have to define which fields or subfields you want to export, separated by pipes.</p>
112                                                     <p>You can also use your own headers (instead of the ones from koha) by prefixing the field number with an header, followed by the equal sign.</p>
113                                                     <p>Example: Personal name=200|Entry element=210$a|300|009</p>
114                                                     </li>
115                                                     </ol>
116                                                 </fieldset>
117                                                 <fieldset class="action"><input type="hidden" name="action" value="create" />
118                                                 <input type="submit" value="Submit" /></fieldset>
119                                             </form>
120                                             <br style="clear:both;" />
121 </div>
122                                         <!-- TMPL_IF NAME="existing_profiles" -->
123 <div id="csvedit">
124                                         <h3>Modify or delete a CSV export profile</h3>
125
126                                             <form action="/cgi-bin/koha/tools/csv-profiles.pl" method="post">
127                                                 <fieldset class="rows">
128                                                     <ol><li><label for="modify_profile_name">Profile name: </label>
129                                                     <select id="modify_profile_name" name="profile_name" onchange="javascript:reloadPage(this)">
130                                                         <option value="0">-- Choose One --</option>
131                                                         <!-- TMPL_LOOP NAME="existing_profiles" -->
132                                                         <!-- TMPL_IF EXPR="export_format_id eq selected_profile_id" -->
133                                                         <option value="<!-- TMPL_VAR NAME="export_format_id" -->" selected="selected"><!-- TMPL_VAR NAME="profile" --></option>
134                                                         <!--TMPL_ELSE -->
135                                                         <option value="<!-- TMPL_VAR NAME="export_format_id" -->"><!-- TMPL_VAR NAME="profile" --></option>
136                                                         <!-- /TMPL_IF-->
137                                                         <!-- /TMPL_LOOP -->
138                                                     </select></li>
139
140                                                     <li><label for="modify_profile_description">Profile description: </label>
141                                                     <textarea cols="50" rows="2" name="profile_description" id="modify_profile_description"><!-- TMPL_VAR NAME="selected_profile_description" --></textarea></li>
142
143                                                     <li><label for="csv_separator">CSV separator: </label>
144                                                     <select name="csv_separator" id="csv_separator">
145                                                                 <option value=":">Colon (:)</option>
146                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq ','" -->
147                                                                 <option value="," selected="selected">Comma (,)</option>
148                                                                 <!--TMPL_ELSE -->
149                                                                 <option value=",">Comma (,)</option>
150                                                                 <!-- /TMPL_IF -->
151                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq '|'" -->
152                                                                 <option value="|" selected="selected">Pipe (|)</option>
153                                                                 <!--TMPL_ELSE -->
154                                                                 <option value="|">Pipe (|)</option>
155                                                                 <!-- /TMPL_IF -->
156                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq ';'" -->
157                                                                 <option value=";" selected="selected">Semi-colon (;)</option>
158                                                                 <!--TMPL_ELSE -->
159                                                                 <option value=";">Semi-colon (;)</option>
160                                                                 <!-- /TMPL_IF -->
161                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq '#'" -->
162                                                                 <option value="#" selected="selected">Sharp (#)</option>
163                                                                 <!--TMPL_ELSE -->
164                                                                 <option value="#">Sharp (#)</option>
165                                                                 <!-- /TMPL_IF -->
166                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq ' '" -->
167                                                                 <option value=" " selected="selected">Space ( )</option>
168                                                                 <!--TMPL_ELSE -->
169                                                                 <option value=" ">Space ( )</option>
170                                                                 <!-- /TMPL_IF -->
171                                                                 <!-- TMPL_IF EXPR="selected_csv_separator eq '\t'" -->
172                                                                 <option value="\t" selected="selected">Tabulation (\t)</option>
173                                                                 <!--TMPL_ELSE -->
174                                                                 <option value="\t">Tabulation (\t)</option>
175                                                                 <!-- /TMPL_IF -->
176                                                         <!-- TMPL_IF EXPR="selected_csv_separator eq '\n'" -->
177                                                                 <option value="\n" selected="selected">New line (\n)</option>
178                                                                 <!--TMPL_ELSE -->
179                                                                 <option value="\n">New line (\n)</option>
180                                                                 <!-- /TMPL_IF -->
181                             </select></li>
182
183                                                     <li><label for="field_separator">Field separator: </label>
184                                                     <select name="field_separator" id="field_separator">
185                                 <option value=":">Colon (:)</option>
186
187                                 <!-- TMPL_IF EXPR="selected_field_separator eq ','" -->
188                                 <option value="," selected="selected">Comma (,)</option>
189                                 <!--TMPL_ELSE -->
190                                 <option value=",">Comma (,)</option>
191                                                                 <!-- /TMPL_IF -->
192
193                                 <!-- TMPL_IF EXPR="selected_field_separator eq '|'" -->
194                                 <option value="|" selected="selected">Pipe (|)</option>
195                                 <!--TMPL_ELSE -->
196                                 <option value="|">Pipe (|)</option>
197                                 <!-- /TMPL_IF -->
198
199                                 <!-- TMPL_IF EXPR="selected_field_separator eq ';'" -->
200                                 <option value=";" selected="selected">Semi-colon (;)</option>
201                                 <!--TMPL_ELSE -->
202                                 <option value=";">Semi-colon (;)</option>
203                                 <!-- /TMPL_IF -->
204
205                                 <!-- TMPL_IF EXPR="selected_field_separator eq '#'" -->
206                                 <option value="#" selected="selected">Sharp (#)</option>
207                                 <!--TMPL_ELSE -->
208                                 <option value="#">Sharp (#)</option>
209                                 <!-- /TMPL_IF -->
210
211                                 <!-- TMPL_IF EXPR="selected_field_separator eq ' '" -->
212                                 <option value=" " selected="selected">Space ( )</option>
213                                 <!--TMPL_ELSE -->
214                                 <option value=" ">Space ( )</option>
215                                 <!-- /TMPL_IF -->
216
217                                 <!-- TMPL_IF EXPR="selected_field_separator eq '\t'" -->
218                                 <option value="\t" selected="selected">Tabulation (\t)</option>
219                                 <!--TMPL_ELSE -->
220                                 <option value="\t">Tabulation (\t)</option>
221                                 <!-- /TMPL_IF -->
222                                                         <!-- TMPL_IF EXPR="selected_field_separator eq '\n'" -->
223                                                                 <option value="\n" selected="selected">New line (\n)</option>
224                                                                 <!--TMPL_ELSE -->
225                                                                 <option value="\n">New line (\n)</option>
226                                                                 <!-- /TMPL_IF -->
227                                                     </select></li>
228
229
230                                                     <li><label for="subfield_separator">Subfield separator: </label>
231                                                     <select name="subfield_separator" id="subfield_separator">
232                                 <option value=":">Colon (:)</option>
233
234
235                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq ','" -->
236                                 <option value="," selected="selected">Comma (,)</option>
237                                 <!--TMPL_ELSE -->
238                                 <option value=",">Comma (,)</option>
239                                 <!-- /TMPL_IF -->
240
241                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq '|'" -->
242                                 <option value="|" selected="selected">Pipe (|)</option>
243                                 <!--TMPL_ELSE -->
244                                 <option value="|">Pipe (|)</option>
245                                 <!-- /TMPL_IF -->
246
247                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq ';'" -->
248                                 <option value=";" selected="selected">Semi-colon (;)</option>
249                                 <!--TMPL_ELSE -->
250                                 <option value=";">Semi-colon (;)</option>
251                                 <!-- /TMPL_IF -->
252
253                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq '#'" -->
254                                 <option value="#" selected="selected">Sharp (#)</option>
255                                 <!--TMPL_ELSE -->
256                                 <option value="#">Sharp (#)</option>
257                                 <!-- /TMPL_IF -->
258
259                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq ' '" -->
260                                 <option value=" " selected="selected">Space ( )</option>
261                                 <!--TMPL_ELSE -->
262                                 <option value=" ">Space ( )</option>
263                                 <!-- /TMPL_IF -->
264
265                                                                 <!-- TMPL_IF EXPR="selected_subfield_separator eq '\t'" -->
266                                 <option value="\t" selected="selected">Tabulation (\t)</option>
267                                 <!--TMPL_ELSE -->
268                                 <option value="\t">Tabulation (\t)</option>
269                                 <!-- /TMPL_IF -->
270                                                         <!-- TMPL_IF EXPR="selected_subfield_separator eq '\n'" -->
271                                                                 <option value="\n" selected="selected">New line (\n)</option>
272                                                                 <!--TMPL_ELSE -->
273                                                                 <option value="\n">New line (\n)</option>
274                                 <!-- /TMPL_IF -->
275         
276                                                     </select></li>
277
278                                                     <li><label for="encoding">Encoding: </label>
279                                                     <select name="encoding" id="encoding">
280                                                         <!-- TMPL_LOOP NAME="encodings" -->
281                                                             <!-- TMPL_IF EXPR="selected_encoding eq encoding" -->
282                                                             <option selected="selected"><!-- TMPL_VAR NAME="encoding" --></option>
283                                                             <!--TMPL_ELSE -->
284                                                             <option><!-- TMPL_VAR NAME="encoding" --></option>
285                                                             <!-- /TMPL_IF -->
286                                                         <!-- /TMPL_LOOP -->
287                                                     </select></li>
288
289                                                     <li><label for="modify_profile_content">Profile marcfields: </label>
290                                                     <textarea cols="50" rows="2" name="profile_content" id="modify_profile_content"><!-- TMPL_VAR NAME="selected_profile_marcfields" --></textarea></li>
291
292                                                    <li class="radio"> <label for="delete">Delete selected profile ?</label>
293                                                     <input type="checkbox" name="delete" id="delete" /></li>
294                                                     </ol>
295
296                                                 </fieldset>
297
298                                                 <fieldset class="action"><input type="hidden" name="modify_profile_id" value="<!-- TMPL_VAR NAME="selected_profile_id" -->" />
299                                                 <input type="hidden" name="action" value="edit" />
300                                                 <input type="submit" value="Submit" /> <a href="/cgi-bin/koha/tools/csv-profiles.pl" class="cancel">Cancel</a></fieldset>
301                                             </form>
302 </div>
303                                         <!-- /TMPL_IF -->
304
305                                 </div>
306                         </div>
307                         </div>
308                     <div class="yui-b noprint">
309         <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
310     </div>
311         </div>
312         <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->