removed unused classes + bug fix on search list context details + added more
authordrizea <danielrizea27@gmail.com>
Fri, 3 Aug 2012 07:16:16 +0000 (10:16 +0300)
committerdrizea <danielrizea27@gmail.com>
Fri, 3 Aug 2012 07:16:16 +0000 (10:16 +0300)
copy info activity

14 files changed:
Open-ILS/src/Android/AndroidManifest.xml
Open-ILS/src/Android/res/drawable/radialbackground.xml [new file with mode: 0644]
Open-ILS/src/Android/res/layout/copy_information_more.xml [new file with mode: 0644]
Open-ILS/src/Android/res/layout/record_details_info.xml [deleted file]
Open-ILS/src/Android/res/layout/record_details_simple.xml [deleted file]
Open-ILS/src/Android/res/layout/search_result_list.xml
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/MoreCopyInformation.java [new file with mode: 0644]
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails.java [deleted file]
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Content.java [deleted file]
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Details.java [deleted file]
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Info.java [deleted file]
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Simple.java [deleted file]
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/SearchCatalogListView.java
Open-ILS/src/Android/src/org/evergreen/android/utils/ui/BasicDetailsFragment.java

index 720ee4a..617c2ce 100644 (file)
         <activity android:name=".views.AccountScreenDashboard"
                        android:theme="@android:style/Theme.Light.NoTitleBar"
             ></activity>
-        <activity
-            android:name=".searchCatalog.SearchCatalogListView"
-            android:label="@string/app_name"
-            >
-               
-        </activity>
+        
         <activity android:name="org.evergreen.android.views.ApplicationPreferences"></activity>
         
             
         <!-- Search -->    
-        <activity android:name=".searchCatalog.TabsView"
-            android:label="Tabs/Styled"
-            android:theme="@style/StyledIndicators"
-            ></activity>  
             
         <activity android:name=".searchCatalog.SampleUnderlinesNoFade"
             android:label="Underlines/No Fade"
             >
         </activity>
-
+               <activity android:name=".searchCatalog.MoreCopyInformation">
+                   
+               </activity>
+               <activity
+            android:name=".searchCatalog.SearchCatalogListView"
+            android:label="@string/app_name"
+            >
+               
+        </activity>
+        
+        
         <!-- Checkout Activities -->
         <activity android:name=".accountAccess.checkout.ItemsCheckOutListView"></activity>
         
         <!-- Fines Activities -->
         <activity android:name=".accountAccess.fines.FinesActivity"></activity>
         
-        <activity android:name=".searchCatalog.RecordDetails_Info"></activity>
-               <activity android:name=".searchCatalog.RecordDetails_Content"></activity>
-        <activity android:name=".searchCatalog.RecordDetails_Details"></activity>
-        <activity android:name=".searchCatalog.RecordDetails"></activity>
-        <activity android:name=".searchCatalog.RecordDetails_Simple"></activity>
         
         <!-- Bookbags -->
         <activity android:name=".accountAccess.bookbags.BookbagsListView"></activity>
diff --git a/Open-ILS/src/Android/res/drawable/radialbackground.xml b/Open-ILS/src/Android/res/drawable/radialbackground.xml
new file mode 100644 (file)
index 0000000..2e04825
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
+<gradient
+    android:startColor="#7faacaFF"
+    android:endColor="#cfe1edFF"
+    android:gradientRadius="210"
+    android:type="radial"/>
+</shape>
diff --git a/Open-ILS/src/Android/res/layout/copy_information_more.xml b/Open-ILS/src/Android/res/layout/copy_information_more.xml
new file mode 100644 (file)
index 0000000..df1baee
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:orientation="vertical"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    >
+
+       <include android:id="@+id/header_actionbar" layout="@layout/simple_actionbar"/>
+       
+       <LinearLayout
+               android:id="@+id/record_details_copy_information"
+               android:layout_width="fill_parent"
+               android:layout_height="wrap_content"
+               android:orientation="vertical"
+               >    
+       
+       </LinearLayout>
+       
+</LinearLayout>
\ No newline at end of file
diff --git a/Open-ILS/src/Android/res/layout/record_details_info.xml b/Open-ILS/src/Android/res/layout/record_details_info.xml
deleted file mode 100644 (file)
index f324a31..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    android:layout_width="fill_parent"
-    android:layout_height="fill_parent"
-    android:orientation="vertical"
-    android:id="@+id/record_details_info_view"
-    >
-
-    <TextView 
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
-    android:text="TITLE"   
-        />
-
-     <TextView
-    android:id="@+id/record_details_info_title"
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"   
-        />
-    
-    
-    <TextView  
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
-    android:text="AUTHOR"   
-        />
-    
-    <TextView
-    android:id="@+id/record_details_info_author"
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"   
-    />
-        
-    <TextView  
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"
-    android:text="PUBLISHER"   
-        />
-    
-    <TextView
-    android:id="@+id/record_details_info_publisher"
-    android:layout_width="wrap_content"
-    android:layout_height="wrap_content"   
-        />
-    
-</LinearLayout>
\ No newline at end of file
diff --git a/Open-ILS/src/Android/res/layout/record_details_simple.xml b/Open-ILS/src/Android/res/layout/record_details_simple.xml
deleted file mode 100644 (file)
index 92fc9b7..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"   
- android:id="@+id/record_details_simple_view">
-<LinearLayout 
-    android:layout_width="fill_parent"
-    android:layout_height="wrap_content"
-    android:orientation="vertical">
-
-
-           <TextView  
-           xmlns:android="http://schemas.android.com/apk/res/android"
-           style="@style/sectionHeader"  
-           android:text="Basic Information"
-               /> 
-           
-           
-           <TextView 
-               style="@style/textLarge"
-           android:text="TITLE"   
-               />
-       
-            <TextView
-           android:id="@+id/record_details_simple_title"
-               style="@style/textSmall"
-           />
-           
-           <TextView  
-               style="@style/textLarge"
-           android:text="AUTHOR"   
-               />
-           
-           <TextView
-           android:id="@+id/record_details_simple_author"
-               style="@style/textSmall"   
-           />
-               
-           <TextView  
-               style="@style/textLarge"
-           android:text="PUBLISHER"   
-               />
-           
-           <TextView
-           android:id="@+id/record_details_simple_publisher"
-               style="@style/textSmall"   
-               />
-               <TextView 
-               style="@style/spacer"    
-               />
-           
-               <TextView  
-           xmlns:android="http://schemas.android.com/apk/res/android"
-           style="@style/sectionHeader"  
-           android:text="Content"
-               /> 
-           
-               
-                <TextView 
-               style="@style/textLarge"
-           android:text="SUBJECT"   
-               />
-       
-            <TextView
-           android:id="@+id/record_details_simple_subject"
-               style="@style/textSmall"
-           />
-           
-           <TextView  
-               style="@style/textLarge"
-           android:text="SERIES"   
-               />
-           
-           <TextView
-           android:id="@+id/record_details_simple_series"
-               style="@style/textSmall"   
-           />
-               
-           <TextView  
-               style="@style/textLarge"
-           android:text="SYNOPSIS"   
-               />
-           
-           <TextView
-           android:id="@+id/record_details_simple_synopsis"
-               style="@style/textSmall"   
-               />
-               
-               <TextView  
-           xmlns:android="http://schemas.android.com/apk/res/android"
-           style="@style/sectionHeader"  
-           android:text="Other"
-               /> 
-               
-                           <TextView  
-               style="@style/textLarge"
-           android:text="ISBN"   
-               />
-           
-           <TextView
-           android:id="@+id/record_details_simple_isbn"
-               style="@style/textSmall"   
-               />
-               
-               
-       </LinearLayout>
-</ScrollView>
\ No newline at end of file
index a444871..728f72b 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
-    android:layout_height="fill_parent" >
+    android:layout_height="fill_parent"
+     >
 
     <RelativeLayout
         android:id="@+id/header"
diff --git a/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/MoreCopyInformation.java b/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/MoreCopyInformation.java
new file mode 100644 (file)
index 0000000..0bbb486
--- /dev/null
@@ -0,0 +1,134 @@
+package org.evergreen.android.searchCatalog;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+import java.util.Map.Entry;
+
+import org.evergreen.android.R;
+import org.evergreen.android.accountAccess.AccountAccess;
+import org.evergreen.android.accountAccess.SessionNotFoundException;
+import org.evergreen.android.accountAccess.fines.FinesRecord;
+import org.evergreen.android.globals.GlobalConfigs;
+import org.evergreen.android.globals.NoAccessToServer;
+import org.evergreen.android.globals.NoNetworkAccessException;
+import org.evergreen.android.globals.Utils;
+import org.evergreen.android.views.AccountScreenDashboard;
+
+import android.app.Activity;
+import android.app.ProgressDialog;
+import android.content.Context;
+import android.content.Intent;
+import android.graphics.Color;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.view.ViewGroup.LayoutParams;
+import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.Button;
+import android.widget.ImageButton;
+import android.widget.LinearLayout;
+import android.widget.ListView;
+import android.widget.TextView;
+
+public class MoreCopyInformation extends Activity{
+
+
+       private ImageButton homeButton;
+       
+       private Button myAccountButton;
+       
+       private TextView headerTitle;
+       
+       private Context context;
+       
+       private RecordInfo record;
+       
+       private GlobalConfigs gl;
+       @Override
+       protected void onCreate(Bundle savedInstanceState) {
+               super.onCreate(savedInstanceState);
+               
+               setContentView(R.layout.copy_information_more);
+               gl = GlobalConfigs.getGlobalConfigs(context);
+               
+               record = (RecordInfo) getIntent().getSerializableExtra("recordInfo");
+               
+                //header portion actions
+        homeButton = (ImageButton) findViewById(R.id.library_logo);
+        myAccountButton = (Button) findViewById(R.id.my_account_button);
+        headerTitle = (TextView) findViewById(R.id.header_title);
+        headerTitle.setText(R.string.fines_title);
+        
+        myAccountButton.setOnClickListener(new OnClickListener() {
+                       @Override
+                       public void onClick(View v) {
+                               Intent intent = new Intent(getApplicationContext(),AccountScreenDashboard.class);
+                               startActivity(intent);
+                       }
+               });
+        
+        homeButton.setOnClickListener(new OnClickListener() {
+                       @Override
+                       public void onClick(View v) {
+                               Intent intent = new Intent(getApplicationContext(),SearchCatalogListView.class);
+                               startActivity(intent);
+                       }
+               });
+        //end header portion actions
+               
+        LayoutInflater inf = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+
+               // insert into main view
+               LinearLayout insertPoint = (LinearLayout) findViewById(R.id.record_details_copy_information);
+               addCopyInfo(inf, insertPoint);
+        
+       }
+
+       public void addCopyInfo( LayoutInflater inflater, LinearLayout insertPoint){
+       
+       for(int i=0;i<record.copyInformationList.size();i++){
+                       
+                       View copy_info_view = inflater.inflate(R.layout.copy_information, null);
+
+                       // fill in any details dynamically here
+                       TextView library = (TextView) copy_info_view.findViewById(R.id.copy_information_library);
+                       TextView call_number = (TextView) copy_info_view.findViewById(R.id.copy_information_call_number);
+                       TextView copy_location = (TextView) copy_info_view.findViewById(R.id.copy_information_copy_location);
+
+               
+                       
+                       library.setText(gl.getOrganizationName(record.copyInformationList.get(i).org_id) + " ");
+                       call_number.setText(record.copyInformationList.get(i).call_number_sufix);
+                       copy_location.setText(record.copyInformationList.get(i).copy_location);
+                       
+                       // insert into main view
+                       insertPoint.addView(copy_info_view, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
+
+                       LinearLayout copy_statuses = (LinearLayout) copy_info_view.findViewById(R.id.copy_information_statuses);
+                       
+                       
+                       CopyInformation info = record.copyInformationList.get(i);
+                       
+                       Set<Entry<String,String>> set = info.statusInformation.entrySet();
+                       
+                       Iterator<Entry<String, String>> it = set.iterator();
+                       
+                       while(it.hasNext()){
+                               
+                               Entry<String,String> ent = it.next();
+                               TextView statusName = new TextView(context);
+                               statusName.setText(ent.getKey() + " : " + ent.getValue());
+                               
+                               copy_statuses.addView(statusName, new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
+                               
+                       }
+               
+               }
+       
+    }
+}
diff --git a/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails.java b/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails.java
deleted file mode 100644 (file)
index c2cee37..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.evergreen.android.searchCatalog;
-
-import org.evergreen.android.R;
-import org.evergreen.android.utils.ui.RealViewSwitcher;
-
-import android.app.Activity;
-import android.graphics.Color;
-import android.os.Bundle;
-import android.util.Log;
-import android.view.Gravity;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.widget.LinearLayout;
-import android.widget.ScrollView;
-import android.widget.TextView;
-
-public class RecordDetails extends Activity{
-
-       @Override
-       protected void onCreate(Bundle savedInstanceState) {
-               super.onCreate(savedInstanceState);
-
-     // create the view switcher
-               RealViewSwitcher realViewSwitcher = new RealViewSwitcher(getApplicationContext());
-
-               // add some views to it
-               final int[] backgroundColors = { Color.RED, Color.BLUE, Color.CYAN, Color.GREEN, Color.YELLOW };
-               for (int i = 0; i < 5; i++) {
-                       
-                       
-                       
-                       TextView textView = new TextView(getApplicationContext());
-                       textView.setText(Integer.toString(i + 1));
-                       textView.setTextSize(100);
-                       textView.setTextColor(Color.BLACK);
-                       textView.setGravity(Gravity.CENTER);
-                       textView.setBackgroundColor(backgroundColors[i]);
-                       realViewSwitcher.addView(textView);
-               }
-
-               LayoutInflater factory = getLayoutInflater();
-
-               
-               LinearLayout layout = (LinearLayout) factory.inflate(R.layout.record_details_info, null);
-               
-               
-               ScrollView scroll = (ScrollView) factory.inflate(R.layout.record_details_simple, null);
-               
-               
-               System.out.println( layout + " scrol" + scroll);
-               
-               realViewSwitcher.addView(layout);
-               realViewSwitcher.addView(scroll);
-               
-               // set as content view
-               setContentView(realViewSwitcher);
-               
-               
-               
-               // yeah, it really is as simple as this :-)
-               
-               // note that you can also define your own views directly in a resource XML, too by using:
-               // <de.marcreichelt.android.RealViewSwitcher
-               //     android:layout_width="fill_parent"
-               //     android:layout_height="fill_parent"
-               //     android:id="@+id/real_view_switcher">
-               //         <!-- your views here -->
-               // </de.marcreichelt.android.RealViewSwitcher>
-               
-               
-               
-               // OPTIONAL: listen for screen changes
-               realViewSwitcher.setOnScreenSwitchListener(onScreenSwitchListener);
-               
-       }
-       private final RealViewSwitcher.OnScreenSwitchListener onScreenSwitchListener = new RealViewSwitcher.OnScreenSwitchListener() {
-               
-               @Override
-               public void onScreenSwitched(int screen) {
-                       // this method is executed if a screen has been activated, i.e. the screen is completely visible
-                       //  and the animation has stopped (might be useful for removing / adding new views)
-                       Log.d("RealViewSwitcher", "switched to screen: " + screen);
-               }
-               
-       };
-}
diff --git a/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Content.java b/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Content.java
deleted file mode 100644 (file)
index c03b957..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.evergreen.android.searchCatalog;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-public class RecordDetails_Content extends Activity{
-
-       @Override
-       protected void onCreate(Bundle savedInstanceState) {
-               // TODO Auto-generated method stub
-               super.onCreate(savedInstanceState);
-       }
-}
diff --git a/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Details.java b/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Details.java
deleted file mode 100644 (file)
index 7c48d11..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.evergreen.android.searchCatalog;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-public class RecordDetails_Details extends Activity{
-
-       @Override
-       protected void onCreate(Bundle savedInstanceState) {
-               // TODO Auto-generated method stub
-               super.onCreate(savedInstanceState);
-       }
-}
diff --git a/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Info.java b/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Info.java
deleted file mode 100644 (file)
index a7543e7..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-package org.evergreen.android.searchCatalog;
-
-import java.security.PublicKey;
-
-import org.evergreen.android.R;
-import org.evergreen.android.R.id;
-import org.evergreen.android.R.layout;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.widget.TextView;
-
-public class RecordDetails_Info extends Activity{
-
-       
-       private TextView titleTextView;
-       
-       private TextView authorTextView;
-       
-       private TextView publisherTextView;
-       
-       @Override
-       protected void onCreate(Bundle savedInstanceState) {
-               // TODO Auto-generated method stub
-               super.onCreate(savedInstanceState);
-               setContentView(R.layout.record_details_info);
-               
-               RecordInfo record = (RecordInfo)getIntent().getSerializableExtra("recordInfo");
-               
-               titleTextView = (TextView) findViewById(R.id.record_details_info_title);
-               authorTextView = (TextView) findViewById(R.id.record_details_info_author);
-               publisherTextView = (TextView) findViewById(R.id.record_details_info_publisher);
-               
-               
-               titleTextView.setText(record.title);
-               authorTextView.setText(record.author);
-               publisherTextView.setText(record.publisher);
-               
-       }
-}
diff --git a/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Simple.java b/Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/RecordDetails_Simple.java
deleted file mode 100644 (file)
index 3f6ba74..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.evergreen.android.searchCatalog;
-
-import org.evergreen.android.R;
-import org.evergreen.android.R.id;
-import org.evergreen.android.R.layout;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.widget.TextView;
-
-public class RecordDetails_Simple extends Activity {
-
-       
-       private TextView titleTextView;
-       private TextView authorTextView;
-       private TextView publisherTextView;
-       private TextView seriesTextView;
-       private TextView subjectTextView;
-       private TextView synopsisTextView;
-       private TextView isbnTextView;
-       
-       @Override
-       protected void onCreate(Bundle savedInstanceState) {
-               super.onCreate(savedInstanceState);
-               
-               setContentView(R.layout.record_details_simple);
-               
-               
-               
-               titleTextView = (TextView) findViewById(R.id.record_details_simple_title);
-               authorTextView = (TextView) findViewById(R.id.record_details_simple_author);
-               publisherTextView = (TextView) findViewById(R.id.record_details_simple_publisher);
-               
-               seriesTextView = (TextView) findViewById(R.id.record_details_simple_series);
-               subjectTextView = (TextView) findViewById(R.id.record_details_simple_subject);
-               synopsisTextView = (TextView) findViewById(R.id.record_details_simple_synopsis);
-               
-               isbnTextView = (TextView) findViewById(R.id.record_details_simple_isbn);
-               
-               RecordInfo record = (RecordInfo) getIntent().getSerializableExtra("recordInfo");
-               
-               titleTextView.setText(record.title);
-               authorTextView.setText(record.author);
-               publisherTextView.setText(record.pubdate + " " + record.publisher);
-               
-               seriesTextView.setText(record.series);
-               subjectTextView.setText(record.subject);
-               synopsisTextView.setText(record.synopsis);
-               
-               isbnTextView.setText(record.isbn);
-               
-       }
-}
index 1389988..c216fd9 100644 (file)
@@ -501,10 +501,15 @@ public class SearchCatalogListView extends Activity{
                
                case DETAILS : {
                                
-                       Intent intent = new Intent(getBaseContext(),RecordDetails_Simple.class);
+                       Intent intent = new Intent(getBaseContext(),SampleUnderlinesNoFade.class);
                        //serialize object and pass it to next activity
                        intent.putExtra("recordInfo", info);
+                       intent.putExtra("orgID",search.selectedOrganization.id);
+                       intent.putExtra("depth",(search.selectedOrganization.level-1));
                        
+                       intent.putExtra("recordList", recordList);
+                       //TODO put total number
+                       intent.putExtra("recordPosition", menuArrayItem.position);
                        startActivity(intent);
                }
                break;
index 515e9a3..c1c5006 100644 (file)
@@ -15,11 +15,13 @@ import org.evergreen.android.globals.NoAccessToServer;
 import org.evergreen.android.globals.NoNetworkAccessException;
 import org.evergreen.android.searchCatalog.CopyInformation;
 import org.evergreen.android.searchCatalog.ImageDownloader;
+import org.evergreen.android.searchCatalog.MoreCopyInformation;
 import org.evergreen.android.searchCatalog.RecordInfo;
 import org.evergreen.android.searchCatalog.SearchCatalog;
 
 import android.app.Dialog;
 import android.app.ProgressDialog;
+import android.content.Context;
 import android.content.Intent;
 import android.graphics.Bitmap;
 import android.os.Bundle;
@@ -279,13 +281,10 @@ public class BasicDetailsFragment extends Fragment{
                                
                                @Override
                                public void onClick(View v) {
-                                       // TODO Auto-generated method stub
-
-                                       System.out.println("Show more tabed");
-                                       // insert into main view
-                                       LinearLayout insertPoint = (LinearLayout) lay.findViewById(R.id.record_details_copy_information);
-                                       addCopyInfo(list_size, record.copyCountListInfo.size(), inf, insertPoint);
-                                       
+                                       //show more details
+                                       Intent intent = new Intent(getActivity().getApplicationContext(),MoreCopyInformation.class);
+                                       intent.putExtra("recordInfo", record);
+                                       startActivity(intent);
                                }
                        });