datacurator-filetree icon indicating copy to clipboard operation
datacurator-filetree copied to clipboard

Modify BISAC folder structure to replace simple references with relative symlinks

Open SpencerDub opened this issue 1 year ago • 0 comments

I find the BISAC folder structure quite helpful; however, many of the categories contain folders that reference other folders. For instance:

/ANTIQUES & COLLECTIBLES/Ceramics see Pottery & Ceramics
/ART/Product Design see DESIGN-Product
/LAW/Divorce see Family Law-Divorce & Separation

It would be useful if these singular references were replaced with relative symlinks to the specified targets.

There are other references that would not make unequivocal sense to replace because they are not direct references to a single alternative category, such as:

/ART/Design see headings under DESIGN
/ANTIQUES & COLLECTIBLES/Sports (see also headings under Sports Cards)/
/ANTIQUES & COLLECTIBLES/Televisions & Television-Related see Performing Arts or Radios & Televisions/

Modifying the directories and creating symlinks in this way seems like a good use of a script; however, I've been unable to write an effective bash script to do this, since it keeps getting caught up on the cross-subject references (...see DESIGN-Product) and creating symlinks for those incorrectly (/ART/Product Design/Product). Perhaps someone who's just a little more skilled at scripting than me could do this in one fell swoop.

SpencerDub avatar Nov 25 '24 20:11 SpencerDub