Giter Club home page Giter Club logo

Comments (7)

dongourley avatar dongourley commented on August 11, 2024

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.

kilduff avatar kilduff commented on August 11, 2024

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.

ori229 avatar ori229 commented on August 11, 2024

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.

ori229 avatar ori229 commented on August 11, 2024

Once you update the code please change main_folder in conf.json to have full path (starting with "/").

from almaremotestorageapp.

kilduff avatar kilduff commented on August 11, 2024

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.

ori229 avatar ori229 commented on August 11, 2024

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.

kilduff avatar kilduff commented on August 11, 2024

from almaremotestorageapp.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.