Bug 8334: (follow-up) remove commented JS code
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 13 Dec 2013 14:46:15 +0000 (15:46 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 13 Dec 2013 16:33:21 +0000 (16:33 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100_authorities.tt

index 553ee49..e905585 100644 (file)
@@ -350,43 +350,6 @@ languages and obsolete typography)</option>
 </form>
 <script type="text/javascript">
 //<![CDATA[
-//     GetPublicationDate(); // running directly.
-//
-//     /**
-//      *  GetPublicationDate.
-//      *  This function get the publication date if it's writen on 210d
-//      */
-//     function GetPublicationDate() {
-//         var PublicationDate = null;
-//
-//         for (i=0 ; i<NbFields ; i++) {
-//             if (doc.f.tag[i].value == '210' && doc.f.subfield[i].value == 'd') {
-//                 if (doc.f.field_value[i].value != ""){
-//                     PublicationDate = doc.f.field_value[i].value;
-//                     document.getElementById('pubdate1').value = PublicationDate;
-//                 }
-//                 return;
-//             }
-//         }
-//     }
-//
-//     /**
-//      *  SetPublicationDate.
-//      *  This function set the publication date here
-//      */
-//     function SetPublicationDate() {
-//         var PublicationDate = document.getElementById('pubdate1').value;
-//         if (PublicationDate == "    " || !PublicationDate){
-//             return ;
-//         }
-//         for (i=0 ; i<NbFields ; i++) {
-//             if (doc.f.tag[i].value == '210' && doc.f.subfield[i].value == 'd') {
-//                 doc.f.field_value[i].value = PublicationDate;
-//                 break;
-//             }
-//         }
-//     }
-
     function report() {
         var doc   = opener.document;
         var field = doc.getElementById("[% index %]");
@@ -403,7 +366,6 @@ languages and obsolete typography)</option>
         document.f_pop.f2.value +document.f_pop.f3.value
         +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;
 
-//         SetPublicationDate();
         self.close();
         return false;
     }