Comments (7)
The instructions say to setup "FTP server with sub-directories for each institution." Should I also configure that subdirectory in each IZ's S/FTP definition (currently just 'AlmaRSA')? Or in the publishing profile (currently just 'items' as the instructions say)?
from almaremotestorageapp.
I have updated my copy of ItemsMain.java code with the following:
Line 22: static String mainLocalFolder = "files//items//";
Replaced with static String mainLocalFolder = "//opt//local//scf//files//items//";
(I believe, at least the root of the path, should be configured in conf.json.)
Line 48: ftpUtil.getFiles("/" + ftpFolder + "/" + institution + "/items/", mainLocalFolder + "targz//");
Replaced with: ftpUtil.getFiles(ftpFolder + "/" + institution + "/items/", mainLocalFolder + "targz//");
Now all files from sftp.wrlc2k.wrlc.org have been moved to scfapp.wrlc.org directory that I created and set mainLocalFolder to. On scfapp.wrlc.org the gz files have been unzipped and move to xml directory. Code started to loop through xml files. I ran into some other issue there and will create a new issue with details.
Kathy
from almaremotestorageapp.
To avoid confusion we changed the FTP's configuration in conf.json to start with "/":
"main_folder":"/the/main/folder",
And changed the code in a similar way to what you did:
ftpUtil.getFiles(ftpFolder...
from almaremotestorageapp.
Once you update the code please change main_folder in conf.json to have full path (starting with "/").
from almaremotestorageapp.
Ori,
Did you update ItemsMain.java? If not one of the path issues still remains.
ItemsMain.java
Line 22: static String mainLocalFolder = "files//items//";
Replaced with static String mainLocalFolder = "//opt//local//scf//files//items//";
thanks,
Kathy
from almaremotestorageapp.
In https://github.com/ExLibrisGroup/AlmaRemoteStorageApp/blob/master/src/main/java/com/exlibris/items/ItemsMain.java
we only made changes regarding the FTP path, No changes to the path the files are stored at the local server. Is a change needed? If so, I guess we'll need to add another line for it in conf.json to have it configurable (to avoid the need for you to make changes in the Java code which will be overridden next time you sync from GitHub. If you like to commit your changes to GitHub let me know by email and we can add you to the project).
from almaremotestorageapp.
from almaremotestorageapp.
Related Issues (12)
- Firewall settings for local hosting? HOT 1
- Server set up question - tomcat version? HOT 2
- Q: conf.json for the remote storage IZ HOT 1
- Q: Alma Shared Secret for webhook HOT 2
- Question about job ID(s) for conf.json HOT 3
- Compilation failue - argument lists differ (SCFUtil, ItemApi) HOT 1
- Compilation Error HOT 1
- Signature validation fails HOT 1
- API call returns Response Code : 400 HOT 1
- mainLocalFolder needs a path that is configured in conf.json HOT 1
- Dependencies in pom.xml HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from almaremotestorageapp.