Overview

In the following article, I introduced how to bulk export data using the BulkExport module.

This module also provides functionality to display an export button on item detail pages. I will introduce how to use this feature.

Usage

The installation method is the same as for general modules. It is also briefly explained in the article above.

After activating the module, export links in various formats are displayed on item detail pages as shown below.

The items to display can be changed in the per-site settings page. The settings page can be accessed as follows.

Scrolling down on the settings page reveals the Bulk Export settings section, where you can change settings such as Formatters to display in resource pages.

Changing the Appearance of Export Links

Here I explain how to change the appearance of the export links. Ideally, you should create a new theme and create files for this module, but this time we will use the default theme.

The default theme is located in a place like the following.

{Omeka S installation directory}/themes/default

First, copy the BulkExport module files into this default theme. For example:

cmcdkpd{imOromdetukhlaeemsSe/sBi/undlsektfEaaxluplloatrt/tiv/oivneiwed/wicrcemocmmtomonorny/}bulk-export.phtmlthemes/default/view/common

The contents may differ depending on the version, but bulk-export.phtml has content like the following.

i$$$$$$$$?<?:?:?<]<fpueatert>d>l)?//lrssrsohis($sipudF(ulcsacuivpitp>?hlia!gaenats<<<<<$rnrr<>p>vkci=ptspe-c?h?u?li_aia">eoneUle>lp4plpananneus$raA=hah>hhbtrstdtnonp=lttesp<pcpefrlfoidrt=let$as?ll(aa(wtf(u$=rtd=i=eafF$yt$nloi$$gp=hL"fnsoot(etlernutil$=iib$dsrrr$(ro=evrhnup$snu(ei=emaf'aa"ailisglp$-kl$sf"aanoDnd<csss-iulp>(khc;ectsros=?hi)->nguls)-eaxhlmwl"=;b)>gsigut-eap?p=aanadlge-niga>xde>o(ttlto$?eret>snitapi(r$ie,oewe>et(g-snupon$ten(a(nsitH'e>-ssprghex_'[d'lcdueutg>-(et)erpaD'Doasrlr(eg>)n:asorobaoapnpl'teg-d<d"rrwiswdeo;e'e(te>S??i>tanbn"Arr)s'(tit=>neyl.tltP;ca'(sygr(oteoctnlast'Al$)s$axxalroupsrededfdttda(geeasmsi?ao''s$eiHtncihv>sra,)aslxntUsanec<mss=apMmrlpRel/$a'"boallaeetahftsb%eern''tHq(s4o,pisxlta))etu$s>rrb'pFeg;;'meam[e.)oore)lss?a'ao,rrsr;Ats>toddtm.(t(e"dst$ea)t)t>=sh'lrt;rU>'e]a)'?r,e)bd)l$teo?;'(l'lw>a'ax%)n"dcbls)l>mses';o<islx)a?n)',d=b:,-ru$<$el'l?lskxa=ao-lbbueseserx'ltlcp])reo)_?-rr>ote<u.p/tclapsa>usc<t'e/',(l'i:'.>B''u,sliktEex'/p,roer$stfo'ou)rr)mc;aet-)ou?t>p"uth'r;ef="<?=$escapeAttr($urls[$format

Here, let’s change the content of the a tag to a button.

<]l)i>?<>b'u"t>t<o?n=t$ylpaeb=e"lbu?t>t<o/nb"utotnocnl>i<c/kl=i">location.href='<?=$escapeAttr($urls[$format

The display changes as follows.

Additionally, you can change the style using CSS.

Summary

I hope this is helpful for using the BulkExport module and for changing the appearance of modules with themes.