Fix for Bug 3659, Add place hold option from patron checkout tab
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / biblio_framework.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; MARC Frameworks
3 <!-- TMPL_IF NAME="add_form" -->
4 &rsaquo; <!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF -->
5 <!-- TMPL_ELSIF NAME="delete_confirm" -->
6 &rsaquo; Delete Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?
7 <!-- /TMPL_IF -->
8 </title>
9 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
10 <script type="text/javascript">
11 //<![CDATA[
12
13 function isNotNull(f,noalert) {
14     if (f.value.length ==0) {
15         return false;
16     }
17     return true;
18 }
19 function toUC(f) {
20     f.value = f.value.toUpperCase();
21     return true;
22 }
23 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
24 function Check(f) {
25     var ok=1;
26     var _alertString="";
27     var alertString2;
28     if (f.frameworkcode.value.length==0) {
29         _alertString += "\n- " + _("Framework code missing");
30     }
31     if (!(isNotNull(window.document.Aform.frameworktext))) {
32         _alertString += "\n- " + _("Description missing");
33     }
34     if (_alertString.length==0) {
35         document.Aform.submit();
36     } else {
37         alertString2  = _("Form not submitted because of the following problem(s)");
38         alertString2 += "\n------------------------------------------------------------------------------------\n";
39         alertString2 += _alertString;
40         alert(alertString2);
41         return false;
42     }
43     return true;
44 }
45
46 $(document).ready(function() {
47     new YAHOO.widget.Button("newframework");
48 });
49 //]]>
50 </script>
51 </head>
52 <body>
53 <!-- TMPL_INCLUDE NAME="header.inc" -->
54 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
55
56 <div id="breadcrumbs">
57         <a href="/cgi-bin/koha/mainpage.pl">Home</a>
58 &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
59 &rsaquo; <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC Frameworks</a>
60 <!-- TMPL_IF NAME="add_form" -->
61 &rsaquo; <!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF -->
62 <!-- TMPL_ELSIF NAME="delete_confirm" -->
63 &rsaquo; Delete Framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?
64 <!-- /TMPL_IF -->
65 </div>
66
67 <div id="doc3" class="yui-t2">
68   <div id="bd">
69     <div id="yui-main">
70       <div class="yui-b">
71         
72 <!-- TMPL_IF NAME="else" --><div id="toolbar">
73         <ul class="toolbar">
74         <li><a id="newframework" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form">New Framework</a></li>
75 </ul></div><!-- /TMPL_IF -->
76
77 <!-- TMPL_IF NAME="add_form" -->
78     <h1><!-- TMPL_IF NAME="frameworkcode" -->Modify framework text<!-- TMPL_ELSE -->Add framework<!-- /TMPL_IF --></h1>
79     <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post" onsubmit="return Check(this);">
80         <input type="hidden" name="op" value="add_validate" />
81     <fieldset class="rows">
82     <ol>
83         <!-- TMPL_IF NAME="frameworkcode" -->
84         <li><span class="label">Framework Code</span><input type="hidden" id="frameworkcode" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><!-- TMPL_VAR NAME="frameworkcode" -->
85             <input type="hidden" name="modif" value="1" />
86         </li>
87         <!-- TMPL_ELSE -->
88         <li><label for="frameworkcode">Framework Code</label><input type="text" id="frameworkcode" name="frameworkcode" size="4" maxlength="4" onblur="toUC(this)" /></li>
89         <!-- /TMPL_IF -->
90         <li><label for="description">Description</label>
91         <input type="text" name="frameworktext" id="description" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="frameworktext" ESCAPE="HTML" -->" /></li></ol></fieldset>
92         <fieldset class="action">       <input type="submit" value="Submit" class="submit" /></fieldset>
93     </form>
94 <!-- /TMPL_IF -->
95
96 <!-- TMPL_IF NAME="delete_confirm" -->
97 <div class="dialog alert">
98     <h3>Delete framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?</h3>
99     <!-- TMPL_IF NAME="total" -->
100        <p><strong>This framework is used <!-- TMPL_VAR NAME="total" --> times</strong>.</p>
101     <!-- /TMPL_IF -->
102     <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" class="approve" value="Yes, Delete this Framework!" />
103     </form>
104     <form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="get"><input type="submit" class="deny" value="No, Do not Delete!" /></form>
105 </div>
106 <!-- /TMPL_IF -->
107
108 <!-- TMPL_IF NAME="else" -->
109 <h1>MARC Frameworks</h1>
110 <p>Framework name, then go to MARC biblio to set MARC editor parameters</p>
111 <table>
112     <tr>
113         <th>Code</th>
114         <th>Description</th>
115         <th>&nbsp;</th>
116         <th>Edit</th>
117         <th>Delete</th>
118     </tr>
119     <tr>
120         <td>&nbsp;</td>
121         <td>Default framework</td>
122         <td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->">MARC structure</a></td>
123         <td>&nbsp;</td>
124         <td>&nbsp;</td>
125     </tr>
126     <!-- note highlight assignment appears backwards because we already have a normal row for Default -->
127     <!-- TMPL_LOOP NAME="loop" -->
128     <!-- TMPL_IF NAME="__odd__" --><tr class="highlight">
129     <!-- TMPL_ELSE --><tr>
130     <!-- /TMPL_IF -->
131             <td><!-- TMPL_VAR name="frameworkcode" --></td>
132             <td><!-- TMPL_VAR name="frameworktext" --></td>
133             <td><a href="marctagstructure.pl?frameworkcode=<!-- TMPL_VAR name="frameworkcode" -->" >MARC structure</a></td>
134             <td><a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&amp;frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Edit</a></td>
135             <td><a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&amp;frameworkcode=<!-- TMPL_VAR name="frameworkcode" escape="HTML" -->">Delete</a></td>
136         </tr>
137     <!-- /TMPL_LOOP -->
138 </table>
139     <!-- TMPL_IF NAME="previous" --><a href="<!-- TMPL_VAR NAME="previous" -->">&lt;&lt; Previous</a><!-- /TMPL_IF -->
140     <!-- TMPL_IF NAME="next" --><a href="<!-- TMPL_VAR NAME="next" -->">Next &gt;&gt;</a><!-- /TMPL_IF -->
141
142 <!-- /TMPL_IF -->
143     </div>
144   </div>
145 <div class="yui-b">
146 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
147   </div>
148 </div>
149 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->