Bug 7977: Quote-of-the-day (QOTD) Feature for OPAC
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / auth_subfields_structure.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Administration &rsaquo; Authority MARC subfield structure</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
5 //<![CDATA[
6
7          $(document).ready(function() {
8                 $('#subfieldtabs > ul').tabs();
9          });
10
11 function displayMoreConstraint(numlayer){
12     var thisdiv = document.getElementById(numlayer);
13     if(thisdiv.getAttribute("class") == "content_hidden"){
14         thisdiv.removeAttribute('class');
15         thisdiv.setAttribute("class","content_visible");
16     } else {
17         thisdiv.removeAttribute('class');
18         thisdiv.setAttribute("class","content_hidden");
19     }
20 }
21
22 //]]>
23 </script>
24 </head>
25 <body id="admin_auth_subfields_structure" class="admin">
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'cat-search.inc' %]
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;
29   [% IF ( else ) %]Authority MARC subfield structure
30   [% ELSE %]<a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield %]&amp;tagsubfield=[% tagsubfield %]&amp;authtypecode=[% authtypecode %]">Authority MARC subfield structure</a> &rsaquo;
31   [% END %]
32   [% IF ( delete_confirm ) %]Confirm deletion of subfield [% tagsubfield %]?[% END %]
33   [% IF ( delete_confirmed ) %]Data deleted[% END %]
34   [% IF ( add_form ) %]
35   [% IF ( use_heading_flags_p ) %]
36   [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints[% END %]
37   [% ELSE %][% action %][% END %]
38   [% END %]
39 </div>
40
41 <div id="doc3" class="yui-t2">
42
43 <div id="bd">
44     <div id="yui-main">
45     <div class="yui-b">
46
47 [% IF ( add_form ) %]
48
49     <h1>[% IF ( use_heading_flags_p ) %]
50     [% IF ( heading_edit_subfields_p ) %]Edit MARC subfields constraints for field [% tagfield %] authority [% authtypecode %][% END %]
51     [% ELSE %][% action %][% END %]</h1>
52     <form action="[% script_name %]" name="Aform" method="post">
53         <input type="hidden" name="op" value="add_validate" />
54         <input type="hidden" name="tagfield" value="[% tagfield %]" />
55         <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
56         <fieldset class="action"><input type="submit" class="submit" value="Save changes" /> <a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=[% tagfield %]&amp;authtypecode=[% authtypecode %]">Cancel</a></fieldset>
57         <div id="subfieldtabs" class="toptabs numbered">
58             <ul>
59                 [% FOREACH loo IN loop %]
60                     [% IF ( loo.new_subfield ) %]
61                         [% IF ( tagfield >=10 ) %]<!-- display new only for > 10 fields -->
62                         <li><a href="/cgi-bin/koha/admin/auth_subfields_structure.pl#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">New</a></li>
63                         [% END %]
64                     [% ELSE %]
65                         <li><a href="/cgi-bin/koha/admin/auth_subfields_structure.pl#sub[% loo.tagsubfield %]field" title="[% loo.liblibrarian %]">
66                             [% loo.tagsubfield %]
67                     </a></li>
68                     [% END %]
69                 [% END %]
70             </ul>
71
72         [% FOREACH loo IN loop %]
73         <div id="sub[% loo.tagsubfield %]field">
74                         <fieldset class="rows"><ol>
75
76                     [% IF ( loo.new_subfield ) %]
77                 <li><label for="tagsubfieldinput[% loo.row %]">Subfield code: </label>[% loo.tagsubfieldinput %]&nbsp;</li>
78                     [% ELSE %]
79                 <li>
80                 <input type="hidden" name="tagsubfield" value="[% loo.tagsubfield %]" />
81                  </li>
82                     [% END %]
83                 <li><label for="repeatable[% loo.row %]">Repeatable: </label>[% loo.repeatable %]&nbsp;</li>
84                 <li><label for="mandatory[% loo.row %]">Mandatory: </label>[% loo.mandatory %]&nbsp;</li>
85                 <li><label for="liblibrarian[% loo.row %]">Text for librarian: </label><input id="liblibrarian[% loo.row %]" type="text" name="liblibrarian" value="[% loo.liblibrarian %]" size="40" maxlength="80" /></li>
86                 <li><label for="libopac[% loo.row %]">Text for OPAC: </label><input type="text" id="libopac[% loo.row %]" name="libopac" value="[% loo.libopac %]" size="40" maxlength="80" /></li>
87                 <li><label for="tab[% loo.row %]">Managed in tab: </label>[% loo.tab %] (ignore means that the subfield does not display in the record editor)</li>
88                 <li>
89                     <fieldset>
90                         <legend>Display</legend>
91                         <ol>
92                             <li><label for="ohidden[% loo.row %]">Select to display or not:</label>[% loo.ohidden %]  </li>
93                             <!-- <li><label for="ihidden[% loo.row %]">Intranet:</label>[% loo.ihidden %] </li> -->
94                             <!-- <li><label for="ehidden[% loo.row %]">Editor:</label>[% loo.ehidden %] (see online help)</li> -->
95                         </ol>
96                     </fieldset>
97                 </li>
98                 <li><label for="isurl[% loo.row %]">Is a URL:</label>[% loo.isurl %] (if checked, it means that the subfield is a URL and can be clicked)</li>
99                 <li>
100                     <fieldset><legend>Help input</legend>       
101                         <ol>
102                             <li><label for="authorised_value[% loo.row %]">Authorized value:</label> [% loo.authorised_value %]</li>
103                             <li><label for="frameworkcode[% loo.row %]">Thesaurus:</label> [% loo.frameworkcode %]</li>
104                             <li><label for="value_builder[% loo.row %]">Plugin:</label> [% loo.value_builder %]</li>
105                         </ol>
106                     </fieldset>
107                 </li>
108             </ol></fieldset><br class="clear" />
109         </div>
110         [% END %]
111         </div>
112     </form>
113 [% END %]
114
115 [% IF ( delete_confirm ) %]
116
117     <div class="dialog alert"><h3>Delete subfield <span class="ex">'[% tagsubfield %]'?</span></h3>
118     <form action="[% delete_link %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
119     <table><tr><th scope="row">Subfield:</th> <td>[% tagsubfield %]</td></tr>
120     <tr><th scope="row">Description:</th> <td>[% liblibrarian %]</td></tr></table>
121         <input type="hidden" name="searchfield" value="[% searchfield %]" />
122         <input type="hidden" name="tagfield" value="[% tagfield %]" />
123         <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
124         <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
125         <input type="submit" class="approve" value="Yes, Delete this Subfield" />
126                 </form>
127                 <form action="[% delete_link %]" method="get">
128                  <input type="hidden" name="searchfield" value="[% searchfield %]" />
129         <input type="hidden" name="tagfield" value="[% tagfield %]" />
130         <input type="hidden" name="tagsubfield" value="[% tagsubfield %]" />
131         <input type="hidden" name="authtypecode" value="[% authtypecode %]" />
132         <input type="submit" class="deny" value="No, Do Not Delete" />
133                 </form>
134     </form></div>
135 [% END %]
136
137 [% IF ( delete_confirmed ) %]
138
139    <div class="dialog message"> <h3>Data deleted</h3>
140     <form action="[% script_name %]" method="post">
141         <input type="hidden" name="tagfield" value="[% tagfield %]" />
142         <input type="submit" class="approve" value="OK" />
143     </form></div>
144 [% END %]
145
146
147 [% IF ( else ) %]
148 <h1>Authority MARC subfield structure admin for [% tagfield %] (authority: [% authtypecode %])</h1>
149 <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit. </p>
150 <p>The column <b>Koha field</b> shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, and a Koha interface. This link ensures that both DB are synchronized</p>
151
152 <table>
153     <tr>
154         <th>Subfield</th>
155         <th>Text</th>
156         <th>Constraints</th>
157         <th>Delete</th>
158     </tr>
159     [% FOREACH loo IN loop %]
160     [% UNLESS ( loop.odd ) %]
161     <tr class="highlight">
162     [% ELSE %]
163     <tr>
164     [% END %]
165         <td>[% loo.tagsubfield %]</td>
166         <td>
167             [% IF ( loo.subfield_ignored ) %]
168                     <i>[% loo.liblibrarian %]</i>
169             [% ELSE %]
170                     [% loo.liblibrarian %]
171             [% END %]
172         </td>
173         <td>
174             [% IF ( loo.subfield_ignored ) %]
175                     <i>subfield ignored</i>
176             [% ELSE %]
177                 <strong>Tab:</strong>[% loo.tab %],
178                 [% IF ( loo.kohafield ) %] | <strong>Koha field:</strong> [% loo.kohafield %], [% END %]
179                 [% IF ( loo.repeatable ) %]Repeatable, [% ELSE %]Not repeatable,
180                 [% END %]
181                         [% IF ( loo.mandatory ) %]Mandatory, [% ELSE %]Not mandatory,
182                 [% END %]
183                         [% IF ( loo.hidden ) %]hidden,
184                 [% END %]
185                         [% IF ( loo.isurl ) %]is a url,
186                 [% END %]
187                         [% IF ( loo.authorised_value ) %] | <strong>Auth value:</strong>[% loo.authorised_value %],
188                 [% END %]
189                         [% IF ( loo.frameworkcode ) %] | <strong>Authority:</strong>[% loo.frameworkcode %],
190                 [% END %]
191                 [% IF ( loo.value_builder ) %] | <strong>Plugin:</strong>[% loo.value_builder %],[% END %]
192             [% END %]
193         </td>
194         <td><a href="[% loo.delete %]">Delete</a></td>
195     </tr>
196     [% END %]
197 </table>
198
199         <form action="[% script_name %]" method="get">
200         <fieldset class="action"><input type="hidden" name="op" value="add_form" />
201         <input type="hidden" name="tagfield" value="[% edit_tagfield %]" />
202         <input type="hidden" name="authtypecode" value="[% edit_authtypecode %]" />
203         <input type="submit" value="Edit subfields" />
204         <a class="cancel" href="auth_tag_structure.pl?searchfield=[% tagfield %]&amp;authtypecode=[% authtypecode %]">Cancel</a></fieldset>
205         </form>
206
207     [% IF ( previous ) %]
208     <input type="image" src="[% interface %]/[% theme %]/images/1leftarrow.png" title="previous" alt="previous" border="0" />
209     </a>
210     [% END %]
211     [% IF ( next ) %]
212         [% next %]
213     <input type="image" src="[% interface %]/[% theme %]/images/1rightarrow.png" title="next" alt="next" border="0" />
214     </a>
215     [% END %]
216
217 [% END %]
218
219 </div>
220 </div>
221 <div class="yui-b">
222 [% INCLUDE 'admin-menu.inc' %]
223 </div>
224 </div>
225 [% INCLUDE 'intranet-bottom.inc' %]