1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->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 -->
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="menus.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
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) {
16 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
18 var x=f.value.toUpperCase();
22 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
23 function isNum(v,maybenull) {
24 var n = new Number(v.value);
28 if (maybenull==0 && v.value=='') {
33 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
35 var t = Date.parse(f.value);
40 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
45 if (f.frameworkcode.value.length==0) {
46 _alertString += "\n- " + _("Framework code missing");
48 if (!(isNotNull(window.document.Aform.frameworktext,1))) {
49 _alertString += "\n- " + _("Description missing");
51 if (_alertString.length==0) {
52 document.Aform.submit();
54 alertString2 = _("Form not submitted because of the following problem(s)");
55 alertString2 += "\n------------------------------------------------------------------------------------\n";
56 alertString2 += _alertString;
62 <!-- TMPL_IF NAME="add_form" -->
63 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
64 <input type="hidden" name="op" value="add_validate" />
65 <input type="hidden" name="checked" value="0" />
67 <caption><!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF --></caption>
69 <!-- TMPL_IF NAME="frameworkcode" -->
70 <td><label for="frameworkcode">Framework Code<label></td><td><input type="hidden" id="frameworkcode" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><!-- TMPL_VAR NAME="frameworkcode" --></td>
72 <td><label for="frameworkcode">Framework Code<label></td><td><input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" onblur="toUC(this)" /></td>
76 <td><label for="description">Description</label></td><td>
77 <input type="text" name="frameworktext" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="frameworktext" escape=HTML -->" /></td>
79 <p> <input type="button" value="Submit"class="submit" onclick="Check(this.form)" /></p>
83 <!-- TMPL_IF NAME="delete_confirm" -->
84 <h3>Delete ramework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?</h3>
85 <!-- TMPL_IF NAME="total" -->
86 <div class="error">This framework is used <!-- TMPL_VAR NAME="total" --> times
89 <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!" />
91 <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete!" /></form>
95 <!-- TMPL_IF NAME="else" -->
96 <h1>Biblio framework</h1>
97 <p>Framework name, then go to MARC biblio to set MARC editor parameters</p>
108 <td>Default framework</td>
109 <td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">MARC structure</td>
114 <!-- TMPL_LOOP NAME="loop" -->
116 <td><!-- TMPL_VAR name="frameworkcode" --></td>
117 <td><!-- TMPL_VAR name="frameworktext" --></td>
118 <td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->" >MARC structure</a></td>
119 <td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Edit</a></td>
120 <td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Delete</a></td>
124 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
125 <input type="hidden" name="op" value="add_form" />
126 <input type="submit" value="Add framework" />
127 <td><!-- TMPL_IF NAME="previous" --><a href="<!-- TMPL_VAR NAME="previous" -->"><< Previous</a><!-- /TMPL_IF --></td>
128 <td><!-- TMPL_IF NAME="next" --><a href="<!-- TMPL_VAR NAME="next" -->">Next >></a><!-- /TMPL_IF --></td>
132 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->