I made an adjustment to the "bitrate" that is reported for the album, so that it is actually the average bitrate instead of the bitrate from the first track in the album. The change uses the average bitrate calculation that is in dano's "html_dano_01_ex_mp3tag" export config.
I'll post the changes, but want to make sure it is okay with you and dano first.
That would be cool to see scripting within the $loop() function.
I have uploaded a file that contains the changes I made to the MTE, HTM and XSL files. You will notice that there are two sets of HTM/MTE files: one for MP3, and one for FLAC. I did this so that I can pull out and store information for my two directory paths.
I know I could have done it differently, such that there is only one MTE file, but there would still need to be a separate HTM file for each codec. So I just made paired files.
-I modified the $loop(%artist%) to account for my %album artist% tag.--I use x:/music/mp3/artist(album artist)/album/track.mp3 for my directory structure. This allows me to use "Various Artist" for compilations, otherwise, it would not keep all the tracks from a compilation together. It will sort artists while ignoring "The " in the artist name, however it will still display the "The ". For example, "The Beatles" will be in the B's, not the T's.
-Under the album loop, I made the change to correct of the problem with the "#" symbol.
-I also added a line, which is now used in the XSL to store the average bitrate from the entire album. (courtesy of dano )
-I changed the $loop(%_filename_ext%) to $loop($num(%track%,2)). I did this because it kept wanting to sort tracks alphabetically...rather than numerically.
-There is also a new line in the loop (beginning with "$puts"), which is the second half of the code from dano. This is what actually creates the average bitrate for all of the tracks in the album loop.
-I added a $replace function to shorten the codec. Just thought it would help clean up the actual page in Firefox and IE.
-I also added the which is the compression ratio and %. The actual bitrate and compression for the individual tracks now appear beneath the time and size in Firefox and IE.
-To clean up the web page, I also converted the samplerate to KHz. I also added a $replace function to add in the "&" between ID3V1 ID3V2 for MP3 files.
-For the filename and filenamepath, I added in the fix for the "#" symbol.
I think that is it. Some of these are just personal preference for the layout. Hope everyone likes it.
Edit: As dano noted above, the use of %_parent_directory% means you have to have 2.35a installed.
One thing I noticed is that now if you use $loop(%track%) it sorts songs as follows: 1, 10, 11, 2, 3, etc. Quick change to $loop($num(%track%,2)) and it's fixed. Awesome stuff. Plus I made a change to the loop that pulls out the Artist. I reloaded the ZIP file with my changes. It is in this post.
I am using since a while the excellent MP3 Tag + md5_squonk XML export solution and everything works like a charm with IE but the search feature is not working with Mozilla !
I have done intensive research to troubleshoot this with no success
With Mozilla the issue is that when I click on the "find" button only an empty search result page is displayed. If I rename the "SearchResults.xsl" page I can see the query result data which is fully correct but not properly formatted at all. So it sounds like there is an issue with loading/activating the CSS with mozilla.
With IE the same CSS loads properly and shows proper results.
Any help to troubleshoot this will be greatly appreciated !