disable exporting of all entries
| Project: | Bibliography Module |
| Version: | 5.x-1.9 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
i'd like to make it possible for users to export entries from the bibliography, but not the entire thing. This would mean suppressing the Export link at the top of the results page, but not on an individual item listing or page.
Right now doing that with css, means also hiding the number of citations found, because both are included in the "biblio_export" class
<div class="biblio_export">Export 1150 results:[<a href="/biblio/export/tagged">Tagged</a>][<a href="/biblio/export/xml">XML</a>][<a href="/biblio/export/bib">BibTex</a>]</div>
this might cleaner as
<div class="biblio_results_count"> 1150 results</div>
<div class="biblio_export">Export: [<a href="/biblio/export/tagged">Tagged</a>][<a href="/biblio/export/xml">XML</a>][<a href="/biblio/export/bib">BibTex</a>]</div> then the biblio_results_count and biblio_export could be styled separately.
Or maybe there's an easier way to do it in the module code?
Thanks for a great tool!
jt

#1
I could certainly do it in the code as another admin selectable option, which might be easier for the masses to use since not everyone is comfortable with CSS.
Ron.
#2
an admin option would be great ...
if you don't mind making separate divs when you were there, that would give me a useful option to highlight the number of results easily.
thanks so much
jt
#3
This is a feature I'd like to have also. If practical, it would be nice to be able to specify the maximum number of entries that can be exported at a time.
#4
Limiting the number of entries exported might be confusing, is a search nets 200 entires and you only provide 50 for export, then which 50 and how do I get the other 150? Perhaps it could be limited to what's shown on a given page, so if you list 50/page then only those 50 visable would be exported.
Ron.
#5
is this request still alive? i'd really like to see the number of results separated from the export links, as i noted above.
<div class="biblio_results_count"> 1150 results</div><div class="biblio_export">Export: [<a href="/biblio/export/tagged">Tagged</a>][<a href="/biblio/export/xml">XML</a>][<a href="/biblio/export/bib">BibTex</a>]</div>
i would be happy with limiting the number of references exported to those showing on a page.
thanks!
jt
#6
i'm not sure how to submit a patch, but here's what i did with lines 2095 and 2096 of the current -dev version to split the count from the export links. i can then hide the export links at the top of the list using .css
commented lines are the original code:
# if ( biblio_access('export')) {
# $content .= '<div class="biblio_export">'.t('Export @count results', array('@count' => $pager_total_items[0])).':['.l("Tagged","$base/export/tagged"). ']['.l("XML","$base/export/xml"). ']['.l("BibTex","$base/export/bib").']</div>';
if ( biblio_access('export')) {
$content .= '<div class="biblio_record_count"><h3>'.t('Found @count records', array('@count' => $pager_total_items[0])).'</h3></div><div class="biblio_export">Export:['.l("Tagged","$base/export/tagged"). ']['.l("XML","$base/export/xml"). ']['.l("BibTex","$base/export/bib").']</div>';
[sorry about the text wrapping.]
jt
#7
I've added the you suggested, but removed the H3 tags. I think the font size/style could be done with css if desired.
Ron.
#8
that works for me -- thanks!
jt
#9
Automatically closed -- issue fixed for two weeks with no activity.