1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › System Administration: <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirm" -->Delete Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?<!-- /TMPL_IF --><!-- TMPL_IF NAME="else" -->Biblio Framework<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
10 <script language="javascript" type="text/javascript">
11 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
12 function isNotNull(f,noalert) {
13 if (f.value.length ==0) {
18 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
20 var x=f.value.toUpperCase();
24 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
25 function isNum(v,maybenull) {
26 var n = new Number(v.value);
30 if (maybenull==0 && v.value=='') {
35 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
37 var t = Date.parse(f.value);
42 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
47 if (f.frameworkcode.value.length==0) {
48 _alertString += "\n- " + _("Framework code missing");
50 if (!(isNotNull(window.document.Aform.frameworktext,1))) {
51 _alertString += "\n- " + _("Description missing");
53 if (_alertString.length==0) {
54 document.Aform.submit();
56 alertString2 = _("Form not submitted because of the following problem(s)");
57 alertString2 += "\n------------------------------------------------------------------------------------\n";
58 alertString2 += _alertString;
64 <div id="doc3" class="yui-t2">
68 <div class="yui-b"><div class="yui-g">
70 <!-- TMPL_IF NAME="add_form" -->
71 <h1><!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF --></h1>
72 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
73 <input type="hidden" name="op" value="add_validate" />
74 <input type="hidden" name="checked" value="0" />
75 <!-- TMPL_IF NAME="frameworkcode" -->
76 <p><label for="frameworkcode">Framework Code</label><input type="hidden" id="frameworkcode" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><!-- TMPL_VAR NAME="frameworkcode" --></p>
78 <p><label for="frameworkcode">Framework Code</label><input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" onblur="toUC(this)" /></p>
80 <p><label for="description">Description</label>
81 <input type="text" name="frameworktext" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="frameworktext" ESCAPE="HTML" -->" /></p>
82 <p> <input type="button" value="Submit" class="submit" onclick="Check(this.form)" /></p>
86 <!-- TMPL_IF NAME="delete_confirm" -->
87 <h3>Delete ramework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?</h3>
88 <!-- TMPL_IF NAME="total" -->
89 <div class="error">This framework is used <!-- TMPL_VAR NAME="total" --> times
92 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><input type="submit" value="Yes, Delete this Framework!" />
94 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete!" /></form>
98 <!-- TMPL_IF NAME="else" -->
99 <h1>Biblio framework</h1>
100 <p>Framework name, then go to MARC biblio to set MARC editor parameters</p>
111 <td>Default framework</td>
112 <td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">MARC structure</td>
117 <!-- TMPL_LOOP NAME="loop" -->
119 <td><!-- TMPL_VAR name="frameworkcode" --></td>
120 <td><!-- TMPL_VAR name="frameworktext" --></td>
121 <td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->" >MARC structure</a></td>
122 <td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Edit</a></td>
123 <td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Delete</a></td>
127 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
128 <input type="hidden" name="op" value="add_form" />
129 <input type="submit" value="Add framework" />
130 <td><!-- TMPL_IF NAME="previous" --><a href="<!-- TMPL_VAR NAME="previous" -->"><< Previous</a><!-- /TMPL_IF --></td>
131 <td><!-- TMPL_IF NAME="next" --><a href="<!-- TMPL_VAR NAME="next" -->">Next >></a><!-- /TMPL_IF --></td>
139 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
140 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->