Changeset 20 in bookmarks for trunk/bkmk


Ignore:
Timestamp:
05/21/13 17:55:34 (11 years ago)
Author:
peter
Message:
  • Bookmarks::get_resources() and Bookmarks::get_cotags() both accept arrayrefs as their tag parameters
  • can now use multiple ?tag query parameters in the request and it will search for the intersection of those tags
  • bkmk list takes 0 or more --tag command line options
  • display a checkbox-based form listing the search tags and available cotags at the below the list of bookmarks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bkmk

    r15 r20  
    88GetOptions( 
    99    'file|f=s' => \my $DBNAME, 
     10    'tag=s' => \my @TAGS, 
    1011); 
    1112 
     
    3233    }, 
    3334    list => sub { 
    34         my @resources = $bookmarks->get_resources(); 
     35        my @resources = $bookmarks->get_resources({ 
     36            tag => \@TAGS 
     37        }); 
    3538        # TODO: list by tags, date, etc. 
    3639        # TODO: coordinate this commandline script with the CGI app 
Note: See TracChangeset for help on using the changeset viewer.