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

(-)a/admin/biblio_framework.pl (+6 lines)
Lines 47-56 my $dbh = C4::Context->dbh; Link Here
47
if ( $op eq 'add_form' ) {
47
if ( $op eq 'add_form' ) {
48
    my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } );
48
    my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } );
49
    my $framework;
49
    my $framework;
50
    my $child_frameworks;
50
    if ($frameworkcode) {
51
    if ($frameworkcode) {
51
        $framework = Koha::BiblioFrameworks->find($frameworkcode);
52
        $framework = Koha::BiblioFrameworks->find($frameworkcode);
53
        $child_frameworks = Koha::BiblioFrameworks->search(
54
            { parent_frameworkcode => $frameworkcode },
55
            { order_by             => ['frameworktext'], }
56
        );
52
    }
57
    }
53
    $template->param(
58
    $template->param(
59
        child_frameworks => $child_frameworks,
54
        framework  => $framework,
60
        framework  => $framework,
55
        frameworks => $frameworks,
61
        frameworks => $frameworks,
56
    );
62
    );
(-)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