@@ -, +, @@
a modal
- Case A: The library name appears as a link with an "info" icon.
Clicking it shows the library information in a modal window. In the
modal footer, a "Visit web site" button should take you to the correct
URL.
- Case B: The library name appears as a link without an icon. Clicking
the link takes you to the correct URL.
- Case C: The library name appears as a link with an "info" icon.
Clicking it shows the library information in a modal window. In the
modal footer there is no "Visit web site" button.
- Case D: The library name is plain text.
the OpacLocationBranchToDisplay system preference.
---
.../bootstrap/en/modules/opac-detail.tt | 108 +++++++++++++-----
1 file changed, 77 insertions(+), 31 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
@@ -1201,17 +1201,21 @@
[% END %]
[% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
-
+
-
- [% IF ( ITEM_RESULT.branchurl ) %]
- [% ITEM_RESULT.branchname | html %]
- [% ELSE %]
- [% ITEM_RESULT.branchname | html %]
- [% END %]
-
-
[% ITEM_RESULT.holding_branch_opac_info | $raw %]
+
+ [% IF ( ITEM_RESULT.holding_branch_opac_info ) %]
+
+ [% ITEM_RESULT.branchname | html %]
+
+ [% ELSIF ( ITEM_RESULT.branchurl ) %]
+
+ [% ITEM_RESULT.branchname | html %]
+
+ [% ELSE %]
+ [% ITEM_RESULT.branchname | html %]
+ [% END %]
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
[% ITEM_RESULT.location_description | html %]
@@ -1224,19 +1228,18 @@
-
- [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
- [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
- [% IF ( home_branch_url ) %]
- [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
- [% ELSE %]
- [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
- [% END %]
- [% ELSE %]
- [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
- [% END %]
-
-
[% ITEM_RESULT.home_branch_opac_info | $raw %]
+
+ [% IF ( ITEM_RESULT.holding_branch_opac_info ) %]
+
+ [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
+
+ [% ELSIF ( Branches.GetURL( ITEM_RESULT.homebranch ) ) %]
+
+ [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
+
+ [% ELSE %]
+ [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
+ [% END %]
[% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
[% ITEM_RESULT.location_description | html %]
@@ -1357,6 +1360,27 @@
[% END %][%# end of items_table block %]
+
+