Fix for Bug 4933, Link to subfield's edit tab from subfield structure admin
authorOwen Leonard <oleonard@myacpl.org>
Sat, 13 Nov 2010 04:33:54 +0000 (23:33 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sat, 13 Nov 2010 06:20:30 +0000 (19:20 +1300)
- Also corrects framework display in the case of the default

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tmpl

index 2ea58de..7873296 100644 (file)
 
 
 <!-- TMPL_IF NAME="else" -->
-<h1>MARC subfield structure admin for <!-- TMPL_VAR NAME="tagfield" --> (framework <!--TMPL_VAR NAME="frameworkcode" -->)</h1>
+<h1>MARC subfield structure admin for <!-- TMPL_VAR NAME="tagfield" --> <!-- TMPL_IF NAME="frameworkcode" -->(framework <!--TMPL_VAR NAME="frameworkcode" -->)<!-- TMPL_ELSE -->(default framework)<!-- /TMPL_IF --></h1>
 <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>
 <p>The column Koha field shows that the subfield is linked with a Koha field. Koha can manage a MARC interface, or a Koha interface. This link ensures that both DB are synchronized, thus you can change from a MARC to a Koha interface easily.</p>
 
     <th>Subfield</th>
     <th>Text</th>
     <th>Constraints</th>
+    <th>Edit</th>
     <th>Delete</th>
 </tr>
 <!-- TMPL_LOOP NAME="loop" -->
 <!-- TMPL_ELSE -->
 <tr>
 <!-- /TMPL_UNLESS -->
-    <td><!-- TMPL_VAR NAME="tagsubfield" --></td>
+    <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=<!-- TMPL_VAR NAME="tagfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->#sub<!-- TMPL_VAR NAME="tagsubfield" -->field"><!-- TMPL_VAR NAME="tagsubfield" --></a></td>
     <td>
         <!-- TMPL_IF NAME="subfield_ignored" -->
             <i><!-- TMPL_VAR NAME="liblibrarian" --></i>
             <!-- TMPL_IF NAME="link" --> | Link:<!-- TMPL_VAR NAME="link" -->,<!-- /TMPL_IF -->
         <!-- /TMPL_IF -->
     </td>
-    <td><a href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
+    <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=<!-- TMPL_VAR NAME="tagfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" -->#sub<!-- TMPL_VAR NAME="tagsubfield" -->field">Edit</a></td>
+    <td><a class="" href="<!-- TMPL_VAR NAME="delete" -->">Delete</a></td>
 </tr>
 <!-- /TMPL_LOOP -->
 </table>