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 149-154 Link Here
149
                </li>
149
                </li>
150
            </ol>
150
            </ol>
151
        </fieldset>
151
        </fieldset>
152
        [% IF child_frameworks && child_frameworks.count > 0 %]
153
        <fieldset class="rows">
154
            <label>Child frameworks: </label>
155
                <ul style="display:inline-block">
156
                [% FOREACH child IN child_frameworks %]
157
                    <li><a href="/cgi-bin/admin/biblio_framework.pl?op=add_form&frameworkcode=[% child.frameworkcode | html %]">[% child.frameworktext | html %]</a></li>
158
                [% END %]
159
                </ul>
160
        </fieldset>
161
        [% END %]
152
        <fieldset class="action">
162
        <fieldset class="action">
153
            <input type="submit" value="Submit" class="btn btn-primary" />
163
            <input type="submit" value="Submit" class="btn btn-primary" />
154
        </fieldset>
164
        </fieldset>
155
- 

Return to bug 35471