Rename all the rec_* IDs as mkwsRec_*
authorMike Taylor <mike@indexdata.com>
Mon, 1 Jul 2013 22:04:42 +0000 (23:04 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 1 Jul 2013 22:04:42 +0000 (23:04 +0100)
Do we really need ALL these IDs?

experiments/spclient/mkws.js

index 7e4ec87..8fa3b76 100644 (file)
@@ -128,7 +128,7 @@ function my_onshow(data) {
         var hit = data.hits[i];
              html.push('<div class="record" id="mkwsRecdiv_'+hit.recid+'" >'
             +'<span>'+ (i + 1 + recPerPage * (curPage - 1)) +'. </span>'
-            +'<a href="#" id="rec_'+hit.recid
+            +'<a href="#" id="mkwsRec_'+hit.recid
             +'" onclick="showDetails(this.id);return false;"><b>'
             + hit["md-title"] +' </b></a>');
              if (hit["md-title-remainder"] !== undefined) {
@@ -414,7 +414,7 @@ function switchView(view) {
 
 // detailed record drawing
 function showDetails (prefixRecId) {
-    var recId = prefixRecId.replace('rec_', '');
+    var recId = prefixRecId.replace('mkwsRec_', '');
     var oldRecId = curDetRecId;
     curDetRecId = recId;