<?php

require_once "config.php";

include $_SERVER['DOCUMENT_ROOT'].$GLOBALS['ximlibwebbasepath'].'/ximeo/php/eoLibrariesManager.php';

class eoLibrariesManagerDACS  extends eoLibrariesManager{



  public function __construct($basePath = ['rootximlib' => '', 'app' => ''])
  {
      parent::__construct($basePath);


      $this->add_library('d3RangeSlider', 'd3RangeSlider',
            $this->rootBasePath .'/thirdparty/package/d3RangeSlider',
            ['d3RangeSlider.css'],
            ['d3.v5.min.js', 'd3RangeSlider.js'],
            []);

      $this->add_library('chartjs_2.9.4', 'chartjs',
            $this->rootBasePath .'/thirdparty/package/chartjs-2.9.4',
            ['chart.js/Chart.min.css'],
            ['chart.js/Chart.bundle.min.js'],
            []);

      $this->add_library('c_tab_1.2', 'c_tab',
          $this->rootBasePath .'/ximeo/package/C_Tab-1.2',
            ['css/C_Tab.css'],
            ['js/C_Tab.js'],
            []);

      $this->add_library('checkbox_2.0.2', 'checkbox',
          $this->rootBasePath .'/thirdparty/package/checkbox-2.0.2',
            ['searchableOptionList.css'],
            ['sol.js'],
            []);

      $this->add_library('font-awesome_6.5.2', 'font-awesome',
          $this->rootBasePath .'/thirdparty/package/font-awesome-6.5.2',
            ['css/all.min.css'],
            [],
            []);



      $this->add_library('eodacsv1', 'eodacs',
          '',
          [$this->appBasePath .'/eoDACS/SubFW/css/eodacs.css'],
          [ $this->appBasePath .'/eoDACS/SubFW/js/eodacs.js', 
            $this->appBasePath .'/eoDACS/SubFW/js/statistic_color.js' ],
          []);


      $this->add_library('carouselv1', 'carousel',
          '',
          [$this->appBasePath .'../eoWORKLIST/SubFW/css/carousel.css'],
          [],
          []);

      $this->add_library('menu_contextv1', 'menu_context',
          '',
          [$this->appBasePath .'/eoDACS/SubFW/css/menu-context.standalone.css'],
          [$this->appBasePath .'/eoDACS/SubFW/js/menu-context.js'],
          []);


      $this->add_library('misc_eodacsjsv1', 'misc_eodacsjs',
        '',
        [],
        [
		/*$this->appBasePath .'/eoDACS/SubFW/js/C_Document.js',
         $this->appBasePath .'/eoDACS/SubFW/js/C_File.js',*/
         $this->appBasePath .'/eoDACS/SubFW/js/DocumentViewer.js',
         $this->appBasePath .'/eoDACS/SubFW/js/C_CheckboxMenu.js',
         $this->appBasePath .'/eoDACS/SubFW/js/i18n.js',
         $this->appBasePath .'/eoDACS/SubFW/js/msg_dlg.js',
         $this->appBasePath .'/eoDACS/SubFW/js/waiting.js',
         $this->appBasePath .'/eoDACS/SubFW/js/menu-initialize.js',
         $this->appBasePath .'/eoDACS/SubFW/js/InitMainPage.js',
    /*     $this->appBasePath .'/eoDACS/SubFW/js/page_dashboard.js',
         $this->appBasePath .'/eoDACS/SubFW/js/page_exam_list.js',*/
      /*   $this->appBasePath .'/eoDACS/SubFW/js/page_patient_dosimetry.js',
         $this->appBasePath .'/eoDACS/SubFW/js/page_statistic.js',
         $this->appBasePath .'/eoDACS/SubFW/js/page_export_authorities.js',
         $this->appBasePath .'/eoDACS/SubFW/js/page_settings.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/alert.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/user_access.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/integration_status.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/studies_configuration.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/series_configuration.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/statistical_templates.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/effective_dose.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/afcn_export.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/institution.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/dicom.js',
         $this->appBasePath .'/eoDACS/SubFW/js/settings/sop.js',
         $this->appBasePath .'/eoDACS/SubFW/js/dlg_authorizedaccess.js'*/],
        []);

  }

  public function init_page()
  {
    $libs_to_add = [
     'c_datatable'    => "c_datatable_1.5"
     ,'c_tab'         => "c_tab_1.2"
     ,'eodacs'        => "eodacsv1"
     ,'menu_context'  => "menu_contextv1"
     ,'misc_eodacsjs' => "misc_eodacsjsv1"
     ,'chartjs'       => "chartjs_2.9.4"
     ,'d3RangeSlider' => "d3RangeSlider"
     ,'checkbox'      => "checkbox_2.0.2"
     ,'font-awesome'  => 'font-awesome_6.5.2' 
    ];

    $this->default_libraries= array_merge($this->default_libraries, $libs_to_add);
  }

}

?>