Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b02fea3
Support custom HTML templates from npm (#61)
LukeGaudreau Apr 24, 2018
2a5c328
Remove wrong instruction in readme (#64)
danmichaelo Apr 24, 2018
4fb6a83
Minify/uglify JavaScript in the browserify build (#68)
gpeterso Apr 24, 2018
f39b7d6
Update require-dir from 0.3.0 to 0.3.2 (#67)
danmichaelo Apr 25, 2018
18152b3
add dist/*.js files from node_modules when building by concatenation …
thatbudakguy Apr 25, 2018
f18425b
update gulp tasks to build code before package, as well as slightly a…
hbeachey Apr 25, 2018
1d84ffc
Add Note that custom js and css will be overridden in concationation
NoamaExl Apr 25, 2018
075d793
add script for preparing addon for Primo-Studio
gilax Aug 16, 2018
224a792
add script for preparing addon for Primo-Studio
gilax Aug 16, 2018
79d3e2e
handle 'prepare-addon' not finished task
gilax Aug 19, 2018
1a4d7cd
edit print at end of process and revert changes from last commit
gilax Aug 19, 2018
624bd76
Redirect SAML login requests
gpeterso Aug 23, 2018
f558ad7
Merge pull request #84 from gpeterso/redirect-saml-auth
gilax Sep 20, 2018
ac25687
fix for issue 93 - support html folder with folders inside
gilax Dec 11, 2018
ad879bc
fix #81 - change the description of view for VE customers
gilax Dec 23, 2018
b802b2b
upgrade lodash to 4.17.11
gilax Dec 23, 2018
2486365
fix #86 by adding parameter for CAS sign in called --cas
gilax Dec 30, 2018
33b098f
fix #98 by renaming all scsss to www in 'extract-scss-files' task
gilax Feb 3, 2019
a597bc0
Create LICENSE
gilax May 26, 2019
e94458b
update version in package.json
gilax Jul 31, 2019
8b0c6ee
update gulp-sass
NoamaExl Feb 4, 2020
2ce4978
Suggestion on wording (#112)
megwill4268 Jun 19, 2020
00e0b5c
add angularjs-annotate to babelify plugins and custom-js bugfix (#70)
uleodolter Jul 20, 2020
ccebb73
[FEATURE] Adds definePlugin functionality (#96)
Jul 20, 2020
67df057
useScss setter bugfix (#99)
jswelker Jul 20, 2020
0e217a8
Update minimum node version to 10.15.3 (#103)
cooldudezach Jul 21, 2020
5f8fe94
[bugfix] unhide 'primo-explore/*' directories from npm package (#106)
atla5 Jul 21, 2020
1dc9c81
Bump minimist from 1.2.0 to 1.2.5 (#109)
dependabot[bot] Jul 21, 2020
05343dd
Bump lodash from 4.17.15 to 4.17.19 (#113)
dependabot[bot] Jul 21, 2020
a7456fc
clarify command line prompt
NoamaExl Jul 21, 2020
e351120
adjust to gulp 4.0.1 - add callback to all series calls
NoamaExl Jul 21, 2020
3fb5f72
adjust to gulp 4.0.1 - add callback to all series calls
NoamaExl Jul 21, 2020
84f7783
add manual tests procedure
NoamaExl Jul 22, 2020
f34630e
gulp.watch changes and docker (#115)
uleodolter Jul 28, 2020
18536de
add manual tests procedure
NoamaExl Jul 29, 2020
7077f2f
Add fix for relative pathnames in html templates (#116)
LukeGaudreau Jul 30, 2020
2568bd3
fix node-modules tasks, use gulp4-run-sequence and add callback (#117)
uleodolter Aug 2, 2020
12e5ac5
fix autoprefixer browsers option and replace by browserslist in packa…
uleodolter Aug 19, 2020
0bf1e97
npm: update package.json version (1.0.5 -> 1.1.0 [minor]) to ship Jul…
Sep 22, 2020
7f12e59
Update README.md
ShoulM Sep 18, 2022
1c43109
Merge pull request #140 from ExLibrisGroup/master
ShoulM Sep 18, 2022
f9804fc
Merge pull request #141 from ExLibrisGroup/Node-14-upgrade
ShoulM Sep 18, 2022
f1ad6b6
upgrade dependencies to support Node v16 LTS
Sep 18, 2022
24efb6a
Merge pull request #144 from ExLibrisGroup/Node-v16.17.0-(LTS)-support
ShoulM Dec 19, 2022
dee39c3
Update config.js
yaelyEXL Apr 20, 2023
ad78ad5
Merge pull request #148 from yaelyEXL/patch-1
ShoulM Apr 24, 2023
226e312
Update primoProxy.js
ShoulM Jun 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
primo-explore/custom/
primo-explore/tmp/
.idea/

!primo-explore/custom/.gitignore
!primo-explore/tmp/.gitignore

.idea/
package-lock.json
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2019, Ex Libris, Ltd.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 changes: 26 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,34 @@ This custom View folder can be downloaded from your Primo Back Office, by follow

## Installation

Note: If you are not the Administrator of your machine, you might get into problems in the flow below, we recommend using the "Node.js command prompt (search for cmd in your pc to locate it) whenever the instructions below refer to "command line".

1. Download the project from this repository and place it on your computer

2. Unzip the file you downloaded to a preferred development project folder location

3. Download and install the [Node version 6.9.2](https://nodejs.org/download/release/v6.9.2/)

4. From command line, run the command : `npm install [email protected] -g`
3. Download and install the [Node version 16.17.0](https://nodejs.org/download/release/v16.17.0/)

5. Restart your computer
4. Restart your computer

6. From command line, run the command : `npm install -g gulp`
5. From command line, run the command : `npm install -g gulp`

7. In a <b>new</b> command line window, navigate to the project base directory (`cd \path\to\your\project\folder\primo-explore-devenv`)
6. In a <b>new</b> command line window, navigate to the project base directory (`cd \path\to\your\project\folder\primo-explore-devenv`)

8. From command line, run the command : `npm install` (This should install all node modules needed for gulp.)
7. From command line, run the command : `npm install` (This should install all node modules needed for gulp.)

![npm install image](./help_files/npmInstall.png "Running npm install")

9. Edit Gulp configuration file's <i>proxy server</i> setting, found at <b>gulp/config.js</b> : `var PROXY_SERVER = http://your-server:your-port` (Make sure to use your real Sandbox or Production Primo Front-End URL.) Note that for SSL environments (HTTPS) define the server as: `var PROXY_SERVER = https://your-server:443`
8. Edit Gulp configuration file's <i>proxy server</i> setting, found at <b>gulp/config.js</b> : `var PROXY_SERVER = http://your-server:your-port` (Make sure to use your real Sandbox or Production Primo Front-End URL.) Note that for SSL environments (HTTPS) define the server as: `var PROXY_SERVER = https://your-server:443`

10. Populate your custom View package folder in the custom package folder ("...primo-explore\custom"), by either downloading the view code files from your Primo Back Office or using the [primo-explore-package GitHub repository](https://github.com/ExLibrisGroup/primo-explore-package "primo-explore-package repository")) to start a new package folder. (if you have already defined a view package and loaded it to the BO - make sure you download it or else you will not see, and may overwrite, your previous changes.)
9. Populate your custom View package folder in the custom package folder ("...primo-explore\custom"), by either downloading the view code files from your Primo Back Office or using the [primo-explore-package GitHub repository](https://github.com/ExLibrisGroup/primo-explore-package "primo-explore-package repository")) to start a new package folder. (if you have already defined a view package and loaded it to the BO - make sure you download it or else you will not see, and may overwrite, your previous changes.)

- If your custom view package folder were to be called "Auto1" then your development environment directory tree should look similar to this:
![Directory tree image](./help_files/direcoryTree.png "Directory tree")

- <b>IMPORTANT:</b> The name of your custom view package folder must match an <i>existing</i> view on the proxy server being referenced or the Gulp server will not function properly. For development from scratch, be sure to first create (or copy) a view using the Primo Back Office View Wizard; then you can accomplish your customizations locally using this document.

11. Start your code customizations :

- From command line, go to your custom view package folder : `cd primo-explore\custom\VIEW_CODE`
10. Start your code customizations :

- From command line, run the command : `gulp run --view <the VIEW_CODE folder>` (This will start your local server.)

Expand All @@ -74,7 +72,7 @@ This custom View folder can be downloaded from your Primo Back Office, by follow
- For Primo VE customers, add the --ve flag :
`gulp run --view <the VIEW_CODE folder> --ve`
- Open a browser and type in the following URL : `localhost:8003/primo-explore/?vid=your-view-code` (Example: http://localhost:8003/primo-explore/search?vid=Auto1)
- For Primo VE customers open the following URL : `localhost:8003/discovery/?vid=your-view-code`
- For Primo VE customers open the following URL : `localhost:8003/discovery/?vid=your-institution-code:your-view-code`

- Now you should be able to to your customizations with real searches and results, from your previously defined proxy-server. Note: once you start working with this environment, you will discover that the best results are achieved by working in your browser's incognito mode; or you can clear your browser cache before you start the Gulp server.

Expand All @@ -93,6 +91,8 @@ This custom View folder can be downloaded from your Primo Back Office, by follow
- [JavaScript](https://github.com/ExLibrisGroup/primo-explore-package/tree/master/VIEW_CODE/js "javascript documentation")


Note: you have multiple options to edit the css file(custom1.css) and the js file(custom.js), some of them include methods of splitting your developments to seperate files. When using such methods - the custom1.css and custom.js files will be overriden by the different files when gulp is run. Place your custom css and js into files with different names such as custommodule.css or custom.module.js to have it concactinated into the custom css/js files.


## Publishing packages

Expand All @@ -113,3 +113,16 @@ Once you finish customizing the package, you can zip up that directory and uploa
![BO Image](./help_files/bo.png "BO up")

5. Don't forget to <b>deploy</b> your changes


## Publishing Primo-Studio addons

Once you finish customizing the package, you can get it ready to be published to Primo-Studio.

1. In a command line window, navigate to the project base directory : `cd \path\to\your\project\folder\primo-explore-devenv`

2. From command line, run the command : `gulp prepare-addon` You will be prompted with a menu specifying all of the possible packages you can build.

3. Once you finished running the script a folder containing the add-on will be created in `\path\to\your\project\folder\primo-explore-devenv\addons`.

4. From the above folder you can publish your add-on to NPM and to Primo-Studio. For Instructions see: [Primo-Studio add-on tutorial](https://github.com/ExLibrisGroup/Primo-Studio-Addon-Tutorial)
4 changes: 4 additions & 0 deletions addons/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
Loading