View | Details | Raw Unified | Return to bug 35471
Collapse All | Expand All

(-)a/admin/biblio_framework.pl (+6 lines)
Lines 46-55 my $dbh = C4::Context->dbh; Link Here
46
if ( $op eq 'add_form' ) {
46
if ( $op eq 'add_form' ) {
47
    my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } );
47
    my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } );
48
    my $framework;
48
    my $framework;
49
    my $child_frameworks;
49
    if ($frameworkcode) {
50
    if ($frameworkcode) {
50
        $framework = Koha::BiblioFrameworks->find($frameworkcode);
51
        $framework = Koha::BiblioFrameworks->find($frameworkcode);
52
        $child_frameworks = Koha::BiblioFrameworks->search(
53
            { parent_frameworkcode => $frameworkcode },
54
            { order_by             => ['frameworktext'], }
55
        );
51
    }
56
    }
52
    $template->param(
57
    $template->param(
58
        child_frameworks => $child_frameworks,
53
        framework  => $framework,
59
        framework  => $framework,
54
        frameworks => $frameworks
60
        frameworks => $frameworks
55
    );
61
    );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-1 / +10 lines)
Lines 153-158 Link Here
153
                </li>
153
                </li>
154
            </ol>
154
            </ol>
155
        </fieldset>
155
        </fieldset>
156
        [% IF child_frameworks && child_frameworks.count > 0 %]
157
        <fieldset class="rows">
158
            <label>Child frameworks: </label>
159
                <ul style="display:inline-block">
160
                [% FOREACH child IN child_frameworks %]
161
                    <li><a href="/cgi-bin/admin/biblio_framework.pl?op=add_form&frameworkcode=[% child.frameworkcode | uri %]">[% child.frameworktext | html %]</a></li>
162
                [% END %]
163
                </ul>
164
        </fieldset>
165
        [% END %]
156
        <fieldset class="action">
166
        <fieldset class="action">
157
            <input type="submit" value="Submit" class="btn btn-primary" />
167
            <input type="submit" value="Submit" class="btn btn-primary" />
158
        </fieldset>
168
        </fieldset>
159
- 

Return to bug 35471