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

(-)a/acqui/addorder.pl (-2 / +3 lines)
Lines 189-205 my $bibitemnum; Link Here
189
if ( $orderinfo->{quantity} ne '0' ) {
189
if ( $orderinfo->{quantity} ne '0' ) {
190
    #TODO:check to see if biblio exists
190
    #TODO:check to see if biblio exists
191
    unless ( $$orderinfo{biblionumber} ) {
191
    unless ( $$orderinfo{biblionumber} ) {
192
193
        #if it doesnt create it
192
        #if it doesnt create it
194
        my $record = TransformKohaToMarc(
193
        my $record = TransformKohaToMarc(
195
            {
194
            {
196
                "biblio.title"                => "$$orderinfo{title}",
195
                "biblio.title"                => "$$orderinfo{title}",
197
                "biblio.author"               => "$$orderinfo{author}",
196
                "biblio.author"               => $$orderinfo{author}          ? $$orderinfo{author}        : "",
198
                "biblio.seriestitle"          => $$orderinfo{series}          ? $$orderinfo{series}        : "",
197
                "biblio.seriestitle"          => $$orderinfo{series}          ? $$orderinfo{series}        : "",
199
                "biblioitems.isbn"            => $$orderinfo{isbn}            ? $$orderinfo{isbn}          : "",
198
                "biblioitems.isbn"            => $$orderinfo{isbn}            ? $$orderinfo{isbn}          : "",
200
                "biblioitems.publishercode"   => $$orderinfo{publishercode}   ? $$orderinfo{publishercode} : "",
199
                "biblioitems.publishercode"   => $$orderinfo{publishercode}   ? $$orderinfo{publishercode} : "",
201
                "biblioitems.publicationyear" => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
200
                "biblioitems.publicationyear" => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
201
                "biblio.copyrightdate"        => $$orderinfo{publicationyear} ? $$orderinfo{publicationyear}: "",
202
            });
202
            });
203
203
        # create the record in catalogue, with framework ''
204
        # create the record in catalogue, with framework ''
204
        my ($biblionumber,$bibitemnum) = AddBiblio($record,'');
205
        my ($biblionumber,$bibitemnum) = AddBiblio($record,'');
205
        # change suggestion status if applicable
206
        # change suggestion status if applicable
(-)a/acqui/neworderempty.pl (-1 / +1 lines)
Lines 340-346 $template->param( Link Here
340
    orderexists      => ( $new eq 'yes' ) ? 0 : 1,
340
    orderexists      => ( $new eq 'yes' ) ? 0 : 1,
341
    title            => $data->{'title'},
341
    title            => $data->{'title'},
342
    author           => $data->{'author'},
342
    author           => $data->{'author'},
343
    publicationyear  => $data->{'publicationyear'},
343
    publicationyear  => $data->{'publicationyear'} ? $data->{'publicationyear'} : $data->{'copyrightdate'},
344
    budget_loop      => $budget_loop,
344
    budget_loop      => $budget_loop,
345
    isbn             => $data->{'isbn'},
345
    isbn             => $data->{'isbn'},
346
    seriestitle      => $data->{'seriestitle'},
346
    seriestitle      => $data->{'seriestitle'},
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tmpl (-5 / +4 lines)
Lines 80-86 ff.submit(); Link Here
80
        <legend>Basket details</legend>
80
        <legend>Basket details</legend>
81
		<ol>
81
		<ol>
82
        <!-- TMPL_IF NAME="basketnote" --><li><span class="label">Internal note:</span> <!-- TMPL_VAR NAME="basketnote" --></li><!-- /TMPL_IF -->
82
        <!-- TMPL_IF NAME="basketnote" --><li><span class="label">Internal note:</span> <!-- TMPL_VAR NAME="basketnote" --></li><!-- /TMPL_IF -->
83
        <!-- TMPL_IF NAME="basketbooksellernote" --><li><span class="label">Vendor note</span>: <!-- TMPL_VAR NAME="basketbooksellernote" --></li><!-- /TMPL_IF -->
83
        <!-- TMPL_IF NAME="basketbooksellernote" --><li><span class="label">Vendor note:</span> <!-- TMPL_VAR NAME="basketbooksellernote" --></li><!-- /TMPL_IF -->
84
        <!-- TMPL_IF NAME="basketcontractno" -->
84
        <!-- TMPL_IF NAME="basketcontractno" -->
85
            <li><span class="label">Contract number: </span><!-- TMPL_VAR NAME="basketcontractno" --></li>
85
            <li><span class="label">Contract number: </span><!-- TMPL_VAR NAME="basketcontractno" --></li>
86
            <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->"><!-- TMPL_VAR NAME="basketcontractname" --></a></li>
86
            <li><span class="label">Contract name:</span> <a href="/cgi-bin/koha/admin/aqcontract.pl?op=add_form&amp;contractnumber=<!-- TMPL_VAR NAME="basketcontractno" -->"><!-- TMPL_VAR NAME="basketcontractname" --></a></li>
Lines 176-191 ff.submit(); Link Here
176
        <li>
176
        <li>
177
            <!-- TMPL_IF name="biblionumber" -->
177
            <!-- TMPL_IF name="biblionumber" -->
178
            <span class="label">ISBN: </span>
178
            <span class="label">ISBN: </span>
179
                <input type="hidden" size="20" name="ISBN" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /><!-- TMPL_VAR NAME="isbn" -->
179
                <input type="hidden" size="20" name="isbn" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" /><!-- TMPL_VAR NAME="isbn" -->
180
            <!-- TMPL_ELSE -->
180
            <!-- TMPL_ELSE -->
181
            <label for="ISBN">ISBN: </label>
181
            <label for="ISBN">ISBN: </label>
182
                <input type="text" size="20" name="ISBN" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" />
182
                <input type="text" size="20" name="isbn" id="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->" />
183
            <!-- /TMPL_IF -->
183
            <!-- /TMPL_IF -->
184
        </li>
184
        </li>
185
        <li>
185
        <li>
186
            <!-- TMPL_IF name="biblionumber" -->
186
            <!-- TMPL_IF name="biblionumber" -->
187
            <span class="label">Series: </span>
187
            <span class="label">Series: </span>
188
                <input type="hidden" size="20" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /><span class="title"><!-- TMPL_VAR NAME="seriestitle" --></span>
188
                <input type="hidden" size="20" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" /><!-- TMPL_VAR NAME="seriestitle" -->
189
            <!-- TMPL_ELSE -->
189
            <!-- TMPL_ELSE -->
190
            <label for="series">Series: </label>
190
            <label for="series">Series: </label>
191
                <input type="text" size="20" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" />
191
                <input type="text" size="20" name="series" id="series" value="<!-- TMPL_VAR NAME="seriestitle" -->" />
192
- 

Return to bug 5090