fix for #478 in parameters section
[koha.git] / koha-tmpl / intranet-tmpl / default / en / parameters / marc_subfields_structure.tmpl
1 <html>
2 <!-- clarification needed about this page. many questions... what is Lib? a Library? -->
3
4 <TMPL_INCLUDE NAME="parameters-top.inc">
5
6 <TMPL_IF name="add_form">
7 <!-------------------------------------------------------------------------------------------------->
8         <H1><TMPL_VAR name="action"></H1>
9         <form action='<TMPL_VAR name="script_name">' name=Aform method=post>
10         <input type=hidden name=op value='add_validate'>
11         <table>
12         <tr><th>Field</th>
13                 <th>Lib for librarians / for opac</th>
14                 <th>Repet</th>
15                 <th>Mand</th>
16                 <th>Koha field</th>
17                 <th>Tab</th>
18                 <th>Authorised value or<br/>
19                                 Thesaurus category</th>
20         </tr>
21         <TMPL_LOOP name="loop">
22                 <tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
23                 <td><TMPL_VAR name="tagfield"> - <TMPL_VAR name="tagsubfield"></td>
24                 <td><input type=text name="liblibrarian" value='<TMPL_VAR name="liblibrarian" escape=HTML>' size=40 maxlength=80><br/>
25                                 <input type=text name="libopac" value='<TMPL_VAR name="libopac" escape=HTML>' size=40 maxlength=80></td>
26                 <td><TMPL_VAR name="repeatable"></td>
27                 <td><TMPL_VAR name="mandatory"></td>
28                 <td><TMPL_VAR name="kohafield"></td>
29                 <td><TMPL_VAR name="tab"></td>
30                 <td><TMPL_VAR name="authorised_value"><br/>
31                                 or <TMPL_VAR name="thesaurus_category"><br/>
32                                 or <TMPL_VAR name="value_builder"></td>
33         </TMPL_LOOP>
34         </table>
35         <INPUT type=submit value='OK'>
36         <p>Note: in the last column, you can choose:
37         <ul><li>An "authorised value": it refers to a list of authorised values for this subfield. See the corresponding admin table.</li>
38         <li>A "thesaurus category": it refers to a thesaurus category. See the corresponding admin table.</li>
39         <li>A "value builder": values builders are perl programs that help you select the value of the field. They are MARC-flavor dependant and sometimes fill another subfield automatically.</li>
40         </ul>
41         </p>
42         </form>
43 </TMPL_IF>
44
45 <TMPL_IF name="delete_confirm">
46 <!-------------------------------------------------------------------------------------------------->
47 <table border=0 cellspacing=0 cellpadding=2>
48         <tr valign=top bgcolor=#99cc33>
49                 <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif"><b>Subfield</b></td>
50                 <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif"><b><TMPL_VAR name="tagsubfield"></b></td>
51         </tr>
52         <tr><td>&nbsp;</td><td><TMPL_VAR name="liblibrarian"></td></tr>
53         <form action='<TMPL_VAR name="delete_link">' method=post><input type=hidden name=op value=delete_confirmed><input type=hidden name=searchfield value='<TMPL_VAR name="searchfield">'>
54         <input type=hidden name=tagfield value='<TMPL_VAR name="tagfield">'>
55         <input type=hidden name=tagsubfield value='<TMPL_VAR name="tagsubfield">'>
56         <tr><td colspan=2 align=center>CONFIRM DELETION</td></tr>
57         <tr><td><INPUT type=submit value='YES'></form></td><td><form action='<TMPL_VAR name="script_name">' method=post><input type="hidden" name="tagfield" value="<TMPL_VAR name="tagfield">"><input type=submit value=NO></form></td></tr>
58 </TMPL_IF>
59
60 <TMPL_IF name="delete_confirmed">
61 <!-------------------------------------------------------------------------------------------------->
62         Data deleted
63         <form action='<TMPL_VAR name="script_name"> method=post><input type="hidden" name="tagfield" value="<TMPL_VAR name="tagfield">">
64         <input type=submit value=OK>
65         </form>
66 </TMPL_IF>
67
68 <!-------------------------------------------------------------------------------------------------->
69 <TMPL_IF name="else">
70 <font SIZE=6><em>MARC subfield structure admin for <TMPL_VAR name="tagfield"></em></font>
71 <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>
72 <p>The column <b>Koha field</b> shows that the subfield is linked with a "Koha field". Koha can manage a MARC interface, or a Koha interface. This link ensures that 
73 both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p>
74
75 <table border=0 cellspacing=0 cellpadding=2 width="80%">
76 <tr valign=top bgcolor=#99cc33>
77         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=5%><b>Subfield</b></td>
78         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=30%><b>Lib</b></td>
79         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=10%><b>koha field</b> <span style="font-size:8;color:red" title="the koha-DB field linked to this subfield">?</span></td>
80         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%><b>Rep</b> <span style="font-size:8;color:red" title="subfield may be repeated (1=yes, 0=no)">?</span></td>
81         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%><b>Mand</b> <span style="font-size:8;color:red" title="subfield is mandatory (1=yes, 0=no)">?</span></td>
82         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%><b>Tab</b> <span style="font-size:8;color:red" title="subfield is shown in which tab (0-9 or item)">?</span></td>
83         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%><b>Auth value</b> <span style="font-size:8;color:red" title="values authorised for this subfield">?</span></td>
84         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%><b>Thesaurus</b> <span style="font-size:8;color:red" title="Thesaurus linked to this subfield">?</span></td>
85         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%><b>Val build</b> <span style="font-size:8;color:red" title="Value builder">?</span></td>
86         <td background="<TMPL_VAR NAME='themelang'>/images/background-mem.gif" width=8%>Delete</td>
87 <TMPL_LOOP name="loop">
88 <tr valign=top bgcolor='<TMPL_VAR name="bgcolor">'>
89         <td><TMPL_VAR name="tagsubfield"></td>
90         <td><TMPL_VAR name="liblibrarian"></td>
91         <td><TMPL_VAR name="kohafield"></td>
92         <td><TMPL_IF name="repeatable">Yes<TMPL_ELSE>No</TMPL_IF></td>
93         <td><TMPL_IF name="mandatory">Yes<TMPL_ELSE>No</TMPL_IF></td>
94         <td><TMPL_VAR name="tab"></td>
95         <td><TMPL_VAR name="authorised_value"></td>
96         <td><TMPL_VAR name="thesaurus_category"></td>
97         <td><TMPL_VAR name="value_builder"></td>
98         <td><a href="<TMPL_VAR name="delete">"><img src="<TMPL_VAR NAME='interface'>/<TMPL_VAR name="theme">/images/edittrash.png" width=32 hspace=0 vspace=0 border=0></a></td>
99 </tr>
100 </TMPL_LOOP>
101 </table>
102 <table width=60%>
103         <tr>
104                 <td width="25%"><TMPL_VAR name="edit"><img src="<TMPL_VAR NAME='interface'>/<TMPL_VAR name="theme">/images/fileopen.png"  width=32 hspace=0 vspace=0 border=0></a></td>
105                 <td width="25%"><a href="marctagstructure.pl?searchfield=<TMPL_VAR name="tagfield">"><img src="<TMPL_VAR NAME='interface'>/<TMPL_VAR name="theme">/images/2uparrow.png" width=32 hspace=0 vspace=0 border=0></a></td>
106                 <td width="25%"><TMPL_IF name="previous"><input type=image src="<TMPL_VAR NAME='interface'>/<TMPL_VAR name="theme">/images/1leftarrow.png" title="previous" ALT="previous" BORDER=0 ></a></TMPL_IF></td>
107                 <td width="25%"><TMPL_IF name="next"><TMPL_VAR name="next"><input type=image src="<TMPL_VAR NAME='interface'>/<TMPL_VAR name="theme">/images/1rightarrow.png" title="next" ALT="next" BORDER=0></a></TMPL_IF></td>
108         </tr>
109 </table>
110 </TMPL_IF>
111
112 <TMPL_INCLUDE NAME="parameters-bottom.inc">
113 </html>