[GeoNetwork-users] Download data button option for batch imported metadata tabs

Hi All,

I thought I'd give this another try, as I posted earlier under the holidays.

I basically am trying to figure out if the "download" button that appears
when a metadata tab has an associated file for download can be set to just
link to any old ftp url - as opposed to geonetworks internal data folder
structure.

I batch imported 200 +/- metadata files from arc, (fgdc) and don't want to
import them manually one by one and upload the associated data to the
geonetwork file structure - that seems the only way to make the Download
button work from the metadata tab.

What would you suggest doing? If all I can do is modify code, where would I
do that?

Do I have alternatives?

Thanks again !!!!!!

Giuseppe
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Download-data-button-option-for-batch-imported-metadata-tabs-tp5919507p5919507.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Giuseppe ,

we had the same question several years ago, and addressed it in the
'bluenetMEST' branch of geonetwork. [ available for download from
http://anzlicmet.bluenet.utas.edu.au/ ]

  Our problem was broader: we wanted our users in Geonetwork to be able to
filter their search so that only records with data attached (whether as
uploaded files, or linked-to usinh ftp ot http) were returned.

We also wanted all these records to show a "data for download" button that
takes the user to a list all the files/ urls available from that record.

OUR SOLUTION:

In that blueNetMEST software, we have added the ISO19115 profile called the
'Marine Community Profile (MCP)'. In the MCP, we added some additional
choices to the Distribution/transferOptions/onlineResource/protocol
codelist, namely:
- for files uploaded to GeoNetwork, instead of just 'File for download', we
offer the options of 'Data file for download' and 'Other file for download'.
- for ftp/http sites ,instead of just 'Web address url', we added 'Data for
download [URL]' [and we use that one for both http and ftp addresses that
link directly to data file(s) ]

We changed the indexing and software so that
- a "DATA DOWNLOAD" button appears for records that use "Dataifile for
download' (uploaded files) or "data for Download (URL)' protocol.
- a "DOWNLOAD" button appears, where a record has a 'non-data' file uploaded
to GeoNetwork, and the "Other file for download' protocol has been used.

You can see a demo of this by going to
http://mest121.emii.org.au/geonetwork/
(a test 'bluenetMEST software' instance we run) and searching for the term
'samplemetadata'

In the ADVANCED SEARCH page, if you tick the "data for download" box, the
search only finds records using 'data for download' or 'data for download
(URL)' protocols.
  (a shortcut url is:
http://mest121.emii.org.au/geonetwork/srv/en/search.external?title=samplemetadata&download=on

Hope this helps.

As an aside: we amended the software so that the "file upload" function is
used to provide seamless file access to 'select' files stored on a password
protected /secure ftp site. But I dont think this is what you are after,
from your email.

Feel free to email me if you have any queries about it,

Kate Roberts
(kate.roberts@anonymised.com )
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Download-data-button-option-for-batch-imported-metadata-tabs-tp5919507p5921374.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Guiseppe:

apologies: the URL I mentioned in my earlier post (
http://mest121.emii.org.au/geonetwork/ ) isnt externally accessible.
I have re-created the samplemetadata records on another of our Geonetwork
(BlueNetMEST software) instances :

http://bluenet.aodn.org.au/geonetwork/srv/en/main.home?search=true&tab=advanced&title=samplemetadata

Kate
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Download-data-button-option-for-batch-imported-metadata-tabs-tp5919507p5934772.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Kate,

Thanks so much for the reply. I looked at your example on bluenetMEST and
read your suggestions thoroughly.

I don't need to be able to filter the metadata for downloadable data - it is
not high priority for us.

I do need to implement the software changes to add a "download" button even
when all I have is a "web address url" which links to my data on an FTP
folder. I also really like how you modified it to have a form where users
have to enter their information before downloading.

So the questions are:

1. do i have to make my own metadata template for your method to work? can't
i just modify things so that download button always goes to my "web address
url" and therefore to my ftp folder? I have no data "uploaded" in the
geonetwork system through it's interface.

2. the software changes to the download button - here is the crux - where? I
think if i understood correctly from Jeroen, I need to change the XSL, and
not the source code - I really hope this is true because I do not want to
set up the development environment if I don't need to.

Thanks again!

Giuseppe
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Download-data-button-option-for-batch-imported-metadata-tabs-tp5919507p5941027.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Kate,

Jeroen tells me I need to modify an XSL to get to change the download button
behaviour.

I would be satisfied with in adding a line in the search results tab for the
metadata, like you did with "schema" and "Extent" and put one called
"download link" and then next to it put a hyperlink to the ftp folder.

is that easier?

any help is really appreciated.

cheers,

Giuseppe
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Download-data-button-option-for-batch-imported-metadata-tabs-tp5919507p5945267.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

kate,

should i just install your version of geonetwork and see if it works for me?
i am doing this tomorrow. I did'nt realize you guys had the download up on
that link you sent...confused it with all the talk of "downloads".

thanks
giuseppe
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Download-data-button-option-for-batch-imported-metadata-tabs-tp5919507p5954332.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.