[% END %]
<meta name = "viewport" content = "initial-scale = 1.0">
<!--Added bootstrap dependancies-->
- <link rel="stylesheet" href="[% ctx.media_prefix %]/css/bootstrap/bootstrap.min.css">
- <link rel="stylesheet" href="[% ctx.media_prefix %]/css/fontawesome/all.css[% ctx.cache_key %]" />
- <link rel="stylesheet" href="[% ctx.media_prefix %]/css/datepicker/bootstrap-datepicker.css[% ctx.cache_key %]" />
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/opac/deps/node_modules/bootstrap/dist/css/bootstrap.min.css[% ctx.cache_key %]">
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/opac/deps/node_modules/@fortawesome/fontawesome-free/css/all.css[% ctx.cache_key %]" />
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/opac/deps/node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker.css[% ctx.cache_key %]" />
<link rel="stylesheet" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto.css[% ctx.cache_key %]" />
<link rel="stylesheet" href="[% ctx.opac_root %]/css/style.css[% ctx.cache_key %]&dir=[%
IF ctx.get_i18n_l(ctx.eg_locale).rtl == 't' %]rtl[%
[% INCLUDE 'opac/parts/goog_analytics.tt2' %]
[% END %]
[% PROCESS 'opac/parts/stripe.tt2' %]
-<script src="[% ctx.media_prefix %]/js/bootstrap/jquery-3.5.1.min.js"></script>
+<script src="[% ctx.media_prefix %]/opac/deps/node_modules/jquery/dist/jquery.min.js"></script>
</head>
<link rel="stylesheet" href="[% ctx.media_prefix %]/js/ui/default/common/build/js/glide/css/glide.core.min.css[% ctx.cache_key %]">
<link rel="stylesheet" href="[% ctx.media_prefix %]/js/ui/default/common/build/js/glide/css/glide.theme.min.css[% ctx.cache_key %]">
<!-- JS imports, etc. -->
-<script src="[% ctx.media_prefix %]/js/bootstrap/jquery-3.5.1.min.js"></script>
-
-<script src="[% ctx.media_prefix %]/js/bootstrap/popper.min.js"></script>
-
-<script src="[% ctx.media_prefix %]/js/bootstrap/bootstrap.min.js"></script>
-
-<script src="[% ctx.media_prefix %]/js/datepicker/bootstrap-datepicker.js"></script>
+<script src="[% ctx.media_prefix %]/opac/deps/node_modules/jquery/dist/jquery.min.js[% ctx.cache_key %]"></script>
+<script src="[% ctx.media_prefix %]/opac/deps/node_modules/popper.js/dist/umd/popper.min.js[% ctx.cache_key %]"></script>
+<script src="[% ctx.media_prefix %]/opac/deps/node_modules/bootstrap/dist/js/bootstrap.min.js[% ctx.cache_key %]"></script>
+<script src="[% ctx.media_prefix %]/opac/deps/node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js[% ctx.cache_key %]"></script>
<script>
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
-</script>
\ No newline at end of file
+</script>
--- /dev/null
+{
+ "name": "evg-opac-depes",
+ "version": "1.0.0",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "@fortawesome/fontawesome-free": {
+ "version": "5.14.0",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.14.0.tgz",
+ "integrity": "sha512-OfdMsF+ZQgdKHP9jUbmDcRrP0eX90XXrsXIdyjLbkmSBzmMXPABB8eobUJtivaupucYaByz6WNe1PI1JuYm3qA=="
+ },
+ "bootstrap": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.3.1.tgz",
+ "integrity": "sha512-rXqOmH1VilAt2DyPzluTi2blhk17bO7ef+zLLPlWvG494pDxcM234pJ8wTc/6R40UWizAIIMgxjvxZg5kmsbag=="
+ },
+ "bootstrap-datepicker": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/bootstrap-datepicker/-/bootstrap-datepicker-1.9.0.tgz",
+ "integrity": "sha512-9rYYbaVOheGYxjOr/+bJCmRPihfy+LkLSg4fIFMT9Od8WwWB/MB50w0JO1eBgKUMbb7PFHQD5uAfI3ArAxZRXA==",
+ "requires": {
+ "jquery": ">=1.7.1 <4.0.0"
+ }
+ },
+ "jquery": {
+ "version": "3.5.1",
+ "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
+ "integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg=="
+ },
+ "popper.js": {
+ "version": "1.12.9",
+ "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.12.9.tgz",
+ "integrity": "sha1-DfvC3/lsRRuzMu3Pz6r1ZtMx1bM="
+ }
+ }
+}
--- /dev/null
+{
+ "name": "evg-opac-depes",
+ "version": "1.0.0",
+ "description": "Dependencies for Evergreen OPAC skins",
+ "main": "index.js",
+ "dependencies": {
+ "bootstrap": "~4.3.0",
+ "bootstrap-datepicker": "^1.9.0",
+ "@fortawesome/fontawesome-free": "^5.14.0",
+ "jquery": "~3.5.1",
+ "popper.js": "~1.12.9"
+ },
+ "devDependencies": {},
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "Evergreen Project",
+ "license": "GPL-2.0-or-later",
+ "private": true
+}
rm -r node_modules
cd ../../../../../ # Open-ILS dir
+ # OPAC dependencies
+ cd web/opac/deps
+ npm install # fetch dependencies
+ # and leave them in node_modules; there's no build step
+ cd ../../.. # Open-ILS dir
+
# Angular staff client
echo "Building Angular browser staff client"
cd src/eg2
# npm cache is big and unnecessary in the final build. remove it.
rm -rf node_modules
cd ../../../../ # release dir
+
else
echo "Skipping browser client build"
cd ../../../../
CHROME_BIN=/path/to/chrome npm run test
------------------------------------------------------------------------------
+[[install_opac_deps]]
+=== Install OPAC skin dependencies ===
+
+1. The following steps take place within the OPAC dependencies root:
++
+[source,sh]
+------------------------------------------------------------------------------
+cd $EVERGREEN_ROOT/Open-ILS/web/opac/deps
+------------------------------------------------------------------------------
++
+2. Install Project-local Dependencies. npm inspects the 'package.json' file
+ for dependencies and fetches them from the Node package network.
++
+[source,sh]
+------------------------------------------------------------------------------
+npm install # fetch JS and CSS dependencies
+------------------------------------------------------------------------------
++
+Note that there is no build step.
+
== Configuration and compilation instructions ==
For the time being, we are still installing everything in the `/openils/`