From 5ef5ae38984e03220462752e1f07b01795f5c075 Mon Sep 17 00:00:00 2001 From: Mark Noble Date: Mon, 9 Dec 2024 15:41:02 -0700 Subject: [PATCH] Fix linking to library websites for consortia within Web Builder and the Hours and Location dialog --- .../AJAX/libraryHoursAndLocations.tpl | 36 +++++++++---------- code/web/release_notes/25.01.00.MD | 4 ++- code/web/services/AJAX/JSON.php | 5 +-- code/web/services/WebBuilder/AJAX.php | 3 +- 4 files changed, 26 insertions(+), 22 deletions(-) diff --git a/code/web/interface/themes/responsive/AJAX/libraryHoursAndLocations.tpl b/code/web/interface/themes/responsive/AJAX/libraryHoursAndLocations.tpl index 49f78c005a..de9a53efc3 100644 --- a/code/web/interface/themes/responsive/AJAX/libraryHoursAndLocations.tpl +++ b/code/web/interface/themes/responsive/AJAX/libraryHoursAndLocations.tpl @@ -20,25 +20,25 @@
{$curLocation.name}
- {/if} + {/if}

{$curLocation.name}

-
- {if !empty($curLocation.address)} +
+ {if !empty($curLocation.address)} {$curLocation.address}
{/if} - {if !empty($curLocation.phone)} + {if !empty($curLocation.phone)} {translate text="Phone" isPublicFacing=true}: {$curLocation.phone}
- {/if} - {if !empty($curLocation.secondaryPhoneNumber)} + {/if} + {if !empty($curLocation.secondaryPhoneNumber)} {translate text="Secondary Phone" isPublicFacing=true}: {$curLocation.secondaryPhoneNumber}
- {/if} - {if !empty($curLocation.tty)} + {/if} + {if !empty($curLocation.tty)} {translate text="TTY" isPublicFacing=true}: {$curLocation.tty}
- {/if} - {if !empty($curLocation.email)} + {/if} + {if !empty($curLocation.email)} {translate text="Email" isPublicFacing=true}: {$curLocation.email} - {/if} + {/if}
{if !empty($curLocation.hoursMessage)} {$curLocation.hoursMessage} @@ -49,22 +49,22 @@
- {if !empty($curLocation.map_link)} + {if !empty($curLocation.map_link)} {translate text="Visit Library" isPublicFacing=true} {/if} - {if !empty($curLocation.phone)} - {translate text="Call Library" isPublicFacing=true} + {if !empty($curLocation.phone)} + {translate text="Call Library" isPublicFacing=true} {/if} - {if !empty($curLocation.email)} + {if !empty($curLocation.email)} {translate text="Email Library" isPublicFacing=true} {/if} - {if !empty($curLocation.homeLink)} + {if !empty($curLocation.homeLink)} {translate text="Visit Website" isPublicFacing=true} {/if}
- {/if} + {/if}
{if !empty($curLocation.hasValidHours)} @@ -107,7 +107,7 @@ {/foreach}
{/if} - {if !empty($curLocation.latitude) && $curLocation.latitude !== 0} + {if !empty($curLocation.latitude) && $curLocation.latitude !== 0}