bull renamed to serials.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / admin / authtypes.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- System Administration<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3
4 <!-- TMPL_INCLUDE NAME="menus.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
6
7 <script language="javascript" type="text/javascript">
8 function _(s) { return s } // dummy function for gettext
9 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10 function isNotNull(f,noalert) {
11         if (f.value.length ==0) {
12                 return false;
13         }
14         return true;
15 }
16 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
17 function toUC(f) {
18         var x=f.value.toUpperCase();
19         f.value=x;
20         return true;
21 }
22 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23 function isNum(v,maybenull) {
24 var n = new Number(v.value);
25 if (isNaN(n)) {
26         return false;
27         }
28 if (maybenull==0 && v.value=='') {
29         return false;
30 }
31 return true;
32 }
33 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
34 function isDate(f) {
35         var t = Date.parse(f.value);
36         if (isNaN(t)) {
37                 return false;
38         }
39 }
40 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
41 function Check(f) {
42         var ok=1;
43         var _alertString="";
44         var alertString2;
45         if (f.authtypecode.value.length==0) {
46                 _alertString += "\n- " + _("Authority type : code missing");
47         }
48         if (!(isNotNull(window.document.Aform.authtypetext,1))) {
49                 _alertString += "\n- " + _("Description missing");
50         }
51         if (_alertString.length==0) {
52                 document.Aform.submit();
53         } else {
54                 alertString2  = _("Form not submitted because of the following problem(s)");
55                 alertString2 += "\n------------------------------------------------------------------------------------\n";
56                 alertString2 += _alertString;
57                 alert(alertString2);
58         }
59 }
60 </script>
61
62 <!-- TMPL_IF NAME="add_form" -->
63
64         <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
65         <table>
66                 <!-- TMPL_IF NAME="authtypecode" -->
67                 <caption>Modify authority type</caption>
68         <!-- TMPL_ELSE -->
69                 <caption>Add authority type</caption>
70         <!-- /TMPL_IF -->
71                         <!-- TMPL_IF NAME="authtypecode" -->
72                                 <tr><td><label for="authtypecode">Authority type<label></td><td><input type="hidden" name="op" value="add_validate" />
73                 <input type="hidden" name="checked" value="0" /><input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" /><!-- TMPL_VAR NAME="authtypecode" --></td></tr>
74                         <!-- TMPL_ELSE -->
75                                 <tr><td><label for="authtypecode">Authority type<label></td><td><input id="authtypecode" type="text" name="authtypecode" size="10" maxlength="10" onblur="toUC(this)" /></td></tr>
76                         <!-- /TMPL_IF -->
77                 <tr><td><label for="authtypetext">Description</label></td><td><input type="text" id="authtypetext" name="authtypetext" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="authtypetext" escape=HTML -->" /></td></tr>
78                 <tr><td><label for="summary">Summary</label></td><td><textarea id="summary" name="summary" cols="40" rows="10"><!-- TMPL_VAR NAME="summary" --></textarea></td></tr>
79                 <tr><td><label for="auth_tag_to_report">Report tag</label></td><td><input type="text" id="auth_tag_to_report" name="auth_tag_to_report" size="5" maxlength="3" value="<!-- TMPL_VAR NAME="auth_tag_to_report">" />Enter here the number of the tag that will be reported in the biblio (subfield by subfield). For example, in UNIMARC, enter 200 to report every 200 subfield in the 70x biblio</td></tr></table>
80         <p><input type="submit" value="OK" onclick="Check(this.form); return false;" />
81                         </p>
82         </form>
83 <!-- /TMPL_IF -->
84
85 <!-- TMPL_IF NAME="delete_confirm" -->
86 <div>
87         <h2>Authority structure definition for <!-- TMPL_VAR NAME="authtypetext" --> (<!-- TMPL_VAR NAME="authtypecode" -->)</h2>
88         <!-- TMPL_IF NAME="total" -->
89                 <p>
90                         This record is used <!-- TMPL_VAR NAME="total" --> times
91                 </p>
92         <!-- /TMPL_IF -->
93         <p>CONFIRM DELETION</p>
94         <p>
95                 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
96                         <input type="hidden" name="op" value="delete_confirmed" />
97                         <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
98                         <input type="submit" value="YES" />
99                 </form>
100                 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
101                         <input type="submit" value="NO" />
102                 </form>
103         </p>
104
105 <!-- /TMPL_IF -->
106
107 <!-- TMPL_IF NAME="else" -->
108 <h1>Auth type Admin</h1>
109 <p>Define authority types, then authority MARC structure in the same way you define itemtypes and biblio MARC tag structure. Authority values are managed through plugins</p>
110 <table>
111         <tr>
112                 <th>Code</th>
113                 <th>Description</th>
114                 <th>summary</th>
115                 <th>Tag reported</th>
116                 <th>&nbsp;</th>
117                 <th>Edit</th>
118                 <th>Delete</th>
119         </tr>
120         <tr>
121                 <td>&nbsp;</td>
122                 <td>Default framework</td>
123                 <td>&nbsp;</td>
124                 <td>&nbsp;</td>
125                 <td><a href="auth_tag_structure.pl">MARC structure</td>
126                 <td>&nbsp;</td>
127                 <td>&nbsp;</td>
128         </tr>
129         
130         <!-- TMPL_LOOP NAME="loop" -->
131                 <tr>
132                         <td><!-- TMPL_VAR NAME="authtypecode" --></td>
133                         <td><!-- TMPL_VAR NAME="authtypetext" --></td>
134                         <td><!-- TMPL_VAR NAME="summary" --></td>
135                         <td><!-- TMPL_VAR NAME="auth_tag_to_report" --></td>
136                         <td><a href="auth_tag_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->" class="button parameters" >MARC structure</a></td>
137                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Edit</a></td>
138                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" escape="HTML" -->">Delete</a></td>
139                 </tr>
140         <!-- /TMPL_LOOP -->
141 </table>
142 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
143         <input type="hidden" name="op" value="add_form" />
144         <input type="submit" value="Add authority type" title="Add authority type" alt="Add authority type" />
145         <td width="33%"><!-- TMPL_IF NAME="previous" --><a href="<!-- TMPL_VAR NAME="previous" -->">&lt;&lt; Previous</a><!-- /TMPL_IF --></td>
146         <td width="33%"><!-- TMPL_IF NAME="next" --><a href="<!-- TMPL_VAR NAME="next" -->">Next &gt;&gt;</a><!-- /TMPL_IF --></td>
147 </form>
148
149 <!-- /TMPL_IF -->
150 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->