Changeset 29386


Ignore:
Timestamp:
2014-10-20T14:08:54+13:00 (10 years ago)
Author:
kjdon
Message:

depositor: changed imagethispage to be different if we are using local (collection specific) depositor. the view colleciton link now includes the saved args. added cacheoption macro so we can turn off metadata value caching if want.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/deposit.dm

    r28898 r29386  
    33package depositor
    44
    5 _imagethispage_ {<a href="_httppagedepositor_">_textdepositor_</a>}
     5_imagethispage_ {_If_("_cgiargdi1local_" eq "1",<a href="_httppagedepositorcurrentcollection_">_textdepositorlocal_</a>,<a href="_httppagedepositor_">_textdepositor_</a>)}
    66
    77# _pagescriptextra_ will be set to the appropriate _***scriptextra_
     
    2323# store any existing metadata values
    2424_cachedmetadatavalues_ {var CachedMDValues = new Array();}
    25 
     25# set the following to 0 if you don't want to cache metadata values
     26_cacheoption_{1}
    2627#######################################################################
    2728# steps
     
    3637_textstep3_ {_textconfirm_}
    3738
     39# set laststep to depositonly if you don't want the item to be indexed
    3840_laststep_ {bild}
    3941_textlaststep_ {_textbild_}
     
    6769_httpconf_ {_gwcgi_?e=_compressedoptions_&p=conf}
    6870_httpbild_ {_gwcgi_?e=_compressedoptions_&p=bild}
    69 _httpview_ {_gwcgi_?a=p&p=about&c=_cgiargdi1dirnameUrlsafe_}
     71_httpview_ {_gwcgi_?e=_compressedoptions_&a=p&p=about&c=_cgiargdi1dirnameUrlsafe_}
    7072_httpdel_  {javascript:do\_delete();}
    7173_httpexpt_ {_gwcgi_?e=_compressedoptions_&p=expt}
Note: See TracChangeset for help on using the changeset viewer.