small gui fixes
[koha.git] / koha-tmpl / intranet-tmpl / default / en / parameters / marctagstructure.tmpl
1 <TMPL_INCLUDE NAME="parameters-top.inc">
2 <TMPL_IF NAME="loggedinuser">
3     <p align=left>Logged in as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/mainpage.pl?logout.x=1>Log Out</a>]</p>
4 <TMPL_ELSE>
5     <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log In</a> to Koha</p>
6 </TMPL_IF>
7
8 <script>
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.tagfield.value.length==0) {
46                         _alertString += "- tag number missing\\n";
47                 }
48                 if (_alertString.length==0) {
49                         document.Aform.submit();
50                 } else {
51                         alertString2 = "Form not submitted because of the following problem(s)\\n";
52                         alertString2 += "------------------------------------------------------------------------------------\\n\\n";
53                         alertString2 += _alertString;
54                         alert(alertString2);
55                 }
56         }
57         </SCRIPT>
58
59 <TMPL_IF name="add_form">
60 <!-------------------------------------------------------------------------------------------------->
61         <H1><TMPL_VAR name="action"></H1>
62         <form action='<TMPL_VAR name="script_name">' name="Aform" method="post">
63         <input type=hidden name=op value='add_validate'>
64         <table>
65         <tr><td>Variable</td><td><TMPL_VAR name="searchfield"></td></tr>
66         <tr><td>Lib for librarians</td><td><input type="text" name="liblibrarian" value='<TMPL_VAR name="liblibrarian">' size=40 maxlength=80></td></tr>
67         <tr><td>Lib for opac</td><td><input type="text" name="libopac" value='<TMPL_VAR name="libopac">' size=40 maxlength=80></td></tr>
68         <tr><td>Repeatable</td><td><TMPL_VAR name="repeatable"></td></tr>
69         <tr><td>Mandatory</td><td><TMPL_VAR name="mandatory"></td></tr>
70         <tr><td>Authorised value</td><td><TMPL_VAR name="authorised_value"> (if you select a value here, the indicators will be limited to the authorised value list)</td></tr>
71         <tr><td>&nbsp;</td><td><INPUT type="button" value='OK' onClick='Check(this.form)'></td></tr>
72         </table>
73         </form>
74 </TMPL_IF>
75
76
77 <TMPL_IF name="delete_confirm">
78 <!-------------------------------------------------------------------------------------------------->
79 <table border=0 cellspacing=0 cellpadding=2>
80         <tr valign=top bgcolor=#99cc33>
81                 <td background="/images/background-mem.gif"><b>tag</b></td>
82                 <td background="/images/background-mem.gif"><b><TMPL_VAR name="searchfield"></b></td>
83         </tr>
84         <tr><td>&nbsp;</td><td><TMPL_VAR name="liblibrarian"></td></tr>
85         <form action='<TMPL_VAR name="script_name">' method=post><input type=hidden name=op value=delete_confirmed><input type=hidden name=searchfield value='<TMPL_VAR name="searchfield">'>
86         <tr><td colspan=2 align=center>CONFIRM DELETION</td></tr>
87         <tr><td><INPUT type=submit value='YES'></form></td><td><form action='<TMPL_VAR name="script_name">' method=post><input type=submit value=NO></form></td></tr>
88 </TMPL_IF>
89
90 <TMPL_IF name="delete_confirmed">
91 <!-------------------------------------------------------------------------------------------------->
92         data deleted
93         <form action='<TMPL_VAR name="script_name">' method=post>
94         <input type=submit value=OK>
95         </form>
96 </TMPL_IF>
97
98 <!-------------------------------------------------------------------------------------------------->
99 <TMPL_IF name="else">
100 <font SIZE=6><em>MARC tag structure admin</em></font>
101 <form action='<TMPL_VAR name="script_name">' method=post>
102         <input type=text name=searchfield value="">
103         <input type=reset name=reset value="clr">
104 </form>
105 <TMPL_VAR name="searchfield">
106 <table border=0 cellspacing=0 cellpadding=2>
107 <tr valign=top bgcolor=#99cc33>
108         <td background="/images/background-mem.gif"><b>Tag</b></td>
109         <td background="/images/background-mem.gif"><b>Lib</b></td>
110         <td background="/images/background-mem.gif"><b>Repeatable</b></td>
111         <td background="/images/background-mem.gif"><b>Mandatory</b></td>
112         <td background="/images/background-mem.gif"><b>Authorised<br />value</b></td>
113         <td background="/images/background-mem.gif"><b>Subfields</b></td>
114         <td background="/images/background-mem.gif">&nbsp;</td>
115         <td background="/images/background-mem.gif">&nbsp;</td>
116 <TMPL_LOOP name="loop">
117 <tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
118         <td><b><TMPL_VAR name="tagfield"></b></td>
119         <td><TMPL_VAR name="liblibrarian"></td>
120         <td><TMPL_IF name="repeatable">Yes<TMPL_ELSE>No</TMPL_IF></td>
121         <td><TMPL_IF name="mandatory">Yes<TMPL_ELSE>No</TMPL_IF></td>
122         <td><TMPL_VAR name="authorised_value"></td>
123         <td><a href="<TMPL_VAR name="subfield_link">">subfields</a></td>
124         <td><a href="<TMPL_VAR name="edit">">Edit</a></td>
125         <td><a href="<TMPL_VAR name="delete">">Delete</a></td>
126 </tr>
127 </TMPL_LOOP>
128 <form action='<TMPL_VAR name="script_name">' method=post>
129 <input type=hidden name=op value=add_form>
130 </table>
131         <form action='<TMPL_VAR name="script_name">' method=post>
132         <input type=hidden name=op value=add_form>
133 <table width=40%>
134         <tr>
135                 <td width=50%><TMPL_VAR name="previous"></td>
136                 <td width=50%><TMPL_VAR name="next"></td>
137         </tr>
138 </table>
139 <br><input type=image src="/images/button-add-new.gif"  WIDTH=188  HEIGHT=44  ALT="Add budget" BORDER=0 ></a><br>
140 </form>
141 </TMPL_IF>
142
143 <TMPL_INCLUDE NAME="parameters-bottom.inc">