Bug 33902: Move modal inside HTML body

To test:
-Go Administration > Libraries and add a URL for a branch.
-Also add some OPAC info: ( via HTML Customizations )
-Now find a record belonging to that branch and bring up the OPAC detail page.
-In the holdings table there should be a link under the 'Current library' column.
-Clicking it should bring up a modal.
-Make sure the modal pops up correctly, can be dismissed, and the 'Visit web site' link works.

Nothing about the appearance or behavior of the page should change.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2023-06-05 23:00:43 +00:00 committed by Tomas Cohen Arazi
parent 4017af3d6a
commit e1be2791b8
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -1149,6 +1149,27 @@
</div> <!-- /#myModal -->
[% END %]
<!-- Library Info Modal -->
<div class="modal" id="libraryInfoModal" tabindex="-1" aria-labelledby="libraryInfoModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="libraryInfoModalLabel"></h5>
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div id="libraryInfo"></div>
</div>
<div class="modal-footer">
<a id="libraryInfoLink" href="" class="btn btn-primary">Visit web site</a>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
[% INCLUDE 'opac-bottom.inc' %]
[%# End of template %]
@ -1408,27 +1429,6 @@
</table>
[% END %][%# end of items_table block %]
<!-- Library Info Modal -->
<div class="modal" id="libraryInfoModal" tabindex="-1" aria-labelledby="libraryInfoModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="libraryInfoModalLabel"></h5>
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div id="libraryInfo"></div>
</div>
<div class="modal-footer">
<a id="libraryInfoLink" href="" class="btn btn-primary">Visit web site</a>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
[% IF Koha.Preference('OpacCatalogConcerns') %]
[% INCLUDE 'modals/catalog_concern.inc' %]
[% END %]