Skip to content

Commit 9a25303

Browse files
committed
update collection.html
1 parent 274ce41 commit 9a25303

File tree

1 file changed

+48
-27
lines changed

1 file changed

+48
-27
lines changed

collection.html

Lines changed: 48 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@
1515

1616
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
1717
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
18+
19+
<style>
20+
.table-container {
21+
max-height: 60vh;
22+
overflow-y: auto;
23+
border: 1px solid #dee2e6;
24+
border-radius: 0.5rem;
25+
}
26+
27+
.table-container thead th {
28+
position: sticky;
29+
top: 0;
30+
background-color: #f8f9fa;
31+
z-index: 10;
32+
}
33+
</style>
34+
1835
</head>
1936
<body>
2037
<nav class="navbar bg-body-tertiary ">
@@ -55,8 +72,6 @@ <h5 class="offcanvas-title" id="offcanvasNavbarLabel">&lt;MANO&gt;</h5>
5572
</div>
5673
</nav>
5774

58-
59-
6075
<div class="container mt-4 mb-5">
6176

6277
<button onclick="history.back()" class="btn back-btn btn-sm btn-outline-secondary">Back</button>
@@ -83,7 +98,7 @@ <h1 class="page-title">Metadata Collection</h1>
8398
</div>
8499

85100

86-
<!-- About Metadata Editor Modal -->
101+
<!-- About Metadata Collection Modal -->
87102
<div class="modal fade" id="infoMetadataCollection" tabindex="-1" aria-labelledby="infoMetadataCollectionLabel" aria-hidden="true">
88103
<div class="modal-dialog modal-lg">
89104
<div class="modal-content">
@@ -105,13 +120,18 @@ <h5 class="modal-title" id="infoMetadataCollectionLabel">About Metadata Collecti
105120
</div>
106121
</div>
107122

108-
123+
<!--Filters-->
109124
<div class="row mb-4 mt-5 align-items-center">
110-
<div class="col-md-6">
125+
<div class="col-12 col-md-5">
111126
<input id="searchInput" class="form-control" type="text" placeholder="Search..." oninput="applyFilters()">
112127
</div>
113-
<div class="col-md-6 text-end mt-2 mt-md-0">
114-
<button class="btn btn-outline-primary" data-bs-toggle="offcanvas" data-bs-target="#filtersOffcanvas">
128+
<div class="col-12 col-md-4 mt-2 mt-md-0 d-flex justify-content-center justify-content-md-start">
129+
<a href="maps.html" class="btn btn-outline-success w-100 w-md-auto disabled">
130+
<i class="fas fa-map"></i> View Manuscript Maps
131+
</a>
132+
</div>
133+
<div class="col-12 col-md-3 text-end mt-2 mt-md-0">
134+
<button class="btn btn-outline-primary w-100 w-md-auto" data-bs-toggle="offcanvas" data-bs-target="#filtersOffcanvas">
115135
<i class="fas fa-filter"></i> Filters
116136
</button>
117137
</div>
@@ -132,24 +152,24 @@ <h5>Filter Manuscripts</h5>
132152
</div>
133153

134154

135-
136-
137-
<!-- Responsive Table -->
138-
<div class="table-responsive">
139-
<table class="table table-hover" id="metadataTable">
140-
<thead>
141-
<tr>
142-
<th>Manuscript Title</th>
143-
<th>Repository</th>
144-
<th>Location</th>
145-
<th>Digital Copy</th>
146-
<th>Actions</th>
147-
</tr>
148-
</thead>
149-
<tbody id="tableBody">
150-
<!-- Rows populated dynamically -->
151-
</tbody>
152-
</table>
155+
<!-- Scrollable Manuscript Table -->
156+
<div class="table-container">
157+
<div class="table-responsive">
158+
<table class="table table-hover" id="metadataTable">
159+
<thead>
160+
<tr>
161+
<th>Manuscript Title</th>
162+
<th>Repository</th>
163+
<th>Location</th>
164+
<th>Digital Copy</th>
165+
<th>Actions</th>
166+
</tr>
167+
</thead>
168+
<tbody id="tableBody">
169+
<!-- Rows populated dynamically -->
170+
</tbody>
171+
</table>
172+
</div>
153173
</div>
154174

155175
<!-- Modal -->
@@ -180,8 +200,9 @@ <h5 class="modal-title" id="recordModalLabel">Manuscript Record</h5>
180200
</div>
181201
</div>
182202
</div>
203+
183204
</div>
184-
205+
185206

186207
<footer class="footer bg-body-tertiary text-center py-4">
187208
<div class="container">
@@ -274,7 +295,7 @@ <h5 class="modal-title" id="recordModalLabel">Manuscript Record</h5>
274295
<li><a class="dropdown-item" href="#" onclick='downloadXMLfromRecord(${JSON.stringify(entry)})'>XML</a></li>
275296
</ul>
276297
</div>
277-
<button class="btn btn-sm btn-secondary" onclick='showFullRecord(${JSON.stringify(entry).replace(/'/g, "&apos;")})'>See complete record</button>
298+
<button class="btn btn-sm btn-secondary" onclick='showFullRecord(${JSON.stringify(entry).replace(/'/g, "&apos;")})'>See more</button>
278299
</td>
279300
`;
280301

0 commit comments

Comments
 (0)