<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,7 @@ class AuthController extends Gam_Controller_Action
             $filter = new Zend_Filter_StripTags();
             $username = $this-&gt;getParam('user');
             $password = $this-&gt;getParam('password');
-            $authAdapter = new Zend_Auth_Adapter_DbTable($this-&gt;db);
+            $authAdapter = new Zend_Auth_Adapter_DbTable($this-&gt;_db);
             $authAdapter
                 -&gt;setTableName('users')
                 -&gt;setIdentityColumn('username')</diff>
      <filename>app/modules/default/controllers/AuthController.php</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,9 @@ class BooksController extends Gam_Controller_Action
             'dojoRequires.js',
             'dojoStores.js',
             'Books.js',
+            'dynamic' =&gt; array(
+                'gamJs',
+                ),
 	   )
 	);
 
@@ -16,6 +19,11 @@ class BooksController extends Gam_Controller_Action
 	   )
 	);
 
+	public function gamJs()
+	{
+	    //echo &quot;alert('1');&quot;;
+	}
+
 	public function indexAction()
 	{
 	}
@@ -49,7 +57,7 @@ class BooksController extends Gam_Controller_Action
 
 	private function _getBookInfo($id)
 	{
-	    return $this-&gt;db-&gt;fetchRow(&quot;
+	    return $this-&gt;_db-&gt;fetchRow(&quot;
 	       SELECT
 	           id id,
 	           title title,
@@ -57,7 +65,8 @@ class BooksController extends Gam_Controller_Action
 	           bookyear bookyear,
 	           readdate readdate,
 	           why why,
-	           status status
+	           status status,
+	           isbn isbn
 	       FROM
 	           tblBooks
 	       WHERE
@@ -67,13 +76,13 @@ class BooksController extends Gam_Controller_Action
 	public function bookeditAction()
 	{
 	    $this-&gt;view-&gt;data = $this-&gt;__getBookInfo($this-&gt;getParam('id'));
-	    list($this-&gt;view-&gt;imageUrl, $this-&gt;view-&gt;imageWidth, $this-&gt;view-&gt;imageHeight, $this-&gt;view-&gt;content) = $this-&gt;_tryCoverFromAmazon($this-&gt;view-&gt;data);
+	    //list($this-&gt;view-&gt;imageUrl, $this-&gt;view-&gt;imageWidth, $this-&gt;view-&gt;imageHeight, $this-&gt;view-&gt;content) = $this-&gt;_tryCoverFromAmazon($this-&gt;view-&gt;data);
 	}
 
 	public function bookAction()
 	{
 	    $this-&gt;view-&gt;data = $this-&gt;_getBookInfo($this-&gt;getParam('id'));
-	    list($this-&gt;view-&gt;imageUrl, $this-&gt;view-&gt;imageWidth, $this-&gt;view-&gt;imageHeight, $this-&gt;view-&gt;content) = $this-&gt;_tryCoverFromAmazon($this-&gt;view-&gt;data);
+	    //list($this-&gt;view-&gt;imageUrl, $this-&gt;view-&gt;imageWidth, $this-&gt;view-&gt;imageHeight, $this-&gt;view-&gt;content) = $this-&gt;_tryCoverFromAmazon($this-&gt;view-&gt;data);
 	}
 
 	private function _tryCoverFromAmazon($data)
@@ -127,16 +136,18 @@ class BooksController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-    	        $this-&gt;db-&gt;beginTransaction();
-    	        $this-&gt;db-&gt;query(&quot;
+    	        $this-&gt;_db-&gt;beginTransaction();
+    	        $this-&gt;_db-&gt;query(&quot;
         	       UPDATE tblBooks
         	       SET
+        	           isbn = ?,
         	           title = ?,
         	           author = ?,
         	           bookyear = ?,
         	           why = ?,
         	           status = ?
         	       WHERE id = ?&quot;, array(
+    	               $this-&gt;getParam('isbn'),
     	               $this-&gt;getParam('title'),
     	               $this-&gt;getParam('author'),
     	               $this-&gt;getParam('bookyear'),
@@ -144,7 +155,8 @@ class BooksController extends Gam_Controller_Action
     	               $this-&gt;getParam('status'),
     	               $this-&gt;getParam('id'),
         	           ));
-    	        $this-&gt;db-&gt;commit();
+
+    	        $this-&gt;_db-&gt;commit();
     	        $status = 1;
     	        $txt = &quot;Info updated&quot;;
             } catch (Exception $e) {
@@ -163,13 +175,13 @@ class BooksController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-    	        $this-&gt;db-&gt;beginTransaction();
-    	        $this-&gt;db-&gt;query(&quot;
+    	        $this-&gt;_db-&gt;beginTransaction();
+    	        $this-&gt;_db-&gt;query(&quot;
         	       DELETE FROM tblBooks
         	       WHERE id = ?&quot;, array(
     	               $this-&gt;getParam('id'),
         	           ));
-    	        $this-&gt;db-&gt;commit();
+    	        $this-&gt;_db-&gt;commit();
     	        $status = 1;
     	        $txt = &quot;Book deleted&quot;;
             } catch (Exception $e) {
@@ -188,13 +200,13 @@ class BooksController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-    	        $this-&gt;db-&gt;beginTransaction();
-    	        $this-&gt;db-&gt;query(&quot;
+    	        $this-&gt;_db-&gt;beginTransaction();
+    	        $this-&gt;_db-&gt;query(&quot;
         	       UPDATE tblBooks SET status=? WHERE id = ? &quot;,  array(
         	           $this-&gt;getParam('status'),
         	           $this-&gt;getParam('id')
         	           ));
-    	        $this-&gt;db-&gt;commit();
+    	        $this-&gt;_db-&gt;commit();
     	        $status = 1;
     	        $txt = 'Info updated succesfully';
             } catch (Exception $e) {
@@ -213,19 +225,20 @@ class BooksController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-        	    $this-&gt;db-&gt;beginTransaction();
-        	    $id = (integer) $this-&gt;db-&gt;fetchOne(&quot;SELECT max(id) FROM tblBooks&quot;) + 1;
-        	    $this-&gt;db-&gt;query(&quot;
-        	       INSERT INTO tblBooks (id, title, author, bookyear, why, status)
-        	       VALUES (?, ?, ?, ?, ?, ?) &quot;,  array(
+        	    $this-&gt;_db-&gt;beginTransaction();
+        	    $id = (integer) $this-&gt;_db-&gt;fetchOne(&quot;SELECT max(id) FROM tblBooks&quot;) + 1;
+        	    $this-&gt;_db-&gt;query(&quot;
+        	       INSERT INTO tblBooks (id, isbn, title, author, bookyear, why, status)
+        	       VALUES (?, ?, ?, ?, ?, ?, ?) &quot;,  array(
         	           $id,
+        	           $this-&gt;getParam('isbn'),
         	           $this-&gt;getParam('title'),
         	           $this-&gt;getParam('author'),
         	           $this-&gt;getParam('bookyear'),
         	           $this-&gt;getParam('why'),
         	           $this-&gt;getParam('status'),
         	           ));
-        	    $this-&gt;db-&gt;commit();
+        	    $this-&gt;_db-&gt;commit();
         	    $txt = &quot;Book added&quot;;
         	    $status = 1;
     	    } catch (Exception $e) {
@@ -250,6 +263,6 @@ class BooksController extends Gam_Controller_Action
             tblBooks
         WHERE
             status = ?&quot;;
-	    echo new Zend_Dojo_Data('id', $this-&gt;db-&gt;fetchAll($sql, array($this-&gt;getParam('type'))));
+	    echo new Zend_Dojo_Data('id', $this-&gt;_db-&gt;fetchAll($sql, array($this-&gt;getParam('type'))));
 	}
 }
\ No newline at end of file</diff>
      <filename>app/modules/default/controllers/BooksController.php</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,6 @@ class IndexController extends Gam_Controller_Action
             'dynamic' =&gt; array(
                 'gamJs',
                 ),
-
         )
     );
 
@@ -91,11 +90,11 @@ class IndexController extends Gam_Controller_Action
     {
         $this-&gt;setNoRender();
         echo Zend_Json::encode(array(array(
-        'title' =&gt; 'My blog',
-        'url'   =&gt; Zend_Registry::get('config')-&gt;myblog-&gt;url . Zend_Registry::get('config')-&gt;myblog-&gt;atom
-        ),array(
-        'title' =&gt; 'TMZ',
-        'url' =&gt; 'http://www.tmz.com/rss.xml'
+            'title' =&gt; 'My blog',
+            'url'   =&gt; Zend_Registry::get('config')-&gt;myblog-&gt;url . Zend_Registry::get('config')-&gt;myblog-&gt;atom
+            ),array(
+            'title' =&gt; 'TMZ',
+            'url' =&gt; 'http://www.tmz.com/rss.xml'
         )));
     }
 }</diff>
      <filename>app/modules/default/controllers/IndexController.php</filename>
    </modified>
    <modified>
      <diff>@@ -55,10 +55,10 @@ class NotesController extends Gam_Controller_Action
             $status = 9;
         } else {
             try {
-                $this-&gt;db-&gt;beginTransaction();
+                $this-&gt;_db-&gt;beginTransaction();
 
-                $pk = (integer) $this-&gt;db-&gt;fetchOne(&quot;SELECT max(id) FROM tblNotes&quot;) + 1;
-        	    $this-&gt;db-&gt;query(&quot;
+                $pk = (integer) $this-&gt;_db-&gt;fetchOne(&quot;SELECT max(id) FROM tblNotes&quot;) + 1;
+        	    $this-&gt;_db-&gt;query(&quot;
         	       INSERT INTO tblNotes (id, title, body)
         	       VALUES (?, ?, ?) &quot;,  array(
         	           $pk,
@@ -67,7 +67,7 @@ class NotesController extends Gam_Controller_Action
         	           ));
                 //$this-&gt;_addLuceneDoc($pk, $this-&gt;getParam('title'), $this-&gt;getParam('body'));
 
-                $this-&gt;db-&gt;commit();
+                $this-&gt;_db-&gt;commit();
                 $status = 1;
         	    $txt = 'Note saved';
             } catch (Exception $e) {
@@ -80,7 +80,7 @@ class NotesController extends Gam_Controller_Action
 
 	public function noteAction()
 	{
-        $data = $this-&gt;db-&gt;fetchRow(&quot;
+        $data = $this-&gt;_db-&gt;fetchRow(&quot;
 	       SELECT
 	           id id,
 	           title title,
@@ -121,7 +121,7 @@ class NotesController extends Gam_Controller_Action
         WHERE
             body like '%{$this-&gt;getParam('key')}%' OR
             title like '%{$this-&gt;getParam('key')}%'&quot;;
-	    echo new Zend_Dojo_Data('id', $this-&gt;db-&gt;fetchAll($sql), array(), Zend_Db::FETCH_OBJ);
+	    echo new Zend_Dojo_Data('id', $this-&gt;_db-&gt;fetchAll($sql), array(), Zend_Db::FETCH_OBJ);
 	}
 
 	private function _luceneDelete($id)
@@ -138,12 +138,12 @@ class NotesController extends Gam_Controller_Action
             $status = 9;
         } else {
             try {
-        	    $this-&gt;db-&gt;beginTransaction();
+        	    $this-&gt;_db-&gt;beginTransaction();
 
         	    //$this-&gt;_luceneDelete($this-&gt;getParam('id'));
         	    //$this-&gt;_addLuceneDoc($this-&gt;getParam('pk'), $this-&gt;getParam('title'), $this-&gt;getParam('body'));
 
-        	    $this-&gt;db-&gt;query(&quot;
+        	    $this-&gt;_db-&gt;query(&quot;
         	       UPDATE tblNotes
         	       SET
         	           title = ?,
@@ -153,7 +153,7 @@ class NotesController extends Gam_Controller_Action
                        $this-&gt;getParam('body'),
                        $this-&gt;getParam('id')
         	           ));
-        	    $this-&gt;db-&gt;commit();
+        	    $this-&gt;_db-&gt;commit();
         	    $status = 1;
         	    $txt = 'Note updated';
             } catch (Exception $e) {
@@ -172,14 +172,14 @@ class NotesController extends Gam_Controller_Action
             $status = 9;
         } else {
             try {
-    	       $this-&gt;db-&gt;beginTransaction();
+    	       $this-&gt;_db-&gt;beginTransaction();
     	       //$this-&gt;_luceneDelete($this-&gt;getParam('id'));
-    	       $this-&gt;db-&gt;query(&quot;
+    	       $this-&gt;_db-&gt;query(&quot;
     	           DELETE FROM tblNotes
     	           WHERE id = ?&quot;, array(
                     $this-&gt;getParam('id')
     	               ));
-    	       $this-&gt;db-&gt;commit();
+    	       $this-&gt;_db-&gt;commit();
     	       $status = 1;
         	   $txt = 'Note deleted';
             } catch (Exception $e) {</diff>
      <filename>app/modules/default/controllers/NotesController.php</filename>
    </modified>
    <modified>
      <diff>@@ -36,7 +36,7 @@ class PlacesController extends Gam_Controller_Action
         WHERE
             id = ?
         &quot;;
-	    $this-&gt;view-&gt;data = $this-&gt;db-&gt;fetchRow($sql, array($this-&gt;getParam('id')), Zend_Db::FETCH_OBJ);
+	    $this-&gt;view-&gt;data = $this-&gt;_db-&gt;fetchRow($sql, array($this-&gt;getParam('id')), Zend_Db::FETCH_OBJ);
 	    $a=1;
 	}
 
@@ -52,7 +52,7 @@ class PlacesController extends Gam_Controller_Action
         FROM
             tblPlaces
         &quot;;
-	    return $this-&gt;db-&gt;fetchAll($sql, array(), Zend_Db::FETCH_OBJ);
+	    return $this-&gt;_db-&gt;fetchAll($sql, array(), Zend_Db::FETCH_OBJ);
 	}
 
 	public function editAction()
@@ -63,8 +63,8 @@ class PlacesController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-        	    $this-&gt;db-&gt;beginTransaction();
-        	    $this-&gt;db-&gt;query(&quot;
+        	    $this-&gt;_db-&gt;beginTransaction();
+        	    $this-&gt;_db-&gt;query(&quot;
         	       UPDATE tblPlaces
         	       SET
         	           title = ?,
@@ -75,7 +75,7 @@ class PlacesController extends Gam_Controller_Action
         	           $this-&gt;getParam('body'),
         	           $this-&gt;getParam('id')
         	           ));
-        	    $this-&gt;db-&gt;commit();
+        	    $this-&gt;_db-&gt;commit();
         	    $txt = &quot;Place edit&quot;;
         	    $status = 1;
     	    } catch (Exception $e) {
@@ -94,9 +94,9 @@ class PlacesController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-        	    $this-&gt;db-&gt;beginTransaction();
-        	    $id = (integer) $this-&gt;db-&gt;fetchOne(&quot;SELECT max(id) FROM tblPlaces&quot;) + 1;
-        	    $this-&gt;db-&gt;query(&quot;
+        	    $this-&gt;_db-&gt;beginTransaction();
+        	    $id = (integer) $this-&gt;_db-&gt;fetchOne(&quot;SELECT max(id) FROM tblPlaces&quot;) + 1;
+        	    $this-&gt;_db-&gt;query(&quot;
         	       INSERT INTO tblPlaces (id, lat, lng, title, body)
         	       VALUES (?, ?, ?, ?, ?) &quot;,  array(
         	           $id,
@@ -105,7 +105,7 @@ class PlacesController extends Gam_Controller_Action
         	           $this-&gt;getParam('title'),
         	           $this-&gt;getParam('body')
         	           ));
-        	    $this-&gt;db-&gt;commit();
+        	    $this-&gt;_db-&gt;commit();
         	    $txt = &quot;Place added&quot;;
         	    $status = 1;
     	    } catch (Exception $e) {
@@ -124,9 +124,9 @@ class PlacesController extends Gam_Controller_Action
             $status = 9;
         } else {
     	    try {
-        	    $this-&gt;db-&gt;beginTransaction();
-        	    $this-&gt;db-&gt;query(&quot;DELETE FROM tblPlaces WHERE id = ?&quot;,  array($this-&gt;getParam('id')));
-        	    $this-&gt;db-&gt;commit();
+        	    $this-&gt;_db-&gt;beginTransaction();
+        	    $this-&gt;_db-&gt;query(&quot;DELETE FROM tblPlaces WHERE id = ?&quot;,  array($this-&gt;getParam('id')));
+        	    $this-&gt;_db-&gt;commit();
         	    $txt = &quot;Place deleted&quot;;
         	    $status = 1;
     	    } catch (Exception $e) {</diff>
      <filename>app/modules/default/controllers/PlacesController.php</filename>
    </modified>
    <modified>
      <diff>@@ -11,6 +11,10 @@
             &lt;/td&gt;
         &lt;/tr&gt;
         &lt;tr&gt;
+            &lt;td&gt;&lt;label for=&quot;name&quot;&gt;ISBN: &lt;/label&gt;&lt;/td&gt;
+            &lt;td&gt;&lt;input dojoType=&quot;dijit.form.TextBox&quot; type=&quot;text&quot; name=&quot;isbn&quot; style=&quot;width:300px;&quot; value=&quot;&quot; /&gt;&lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
             &lt;td&gt;&lt;label for=&quot;name&quot;&gt;Title: &lt;/label&gt;&lt;/td&gt;
             &lt;td&gt;&lt;input dojoType=&quot;dijit.form.TextBox&quot; type=&quot;text&quot; name=&quot;title&quot; style=&quot;width:300px;&quot; value=&quot;&quot; /&gt;&lt;/td&gt;
         &lt;/tr&gt;</diff>
      <filename>app/modules/default/views/scripts/books/add-dialog.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,7 @@
             &lt;button dojoType=&quot;dijit.form.Button&quot; onClick='Books.markAs(&lt;?= $this-&gt;data-&gt;id?&gt;, 1)'&gt;Mark as &lt;i&gt;READING&lt;/i&gt;&lt;/button&gt;
         &lt;/td&gt;
 &lt;?php }?&gt;
-&lt;?php if ($this-&gt;data-&gt;status!=2) {?&gt;        
+&lt;?php if ($this-&gt;data-&gt;status!=2) {?&gt;
         &lt;td align=&quot;center&quot;&gt;
             &lt;button dojoType=&quot;dijit.form.Button&quot; onClick='Books.markAs(&lt;?= $this-&gt;data-&gt;id?&gt;, 2)'&gt;Mark as &lt;i&gt;TO READ&lt;/i&gt;&lt;/button&gt;
         &lt;/td&gt;
@@ -19,14 +19,46 @@
 &lt;/table&gt;
 
 &lt;div dojoType=&quot;dijit.layout.BorderContainer&quot; design=&quot;sidebar&quot; gutters=&quot;true&quot; style=&quot;height: 350px; width: 650px;&quot;&gt;
+
 	&lt;div dojoType=&quot;dijit.layout.ContentPane&quot; region=&quot;top&quot; style=&quot;height: 50px&quot;&gt;
 		&lt;b&gt;&lt;?= $this-&gt;data-&gt;title?&gt;&lt;/b&gt;&lt;br/&gt;&lt;i&gt;&lt;?= $this-&gt;data-&gt;author?&gt; (&lt;?= $this-&gt;data-&gt;bookyear?&gt;)&lt;/i&gt;
 	&lt;/div&gt;
-&lt;?php if ($this-&gt;imageUrl) {?&gt;
-	&lt;div dojoType=&quot;dijit.layout.ContentPane&quot; region=&quot;left&quot; style=&quot;width: 200px;&quot; align=&quot;center&quot;&gt;
-		&lt;img src=&quot;&lt;?= $this-&gt;imageUrl?&gt;&quot; alt=&quot;&lt;?= $this-&gt;data-&gt;title?&gt;&quot; height=&quot;&lt;?= $this-&gt;imageHeight?&gt;&quot; width=&quot;&lt;?= $this-&gt;imageWidth?&gt;&quot;/&gt; 
+
+	&lt;div dojoType=&quot;dijit.layout.ContentPane&quot; region=&quot;bottom&quot; style=&quot;height: 100px&quot;&gt;
+        &lt;div id=&quot;bookBar-bar&quot;&gt;
+            &lt;span style=&quot;color:#676767;font-size:11px;margin:10px;padding:4px;&quot;&gt;Loading...&lt;/span&gt;
+        &lt;/div&gt;
+        &lt;style type=&quot;text/css&quot;&gt;
+            @import url(&quot;http://www.google.com/uds/css/gsearch.css&quot;);
+        &lt;/style&gt;
+        &lt;script src=&quot;http://www.google.com/uds/solutions/bookbar/gsbookbar.js?mode=new&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+        &lt;style type=&quot;text/css&quot;&gt;
+            @import url(&quot;http://www.google.com/uds/solutions/bookbar/gsbookbar.css&quot;);
+        &lt;/style&gt;
+        &lt;script type=&quot;dojo/connect&quot;&gt;
+            window._uds_bbw_donotrepair = true;
+            var bookBar;
+            var options = {
+                largeResultSet : !true,
+                horizontal : true,
+                autoExecuteList : {
+                    cycleTime : GSbookBar.CYCLE_TIME_MEDIUM,
+                    cycleMode : GSbookBar.CYCLE_MODE_RANDOM,
+                    thumbnailSize: GSbookBar.thumbnailsSmall,
+                    executeList : [&quot;&lt;?= $this-&gt;data-&gt;title ?&gt;&quot;, &quot;&lt;?= $this-&gt;data-&gt;author ?&gt;&quot;]
+                }
+            }
+            bookBar = new GSbookBar(document.getElementById(&quot;bookBar-bar&quot;), options);
+        &lt;/script&gt;
+
 	&lt;/div&gt;
-&lt;?php }?&gt;
+
+	&lt;div dojoType=&quot;dijit.layout.ContentPane&quot; region=&quot;left&quot; style=&quot;width: 200px;&quot; align=&quot;center&quot; id='bookImg'&gt;
+        &lt;script type=&quot;dojo/connect&quot;&gt;
+            Books.googleSearch('&lt;?= $this-&gt;data-&gt;isbn ?&gt;');
+        &lt;/script&gt;
+	&lt;/div&gt;
+
 &lt;?php if ($this-&gt;data-&gt;why || $this-&gt;content) {?&gt;
 	&lt;div dojoType=&quot;dijit.layout.ContentPane&quot; region=&quot;center&quot;&gt;
 &lt;?php if ($this-&gt;data-&gt;why) {?&gt;</diff>
      <filename>app/modules/default/views/scripts/books/book.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,3 @@
-'Books.edit(&lt;?= $this-&gt;data-&gt;id ?&gt;)'
 &lt;form id='edit_book_&lt;?= $this-&gt;data-&gt;id ?&gt;'&gt;
     &lt;table&gt;
         &lt;tr&gt;
@@ -12,6 +11,10 @@
             &lt;/td&gt;
         &lt;/tr&gt;
         &lt;tr&gt;
+            &lt;td&gt;&lt;label for=&quot;isbn&quot;&gt;ISBN: &lt;/label&gt;&lt;/td&gt;
+            &lt;td&gt;&lt;input dojoType=&quot;dijit.form.TextBox&quot; type=&quot;text&quot; name=&quot;isbn&quot; style=&quot;width:120px;&quot; value=&quot;&lt;?= $this-&gt;data-&gt;isbn?&gt;&quot; /&gt;&lt;/td&gt;
+        &lt;/tr&gt;
+        &lt;tr&gt;
             &lt;td&gt;&lt;label for=&quot;name&quot;&gt;Title: &lt;/label&gt;&lt;/td&gt;
             &lt;td&gt;&lt;input dojoType=&quot;dijit.form.TextBox&quot; type=&quot;text&quot; name=&quot;title&quot; style=&quot;width:300px;&quot; value=&quot;&lt;?= $this-&gt;data-&gt;title?&gt;&quot; /&gt;&lt;/td&gt;
         &lt;/tr&gt;</diff>
      <filename>app/modules/default/views/scripts/books/edit-book.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -60,12 +60,20 @@ var Books = {
             title: 'Book',
             href: href,
             preventCache: true,
-            parseOnLoad: true
+            parseOnLoad: true,
+            onClose: function() {Books.destroyDialogBook()},
+            onCancel : function() {Books.destroyDialogBook()}
+
+
             });
 
         Books.dialogBook[id].show();
     },
-
+    destroyDialogBook: function() {
+        for(var id in Books.dialogBook){
+            Books.dialogBook[id].destroyRecursive();
+        }
+    },
     refreshAllGrids: function() {
         Apps.simpleGridRefresh(books.reading);
             Apps.simpleGridRefresh(books.toread);
@@ -171,5 +179,54 @@ var Books = {
             clearOnClose: true,
             });
         books.luceneresults.sort();
+    },
+
+    amazonSearch: function (asin) {
+        var scriptElement = document.createElement(&quot;script&quot;);
+        scriptElement.setAttribute(&quot;id&quot;, &quot;jsonScript&quot;);
+        scriptElement.setAttribute(&quot;src&quot;, &quot;http://xml-us.amznxslt.com/onca/xml?Service=AWSECommerceService&amp;SubscriptionId=19267494ZR5A8E2CGPR2&amp;AssociateTag=kokogiak7-20&amp;Operation=ItemLookup&amp;Style=http://kokogiak.com/amazon/JSON/ajsonSingleAsin.xsl&amp;ContentType=text/javascript&amp;IdType=ASIN&amp;ItemId=&quot; + asin+ &quot;&amp;ResponseGroup=Large,ItemAttributes,OfferFull&amp;CallBack=Books.amazonCallback&quot;);
+        scriptElement.setAttribute(&quot;type&quot;, &quot;text/javascript&quot;);
+        document.documentElement.firstChild.appendChild(scriptElement);
+
+    },
+    amazonCallback: function (booksInfo) {
+    },
+
+    googleSearch: function (bibkeys) {
+        var scriptElement = document.createElement(&quot;script&quot;);
+        scriptElement.setAttribute(&quot;id&quot;, &quot;jsonScript&quot;);
+        scriptElement.setAttribute(&quot;src&quot;, &quot;http://books.google.com/books?bibkeys=&quot; + bibkeys + &quot;&amp;jscmd=viewapi&amp;callback=Books.googleCallback&quot;);
+        scriptElement.setAttribute(&quot;type&quot;, &quot;text/javascript&quot;);
+        document.documentElement.firstChild.appendChild(scriptElement);
+
+    },
+
+    googleCallback: function (booksInfo) {
+        var div = dojo.byId('bookImg');
+        div.innerHTML = '';
+        var mainDiv = dojo.doc.createElement('div');
+        var x = 0;
+        for (i in booksInfo) {
+            // Create a DIV for each book
+            var book = booksInfo[i];
+            var thumbnailDiv = dojo.doc.createElement('div');
+            thumbnailDiv.className = &quot;thumbnail&quot;;
+
+            // Add a link to each book's informtaion page
+            var a = dojo.doc.createElement(&quot;a&quot;);
+            a.href = book.info_url;
+            a.target = '_blank';
+
+            // Display a thumbnail of the book's cover
+            var img = dojo.doc.createElement(&quot;img&quot;);
+            img.src = book.thumbnail_url + '&amp;zoom=1';
+            img.border = 0;
+            a.appendChild(img);
+            thumbnailDiv.appendChild(a);
+
+            mainDiv.appendChild(thumbnailDiv);
+        }
+        div.appendChild(mainDiv);
     }
-}
\ No newline at end of file
+}
+</diff>
      <filename>app/modules/default/views/scripts/books/js/Books.js</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,10 @@
 	   -&gt;appendFile($this-&gt;js);
 	?&gt;
 	&lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=&lt;?= Zend_Registry::get('config')-&gt;googlemapskey ?&gt;&quot;type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+	&lt;script src=&quot;http://www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;source=uds-bbw&amp;key=&lt;?= Zend_Registry::get('config')-&gt;googlemapskey ?&gt;&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+
+	&lt;script src=&quot;http://www.google.com/uds/solutions/bookbar/gsbookbar.js?mode=new&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
+
     &lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/jsapi?key=&lt;?= Zend_Registry::get('config')-&gt;googlemapskey ?&gt;&quot;&gt;&lt;/script&gt;
     &lt;script src=&quot;http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
 &lt;/head&gt;</diff>
      <filename>app/modules/default/views/scripts/index/index.phtml</filename>
    </modified>
    <modified>
      <diff>@@ -33,6 +33,5 @@ var hideLoader = function(){
 dojo.addOnLoad(function(){
 	dojo.parser.parse();
 	hideLoader();
-
 });
 </diff>
      <filename>app/modules/default/views/scripts/index/js/dojoRequires.js</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,9 @@ var gamJs = {
     feeds: [{
         title: &quot;My blog&quot;,
         url: &quot;&lt;?= Zend_Registry::get('config')-&gt;myblog-&gt;atom ?&gt;&quot;
+    }, {
+        title: &quot;source&quot;,
+        url: &quot;&lt;?= Zend_Registry::get('config')-&gt;github ?&gt;&quot;
     }
 &lt;?php foreach ($this-&gt;extraFeeds as $key =&gt; $value)
     echo &quot;,{title: '{$key}', url: '{$value}'}&quot;;</diff>
      <filename>app/modules/default/views/scripts/index/js/gamJs.js</filename>
    </modified>
    <modified>
      <diff>@@ -7,16 +7,14 @@ var Slides = {
     imageItemStore: undefined,
 
     handle: function (key, value) {
-        console.log('something changed with ' + key + ' : ' + value);
+        //console.log('something changed with ' + key + ' : ' + value);
         dojo.xhrPost({
             url: '/slides/getSlides/key/' + key,
             load: function(responseObject, ioArgs){
-                console.log(responseObject);
                 Slides._slides = responseObject;
                 for(var index in responseObject){
 
                     var imgNode = dojo.doc.createElement('img');
-                    console.log(index);
                     dojo.attr(imgNode, 'src', Slides._slides[index]);
                     dojo.attr(imgNode, 'style', 'Display:none');
                     dojo.attr(imgNode, 'id', 'pics_' + i);
@@ -40,7 +38,6 @@ var Slides = {
     },
 
     changeImg: function(id, index) {
-        console.log('changeImg ' + index);
         dojo.attr(id + '.current', 'src', Slides._slides[index])
         dojo.attr(id + '.next', 'src', Slides._slides[index + 1])
     },</diff>
      <filename>app/modules/default/views/scripts/slides/js/Slides.js</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>db/gam.sqlite</filename>
    </modified>
    <modified>
      <diff>@@ -3,53 +3,54 @@ require_once 'Zend/Controller/Action/Helper/Abstract.php';
 
 class Gam_Action_Helper_FileContent extends Zend_Controller_Action_Helper_Abstract
 {
-	const JS = 'js';
-	const CSS = 'css';
+    const JS = 'js';
+    const CSS = 'css';
 
-	public function js(Gam_Controller_Action $obj, $namespace)
-	{
-	    $this-&gt;direct($obj, self::JS, $namespace);
-	}
+    public function js(Gam_Controller_Action $obj, $namespace)
+    {
+        $this-&gt;direct($obj, self::JS, $namespace);
+    }
 
-	public function css(Gam_Controller_Action $obj, $namespace)
-	{
-	    $this-&gt;direct($obj, self::CSS, $namespace);
-	}
+    public function css(Gam_Controller_Action $obj, $namespace)
+    {
+        $this-&gt;direct($obj, self::CSS, $namespace);
+    }
 
-	public function direct(Gam_Controller_Action $obj, $fileType, $namespace)
-	{
-	    $_data = array();
-	    switch ($fileType) {
-	        case self::JS:
-	            $this-&gt;getResponse()-&gt;setHeader( 'Content-Type', 'application/javascript' );
-	            $_data = (array) $obj-&gt;{$fileType}[$namespace];
-	            break;
-	        case self::CSS:
-	            $this-&gt;getResponse()-&gt;setHeader ( 'Content-Type', 'text/css' );
-	            $_data = (array) $obj-&gt;{$fileType}[$namespace];
-	            break;
-	    }
+    public function direct(Gam_Controller_Action $obj, $fileType, $namespace)
+    {
+        $_data = array();
+        switch ($fileType) {
+            case self::JS:
+                $this-&gt;getResponse()-&gt;setHeader('Content-Type', 'application/javascript');
+                $_data = (array) $obj-&gt;{$fileType}[$namespace];
+                break;
+            case self::CSS:
+                $this-&gt;getResponse()-&gt;setHeader('Content-Type', 'text/css');
+                $_data = (array) $obj-&gt;{$fileType}[$namespace];
+                break;
+        }
 
-		if (count($_data) &gt; 0) {
-		    $_arr = array();
-		    $module = $obj-&gt;getRequest()-&gt;getModuleName();
+        if (count($_data) &gt; 0) {
+            $_arr = array();
+            $module = $obj-&gt;getRequest()-&gt;getModuleName();
             $controller = $obj-&gt;getRequest()-&gt;getControllerName();
-	        $view = new Zend_View();
-		    foreach ($_data as $key =&gt; $item) {
-		        if (is_string($key) &amp;&amp; $key == 'dynamic') {
-		            foreach ($item as $_item) {
+            $view = new Zend_View();
+            foreach ($_data as $key =&gt; $item) {
+                if (is_string($key) &amp;&amp; $key == 'dynamic') {
+                    foreach ($item as $_item) {
                         ob_start();
                         $obj-&gt;dispatch($_item);
                         $out = ob_get_contents();
                         ob_end_clean();
-		                $_arr[] = $out;
-		            }
-		        } else {
-    		        $view-&gt;addScriptPath(GamBASEPATH . &quot;/app/modules/{$module}/views/scripts/{$controller}/{$fileType}/&quot;);
-    		        $_arr[] = $view-&gt;render(&quot;{$item}&quot;);
-		        }
-		    }
-            $out = implode(&quot;\n&quot; , $_arr);
+                        $_arr[] = $out;
+                    }
+                } else {
+                    $view-&gt;addScriptPath(GamBASEPATH .
+                        &quot;/app/modules/{$module}/views/scripts/{$controller}/{$fileType}/&quot;);
+                    $_arr[] = $view-&gt;render(&quot;{$item}&quot;);
+                }
+            }
+            $out = implode(&quot;\n&quot;, $_arr);
             if (Zend_Registry::get('config')-&gt;{$fileType}-&gt;minify == 1) {
                 switch ($fileType) {
                     case self::JS:
@@ -61,89 +62,6 @@ class Gam_Action_Helper_FileContent extends Zend_Controller_Action_Helper_Abstra
                 }
             }
             echo $out;
-		}
-	}
-    /*
-    private function get_contents($file)
-    {
-        return file_get_contents($file);
+        }
     }
-
-	private function _getFiles(Gam_Controller_Action $obj, $fileType, $namespace)
-	{
-		$arrData = array ();
-		$fileTypeVarName = strtolower ( $fileType );
-		if (isset ( $obj-&gt;{$fileTypeVarName} [$namespace] ) &amp;&amp; is_array ( $obj-&gt;{$fileTypeVarName} [$namespace] ) &amp;&amp; count ( $obj-&gt;{$fileTypeVarName} [$namespace] )) {
-			foreach ( $obj-&gt;{$fileTypeVarName} [$namespace] as $item ) {
-				list ( $module, $controller, $item ) = $this-&gt;_decodeNamespace ( $fileType, $item );
-				$file = GamBASEPATH . &quot;/app/modules/{$module}/controllers/{$controller}/{$fileType}/{$item}&quot;;
-				if (is_file ( $file )) {
-					$arrData [] = $this-&gt;get_contents($file);
-				} else {
-					throw new Exception ( &quot;{$fileType}:{$item} not found at {$file}&quot; );
-				}
-			}
-		} else {
-			throw new Exception(&quot;Namespace {$namespace} not valid&quot;);
-		}
-		$out = implode(&quot;\n&quot;, $arrData);
-		switch ($fileType) {
-			case self::JS :
-				$out = &quot;var user_lang='es';var app_module='{$module}'; var app_controller='{$controller}';{$out}&quot;;
-				if (Zend_Registry::get('config')-&gt;js-&gt;minify == 1) {
-					$out = JSMin::minify ( $out );
-				}
-				break;
-			case self::CSS :
-				if (Zend_Registry::get('config')-&gt;css-&gt;minify == 1) {
-				    $out = CSSMin::minify ( $out );
-				}
-				break;
-		}
-		return $out;
-	}
-
-	public function direct(Gam_Controller_Action $obj, $fileType, $namespace)
-	{
-		switch ($fileType) {
-			case self::JS :
-				return $this-&gt;js ( $obj, $namespace );
-				break;
-			case self::CSS :
-				return $this-&gt;css ( $obj, $namespace );
-				break;
-		}
-	}
-
-	private function _decodeNamespace($type, $namespace)
-	{
-		$module = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getModuleName();
-		$controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
-		if (strpos ( $namespace, '/' ) !== false) {
-			$fArr = explode ( '/', $namespace );
-			$filename = $fArr [1];
-			if (strpos ( $fArr [0], ':' ) !== false) {
-				$fArr2 = explode ( ':', $fArr [0] );
-				$module = $fArr2 [0];
-				$controller = $fArr2 [1];
-			} else
-			$controller = $fArr [0];
-		} else
-		$filename = $namespace;
-		return array ($module, ucfirst($controller), $filename );
-	}
-
-	public function js(Gam_Controller_Action $obj, $namespace)
-	{
-		$this-&gt;getResponse ()-&gt;setHeader ( 'Content-Type', 'application/javascript' );
-		echo $this-&gt;_getFiles ( $obj, self::JS, $namespace );
-
-	}
-
-	public function css(Gam_Controller_Action $obj, $namespace)
-	{
-		$this-&gt;getResponse ()-&gt;setHeader ( 'Content-Type', 'text/css' );
-		echo $this-&gt;_getFiles ( $obj, self::CSS, $namespace );
-	}
-	*/
 }
\ No newline at end of file</diff>
      <filename>library/Gam/Action/Helper/FileContent.php</filename>
    </modified>
    <modified>
      <diff>@@ -21,13 +21,13 @@ class Gam_Comet
     {
         $_timestamp = time();
         $out = array();
-        for($i=0; $i&lt;self::COMET_TRIES; $i++) {
+        for ($i=0; $i&lt;self::COMET_TRIES; $i++) {
             foreach ($ids as $id =&gt; $timestamp) {
                 if ((integer) $timestamp == 0) {
                     $timestamp = $_timestamp;
                 }
                 $fileTimestamp = self::_get($id);
-                if ($fileTimestamp &gt; $timestamp){
+                if ($fileTimestamp &gt; $timestamp) {
                     $out[$id] = ($output) ? $fileTimestamp : '';
                 }
                 clearstatcache();</diff>
      <filename>library/Gam/Comet.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,17 @@
 &lt;?php
 class Gam_Controller_Action extends Zend_Controller_Action
 {
-    protected $security = array(
-	   'guest'  =&gt; 'allow',
-	   'member' =&gt; 'allow',
-	   'admin'  =&gt; 'allow',
-	   );
-
-	public function init()
-	{
-	    $this-&gt;acl($this-&gt;security);
-	}
+    protected $_security = array(
+        'guest'  =&gt; 'allow',
+        'member' =&gt; 'allow',
+        'admin'  =&gt; 'allow',
+    );
+
+    public function init()
+    {
+        $this-&gt;acl($this-&gt;_security);
+    }
+
     protected function setNoRender()
     {
         $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
@@ -23,17 +24,17 @@ class Gam_Controller_Action extends Zend_Controller_Action
 
     protected function acl($security)
     {
-        $acl = Zend_Registry::get ( 'acl' );
+        $acl = Zend_Registry::get('acl');
         $module = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getModuleName();
-		$controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
+        $controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
 
-		$resource = &quot;{$module}_{$controller}&quot;;
+        $resource = &quot;{$module}_{$controller}&quot;;
 
-	    $acl-&gt;add(new Zend_Acl_Resource($resource));
-	    foreach ($security as $role =&gt; $action) {
-	        $acl-&gt;$action($role, $resource);
-	    }
-	    $acl = Zend_Registry::set ( 'acl', $acl);
+        $acl-&gt;add(new Zend_Acl_Resource($resource));
+        foreach ($security as $role =&gt; $action) {
+            $acl-&gt;$action($role, $resource);
+        }
+        $acl = Zend_Registry::set('acl', $acl);
     }
 
     private function _url2($module, $controller, $action, $params=array())
@@ -59,11 +60,11 @@ class Gam_Controller_Action extends Zend_Controller_Action
     }
 
     protected function getClientUrl($type, $namespace)
-	{
-	    $module = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getModuleName();
-		$controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
-		return $this-&gt;_url($module, $controller, $type, array('file' =&gt; $namespace));
-	}
+    {
+        $module = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getModuleName();
+        $controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
+        return $this-&gt;_url($module, $controller, $type, array('file' =&gt; $namespace));
+    }
 
     protected function getParam($param, $default=null)
     {
@@ -76,12 +77,13 @@ class Gam_Controller_Action extends Zend_Controller_Action
     /**
      * @var Zend_Db_Adapter_Pdo_Abstract
      */
-    protected $db;
+    protected $_db;
 
-    public function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array())
+    public function __construct(Zend_Controller_Request_Abstract $request,
+        Zend_Controller_Response_Abstract $response, array $invokeArgs = array())
     {
-        $this-&gt;db = Zend_Registry::get('db');
-        parent::__construct ( $request, $response, $invokeArgs );
+        $this-&gt;_db = Zend_Registry::get('db');
+        parent::__construct($request, $response, $invokeArgs);
     }
 
     protected function getIdentity()
@@ -101,9 +103,9 @@ class Gam_Controller_Action extends Zend_Controller_Action
         $auth = Zend_Auth::getInstance();
 
         $module = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getModuleName();
-		$controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
-		$resource = &quot;{$module}_{$controller}&quot;;
-        $acl = Zend_Registry::get ( 'acl' );
+        $controller = Zend_Controller_Front::getInstance()-&gt;getRequest()-&gt;getControllerName();
+        $resource = &quot;{$module}_{$controller}&quot;;
+        $acl = Zend_Registry::get('acl');
         $identity = is_null($auth-&gt;getIdentity()) ? 'guest' : $auth-&gt;getIdentity();
         if (!$acl-&gt;isAllowed($identity, $resource)) {
             if (!$auth-&gt;hasIdentity()) {
@@ -115,40 +117,34 @@ class Gam_Controller_Action extends Zend_Controller_Action
     public function jsAction()
     {
         $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
-        echo $this-&gt;_helper-&gt;getHelper ('FileContent')-&gt;js($this, $this-&gt;_getParam('file'));
+        echo $this-&gt;_helper-&gt;getHelper('FileContent')-&gt;js($this, $this-&gt;_getParam('file'));
     }
 
     public function cssAction()
     {
         $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
-        echo $this-&gt;_helper-&gt;getHelper ('FileContent')-&gt;css($this, $this-&gt;_getParam('file'));
+        echo $this-&gt;_helper-&gt;getHelper('FileContent')-&gt;css($this, $this-&gt;_getParam('file'));
     }
 
-
-
-
     public function jsAction2()
     {
-
-
-        $js = $this-&gt;_getParam ( 'file' );
-        if (! is_null ( $js )) {
-            $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender ();
-            echo $this-&gt;_helper-&gt;getHelper ( 'FileContent' )-&gt;js ( $this, ( string ) $js );
+        $js = $this-&gt;_getParam('file');
+        if (! is_null($js)) {
+            $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
+            echo $this-&gt;_helper-&gt;getHelper('FileContent')-&gt;js($this, (string) $js);
         } else {
-            throw new Exception ( &quot;js namespace ({$js}) not found&quot; );
+            throw new Exception(&quot;js namespace ({$js}) not found&quot;);
         }
     }
 
-
     public function cssAction2()
     {
-        $css = $this-&gt;_getParam ( 'file' );
-        if (! is_null ( $css )) {
-            $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender ();
-            echo $this-&gt;_helper-&gt;getHelper ( 'FileContent' )-&gt;css ( $this, ( string ) $css );
+        $css = $this-&gt;_getParam('file');
+        if (! is_null($css)) {
+            $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender();
+            echo $this-&gt;_helper-&gt;getHelper('FileContent')-&gt;css($this, (string) $css);
         } else {
-            throw new Exception ( &quot;css namespace ({$css}) not found&quot; );
+            throw new Exception(&quot;css namespace ({$css}) not found&quot;);
         }
     }
 }
\ No newline at end of file</diff>
      <filename>library/Gam/Controller/Action.php</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 &lt;?php
-interface Gam_Controller_Interface {
+interface Gam_Controller_Interface
+{
    public $js = array();
 }</diff>
      <filename>library/Gam/Controller/Interface.php</filename>
    </modified>
    <modified>
      <diff>@@ -30,26 +30,26 @@ class Gam_Controller_Router_Route_RequestVars implements Zend_Controller_Router_
         $frontController = Zend_Controller_Front::getInstance();
         $request = $frontController-&gt;getRequest();
         /* @var $request Zend_Controller_Request_Http */
-        
+
         $baseUrl = $request-&gt;getBaseUrl();
         if (strpos($baseUrl, 'index.php') !== false) {
             $url = str_replace('index.php', '', $baseUrl);
             $request-&gt;setBaseUrl($url);
         }
-        
+
         $params = $request-&gt;getParams();
-        
+
         if (array_key_exists('module', $params)
                 || array_key_exists('controller', $params)
                 || array_key_exists('action', $params)) {
-            
+
             $module = $request-&gt;getParam('module', $frontController-&gt;getDefaultModule());
             $controller = $request-&gt;getParam('controller', $frontController-&gt;getDefaultControllerName());
             $action = $request-&gt;getParam('action', $frontController-&gt;getDefaultAction());
 
-            $result = array('module' =&gt; $module, 
-                'controller' =&gt; $controller, 
-                'action' =&gt; $action, 
+            $result = array('module' =&gt; $module,
+                'controller' =&gt; $controller,
+                'action' =&gt; $action,
                 );
             $this-&gt;_current = $result;
             return $result;
@@ -66,27 +66,27 @@ class Gam_Controller_Router_Route_RequestVars implements Zend_Controller_Router_
     public function assemble($data = array(), $reset=false, $encode = false)
     {
         $frontController = Zend_Controller_Front::getInstance();
-        
-        if(!array_key_exists('module', $data) &amp;&amp; !$reset 
+
+        if (!array_key_exists('module', $data) &amp;&amp; !$reset
             &amp;&amp; array_key_exists('module', $this-&gt;_current)
             &amp;&amp; $this-&gt;_current['module'] != $frontController-&gt;getDefaultModule()) {
             $data = array_merge(array('module'=&gt;$this-&gt;_current['module']), $data);
         }
-        if(!array_key_exists('controller', $data) &amp;&amp; !$reset 
-            &amp;&amp; array_key_exists('controller', $this-&gt;_current) 
+        if (!array_key_exists('controller', $data) &amp;&amp; !$reset
+            &amp;&amp; array_key_exists('controller', $this-&gt;_current)
             &amp;&amp; $this-&gt;_current['controller'] != $frontController-&gt;getDefaultControllerName()) {
             $data = array_merge(array('controller'=&gt;$this-&gt;_current['controller']), $data);
         }
-        if(!array_key_exists('action', $data) &amp;&amp; !$reset 
+        if (!array_key_exists('action', $data) &amp;&amp; !$reset
             &amp;&amp; array_key_exists('action', $this-&gt;_current)
             &amp;&amp; $this-&gt;_current['action'] != $frontController-&gt;getDefaultAction()) {
             $data = array_merge(array('action'=&gt;$this-&gt;_current['action']), $data);
         }
-        
+
         $url = '';
-        if(!empty($data)) {
+        if (!empty($data)) {
             $urlParts = array();
-            foreach($data as $key=&gt;$value) {
+            foreach ($data as $key =&gt; $value) {
                 $urlParts[] = $key . '=' . $value;
             }
             $url = '?' . implode('&amp;', $urlParts);</diff>
      <filename>library/Gam/Controller/Router/Route/RequestVars.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c3fcb9bfa2b0a17ad5643a74b4788d0bf19a3dd2</id>
    </parent>
  </parents>
  <author>
    <name>gonzalo</name>
    <login>gonzalo123</login>
    <email>gonzalo123@gmail.com</email>
  </author>
  <url>http://github.com/gonzalo123/gam/commit/d781cae877ec7cd14841fc22410907310b78fb1e</url>
  <id>d781cae877ec7cd14841fc22410907310b78fb1e</id>
  <committed-date>2009-01-19T10:44:08-08:00</committed-date>
  <authored-date>2009-01-19T10:44:08-08:00</authored-date>
  <message>book image with js + Source code clean</message>
  <tree>65a63ca19a8a81df3e4f64d17dfd9c2ccb2f8e11</tree>
  <committer>
    <name>gonzalo</name>
    <login>gonzalo123</login>
    <email>gonzalo123@gmail.com</email>
  </committer>
</commit>
