This patch updates the OPAC and staff interface to use Bootstrap 5. Bootstrap CSS assets are now pulled from node_modules and compiled into staff-global.css and opac.css at build time. This update lays the foundations of some other chnages, especially the addition of a dark mode in the future. Hundreds of templates have been updated, mostly with updates to the grid markup. Most of the responsive behavior is still the same with the exception of improved flexibility of headers and footers in both the OPAC and staff interface. The other most common change is to add a new "namespace" to data attributes used by Bootstrap, e.g. "data-bs-target" or "data-bs-toggle". Modal markup has also been updated everywhere. Other common changes: dropdown button markup, alert markup (we now use Bootstrap's "alert alert-warning" and "alert alert-info" instead of our old "dialog alert" and "dialog info"). Bootstrap 5 now uses CSS variables which we can override in our own '_variables.scss' (in both the OPAC and staff) to accomplish a lot of the style overrides which we previously put in staff-global.scss. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
95 lines
3.4 KiB
Text
95 lines
3.4 KiB
Text
[% USE raw %]
|
|
[% PROCESS 'i18n.inc' %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>[% FILTER collapse %]
|
|
[% t("Duplicate warning") | html %] ›
|
|
[% tx("Basket {basketnumber}", { basketnumber = basketno }) | html %] ›
|
|
[% t("Acquisitions") | html %] ›
|
|
[% t("Koha") | html %]
|
|
[% END %]</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="acq_neworderempty_duplicate" class="acq">
|
|
|
|
[% WRAPPER 'header.inc' %]
|
|
[% INCLUDE 'acquisitions-search.inc' %]
|
|
[% END %]
|
|
|
|
[% WRAPPER 'sub-header.inc' %]
|
|
[% WRAPPER breadcrumbs %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item %]
|
|
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
|
|
[% END %]
|
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
|
<span>Duplicate warning</span>
|
|
[% END %]
|
|
[% END #/ WRAPPER breadcrumbs %]
|
|
[% END #/ WRAPPER sub-header.inc %]
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-10 order-md-2 order-sm-2">
|
|
<main>
|
|
[% INCLUDE 'messages.inc' %]
|
|
|
|
<div class="alert alert-warning">
|
|
<h1>Duplicate warning</h1>
|
|
<p>You selected a record from an external source that matches an existing record in your catalog: <a target="_blank" title="Open in new window" href="[% PROCESS biblio_a_href biblionumber => biblionumber %]"><i class="fa-solid fa-window-restore"></i> [% duplicatetitle | html %]</a></p>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-sm-4">
|
|
<div style="border: 1px solid #DDD; padding:1em;">
|
|
<form method="get" action="/cgi-bin/koha/acqui/neworderempty.pl">
|
|
<h4>Use existing record</h4>
|
|
<p>Do not create a duplicate record. Add an order from the existing record in your catalog.</p>
|
|
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
|
|
<input type="hidden" name="basketno" value="[% basketno | html %]" />
|
|
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
|
|
<input type="submit" class="btn btn-primary" value="Use existing" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
<div style="border: 1px solid #DDD; padding:1em;">
|
|
<form method="get" action="/cgi-bin/koha/acqui/basket.pl">
|
|
<h4>Cancel and return to order</h4>
|
|
<p>Return to the basket without making a new order.</p>
|
|
<input type="hidden" name="basketno" value="[% basketno | html %]" />
|
|
<input type="submit" class="btn btn-primary" value="Cancel" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
<div style="border: 1px solid #DDD; padding:1em;">
|
|
<form method="post" action="/cgi-bin/koha/acqui/neworderempty.pl">
|
|
[% INCLUDE 'csrf-token.inc' %]
|
|
<h4>Create new record</h4>
|
|
<p>Create a new record by importing the external (duplicate) record.</p>
|
|
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
|
|
<input type="hidden" name="basketno" value="[% basketno | html %]" />
|
|
<input type="hidden" name="breedingid" value="[% breedingid | html %]" />
|
|
<input type="hidden" name="op" value="cud-use_external_source" />
|
|
<input type="submit" class="btn btn-primary" value="Create new" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
</div> <!-- /.col-md-10.order-md-2 -->
|
|
|
|
<div class="col-md-2 order-sm-2 order-md-1">
|
|
<aside>
|
|
[% INCLUDE 'acquisitions-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-md-2.order-md-1 -->
|
|
</div> <!-- /.row -->
|
|
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|