diff --git a/productMods/templates/freemarker/body/partials/individual/individual-qrCodeFoafPerson.ftl b/productMods/templates/freemarker/body/partials/individual/individual-qrCodeFoafPerson.ftl
index 0bed3b55..c5fe1a00 100644
--- a/productMods/templates/freemarker/body/partials/individual/individual-qrCodeFoafPerson.ftl
+++ b/productMods/templates/freemarker/body/partials/individual/individual-qrCodeFoafPerson.ftl
@@ -4,22 +4,26 @@
<#macro qrCodeVCard qrCodeWidth>
-<#--
-Example:
+ <#local qrCodeUrl = getQrCodeUrlForVCard(qrCodeWidth)>
+
+ <#if qrCodeUrl != "">
+
+ #if>
+#macro>
+
+<#macro qrCodeLink qrCodeWidth>
+
+ <#local qrCodeUrl = getQrCodeUrlForLink(qrCodeWidth)>
+
+ <#if qrCodeUrl != "">
+
+ #if>
+#macro>
+
+
+
+<#function getQrCodeUrlForVCard qrCodeWidth>
-BEGIN:VCARD
-VERSION:3.0
-N:Conlon;Michael
-FN:Michael Conlon
-ORG:University of Florida
-TITLE:Associate Director and Chief Operating Officer
-TEL;TYPE=WORK,VOICE:(352) 273-8872
-EMAIL;TYPE=PREF,INTERNET:mconlon@ufl.edu
-URL:https://vivo.ufl.edu/display/n25562
-PHOTO;VALUE=URL;TYPE=JPG:https://vivo.ufl.edu/file/n34850/_main_image_491-NUCATS-STS-042310.jpg
-REV:20080424T195243Z
-END:VCARD
--->
<#local qrData = individual.qrData >
<#local core = "http://vivoweb.org/ontology/core#">
@@ -36,6 +40,7 @@ END:VCARD
<#local photo = individual.thumbUrl! >
<#local rev = "" >
+ <#local qrCodeUrl = "">
<#if firstName != "" && lastName != "">
<#local vCard><#t>
BEGIN:VCARD<#lt>
@@ -55,27 +60,27 @@ END:VCARD
<#local vCard = (removeBlankLines(vCard))?url>
<#local qrCodeUrl = "https://chart.googleapis.com/chart?cht=qr&chs=${qrCodeWidth}x${qrCodeWidth}&chl=${vCard}&choe=UTF-8" >
-
-
#if>
-#macro>
+
+ <#return qrCodeUrl>
+#function>
-<#macro qrCodeLink qrCodeWidth>
+<#function getQrCodeUrlForLink qrCodeWidth>
<#local qrData = individual.qrData >
<#local url = qrData.externalUrl! >
- <#local qrCodeContent = url?url>
-
- <#if url != "">
- <#local qrCodeUrl = "https://chart.googleapis.com/chart?cht=qr&chs=${qrCodeWidth}x${qrCodeWidth}&chl=${qrCodeContent}&choe=UTF-8" >
-
-
- #if>
-#macro>
+ <#local qrCodeUrl = "">
+ <#if url != "">
+ <#local qrCodeContent = url?url>
+ <#local qrCodeUrl = "https://chart.googleapis.com/chart?cht=qr&chs=${qrCodeWidth}x${qrCodeWidth}&chl=${qrCodeContent}&choe=UTF-8" >
+ #if>
+
+ <#return qrCodeUrl>
+#function>
@@ -96,7 +101,6 @@ END:VCARD
#list>
<#return output>
-
#function>