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

(-)a/admin/biblio_framework.pl (-1 / +7 lines)
Lines 120-131 if ( $op eq 'add_form' ) { Link Here
120
120
121
if ( $op eq 'list' ) {
121
if ( $op eq 'list' ) {
122
    my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } );
122
    my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } );
123
    $template->param( frameworks => $frameworks, );
123
    my $default_framework = Koha::BiblioFrameworks->get_default;
124
    $template->param(
125
        frameworks => $frameworks,
126
        default_framework => ( $default_framework && $default_framework->frameworkcode ne '' ) ? $default_framework->frameworkcode : '',
127
    );
124
}
128
}
125
129
130
my $default_framework = Koha::BiblioFrameworks->get_default;
126
$template->param(
131
$template->param(
127
    messages => \@messages,
132
    messages => \@messages,
128
    op       => $op,
133
    op       => $op,
134
    default_framework => ( $default_framework && $default_framework->frameworkcode ne '' ) ? $default_framework->frameworkcode : '',
129
);
135
);
130
136
131
output_html_with_http_headers $input, $cookie, $template->output;
137
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt (-1 / +4 lines)
Lines 94-99 Link Here
94
                    [% ELSE %]
94
                    [% ELSE %]
95
                        <input type="checkbox" name="is_default" id="is_default" value="1">
95
                        <input type="checkbox" name="is_default" id="is_default" value="1">
96
                    [% END %]
96
                    [% END %]
97
                    <span class="hint">Unset to revert default framework to Default</span>
97
                </li>
98
                </li>
98
            </ol>
99
            </ol>
99
        </fieldset>
100
        </fieldset>
Lines 134-139 Link Here
134
    <tr>
135
    <tr>
135
        <th>Code</th>
136
        <th>Code</th>
136
        <th>Description</th>
137
        <th>Description</th>
138
        <th class="is_default">Is default?</th>
137
        <th>&nbsp;</th>
139
        <th>&nbsp;</th>
138
    </tr>
140
    </tr>
139
    </thead>
141
    </thead>
Lines 141-146 Link Here
141
    <tr>
143
    <tr>
142
        <td>&nbsp;</td>
144
        <td>&nbsp;</td>
143
        <td>Default framework</td>
145
        <td>Default framework</td>
146
        <td class="is_default">[% IF default_framework == '' %]Yes[% ELSE %]No[% END %]</td>
144
        <td>
147
        <td>
145
          <div class="btn-group dropup">
148
          <div class="btn-group dropup">
146
            <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode | html %]" role="button" data-toggle="dropdown" href="#">
149
            <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode | html %]" role="button" data-toggle="dropdown" href="#">
Lines 209-214 Link Here
209
        <tr>
212
        <tr>
210
            <td>[% loo.frameworkcode | html %]</td>
213
            <td>[% loo.frameworkcode | html %]</td>
211
            <td>[% loo.frameworktext | html %]</td>
214
            <td>[% loo.frameworktext | html %]</td>
215
            <td class="is_default">[% IF loo.is_default %]Yes[% ELSE %]No[% END %]</td>
212
            <td>
216
            <td>
213
              <div class="btn-group dropup">
217
              <div class="btn-group dropup">
214
                <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode | html %]" role="button" data-toggle="dropdown" href="#">
218
                <a class="btn btn-default btn-xs dropdown-toggle" id="frameworkactions[% loo.frameworkcode | html %]" role="button" data-toggle="dropdown" href="#">
215
- 

Return to bug 23111