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

(-)a/acqui/addorder.pl (-16 / +27 lines)
Lines 138-143 use C4::Barcodes; Link Here
138
# not just blindly call C4 functions and print a redirect.  
138
# not just blindly call C4 functions and print a redirect.  
139
139
140
my $input = new CGI;
140
my $input = new CGI;
141
my $use_ACQ_framework = $input->param('use_ACQ_framework');
141
142
142
# Check if order total amount exceed allowed budget
143
# Check if order total amount exceed allowed budget
143
my $confirm_budget_exceeding = $input->param('confirm_budget_exceeding');
144
my $confirm_budget_exceeding = $input->param('confirm_budget_exceeding');
Lines 239-259 my $basket = Koha::Acquisition::Baskets->find($basketno); Link Here
239
if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) {
240
if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) {
240
    #TODO:check to see if biblio exists
241
    #TODO:check to see if biblio exists
241
    unless ( $$orderinfo{biblionumber} ) {
242
    unless ( $$orderinfo{biblionumber} ) {
242
        #if it doesn't create it
243
        my $record = TransformKohaToMarc(
244
            {
245
                "biblio.title"                => "$$orderinfo{title}",
246
                "biblio.author"               => $$orderinfo{author}          ? $$orderinfo{author}        : "",
247
                "biblio.seriestitle"          => $$orderinfo{series}          ? $$orderinfo{series}        : "",
248
                "biblioitems.isbn"            => $$orderinfo{isbn}            ? $$orderinfo{isbn}          : "",
249
                "biblioitems.ean"             => $$orderinfo{ean}             ? $$orderinfo{ean}           : "",
250
                "biblioitems.publishercode"   => $$orderinfo{publishercode}   ? $$orderinfo{publishercode} : "",
251
                "biblioitems.publicationyear" => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
252
                "biblio.copyrightdate"        => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
253
                "biblioitems.itemtype"        => $$orderinfo{itemtype} ? $$orderinfo{itemtype} : "",
254
                "biblioitems.editionstatement"=> $$orderinfo{editionstatement} ? $$orderinfo{editionstatement} : "",
255
            });
256
243
244
        my $record;
245
        if ( $use_ACQ_framework ) {
246
            my @tags         = $input->multi_param('bib_tag');
247
            my @subfields    = $input->multi_param('bib_subfield');
248
            my @field_values = $input->multi_param('bib_field_value');
249
            my $xml = TransformHtmlToXml( \@tags, \@subfields, \@field_values );
250
            $record=MARC::Record::new_from_xml($xml, 'UTF-8');
251
        } else {
252
            #if it doesn't create it
253
            $record = TransformKohaToMarc(
254
                {
255
                    "biblio.title"                => "$$orderinfo{title}",
256
                    "biblio.author"               => $$orderinfo{author}          ? $$orderinfo{author}        : "",
257
                    "biblio.seriestitle"          => $$orderinfo{series}          ? $$orderinfo{series}        : "",
258
                    "biblioitems.isbn"            => $$orderinfo{isbn}            ? $$orderinfo{isbn}          : "",
259
                    "biblioitems.ean"             => $$orderinfo{ean}             ? $$orderinfo{ean}           : "",
260
                    "biblioitems.publishercode"   => $$orderinfo{publishercode}   ? $$orderinfo{publishercode} : "",
261
                    "biblioitems.publicationyear" => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
262
                    "biblio.copyrightdate"        => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
263
                    "biblioitems.itemtype"        => $$orderinfo{itemtype} ? $$orderinfo{itemtype} : "",
264
                    "biblioitems.editionstatement"=> $$orderinfo{editionstatement} ? $$orderinfo{editionstatement} : "",
265
                });
266
267
        }
257
        C4::Acquisition::FillWithDefaultValues( $record );
268
        C4::Acquisition::FillWithDefaultValues( $record );
258
269
259
        # create the record in catalogue, with framework ''
270
        # create the record in catalogue, with framework ''
Lines 308-315 if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) { Link Here
308
            unless ($itemhash{$itemid[$i]}){
319
            unless ($itemhash{$itemid[$i]}){
309
            $countdistinct++;
320
            $countdistinct++;
310
            }
321
            }
311
            push @{$itemhash{$itemid[$i]}->{'tags'}},$tags[$i];
322
        push @{$itemhash{$itemid[$i]}->{'tags'}},$tags[$i];
312
            push @{$itemhash{$itemid[$i]}->{'subfields'}},$subfields[$i];
323
        push @{$itemhash{$itemid[$i]}->{'subfields'}},$subfields[$i];
313
            push @{$itemhash{$itemid[$i]}->{'field_values'}},$field_values[$i];
324
            push @{$itemhash{$itemid[$i]}->{'field_values'}},$field_values[$i];
314
            push @{$itemhash{$itemid[$i]}->{'ind_tag'}},$ind_tag[$i];
325
            push @{$itemhash{$itemid[$i]}->{'ind_tag'}},$ind_tag[$i];
315
            push @{$itemhash{$itemid[$i]}->{'indicator'}},$indicator[$i];
326
            push @{$itemhash{$itemid[$i]}->{'indicator'}},$indicator[$i];
(-)a/acqui/neworderempty.pl (-9 / +109 lines)
Lines 88-95 use C4::ImportBatch qw/GetImportRecordMarc SetImportRecordStatus/; Link Here
88
88
89
use Koha::Acquisition::Booksellers;
89
use Koha::Acquisition::Booksellers;
90
use Koha::Acquisition::Currencies;
90
use Koha::Acquisition::Currencies;
91
use Koha::BiblioFrameworks;
92
use Koha::DateUtils qw( dt_from_string );
93
use Koha::MarcSubfieldStructures;
91
use Koha::ItemTypes;
94
use Koha::ItemTypes;
92
use Koha::Patrons;
95
use Koha::Patrons;
96
use Koha::RecordProcessor;
93
97
94
our $input           = new CGI;
98
our $input           = new CGI;
95
my $booksellerid    = $input->param('booksellerid');	# FIXME: else ERROR!
99
my $booksellerid    = $input->param('booksellerid');	# FIXME: else ERROR!
Lines 173-193 if ( $ordernumber eq '' and defined $params->{'breedingid'}){ Link Here
173
177
174
178
175
179
176
my ( @order_user_ids, @order_users );
180
my ( @order_user_ids, @order_users, @catalog_details );
177
if ( $ordernumber eq '' ) {    # create order
181
our $tagslib = GetMarcStructure(1, 'ACQ', { unsafe => 1 } );
182
my ( $itemnumber_tag, $itemnumber_subtag ) = GetMarcFromKohaField( 'items.itemnumber', 'ACQ' );
183
if ( not $ordernumber ) {    # create order
178
    $new = 'yes';
184
    $new = 'yes';
179
185
180
    # 	$ordernumber=newordernum;
186
    if ( $biblionumber ) {
181
    if ( $biblionumber && !$suggestionid ) {
182
        $data = GetBiblioData($biblionumber);
187
        $data = GetBiblioData($biblionumber);
183
    }
188
    }
184
189
    # get suggestion fields if applicable. If it's a subscription renewal, then the biblio already exists
185
# get suggestion fields if applicable. If it's a subscription renewal, then the biblio already exists
190
    # otherwise, retrieve suggestion information.
186
# otherwise, retrieve suggestion information.
191
    elsif ($suggestionid) {
187
    if ($suggestionid) {
192
        $data = GetSuggestion($suggestionid);
188
        $data = ($biblionumber) ? GetBiblioData($biblionumber) : GetSuggestion($suggestionid);
189
        $budget_id ||= $data->{'budgetid'} // 0;
193
        $budget_id ||= $data->{'budgetid'} // 0;
190
    }
194
    }
195
196
    if ( not $biblionumber and Koha::BiblioFrameworks->find('ACQ') ) {
197
        #my $acq_mss = Koha::MarcSubfieldStructures->search({ frameworkcode => 'ACQ', tagfield => { '!=' => $itemnumber_tag } });
198
        foreach my $tag ( sort keys %{$tagslib} ) {
199
            next if $tag eq '';
200
            next if $tag eq $itemnumber_tag;    # skip items fields
201
            foreach my $subfield ( sort keys %{ $tagslib->{$tag} } ) {
202
                my $mss = $tagslib->{$tag}{$subfield};
203
                next if IsMarcStructureInternal($mss);
204
                next if $mss->{tab} == -1;
205
                my $value = $mss->{defaultvalue};
206
207
                if ($suggestionid and $mss->{kohafield}) {
208
                    # Reading suggestion info if ordering from a suggestion
209
                    if ( $mss->{kohafield} eq 'biblio.title' ) {
210
                        $value = $data->{title};
211
                    }
212
                    elsif ( $mss->{kohafield} eq 'biblio.author' ) {
213
                        $value = $data->{author};
214
                    }
215
                    elsif ( $mss->{kohafield} eq 'biblioitems.publishercode' ) {
216
                        $value = $data->{publishercode};
217
                    }
218
                    elsif ( $mss->{kohafield} eq 'biblioitems.editionstatement' ) {
219
                        $value = $data->{editionstatement};
220
                    }
221
                    elsif ( $mss->{kohafield} eq 'biblioitems.publicationyear' ) {
222
                        $value = $data->{publicationyear};
223
                    }
224
                    elsif ( $mss->{kohafield} eq 'biblioitems.isbn' ) {
225
                        $value = $data->{isbn};
226
                    }
227
                    elsif ( $mss->{kohafield} eq 'biblio.seriestitle' ) {
228
                        $value = $data->{seriestitle};
229
                    }
230
                }
231
232
                if ( $value eq '' ) {
233
234
                    # get today date & replace <<YYYY>>, <<MM>>, <<DD>> if provided in the default value
235
                    my $today_dt = dt_from_string;
236
                    my $year     = $today_dt->strftime('%Y');
237
                    my $month    = $today_dt->strftime('%m');
238
                    my $day      = $today_dt->strftime('%d');
239
                    $value =~ s/<<YYYY>>/$year/g;
240
                    $value =~ s/<<MM>>/$month/g;
241
                    $value =~ s/<<DD>>/$day/g;
242
243
                    # And <<USER>> with surname (?)
244
                    my $username =
245
                      (   C4::Context->userenv
246
                        ? C4::Context->userenv->{'surname'}
247
                        : "superlibrarian" );
248
                    $value =~ s/<<USER>>/$username/g;
249
                }
250
                push @catalog_details, {
251
                    tag      => $tag,
252
                    subfield => $subfield,
253
                    %$mss,    # Do we need plugins support (?)
254
                    value => $value,
255
                };
256
            }
257
        }
258
    }
191
}
259
}
192
else {    #modify order
260
else {    #modify order
193
    $data   = GetOrder($ordernumber);
261
    $data   = GetOrder($ordernumber);
Lines 205-210 else { #modify order Link Here
205
    }
273
    }
206
}
274
}
207
275
276
# We can have:
277
# - no ordernumber but a biblionumber: from a subscription, from an existing record
278
# - no ordernumber, no biblionumber: from a suggestion, from a new order
279
if ( not $ordernumber or $biblionumber ) {
280
    if ( C4::Context->preference('UseACQFrameworkForBiblioRecords') ) {
281
        my $record = $biblionumber ? GetMarcBiblio({ biblionumber => $biblionumber }) : undef;
282
        foreach my $tag ( sort keys %{$tagslib} ) {
283
            next if $tag eq '';
284
            next if $tag eq $itemnumber_tag; # skip items fields
285
            my @fields = $biblionumber ? $record->field($tag) : ();
286
            foreach my $subfield ( sort keys %{ $tagslib->{$tag} } ) {
287
                my $mss = $tagslib->{$tag}{$subfield};
288
                next if IsMarcStructureInternal($mss);
289
                next if $mss->{tab} == -1;
290
                # We only need to display the values
291
                my $value = join '; ', map { $_->subfield( $subfield ) } @fields;
292
                if ( $value ) {
293
                    push @catalog_details, {
294
                        tag => $tag,
295
                        subfield => $subfield,
296
                        %$mss,
297
                        value => $value,
298
                    };
299
                }
300
            }
301
        }
302
    }
303
}
304
305
$template->param( catalog_details => \@catalog_details, );
306
208
my $suggestion;
307
my $suggestion;
209
$suggestion = GetSuggestionInfo($suggestionid) if $suggestionid;
308
$suggestion = GetSuggestionInfo($suggestionid) if $suggestionid;
210
309
Lines 254-259 if ($basketobj->effective_create_items eq 'ordering' && !$ordernumber) { Link Here
254
        UniqueItemFields => C4::Context->preference('UniqueItemFields'),
353
        UniqueItemFields => C4::Context->preference('UniqueItemFields'),
255
    );
354
    );
256
}
355
}
356
257
# Get the item types list, but only if item_level_itype is YES. Otherwise, it will be in the item, no need to display it in the biblio
357
# Get the item types list, but only if item_level_itype is YES. Otherwise, it will be in the item, no need to display it in the biblio
258
my @itemtypes;
358
my @itemtypes;
259
@itemtypes = Koha::ItemTypes->search unless C4::Context->preference('item-level_itypes');
359
@itemtypes = Koha::ItemTypes->search unless C4::Context->preference('item-level_itypes');
(-)a/catalogue/ISBDdetail.pl (-1 / +1 lines)
Lines 97-103 my $record_processor = Koha::RecordProcessor->new({ Link Here
97
    filters => 'ViewPolicy',
97
    filters => 'ViewPolicy',
98
    options => {
98
    options => {
99
        interface => 'intranet',
99
        interface => 'intranet',
100
        frameworkcode => $framework
100
        frameworkcode => 'ACQ'
101
    },
101
    },
102
});
102
});
103
$record_processor->process($record);
103
$record_processor->process($record);
(-)a/installer/data/mysql/atomicupdate/bug_19289.sql (+2 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`)
2
VALUES ('UseACQFrameworkForBiblioRecords','0','','Use the ACQ framework for the catalog details','YesNo');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 577-582 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
577
('UsageStatsLibraryType', '', 'public|school|academic|research|private|societyAssociation|corporate|government|religiousOrg|subscription', 'The library type to be shown on the Hea Koha community website', 'Choice'),
577
('UsageStatsLibraryType', '', 'public|school|academic|research|private|societyAssociation|corporate|government|religiousOrg|subscription', 'The library type to be shown on the Hea Koha community website', 'Choice'),
578
('UsageStatsLibraryUrl', '', NULL, 'The library URL to be shown on Hea Koha community website', 'Free'),
578
('UsageStatsLibraryUrl', '', NULL, 'The library URL to be shown on Hea Koha community website', 'Free'),
579
('UsageStatsPublicID', '', NULL, 'Public ID for Hea website', 'Free'),
579
('UsageStatsPublicID', '', NULL, 'Public ID for Hea website', 'Free'),
580
('UseACQFrameworkForBiblioRecords','0','','Use the ACQ framework for the catalog details','YesNo'),
580
('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'),
581
('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'),
581
('UseBranchTransferLimits','0','','If ON, Koha will will use the rules defined in branch_transfer_limits to decide if an item transfer should be allowed.','YesNo'),
582
('UseBranchTransferLimits','0','','If ON, Koha will will use the rules defined in branch_transfer_limits to decide if an item transfer should be allowed.','YesNo'),
582
('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'),
583
('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (+12 lines)
Lines 17-19 Link Here
17
        [% END %]
17
        [% END %]
18
    [% END %]
18
    [% END %]
19
[% END %]
19
[% END %]
20
21
[% BLOCK options_for_item_types %]
22
    [% FOREACH itemtype IN itemtypes %]
23
        [% IF itemtype.itemtype == selected_itemtype %]
24
            <option value="[% itemtype.itemtype %]" selected="selected">
25
        [% ELSE %]
26
            <option value="[% itemtype.itemtype %]">
27
        [% END %]
28
            [% itemtype.translated_description %]
29
        </option>
30
    [% END %]
31
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-83 / +140 lines)
Lines 115-209 Link Here
115
            <input type="hidden" id="currency_rate_[% c.currency %]"  name="[% c.currency %]" value="[% c.rate %]" />
115
            <input type="hidden" id="currency_rate_[% c.currency %]"  name="[% c.currency %]" value="[% c.rate %]" />
116
        [% END %]
116
        [% END %]
117
117
118
        <ol><li>
118
        [% IF NOT Koha.Preference('UseACQFrameworkForBiblioRecords') OR NoACQframework %]
119
            [% IF ( biblionumber ) %]
119
            <ol><li>
120
            <span class="label">Title</span>
120
                [% IF ( biblionumber ) %]
121
                <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
121
                <span class="label">Title</span>
122
            [% ELSE %]
122
                    <input type="hidden" name="title" value="[% title |html %]" /> <span class="title">[% title |html %]</span>
123
            <label for="entertitle" class="required">Title: </label>
123
                [% ELSE %]
124
                <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" />
124
                <label for="entertitle" class="required">Title: </label>
125
                <span class="required">Required</span>
125
                    <input type="text" id="entertitle" size="50" name="title" value="[% title |html %]" class="focus" />
126
            [% END %]
126
                    <span class="required">Required</span>
127
        </li>
127
                [% END %]
128
        <li>
128
            </li>
129
            [% IF ( biblionumber ) %]
129
            <li>
130
            <span class="label">Author: </span>
130
                [% IF ( biblionumber ) %]
131
                <input type="hidden" name="author" id="author" value="[% author %]" />[% author %]
131
                <span class="label">Author: </span>
132
            [% ELSE %]
132
                    <input type="hidden" name="author" id="author" value="[% author %]" />[% author %]
133
            <label for="author">Author: </label>
133
                [% ELSE %]
134
                <input type="text" size="50" name="author" id="author" value="[% author %]" />
134
                <label for="author">Author: </label>
135
            [% END %]
135
                    <input type="text" size="50" name="author" id="author" value="[% author %]" />
136
        </li>
136
                [% END %]
137
        <li>
137
            </li>
138
            [% IF ( biblionumber ) %]
138
            <li>
139
            <span class="label">Publisher: </span>
139
                [% IF ( biblionumber ) %]
140
                <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
140
                <span class="label">Publisher: </span>
141
            [% ELSE %]
141
                    <input type="hidden" name="publishercode" id="publishercode" value="[% publishercode %]" />[% publishercode %]
142
            <label for="publishercode"> Publisher: </label>
142
                [% ELSE %]
143
                <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
143
                <label for="publishercode"> Publisher: </label>
144
            [% END %]
144
                    <input type="text" size="50" name="publishercode" id="publishercode" value="[% publishercode %]" />
145
        </li>
145
                [% END %]
146
        <li>
146
            </li>
147
            [% IF ( biblionumber ) %]
147
            <li>
148
            <span class="label">Edition: </span>
148
                [% IF ( biblionumber ) %]
149
                <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
149
                <span class="label">Edition: </span>
150
                    <input type="hidden" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />[% editionstatement %]
150
151
151
            [% ELSE %]
152
                [% ELSE %]
152
            <label for="editionstatement">Edition: </label>
153
                <label for="editionstatement">Edition: </label>
153
                <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
154
                    <input type="text" size="20" name="editionstatement" id="editionstatement" value="[% editionstatement %]" />
154
            [% END %]
155
                [% END %]
155
        </li>
156
            </li>
156
        <li>
157
            [% IF ( biblionumber ) %]
158
            <span class="label">Publication year: </span>
159
                <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
160
            [% ELSE %]
161
            <label for="publicationyear">Publication year: </label>
162
                <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
163
            [% END %]
164
        </li>
165
        <li>
166
            [% IF ( biblionumber ) %]
167
            <span class="label">ISBN: </span>
168
                <input type="hidden" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
169
            [% ELSE %]
170
            <label for="ISBN">ISBN: </label>
171
                <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
172
            [% END %]
173
        </li>
174
        [% IF (UNIMARC) %]
175
        <li>
176
            [% IF ( biblionumber ) %]
177
            <span class="label">EAN: </span>
178
                <input type="hidden" name="ean" id="EAN" value="[% ean %]" />[% ean %]
179
            [% ELSE %]
180
            <label for="EAN">EAN: </label>
181
                <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
182
            [% END %]
183
        </li>
184
        [% END %]
185
        <li>
186
            [% IF ( biblionumber ) %]
187
            <span class="label">Series: </span>
188
                <input type="hidden" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
189
            [% ELSE %]
190
            <label for="series">Series: </label>
191
                <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
192
            [% END %]
193
        </li>
194
            [% UNLESS ( biblionumber ) %]
195
            [% IF ( itemtypeloop ) %]
196
            <li>
157
            <li>
197
                <span class="label">Item type:</span>
158
                [% IF ( biblionumber ) %]
198
                <select name="itemtype" style="width:12em;">
159
                <span class="label">Publication year: </span>
199
                [% FOREACH itemtype IN itemtypeloop %]
160
                    <input type="hidden" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />[% publicationyear %]
200
                    <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
161
                [% ELSE %]
162
                <label for="publicationyear">Publication year: </label>
163
                    <input type="text" size="10" name="publicationyear" id="publicationyear" value="[% publicationyear %]" />
164
                [% END %]
165
            </li>
166
            <li>
167
                [% IF ( biblionumber ) %]
168
                <span class="label">ISBN: </span>
169
                    <input type="hidden" name="isbn" id="ISBN" value="[% isbn %]" />[% isbn %]
170
                [% ELSE %]
171
                <label for="ISBN">ISBN: </label>
172
                    <input type="text" size="50" name="isbn" id="ISBN" value="[% isbn %]" />
173
                [% END %]
174
            </li>
175
            [% IF (UNIMARC) %]
176
            <li>
177
                [% IF ( biblionumber ) %]
178
                <span class="label">EAN: </span>
179
                    <input type="hidden" name="ean" id="EAN" value="[% ean %]" />[% ean %]
180
                [% ELSE %]
181
                <label for="EAN">EAN: </label>
182
                    <input type="text" size="20" name="ean" id="EAN" value="[% ean %]" />
201
                [% END %]
183
                [% END %]
202
                </select>
203
            </li>
184
            </li>
204
            [% END %]
185
            [% END %]
186
            <li>
187
                [% IF ( biblionumber ) %]
188
                <span class="label">Series: </span>
189
                    <input type="hidden" name="series" id="series" value="[% seriestitle %]" />[% seriestitle %]
190
                [% ELSE %]
191
                <label for="series">Series: </label>
192
                    <input type="text" size="50" name="series" id="series" value="[% seriestitle %]" />
193
                [% END %]
194
            </li>
195
                [% UNLESS ( biblionumber ) %]
196
                [% IF ( itemtypeloop ) %]
197
                <li>
198
                    <span class="label">Item type:</span>
199
                    <select name="itemtype" style="width:12em;">
200
                    [% FOREACH itemtype IN itemtypeloop %]
201
                        <option value="[% itemtype.itemtype %]">[% itemtype.description %]</option>
202
                    [% END %]
203
                    </select>
204
                </li>
205
                [% END %]
206
                [% END %]
207
            </ol>
208
        [% ELSE %]
209
            <input type="hidden" name="use_ACQ_framework" value="1" />
210
            [% IF biblionumber %]
211
                <ol>
212
                    [% FOREACH field IN catalog_details %]
213
                        <li>
214
                            <div class="subfield_line">
215
                                <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label>
216
                                [% field.value %]
217
                            </div>
218
                        </li>
219
                    [% END %]
220
                </ol>
221
            [% ELSE %]
222
                <ol>
223
                    [% FOREACH field IN catalog_details %]
224
                        <li>
225
                            <div class="subfield_line">
226
                                [% PROCESS display_subfield field=field %]
227
                            </div>
228
                        </li>
229
                    [% END %]
230
                </ol>
205
            [% END %]
231
            [% END %]
206
        </ol>
232
        [% END %]
207
    </fieldset>
233
    </fieldset>
208
234
209
    [% IF ( suggestionid ) %]
235
    [% IF ( suggestionid ) %]
Lines 679-681 Link Here
679
[% END %]
705
[% END %]
680
706
681
[% INCLUDE 'intranet-bottom.inc' %]
707
[% INCLUDE 'intranet-bottom.inc' %]
708
709
[% BLOCK display_subfield %]
710
    [% IF field.mandatory %]
711
        <label class="required">[% field.lib %] ([% field.tag %][% field.subfield %])</label>
712
    [% ELSE %]
713
        <label>[% field.lib %] ([% field.tag %][% field.subfield %])</label>
714
    [% END %]
715
    [% IF field.authorised_value %]
716
        [% SWITCH field.authorised_value %]
717
        [% CASE 'branches' %]
718
            <select name="bib_field_value">
719
                <option value=""></option>
720
                [% PROCESS options_for_libraries libraries => Branches.all( selected => "FIXME" ) %]
721
            </select>
722
        [% CASE 'itemtypes' %]
723
            <select name="bib_field_value">
724
                <option value=""></option>
725
                [% PROCESS options_for_itemtypes itemtypes => ItemTypes.Get(), selected_itemtype => "FIXME" %]
726
            </select>
727
        [% CASE 'cn_source' %]
728
        [% CASE %]
729
            [% PROCESS 'av-build-dropbox.inc' name="bib_field_value", category=field.authorised_value, default="FIXME" %]
730
        [% END %]
731
    [% ELSE %]
732
        <input type="text" name="bib_field_value" value="[% field.value %]" />
733
    [% END %]
734
    <input type="hidden" name="bib_kohafield" value="[% field.kohafield %]" />
735
    <input type="hidden" name="bib_tag" value="[% field.tag %]" />
736
    <input type="hidden" name="bib_subfield" value="[% field.subfield %]" />
737
    [% IF field.mandatory %] <span class="required">Required</span>[% END %]
738
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref (-1 / +7 lines)
Lines 85-90 Acquisitions: Link Here
85
            - "<br>Example: [30] Sets purgation of suggestions for those older than 30 days."
85
            - "<br>Example: [30] Sets purgation of suggestions for those older than 30 days."
86
            - <br>(Used when the cronjob purge_suggestions.pl is active and called without a specific number of days)
86
            - <br>(Used when the cronjob purge_suggestions.pl is active and called without a specific number of days)
87
87
88
        -
89
            - pref: UseACQFrameworkForBiblioRecords
90
              default: no
91
              choices:
92
                yes: "Use"
93
                no: "Don't use"
94
            - " the framework 'ACQ' for bibliographic records fields"
88
    Printing:
95
    Printing:
89
        -
96
        -
90
            - Use the
97
            - Use the
91
- 

Return to bug 19289