add856 Method Example // Method to format MARC 856 field protected final void add856(DataDir dir, boolean addMailToLink) { Vector url_vector; DataDir urlDir; String str; int i; // Creating a vector to hold subfield information url_vector=fmtUtil.fieldVector(dir, "856/*"); // If the 856 field exists, label it if(url_vector.size()!=0){ fmtUtil.addText(labelMaker("Electronic Access")); // The for loop and case statement are used to // label and display each subfield for (i=0;i"; break;} else { str=" Contact for Access Assistance: "; break;} case 14: str=" Name of Location of Host Name: "; break; case 15: str=" Operating System: "; break; case 16: str=" Port: "; break; case 17: str=" Electronic Format Type:: "; break; case 18: str=" Settings: "; break; case 19: str=" File Size: "; break; case 20: str=" Terminal Emulation: "; break; case 21: // The following string will display the selected URL // in the target defined in the current style. // e.g., In SS 4.0.1 'defaultStyle.ini', // "recordDisplay = target="workframe" str=""; // The following string will create a new Web // browser window to display the selected URL. // str=""; break; case 22: str=" Hours Access Method Available: "; break; case 23: str=" Record Control Number: "; break; case 24: str=" Nonpublic Note: "; break; case 26: str=" Public Note: "; break; case 29: str=" Access Method: "; break; case 30: str=" Materials Specified: "; break; default: str=null; } if (str != null){ // Label the subfield fmtUtil.addText(str); // Display the subfield data fmtUtil.addText(urlDir.stringData()); // Add the ending anchor if a hotlink if (urlDir.fldid()== 21 || addMailToLink){ fmtUtil.addText("
"); } else { // Place each subfield on a separate line fmtUtil.addText("
"); } } } } }