Difference between revisions of "API:EPrints/Update/Views"
Line 1: | Line 1: | ||
<!-- Pod2Wiki=_preamble_ | <!-- Pod2Wiki=_preamble_ | ||
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost. | ||
− | -->{{API}}{{Pod2Wiki}}{{API:Source|file=EPrints/Update/Views.pm|package_name=EPrints::Update::Views}}[[Category:API|VIEWS]][[Category:API:EPrints/Update|VIEWS]][[Category:API:EPrints/Update/Views|VIEWS]]<div><!-- Edit below this comment --> | + | -->{{API}}{{Pod2Wiki}}{{API:Source|file=perl_lib/EPrints/Update/Views.pm|package_name=EPrints::Update::Views}}[[Category:API|VIEWS]][[Category:API:EPrints/Update|VIEWS]][[Category:API:EPrints/Update/Views|VIEWS]]<div><!-- Edit below this comment --> |
Revision as of 15:27, 16 December 2011
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
NAME
EPrints::Update::Views - Update view pages
SYNOPSIS
$c->{browse_views} = [ { id => "year", order => "creators_name/title", menus => [ { fields => [qw( date;res=year )], reverse_order => 1, allow_null => 1, new_column_at => [10, 10] }, ], variations => [qw( creators_name;first_letter type DEFAULT )], }, ];
DESCRIPTION
Update the browse-by X web pages on demand.
OPTIONS
id
Set the unique id for the view, which in the URL will be /view/[id]/...
dataset = "archive"
Set the dataset id to retrieve records from.
An array of hierarchical menu choices.
order = ""
Order matching records by the given field structure.
variations = [qw( DEFAULT )]
Add group-bys on additional pages. "DEFAULT" shows all of the records in a list.
nolink = 0
Don't show a link to this view from the /view/ page.
Menus
allow_null = 0
fields = [qw( ... )]
new_column_at = [x, y]
reverse_order = 0
mode = "default"
Use "sections" to cause the menu to be broken into sections.
open_first_section = 1
Open the first section of the browse menu.
METHODS
update_view_file
$filename = update_view_file( $repo, $langid, $localpath, $uri )
This is the function which decides which type of view it is:
* the main menu of views * the top level menu of a view * the sub menu of a view * a page within a single value of a view
Does not update the file if it's not needed.
Pseudo-Views Class
name
$desc = $view->name
Returns a human-readable name of this view (for debugging).
update_view_by_path
$view->update_view_by_path( %opts )
Updates the view source files.
Options:
on_write - callback called with the filename written langid - language to write do_menus - suppress generation of menus do_lists - suppress generation of lists
COPYRIGHT