Building a Professional Sirah Research Hub Branding in Koha
Building a Professional Sirah Research Hub Branding in Koha
To create a professional Sirah Research Hub branding in Koha, you need to utilize the "HTML Customization" tools. By treating your publishers and source bibliographies as "Libraries," we can create a grid of icons that act as direct portals to each collection.
Here is your step-by-step guide to building this layout.
Step 1: Branding and "Quick-Links" Code
Paste this code into Tools > HTML Customizations > OpacMainUserBlock. This block appears in the center of your OPAC home page.
<div class="sirah-hub-header" style="text-align: center; padding: 20px; background: #f4f4f4; border-radius: 10px; margin-bottom: 30px;">
<h1 style="color: #2c3e50; font-weight: bold;">Sirah Research Hub</h1>
<p style="font-size: 1.2em; color: #7f8c8d;">A Unified Portal for Prophetic Biography Studies (SAW)</p>
</div>
<div class="container-fluid">
<div class="row" style="display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;">
<div class="col-sm-3 portal-card" style="border: 1px solid #ddd; padding: 15px; text-align: center; border-radius: 8px; width: 200px;">
<i class="fa fa-university fa-3x" style="color: #2980b9;"></i>
<h3>National Library</h3>
<p>Physical Holdings</p>
<a href="/cgi-bin/koha/opac-search.pl?limit=branch:NLP" class="btn btn-primary">Browse</a>
</div>
<div class="col-sm-3 portal-card" style="border: 1px solid #ddd; padding: 15px; text-align: center; border-radius: 8px; width: 200px;">
<i class="fa fa-list-alt fa-3x" style="color: #27ae60;"></i>
<h3>Sher Nowrooz Khan</h3>
<p>Select Bibliography</p>
<a href="/cgi-bin/koha/opac-search.pl?limit=branch:SNK" class="btn btn-success">Browse</a>
</div>
<div class="col-sm-3 portal-card" style="border: 1px solid #ddd; padding: 15px; text-align: center; border-radius: 8px; width: 200px;">
<i class="fa fa-graduation-cap fa-3x" style="color: #8e44ad;"></i>
<h3>Research Theses</h3>
<p>Academic Papers</p>
<a href="/cgi-bin/koha/opac-search.pl?q=itype:THESIS" class="btn btn-info" style="background:#8e44ad; border:none;">Explore</a>
</div>
</div>
</div>
Step 2: Adding Visual Style (CSS)
To make the cards "pop" and add a professional hover effect, go to Administration > System Preferences > OpacUserCSS and paste the following:
/* Sirah Hub Custom Styles */
.portal-card {
transition: transform 0.3s, box-shadow 0.3s;
background: #fff;
}
.portal-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
border-color: #2980b9 !important;
}
.portal-card h3 {
font-size: 1.1em;
margin-top: 15px;
font-weight: bold;
}
.portal-card p {
font-size: 0.9em;
color: #666;
}
Step 3: Changing the Logo
Since this is a specialized "Sirah Hub," replacing the generic Koha logo with a custom banner is recommended.
- Go to Administration > System Preferences > opacsmallimage.
- Enter the URL of your hub logo (e.g., a calligraphy icon or a custom title).
- For a larger banner above the search bar, use the
opacheadercustomization in the HTML tool.
Key Tips for Your Layout
- The "Library" Link: The link
/cgi-bin/koha/opac-search.pl?limit=branch:SNKworks because the bibliography is treated as a "Library" (Branch). Clicking it filters records specifically to that source. - Mobile Friendly: The
col-sm-3androwclasses ensure icons stack vertically on mobile devices. - Icons: We use FontAwesome (e.g.,
fa-university). Koha includes this library by default.
Summary Checklist
- Branches Created: Ensure NLP, SNK, DRS, etc., exist in Library administration.
- Item Types Created: Ensure THESIS and ARTICLE are set up.
- HTML Updated: Paste branding code into OpacMainUserBlock.
- CSS Updated: Add hover effects in OpacUserCSS.
Comments
Post a Comment