Mi Export en XML-XSL y en HTML


#1

Listado_MP3Tag_javifjmc.zip (140 KB)Bueno pues primero dar las gracias a Florian el creador de este magnifico programa, y a los creadores de otros export en los que me he basado: Squonk, Sarissa, Milka, dano, nickless.

Bueno pues yo he creado un listado mediante export en dos versiones uno en html mas sencillo sin busqueda, y otro en XML-XSL que permite busquedas por diferentes etiquetas y ordenacion por diferentes conceptos en los Grupos (Artists), los Albumnes(CDs) y las Canciones (songs), y mostrar agrupados por Grupos, Por albumnes o directamente un listado de todas las canciones, la suma de tiempos y espacio, y la cuenta de canciones y albumnes la realiza dinamicamente el XSL, asi que al realizar una busqueda determinada nos da los totales de esa busqueda.

Adjunto un rar con una demostracion, he incluido los ficheros necesarios y dos carpetas de dos grupos (Artist) Gudini y Sublevados con la estructura de directorios y las imagenes de las portadas para que podais ver las dos presentaciones correctamente.

Lo unico que hay que hacer en el raiz de donde esten la musica con el siguiente formato:

/Grupo/logo.gif (/Band/logo.gif )
/Grupo/Año-Album/Cancion (/Band/Year-Album/Songs)
/Grupo/Año-Album/portada.jpg (/Band/Year-Album/portada.jpg) portada (cover)

Poner los ficheros:
*Formato HTML:
-MP3Tag_javifjmc.html Fichero generado por MP3Tag Export con el fichero de exportacion Listado_MP3Tag_javifjmc_html.mte

*Formato XML-XSL:

-MP3Tag_javifjmc.xml Fichero generado por MP3Tag Export con el fichero de exportacion Listado_MP3Tag_javifjmc_xml.mte
-Listado_MP3Tag_javifjmc.htm Pagina que ejecuta el XML-XSL para CD's y DVD's con logo de grupo y portadas.
-Listado_MP3Tag_javifjmc_bd.htm Pagina que ejecuta el XML-XSL para mantener una base de datos sin logo de grupo ni portadas.
-Carpeta-Directorio (Folder) listado: Carpeta que contiene los ficheros .xsl, .js, la imagen mp3tag.gif, tambien en ese directorio he colocado en el zip los dos ficheros de exportacion .mte

Para tener una Base de datos en xml-xsl de toda la coleccion lo unico que hay que hacer, es usar lo anterior en cualquier directorio del PC, teniendo en cuenta que la pagina Listado_MP3Tag_javifjmc.htm no mostrara las imagenes y los enlaces a las portadas y canciones fallaran, pero con el fichero Listado_MP3Tag_javifjmc_bd.htm ese problema no surge al no mostrar las imagenes ni enlazar a las canciones. El fichero MP3Tag_javifjmc.xml hay que generarlo, a partir de la segunda vez aparte y copiar todo lo que se encuentre dentro de las etiquetas ... , es decir copiar toda la informacon de los grupos o artistas e incluirlo en el ficehro donde queramos ir haciendo la base de datos teniendo cuidado de incluirlo dentro de las etiquetas ... , tambien s epuede utilizar la opcion añadir y luego eliminar el final del anterior export y el comienzo del nuevo export

<?xml version="1.0" encoding="utf-8"?>

es decir eliminar manualmente lo siguiente:

<?xml version="1.0" encoding="utf-8"?>

.

Como cosas curiosas comentaros que si el directorio del album no se llama con el formato año-titulo, coge el nombre del directorio (%_directory%) como titulo en vez de la etiqueta titulo (%album%), esto lo he realizado para recopilaciones, rarezas y carpetas mix que no son de un solo cd.

Espero que os guste.

Listado_MP3Tag_javifjmc.zip (140 KB)


#2

If you are posting in the English forums, why don't you stick to English.


#3

Yo probo el export. Pero tu escribe en ingles. Es un forum de internacional y es mas mejor escribe en ingles. (mi espanol es miserable)

Like milka said: Why don't you write in english because then more people will understand you and your plea. :slight_smile:


#4

Excuse me, but my english write is very bad, and i write to english forum because spanish forum don't exists.

I'm sorry, but i want to collaborate whit this forum

This is a automatic traduction maked with google, and corrected manually:

Good then first for giving to thanks to Florian the creator of this magnify program, and to the creators of others exports on which I have been based: Squonk, Sarissa, Milka, dano, nickless.

Good because I have created a listing by means of export in two versions one in simple HTML without search, and another one in XML-XSL that allows to search by different labels and arrangement by different concepts in the Groups (Artists), the Albumnes (CDs) and the Songs (songs), and to show grouped by Groups, albumens or directamnte a listing of all the songs, the sum of times and space, and the account of songs and albumnes makes the XSL dynamically, so when making a certain search gives the totals us of that search.

I add an attachment zip with a demonstration, there are including the files necessary and two folders of two groups (Artist) Gudini and Sublevados with the tree of directories and the images of the covers for it is posible to see the two presentations correctly.

The only thing which there is to do is putin this files and folder in the root tree of where you have the music with the following format:
/Band/logo.gif
/Band/Year-Album/Songs
/Band/Year-Album/portada.jpg portada=cover

To put the files:
*Formato HTML:
-MP3Tag_javifjmc.html File generated by MP3Tag Export with the file Listado_MP3Tag_javifjmc_html.mte export

*Formato XML-XSL:

  • MP3Tag_javifjmc.xml File generated by MP3Tag Export with the file Listado_MP3Tag_javifjmc_xml.mte export
    -Listado_MP3Tag_javifjmc.htm Page that executes the XML-XSL for CD's and DVD's with group logo and covers.
    -Listado_MP3Tag_javifjmc_bd.htm Page that executes the XML-XSL to maintain a data base without carried logo of group.
    -Folder-Directory listado: Folder that contains the files .xsl, .js, the mp3tag.gif image, also in that directory I have placed in zip both export files .mte

In order to have Base of data on xml-xsl of all the collection the only thing that there is to do, it is to use the previous thing in any directory of the PC, considering that the Listado_MP3Tag_javifjmc.htm page did not show the images and the links to the covers will be broken, but with the Listado_MP3Tag_javifjmc_bd.htm file that problem does not arise when not showing images and nor links to the songs. The MP3Tag_javifjmc.xml file is necessary to generate it, as of the second separate time and to copy everything what is within the labels… , that is to say, to copy all information of the groups or artists and to include it in file where we want to be making the data base having taken care of to include it within the labels … , also it's possible to use the option to add and soon to eliminate the end of previous export and the beginning of new export

<? xml version= " 1,0 " encoding= " utf-8 "? > that is to say, to eliminate the following thing manually: <? xml version= " 1,0 " encoding= " utf-8 "? > Like things peculiar comments that if the directory of the album is not called with the format year-title, takes the name of the directory (%_directory%) as instead of the label title (%album%), this I have made it for compilations, rareties and folders mix that are not of a normal CD. I hope that you like.

#5

I really like your script (tu export es muy bueno).
And now I really understand all the things you mentioned. Keep on! :slight_smile:


#6

Muchas gracias SquallLeonhart38, very thanks SquallLeonhart38.

Si ves algo que no haya traducido bien del español al ingles por favor hazmelo saber para editarlo.
If you see anything that I don't translate well from spanish to english please say me for edit it.

Me gusta que te guste.
I like you like it.

I like Judas too.


#7

Nice scripts, but you should work on style.


#8

tu exports tiene dos problemas. Un problema es el dibujo "&" en el titulo del exporto. Varios de mis grupos tienen un & en el titulo y ese dibujo es prohibe justo los dibujos ", ', < y >.

Correcto es:

<MP3List titulo="$replace($replace($replace($replace($replace($loop(%_parent_directory%,1)%_parent_directory% $loopend(),&,&amp;),",&aquot;),'',&apos;),<,&lt;),>,&gt;)" modo="grupos" inverso_grupo="" inverso_album="" inverso_cancion="">

Y el Internet Explorer tiene un problema con ese parte del bd-archivo:

    sQuery = sQuery + "[contains(translate("+ sCriteria;
    sQuery = sQuery + ",'ABCDEFGHIJKLMNOPQRSTUVWXYZÁÉÍÓÚÀÈÌÒÙÄËÏÖÜÂÊÎÔÛÑÇÕÐØ
ÝŸÆÃÅßUU',";
    sQuery = sQuery + "'abcdefghijklmnopqrstuvwxyzáéíóúàèìòùäëïöüâêîôûñçõðø
ýÿæãåßuu'),'";
    sQuery = sQuery + texto + "')]";

El IE no sorta los songs porque ese parte.

en ingles:

your export has two problems. One problem is the character "&". Various of my artists contain this char but it's not allowed to be written unmasked like the characters ",', < and >, because they are signs that are used for xml-attributes and so.
You simply have to replace the normal version of the title with the one I gave above.

And the second problem is with the Internet Explorer. He doesn't sort the songs and the other things because of the part that's above. He only says that he doesn't know this.