pics are links
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Sep 2005 19:25:25 +0000 (19:25 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 15 Sep 2005 19:25:25 +0000 (19:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1829 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/css/layout.css
Open-ILS/web/opac/skin/default/js/result_common.js

index 39fccff..fbd7421 100644 (file)
@@ -79,7 +79,7 @@ border-left: 1px solid #E0E0E0; border-top: 1px solid #E0E0E0; border-bottom: 1p
 #res_table { width: 100%; }
 
 .result_table_pic_cell { width: 43px;}
-.result_table_pic { height: 50px; width: 40px; }
+.result_table_pic { height: 50px; width: 40px;  border: none;}
 .result_table_pic_header { width: 43px; }
 
 .result_table_row { text-align: left; }
index 01f6a78..c88c160 100644 (file)
@@ -75,7 +75,6 @@ function resultDisplayRecord(rec, pos, is_mr) {
        recordsHandled++;
        recordsCache.push(rec);
 
-
        var r = table.rows[pos + 1];
        
        try {
@@ -100,8 +99,30 @@ function resultDisplayRecord(rec, pos, is_mr) {
                        rec.doc_id(onlyrec);
                        buildTitleDetailLink(rec, title_link); 
                        rec.doc_id(id);
-               } else buildTitleLink(rec, title_link); 
-       } else  buildTitleDetailLink(rec, title_link); 
+
+                       var args = {};
+                       args.page = RDETAIL;
+                       args[PARAM_OFFSET] = 0;
+                       args[PARAM_RID] = onlyrec;
+                       pic.parentNode.setAttribute("href", buildOPACLink(args));
+                       
+               } else {
+                       buildTitleLink(rec, title_link); 
+                       var args = {};
+                       args.page = RRESULT;
+                       args[PARAM_OFFSET] = 0;
+                       args[PARAM_MRID] = rec.doc_id();
+                       pic.parentNode.setAttribute("href", buildOPACLink(args));
+               }
+
+       } else {
+               buildTitleDetailLink(rec, title_link); 
+               var args = {};
+               args.page = RDETAIL;
+               args[PARAM_OFFSET] = 0;
+               args[PARAM_RID] = rec.doc_id();
+               pic.parentNode.setAttribute("href", buildOPACLink(args));
+       }
 
        buildSearchLink(STYPE_AUTHOR, rec.author(), author_link);