Re-adding library URLs, which were broken by a previous PINES-specific commit.
authorChris Sharp <csharp@georgialibraries.org>
Tue, 7 Jan 2014 16:30:52 +0000 (11:30 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 6 Nov 2014 17:54:07 +0000 (12:54 -0500)
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 258e8a1..a485b4f 100644 (file)
@@ -98,11 +98,15 @@ END; # FOREACH bib
             [%-
               org_obj = ctx.get_aou(copy_info.circ_lib); 
                IF org_obj.parent_ou;   
-                       parent_org_name = ctx.get_aou(org_obj.parent_ou).name;
-                       org_name = parent_org_name _ ' - ' _ org_obj.name; 
+                                       lib_url = ctx.get_org_setting(copy_info.circ_lib, 'lib.info_url');
+                       IF lib_url; '<a href="'; lib_url | url; '">'; END;
+                               parent_org_name = ctx.get_aou(org_obj.parent_ou).name;
+                               org_name = parent_org_name _ ' - ' _ org_obj.name; 
+                               IF lib_url; '</a>'; END;
                ELSE; 
-                org_name = org_obj.name; END;
-                org_name | html
+                       org_name = org_obj.name; 
+                          END;
+               org_name | html
             -%]
                 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
                 <meta property="price" content="0.00">