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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt (-6 / +23 lines)
Lines 276-282 function Changefwk(FwkList) { Link Here
276
        <div id="yui-main">
276
        <div id="yui-main">
277
        <div class="yui-g">
277
        <div class="yui-g">
278
278
279
<h1>[% IF ( biblionumber ) %]Editing <em>[% title |html %]</em> (Record number [% biblionumber %])</h1>[% ELSE %]Add MARC record</h1>[% END %]
279
<h1>
280
[% IF ( biblionumber ) %]Editing <em>[% title |html %]</em> (Record number [% biblionumber %])
281
[% ELSE %]Add MARC record [% IF (circborrowernumber) %]<em>(fast cataloging)</em>[% END %]
282
[% END %]
283
</h1>
284
280
[% IF marcflavour != 'NORMARC' %]
285
[% IF marcflavour != 'NORMARC' %]
281
<div><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links<br/></div>
286
<div><input type="checkbox" name="marcDocsSelect" id="marcDocsSelect" checked="true" /> Show MARC tag documentation links<br/></div>
282
[% END %]
287
[% END %]
Lines 354-359 function Changefwk(FwkList) { Link Here
354
359
355
	function yuiToolbar() {
360
	function yuiToolbar() {
356
[% IF ( CAN_user_editcatalogue_edit_items ) %]
361
[% IF ( CAN_user_editcatalogue_edit_items ) %]
362
    [% IF (circborrowernumber) %][%# fast cataloging must lead to items %]
363
        new YAHOO.widget.Button({
364
            id: "addbiblio",
365
            type: "button",
366
            label: _("Save"),
367
            container: "savebutton",
368
            onclick: {fn:function(){redirect("items");}}
369
        });
370
    [% ELSE %]
357
        var savesplitmenu = new YAHOO.widget.Button({
371
        var savesplitmenu = new YAHOO.widget.Button({
358
            type: "split",
372
            type: "split",
359
            label: _("Save"),
373
            label: _("Save"),
Lines 362-369 function Changefwk(FwkList) { Link Here
362
            menu: savemenu,
376
            menu: savemenu,
363
            container: "savebutton"
377
            container: "savebutton"
364
         });
378
         });
365
379
        savesplitmenu.on("click", onOption);
366
        savesplitmenu.on("click", onOption); 
380
    [% END %]
367
[% ELSE %]
381
[% ELSE %]
368
        new YAHOO.widget.Button({
382
        new YAHOO.widget.Button({
369
            id: "addbiblio",
383
            id: "addbiblio",
Lines 387-392 function Changefwk(FwkList) { Link Here
387
401
388
		<ul class="toolbar">
402
		<ul class="toolbar">
389
			<li id="savebutton"><input id="addbiblio" type="submit" value="Save" /></li>
403
			<li id="savebutton"><input id="addbiblio" type="submit" value="Save" /></li>
404
            [% UNLESS (circborrowernumber) %][%# Hide in fast cataloging %]
390
			<li id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></li>
405
			<li id="z3950searchc"><input type="button" id="z3950search" value="Z39.50 Search" onclick="PopupZ3950(); return false;" /></li>
391
			<li id="changeframework"><label for="Frameworks">Change framework: </label>
406
			<li id="changeframework"><label for="Frameworks">Change framework: </label>
392
			<select name="frameworkcode" id="Frameworks" onchange="Changefwk(this);">
407
			<select name="frameworkcode" id="Frameworks" onchange="Changefwk(this);">
Lines 401-413 function Changefwk(FwkList) { Link Here
401
                                 </option>                          
416
                                 </option>                          
402
					        [% END %]
417
					        [% END %]
403
			</select> 
418
			</select> 
404
<input type="hidden" name="op" value="addbiblio" /></li>
419
            </li>
420
            [% END %]
405
		</ul>
421
		</ul>
406
</div>
422
</div>
407
423
408
[% IF ( popup ) %]
424
[% IF ( popup ) %]
409
        <input type="hidden" name="mode" value="popup" />
425
        <input type="hidden" name="mode" value="popup" />
410
[% END %]
426
[% END %]
427
        <input type="hidden" name="op" value="addbiblio" />
411
        <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
428
        <input type="hidden" name="frameworkcode" value="[% frameworkcode %]" />
412
        <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
429
        <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
413
        <input type="hidden" name="breedingid" value="[% breedingid %]" />
430
        <input type="hidden" name="breedingid" value="[% breedingid %]" />
Lines 571-583 function Changefwk(FwkList) { Link Here
571
588
572
</div><!-- tabs -->
589
</div><!-- tabs -->
573
590
574
[%# Fields for fast cataloguing %]
591
[%# Fields for fast cataloging %]
575
<input type="hidden" name="barcode" value="[% barcode %]" />
592
<input type="hidden" name="barcode" value="[% barcode %]" />
576
<input type="hidden" name="branch" value="[% branch %]" />
593
<input type="hidden" name="branch" value="[% branch %]" />
577
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber %]" />
594
<input type="hidden" name="circborrowernumber" value="[% circborrowernumber %]" />
578
<input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
595
<input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
579
<input type="hidden" name="duedatespec" value="[% duedatespec %]" />
596
<input type="hidden" name="duedatespec" value="[% duedatespec %]" />
580
[%# End of fields for fast cataloguing %]
597
[%# End of fields for fast cataloging %]
581
598
582
</form>
599
</form>
583
600
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-4 / +3 lines)
Lines 162-168 $(document).ready(function() { Link Here
162
    [% END %]
162
    [% END %]
163
    <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
163
    <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
164
    [% IF ( opisadd ) %]
164
    [% IF ( opisadd ) %]
165
        <h2 id="additema">Add item</h2>
165
        <h2 id="additema">Add item [% IF (circborrowernumber) %]<em>(fast cataloging)</em>[% END %]</h2>
166
    [% ELSE %]
166
    [% ELSE %]
167
        <h2 id="edititem">Edit Item #[% itemnumber %][% IF ( barcode ) %] / Barcode [% barcode %][% END %]</h2>
167
        <h2 id="edititem">Edit Item #[% itemnumber %][% IF ( barcode ) %] / Barcode [% barcode %][% END %]</h2>
168
    [% END %]
168
    [% END %]
Lines 215-226 $(document).ready(function() { Link Here
215
    <input type="submit" value="Save changes" onclick="return Check(this.form)" />
215
    <input type="submit" value="Save changes" onclick="return Check(this.form)" />
216
    [% END %]</fieldset>
216
    [% END %]</fieldset>
217
    
217
    
218
    [%# Fields for fast cataloguing %]
218
    [%# Fields for fast cataloging %]
219
    <input type="hidden" name="circborrowernumber" value="[% circborrowernumber %]" />
219
    <input type="hidden" name="circborrowernumber" value="[% circborrowernumber %]" />
220
    <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
220
    <input type="hidden" name="stickyduedate" value="[% stickyduedate %]" />
221
    <input type="hidden" name="barcode" value="[% barcode %]" />
221
    <input type="hidden" name="barcode" value="[% barcode %]" />
222
    <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
222
    <input type="hidden" name="duedatespec" value="[% duedatespec %]" />
223
    [%# End fields for fast cataloguing %]
223
    [%# End fields for fast cataloging %]
224
224
225
225
226
    </form>
226
    </form>
227
- 

Return to bug 7253