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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100_authorities.tt (-39 lines)
Lines 350-392 languages and obsolete typography)</option> Link Here
350
</form>
350
</form>
351
<script type="text/javascript">
351
<script type="text/javascript">
352
//<![CDATA[
352
//<![CDATA[
353
//     GetPublicationDate(); // running directly.
354
//
355
//     /**
356
//      *  GetPublicationDate.
357
//      *  This function get the publication date if it's writen on 210d
358
//      */
359
//     function GetPublicationDate() {
360
//         var PublicationDate = null;
361
//
362
//         for (i=0 ; i<NbFields ; i++) {
363
//             if (doc.f.tag[i].value == '210' && doc.f.subfield[i].value == 'd') {
364
//                 if (doc.f.field_value[i].value != ""){
365
//                     PublicationDate = doc.f.field_value[i].value;
366
//                     document.getElementById('pubdate1').value = PublicationDate;
367
//                 }
368
//                 return;
369
//             }
370
//         }
371
//     }
372
//
373
//     /**
374
//      *  SetPublicationDate.
375
//      *  This function set the publication date here
376
//      */
377
//     function SetPublicationDate() {
378
//         var PublicationDate = document.getElementById('pubdate1').value;
379
//         if (PublicationDate == "    " || !PublicationDate){
380
//             return ;
381
//         }
382
//         for (i=0 ; i<NbFields ; i++) {
383
//             if (doc.f.tag[i].value == '210' && doc.f.subfield[i].value == 'd') {
384
//                 doc.f.field_value[i].value = PublicationDate;
385
//                 break;
386
//             }
387
//         }
388
//     }
389
390
    function report() {
353
    function report() {
391
        var doc   = opener.document;
354
        var doc   = opener.document;
392
        var field = doc.getElementById("[% index %]");
355
        var field = doc.getElementById("[% index %]");
Lines 403-409 languages and obsolete typography)</option> Link Here
403
        document.f_pop.f2.value +document.f_pop.f3.value
366
        document.f_pop.f2.value +document.f_pop.f3.value
404
        +document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value;
367
        +document.f_pop.f4.value+document.f_pop.f5.value+document.f_pop.f6.value+document.f_pop.f7.value+document.f_pop.f8.value+document.f_pop.f9.value;
405
368
406
//         SetPublicationDate();
407
        self.close();
369
        self.close();
408
        return false;
370
        return false;
409
    }
371
    }
410
- 

Return to bug 8334