XMLWordPrintable

Details

    Description

      I consider this extension strategic for all the Public Administration and the media industry that need to oprimize their documental production process and ask for more interoperable solutions.

      I suggest to integrates all the datatypes in this extensions, in particular keywords ( it will allow to import an ODT file with al the features of a web2.0 document ).

      I fixed it simply adding in the file :

      modules/ezodf/ezooimport.php
      after the switch:

      switch( $dataMap[$attributeIdentifier]->DataTypeString )
      

      this code:

                              case "ezkeyword":
                              {
                                      $keyword = new eZKeyword();
                                      $dom =& $xml->domTree( $xmlTextArray[$sectionName] );
                                      $text = eZOOImport::domToText( $dom->root() );
                                      $keyword->initializeKeyword( $text );
                                      $dataMap[$attributeIdentifier]->setContent( $keyword );
                                      $dataMap[$attributeIdentifier]->store();
                                      // topics managements
                                      $categories = array_intersect($this->topics, $keyword->KeywordArray);
                                      foreach ($categories as $key => $categor) {
                                             $nodeAssignment2 = eZNodeAssignment::create( array(
                                                                       'contentobject_id' => $object->attribute( 'id' ),
                                                                       'contentobject_version' => $object->attribute( 'current_version' ),
                                                                       'parent_node' => $key,
                                                                       'is_main' => 0
                                                                       )
                                                                   );
                                              $nodeAssignment2->store();
                                      }
      
                              }
                              break;
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            oms Ole Marius Smestad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: