use OpenSRF::Utils::Cache;
use OpenSRF::Utils::JSON;
use OpenILS::Utils::HTTPClient;
+use Scalar::Util 'blessed';
+use Data::Dumper;
my $handler;
my $cache;
our %vendor_handlers = (
'ebook_test' => 'OpenILS::Application::EbookAPI::Test',
'oneclickdigital' => 'OpenILS::Application::EbookAPI::OneClickdigital',
- 'overdrive' => 'OpenILS::Application::EbookAPI::OverDrive'
+ 'overdrive' => 'OpenILS::Application::EbookAPI::OverDrive',
+ 'rbdigital' => 'OpenILS::Application::EbookAPI::RBDigital'
);
sub initialize {
sub get_details {
my ($self, $conn, $session_id, $title_id) = @_;
+ $logger->info("EbookAPI: Calling an api to get title info");
my $handler = new_handler($session_id);
return $handler->get_title_info($title_id);
}
+
__PACKAGE__->register_method(
method => 'get_details',
api_name => 'open-ils.ebook_api.title.details',
}
);
+sub get_title_summary {
+ my ($self, $conn, $session_id, $title_id) = @_;
+ $logger->info("EbookAPI: Calling an api to get title summary");
+ my $handler = new_handler($session_id);
+ return $handler->get_title_summary($title_id);
+}
+
+__PACKAGE__->register_method(
+ method => 'get_title_summary',
+ api_name => 'open-ils.ebook_api.title.summary',
+ api_level => 1,
+ argc => 2,
+ signature => {
+ desc => "Get ebook title summary",
+ params => [
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'title_id',
+ desc => 'The title ID (ISBN, unique identifier, etc.)',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Success: { isbn => "isbn", summary => "book summary" } / Failure: { error => "Title not found" }',
+ type => 'hashref'
+ }
+ }
+);
+
sub get_availability {
my ($self, $conn, $session_id, $title_id) = @_;
my $handler = new_handler($session_id);
# patron and a title identifier (checkout, checkin, renewal, etc).
#
# Params:
-# - title_id: ISBN (OneClickdigital), title identifier (OverDrive)
+# - title_id: ISBN (OneClickdigital), ISBN (RBDigital), title identifier (OverDrive)
# - barcode: patron barcode
#
sub do_xact {
}
my $handler = new_handler($session_id);
- my $user_token = $handler->do_patron_auth($barcode);
+
+ my $user_token = _get_user_token($handler, $e, $barcode);
# handler method constructs and submits request (and handles any external authentication)
my $res;
$logger->error("EbookAPI: authentication failed: " . $e->die_event);
return;
}
-
+
my $handler = new_handler($session_id);
- my $user_token = $handler->do_patron_auth($barcode);
+ my $user_token = _get_user_token($handler, $e, $barcode);
+
my $xacts;
if ($xact_type eq 'checkouts') {
$xacts = $handler->get_patron_checkouts($user_token);
}
}
+# Call this method to retrieve the user token/patron id
+sub _get_user_token {
+ my ($handler, $editor, $barcode) = @_;
+
+ #For RBDigital vendor, send user email || email
+ if (blessed($handler) eq 'OpenILS::Application::EbookAPI::RBDigital') {
+ $logger->info("EbookAPI: handler->do_patron_auth(".$editor->requestor->usrname.", ".$editor->requestor->email.")");
+ return $handler->do_patron_auth($editor->requestor->usrname, $editor->requestor->email);
+ }
+
+ $logger->info("EbookAPI: handler->do_patron_auth($barcode)");
+ return $handler->do_patron_auth($barcode);
+}
+
sub get_patron_xacts {
my ($self, $conn, $auth, $session_id, $barcode) = @_;
my $xact_type;
}
);
+# Get Patron ID from vendor
+sub get_patron_id {
+ my ($self, $conn, $auth, $session_id, $barcode) = @_;
+ $logger->info("EbookAPI: getting patron id for patron $barcode");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return 0;
+ }
+
+ $logger->error("EbookAPI: User Authenticated. Now, calling for patron authentication");
+ my $handler = new_handler($session_id);
+ return $handler->do_patron_auth($editor->requestor->usrname, $editor->requestor->email);
+}
+
+__PACKAGE__->register_method(
+ method => 'get_patron_id',
+ api_name => 'open-ils.ebook_api.get_patron_id',
+ api_level => 1,
+ argc => 3,
+ signature => {
+ desc => "Get a patron id",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'barcode',
+ desc => 'The barcode of the patron (Optional)',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns a patron Id, or undef if no details available',
+ type => 'string'
+ }
+ }
+);
+
+# Call an API to register a patron
+sub register_patron {
+ my ($self, $conn, $auth, $session_id, $password) = @_;
+ $logger->info("EbookAPI: Initiating patron registration");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated. Now, registering the patron with RBDigital");
+ my $handler = new_handler($session_id);
+
+ return $handler->register_patron($editor->requestor->usrname, $password);
+}
+
+__PACKAGE__->register_method(
+ method => 'register_patron',
+ api_name => 'open-ils.ebook_api.patron.register',
+ api_level => 1,
+ argc => 3,
+ signature => {
+ desc => "Register a patron to vendor site",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'password',
+ desc => 'The password for vendor portal',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns a patron Id, or undef if unable to register a patron',
+ type => 'string'
+ }
+ }
+);
+
+# Basic Search call to Recorded Books API
+sub basic_search {
+ my ($self, $conn, $auth, $session_id,
+ $value_to_search, $search_type,
+ $media_format, $library_location, $facets, $search_inputs,
+ $sort_by, $sort_order,
+ $page_index, $page_size) = @_;
+
+ $logger->info("EbookAPI: performing a basic search.");
+ $logger->debug("EbookAPI: $auth, $session_id, $value_to_search, $search_type,
+ $media_format, $library_location, $sort_by, $sort_order, $page_index, $page_size");
+ my $handler = new_handler($session_id);
+ if ( defined($handler) && blessed($handler) ne 'OpenILS::Application::EbookAPI::RBDigital') {
+ $logger->error("EbookAPI: Basic search is not supported by vendor " . blessed($handler));
+ return;
+ }
+
+ $logger->info("EbookAPI: basic_search - checking user auth.");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ my $patron_id = _get_user_token($handler, $editor, 0);
+
+ $logger->debug("EbookAPI: count facets: ". scalar(@$facets));
+
+ $logger->info("EbookAPI: basic_search - Calling an internal API.");
+
+ return $handler->do_basic_search($patron_id,
+ $value_to_search, $search_type,
+ $media_format, $library_location, \@$facets, \@$search_inputs,
+ $sort_by, $sort_order,
+ $page_index, $page_size);
+}
+
+__PACKAGE__->register_method(
+ method => 'basic_search',
+ api_name => 'open-ils.ebook_api.basic_search',
+ api_level => 1,
+ argc => 11,
+ signature => {
+ desc => "Perform a basic search",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'value_to_search',
+ desc => 'The search string',
+ type => 'string'
+ },
+ {
+ name => 'search_type',
+ desc => 'The search type: keyword, title, etc',
+ type => 'string'
+ },
+ {
+ name => 'media_format',
+ desc => 'The media format: eaudio, ebook, emagazine',
+ type => 'string'
+ },
+ {
+ name => 'library_location',
+ desc => 'The Library Location',
+ type => 'string'
+ },
+ {
+ name => 'facets',
+ desc => 'Facet for filtering',
+ type => 'array'
+ },
+ {
+ name => 'search_inputs',
+ desc => 'Search inputs',
+ type => 'array'
+ },
+ {
+ name => 'sort_by',
+ desc => 'The sort by field: title, author name, etc',
+ type => 'string'
+ },
+ {
+ name => 'sort_order',
+ desc => 'The sort order: asc or desc',
+ type => 'string'
+ },
+ {
+ name => 'page_index',
+ desc => 'The page index of a search result',
+ type => 'number'
+ },
+ {
+ name => 'page_size',
+ desc => 'The number of items request in one call.',
+ type => 'number'
+ }
+ ],
+ return => {
+ desc => 'Returns search results.',
+ type => 'hashref'
+ }
+ }
+);
+
+__PACKAGE__->register_method(
+ method => "get_authorized_vendors",
+ api_name => "open-ils.ebook_api.get_authorized_vendors",
+ api_level => 1,
+ argc => 2,
+ signature => {
+ desc => "Get vendors list",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ }
+ ],
+ return => {desc => 'List of all vendors'}
+ }
+);
+
+sub get_authorized_vendors {
+ my ($self, $conn, $auth, $session_id) = @_;
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ my $handler = new_handler($session_id);
+ return $handler->get_authorized_vendors();
+}
+
+__PACKAGE__->register_method(
+ method => "is_authorized_patron",
+ api_name => "open-ils.ebook_api.is_authorized_patron",
+ api_level => 1,
+ argc => 2,
+ signature => {
+ desc => "Check if the patron is authorized to view library",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ }
+ ],
+ return => {desc => '1 for true or 0 for false'}
+ }
+);
+
+sub is_authorized_patron {
+ my ($self, $conn, $auth, $session_id) = @_;
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ my $handler = new_handler($session_id);
+ return $handler->is_authorized_patron($editor->requestor->home_ou);
+}
+
+sub get_book_recommendations {
+ my ($self, $conn, $auth, $session_id, $isbn, $media_format, $page_index, $page_size) = @_;
+
+ $logger->info("EbookAPI: Parameters- $session_id");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+ my $handler = new_handler($session_id);
+
+ my $patron_id = _get_user_token($handler, $editor, 0);
+
+ return $handler->get_book_recommendations($patron_id, $isbn, $media_format, $page_index, $page_size);
+}
+
+__PACKAGE__->register_method(
+ method => "get_book_recommendations",
+ api_name => "open-ils.ebook_api.get_book_recommendations",
+ api_level => 1,
+ argc => 6,
+ signature => {
+ desc => "Get book recommendation",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'isbn',
+ desc => 'The ISBN number',
+ type => 'string'
+ },
+ {
+ name => 'media_format',
+ desc => 'The media format/type: eaudio, ebook, emagazine',
+ type => 'string'
+ },
+ {
+ name => 'page_index',
+ desc => 'The page index of a search result',
+ type => 'number'
+ },
+ {
+ name => 'page_size',
+ desc => 'The number of items request in one call.',
+ type => 'number'
+ }
+ ],
+ return => {
+ desc => 'Return list of book recommendations',
+ type => 'hashref'
+ }
+ }
+);
+
+
+__PACKAGE__->register_method(
+ method => "do_wishlist",
+ api_name => "open-ils.ebook_api.patron.wishlist",
+ api_level => 1,
+ argc => 4,
+ signature => {
+ desc => "Add/delete or get wishlist",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'title_id',
+ desc => 'The title ID (ISBN, unique identifier, etc.)',
+ type => 'string'
+ },
+ {
+ name => 'action',
+ desc => 'add, delete, or get patron wishlist',
+ type => 'string'
+ }
+ ],
+ return => {desc => '{error_msg => "Wishlist already exist"} OR {message => "success"'}
+ }
+);
+
+sub do_wishlist {
+ my ($self, $conn, $auth, $session_id, $isbn, $action) = @_;
+
+ $logger->info("EbookAPI: Processing wishlist (token: $auth, session_id: $session_id, action: $action) for $isbn");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ my $handler = new_handler($session_id);
+
+ if ( defined($handler) && blessed($handler) ne 'OpenILS::Application::EbookAPI::RBDigital') {
+ $logger->error("EbookAPI: Wishlist is not supported by vendor: " . blessed($handler));
+ return;
+ }
+
+ my $patron_id = _get_user_token($handler, $editor, 0);
+
+ if ($action eq 'add') {
+ $logger->info("EbookAPI: Calling add_to_wishlist($patron_id, $isbn)");
+ return $handler->add_to_wishlist($patron_id, $isbn);
+ } elsif ($action eq 'delete') {
+ return $handler->delete_from_wishlist($patron_id, $isbn);
+ } elsif ($action eq 'get') {
+ return $handler->get_wishlist($patron_id, $isbn);
+ }
+
+ $logger->error("EbookAPI: unsupported wishlist action requested");
+ return undef;
+}
+
+sub get_search_filters {
+ my ($self, $conn, $auth, $session_id) = @_;
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+ my $handler = new_handler($session_id);
+
+ return $handler->get_search_filters();
+}
+
+__PACKAGE__->register_method(
+ method => "get_search_filters",
+ api_name => "open-ils.ebook_api.get_search_filters",
+ api_level => 1,
+ argc =>2,
+ signature => {
+ desc => "Get book recommendation",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Return list of book recommendations',
+ type => 'hashref'
+ }
+ }
+);
+
+sub remove_search_fields {
+ my ($self, $conn, $auth, $session_id, $search_fields_id) = @_;
+ $logger->info("EbookAPI: Removing Search Field Mapping!");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated!");
+ my $handler = new_handler($session_id);
+
+ return $handler->remove_search_fields($auth, $search_fields_id);
+}
+
+__PACKAGE__->register_method(
+ method => 'remove_search_fields',
+ api_name => 'open-ils.ebook_api.search_fields.remove',
+ api_level => 1,
+ argc => 3,
+ signature => {
+ desc => "Call to remove search fields mapping",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'search_fields_id',
+ desc => 'A unique id of the search field',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns an Id of newly created record',
+ type => 'string'
+ }
+ }
+);
+
+
+# Call an API to register a patron
+sub save_search_fields {
+ my ($self, $conn, $auth, $session_id, $vendor_key, $eg_search_field, $ds_search_field, $field_type) = @_;
+ $logger->info("EbookAPI: Saving Search Field");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated!");
+ my $handler = new_handler($session_id);
+
+ return $handler->save_search_fields($auth, $vendor_key, $eg_search_field, $ds_search_field, $field_type);
+}
+
+__PACKAGE__->register_method(
+ method => 'save_search_fields',
+ api_name => 'open-ils.ebook_api.search_fields.save',
+ api_level => 1,
+ argc => 5,
+ signature => {
+ desc => "Call to save search fields mapping",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'vendor_key',
+ desc => 'Third party vendor key (rbdigital, OneClickDigital)',
+ type => 'string'
+ },
+ {
+ name => 'eg_search_field',
+ desc => 'Evergreen Search Field',
+ type => 'string'
+ },
+ {
+ name => 'ds_search_field',
+ desc => 'Digital Service Search Field',
+ type => 'string'
+ },
+ {
+ name => 'field_type',
+ desc => 'Search Field Type',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns an Id of newly created record',
+ type => 'string'
+ }
+ }
+);
+
+sub get_search_field_mappings {
+ my ($self, $conn, $auth, $session_id, $search_fields_id) = @_;
+ $logger->info("EbookAPI: Getting Search Fields values ...");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated!");
+ my $handler = new_handler($session_id);
+
+ return $handler->get_search_field_mappings($search_fields_id);
+}
+
+__PACKAGE__->register_method(
+ method => 'get_search_field_mappings',
+ api_name => 'open-ils.ebook_api.search_field_mappings.retrieve',
+ api_level => 1,
+ argc => 3,
+ signature => {
+ desc => "Call to save search fields mapping",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'search_fields_id',
+ desc => 'Search Fields ID',
+ type => 'number'
+ }
+ ],
+ return => {
+ desc => 'Returns a list of search_field_mappings value',
+ type => 'array'
+ }
+ }
+);
+
+sub get_evergreen_search_field_values {
+ my ($self, $conn, $auth, $session_id, $field_type) = @_;
+ $logger->info("EbookAPI: Getting Search Fields values for Evergreen ...");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated!");
+ my $handler = new_handler($session_id);
+
+ return $handler->get_evergreen_search_field_values($field_type);
+}
+
+__PACKAGE__->register_method(
+ method => 'get_evergreen_search_field_values',
+ api_name => 'open-ils.ebook_api.evergreen_search_field_values.retrieve',
+ api_level => 1,
+ argc => 3,
+ signature => {
+ desc => "Call to get evergreen search fields values",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'field_type',
+ desc => 'Field type like item_lang, audience, etc',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns a list of search_field_mappings value',
+ type => 'array'
+ }
+ }
+);
+
+sub save_search_field_values {
+ my ($self, $conn, $auth, $session_id, $search_fields_id, $evergreen_field_code, $evergreen_field_value,
+ $digital_services_field_code, $digital_services_field_value) = @_;
+ $logger->info("EbookAPI: Saving Search Fields values ...");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated!");
+ my $handler = new_handler($session_id);
+
+ return $handler->save_search_field_values($auth, $search_fields_id, $evergreen_field_code, $evergreen_field_value, $digital_services_field_code, $digital_services_field_value);
+}
+
+__PACKAGE__->register_method(
+ method => 'save_search_field_values',
+ api_name => 'open-ils.ebook_api.search_field_mappings.save',
+ api_level => 1,
+ argc => 5,
+ signature => {
+ desc => "Call to save evergreen search fields values",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'search_fields_id',
+ desc => 'Search Fields Id',
+ type => 'number'
+ },
+ {
+ name => 'evergreen_field_code',
+ desc => 'Evergreen Fields Code',
+ type => 'string'
+ },
+ {
+ name => 'evergreen_field_value',
+ desc => 'Evergreen Fields value',
+ type => 'string'
+ },
+ {
+ name => 'digital_services_field_code',
+ desc => 'DS Fields code',
+ type => 'string'
+ },
+ {
+ name => 'digital_services_field_value',
+ desc => 'DS Fields value',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns a id of newly created record in search_field_mappings',
+ type => 'hashref'
+ }
+ }
+);
+
+sub remove_search_field_mappings {
+ my ($self, $conn, $auth, $session_id, $id) = @_;
+ $logger->info("EbookAPI: Removing Search Field Value Mappings!");
+
+ # verify that user is authenticated in EG
+ my $editor = new_editor(authtoken => $auth);
+ if (!$editor->checkauth) {
+ $logger->error("EbookAPI: authentication failed: " . $editor->die_event);
+ return;
+ }
+
+ $logger->info("EbookAPI: User Authenticated!");
+ my $handler = new_handler($session_id);
+
+ return $handler->remove_search_field_mappings($auth, $id);
+}
+
+__PACKAGE__->register_method(
+ method => 'remove_search_field_mappings',
+ api_name => 'open-ils.ebook_api.search_field_mappings.remove',
+ api_level => 1,
+ argc => 3,
+ signature => {
+ desc => "Call to remove search fields mapping",
+ params => [
+ {
+ name => 'authtoken',
+ desc => 'Authentication token',
+ type => 'string'
+ },
+ {
+ name => 'session_id',
+ desc => 'The session ID (provided by open-ils.ebook_api.start_session)',
+ type => 'string'
+ },
+ {
+ name => 'search_fields_id',
+ desc => 'A unique id of the search field',
+ type => 'string'
+ }
+ ],
+ return => {
+ desc => 'Returns an Id of newly created record',
+ type => 'string'
+ }
+ }
+);
1;
--- /dev/null
+#!/usr/bin/perl
+
+# Copyright (C) 2015 BC Libraries Cooperative
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+package OpenILS::Application::EbookAPI::RBDigital;
+
+use strict;
+use warnings;
+
+use OpenILS::Application;
+use OpenILS::Application::Actor;
+use OpenILS::Application::EbookAPI;
+use base qw/OpenILS::Application::EbookAPI/;
+use OpenSRF::AppSession;
+use OpenSRF::EX qw(:try);
+use OpenSRF::Utils::SettingsClient;
+use OpenSRF::Utils::Logger qw($logger);
+use OpenSRF::Utils::Cache;
+use OpenSRF::Utils::JSON;
+use OpenILS::Application::AppUtils;
+use Data::Dumper;
+
+use constant TEST_QA => 0;
+use constant EBOOK_API_VENDOR => 'rbdigital';
+use constant EBOOK_API_DOMAIN => 'http://api.rbdigitalstage.com/v1';
+use constant EBOOK_API_DOMAIN_QA => 'http://api.rbdigitalqa.com/v1';
+use constant EBOOK_API_QA_TOKEN => '5ad925df4ee5df112009e562';
+
+sub new {
+ my( $class, $args ) = @_;
+ $class = ref $class || $class;
+ return bless $args, $class;
+}
+
+sub ou {
+ my $self = shift;
+ return $self->{ou};
+}
+
+sub vendor {
+ my $self = shift;
+ return $self->{vendor};
+}
+
+sub session_id {
+ my $self = shift;
+ return $self->{session_id};
+}
+
+sub base_uri {
+ my $self = shift;
+ return $self->{base_uri};
+}
+
+sub library_id {
+ my $self = shift;
+ return $self->{library_id};
+}
+
+sub basic_token {
+ my $self = shift;
+ return $self->{basic_token};
+}
+
+sub patron_id {
+ my $self = shift;
+ return $self->{patron_id};
+}
+
+sub initialize {
+ my $self = shift;
+ my $ou = $self->{ou};
+
+ $self->{base_uri} = OpenILS::Application::AppUtils->ou_ancestor_setting_value($ou, 'ebook_api.rbdigital.base_uri') || EBOOK_API_DOMAIN;
+
+ my $object_rdsa = _get_vendor_library($ou);
+
+ if ($object_rdsa) {
+ $self->{library_id} = $object_rdsa->digital_services_library_id;
+ $self->{basic_token} = $object_rdsa->digital_services_library_token;
+ } else {
+ $logger->error("EbookAPI: no RBDigital library ID/token found for org unit $ou");
+ return;
+ }
+
+ return $self;
+
+}
+
+# RBDigital API does not require separate client auth;
+# we just need to include our basic auth token in requests
+sub do_client_auth {
+ my $self = shift;
+ return;
+}
+
+# This method will return the rbdigital library based on patron's home library id (usr.home_ou/org_unit.id)
+sub _get_vendor_library {
+ my $home_ou = @_;
+ my $object_rdsa;
+ my $ebook_rds_req;
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ $ebook_rds_req = $pcrud->request('open-ils.pcrud.search.ebook_rdsa.atomic', "ANONYMOUS",
+ {
+ home_ou => $home_ou,
+ "+ebook_rds" => {
+ vendor_key => EBOOK_API_VENDOR
+ }
+ },
+ {
+ flesh => 1,
+ flesh_fields => { ebook_rdsa => ['digital_services_id']},
+ join => {
+ ebook_rds => {}
+ }
+ }
+ )->gather(1);
+
+ if ($ebook_rds_req && scalar (@$ebook_rds_req) > 0) {
+ #read the library.id to find corrosponding library id from digital services atuhorized table
+ $object_rdsa = $ebook_rds_req->[0];
+ }
+
+ return $object_rdsa;
+}
+
+# Call this method to all the vendors (from rbdigital.digital_services table) tied to user's home library in EG
+sub get_authorized_vendors {
+ my $home_ou = @_;
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ my $ebook_rds_req = $pcrud->request('open-ils.pcrud.search.ebook_rds.atomic', "ANONYMOUS",
+ {
+ is_enabled => 't',
+ "+ebook_rdsa" => {
+ home_ou => $home_ou
+ }
+ },
+ {
+ flesh => 1,
+ flesh_fields => { ebook_rds => ['id']},
+ order_by => { ebook_rds => 'display_order ASC' },
+ join => {
+ ebook_rdsa => {},
+ }
+ }
+ )->gather();
+
+ return $ebook_rds_req;
+}
+
+# retrieve RBDigital patron ID based on patron email or username
+# GET http://api.rbdigital.com/v1/rpc/libraries/{libraryID}/patrons/$user_key
+sub do_patron_auth {
+ my ($self, $username, $email) = @_;
+ my $patron_id = 0;
+
+ if ($email) {
+ # first try to authenticate the user with a email
+ $patron_id = $self->_get_patron_id($email);
+ }
+
+ if ($patron_id eq 0) {
+ # try to authenticate the user with a username
+ $patron_id = $self-> _get_patron_id($username);
+
+ if ($patron_id < 1) {
+ # TODO: Remove/Replace the below line
+ $patron_id = 99999;
+ }
+ }
+ return $patron_id;
+}
+
+sub _get_patron_id {
+ my ($self, $user_key) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+
+ my $req = {
+ method => 'GET',
+ uri => "$base_uri/rpc/libraries/$library_id/patrons/$user_key",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token},
+ 'Content-Type' => 'application/x-www-form-urlencoded;charset=UTF-8'
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if ($res && defined($res->{content}->{patronId})) {
+ $self->{patron_id} = $res->{content}->{patronId};
+ return $res->{content}->{patronId};
+ }
+
+ if (defined ($res)) {
+ if ($res->{is_success} && defined($res->{content}->{patronId}) ) {
+ $self->{patron_id} = $res->{content}->{patronId};
+ return $res->{content}->{patronId};
+ } else {
+ $logger->error("EbookAPI: Unable to get patron Id from RBDigital portal: ".$res->{content}->{message});
+ return 0;
+ }
+ } else {
+ $logger->error("EbookAPI: no API response received from RBDigital server.");
+ }
+
+ return 0;
+}
+
+# Basic Search: Retrieve ebooks from RBDigital using the library id and patron ID
+# Handles ebook, eaudio, and emagazine search
+# GET http://api.rbdigital.com/v1/libraries/{libraryID}/search/{media_format}?{*tokens}
+sub do_basic_search {
+ my ($self, $patron_id, $value_to_search, $search_type,
+ $media_format, $library_location, $facets, $search_inputs,
+ $sort_by, $sort_order,
+ $page_index, $page_size) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $basic_search_uri = '';
+ my $uri = '';
+ my $req;
+ $logger->info('EbookAPI: do_basic_search - Start');
+
+ if ($value_to_search eq '' && scalar(@$search_inputs) == 0) {
+ # Nothing to search
+ $logger->info('EbookAPI: No search value was entered by user. Returning without an api call.');
+ return;
+ }
+
+ # Call local method to get URI for a request
+ $basic_search_uri = _build_search_URI($media_format, $value_to_search, $facets, $search_inputs, $sort_by, $sort_order, $page_index, $page_size);
+
+ $logger->info('EbookAPI: Calling the search API: '.$uri);
+ if (TEST_QA) {
+ $uri = EBOOK_API_DOMAIN_QA."/$basic_search_uri";
+ $req = {
+ method => 'GET',
+ uri => $uri,
+ headers => {
+ 'Authorization' => 'bearer ' . EBOOK_API_QA_TOKEN,
+ 'Content-Type' => 'application/x-www-form-urlencoded;charset=UTF-8'
+ }
+ };
+ } else {
+ $uri = "$base_uri/libraries/$library_id/$basic_search_uri";
+ $req = {
+ method => 'GET',
+ uri => $uri,
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token},
+ 'Content-Type' => 'application/x-www-form-urlencoded;charset=UTF-8'
+ }
+ };
+ }
+
+ my $res = $self->request($req, $session_id);
+
+ if (defined ($res) && $res->{is_success}) {
+ return $res;
+ }
+
+ $logger->error("EbookAPI: Basic Search - API call to RBDigital failed for");
+ return;
+}
+
+sub _build_search_URI {
+ my ($media_format, $value_to_search, $facets, $search_inputs, $sort_by, $sort_order, $page_index, $page_size) = @_;
+ my $uri = '';
+ my $sort_string = '';
+
+ if ($sort_by ne '') {
+ $sort_string = "&sort-by=$sort_by&sort-order=$sort_order";
+ }
+
+ # convert book to ebook
+ if ($media_format eq 'book') {
+ $media_format = 'ebook';
+ }
+
+ if ($media_format eq 'eaudio' || $media_format eq 'ebook') {
+ $uri = "search/$media_format?search-source=quick-all&page-size=$page_size".
+ "&page-index=$page_index&all=$value_to_search&mediatype=$media_format".$sort_string;
+ } elsif ($media_format eq '' && scalar (@$search_inputs) == 0) {
+ $uri = "search?q=$value_to_search&page-size=$page_size".
+ "&page-index=$page_index".$sort_string;
+ } elsif (scalar (@$search_inputs) > 0) {
+ #build URI for Advanced Search
+ $uri = "search?search-source=advanced-search";
+ $logger->error('EbookAPI: looping over search inputs for advanced search.');
+ for my $input (@$search_inputs) {
+ # Split search input e.g. title_happy and join to have title=happy
+ $input =~ s/\Q_\E/=/g;
+ if ($input ne '') {
+ $uri = $uri . '&' . $input;
+ }
+ }
+ $uri = $uri . "&page-size=$page_size&page-index=$page_index" . $sort_string;
+ } else {
+ # Unsupported format return nothing
+ $logger->error('EbookAPI: Unsupported media type requested');
+ }
+
+ for my $facet (@$facets) {
+ if ($facet ne '') {
+ # Split facet e.g. audience_young-adult and join to have audience=young-adult
+ $facet =~ s/\Q_\E/=/g;
+ $uri = $uri.'&'.$facet;
+ }
+ }
+
+ return $uri;
+}
+
+# Create a new account with RBDigital platform
+# POST http://api.rbdigital.com/v1/libraries/{libraryId}/patrons
+# {
+# "firstName": "john",
+# "lastName": "smith",
+# "userName": "jsmith",
+# "password": "jsmith-2018",
+# "email": "jsmith@yahoo.com",
+# "postalCode": "30904",
+# "isActive": false,
+# "libraryId": {libraryId}
+# }
+sub register_patron {
+ my ($self, $username, $password) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $postal_code = '';
+ my $is_active = 'true';
+ my $email = "";
+
+ $logger->info("EbookAPI: Registering Patron to RBDigital portal");
+
+ # First, get the user information
+ my $cstore = OpenSRF::AppSession->create('open-ils.cstore');
+ $cstore->connect();
+
+ $logger->info("EbookAPI: Calling to retreive a user from db.");
+ my $user_req = $cstore->request('open-ils.cstore.direct.actor.user.search',
+ { usrname => $username }
+ )->gather();
+
+ $logger->info("EbookAPI: Checking if postal code is found from db.");
+ # Second, get the user postal_code information (if any)
+ if ($user_req && defined ($user_req->mailing_address) ) {
+ $logger->info("EbookAPI: Calling CStore to retreive user mailing address postal code: " . $user_req->mailing_address);
+ #Get the mailing address id to retrieve postal code
+ my $user_mailing_address_req = $cstore->request('open-ils.cstore.direct.actor.user_address.search',
+ { id => $user_req->mailing_address }
+ )->gather();
+
+ if ( $user_mailing_address_req && defined($user_mailing_address_req->post_code) ) {
+ $postal_code = $user_mailing_address_req->post_code;
+ $logger->info("EbookAPI: Postal code received: $postal_code");
+ } else {
+ #Log Postal code not found, this should not happen since the user is already authenticated
+ $logger->info("EbookAPI: Postal code not found in db for patron registration");
+ }
+ } else {
+ $logger->info("EbookAPI: User's mailing address not found for patron registration");
+ return 0;
+ }
+
+ $logger->info("EbookAPI: Building a request for patron registration");
+ my $request_content = {
+ firstName => $user_req->first_given_name,
+ lastName => $user_req->family_name,
+ userName => $user_req->usrname,
+ password => $password,
+ email => $user_req->email,
+ postalCode => $postal_code,
+ isActive => $is_active,
+ libraryId => $library_id
+ };
+
+ my $req = {
+ method => 'POST',
+ uri => "$base_uri/libraries/$library_id/patrons",
+ content => OpenSRF::Utils::JSON->perl2JSON($request_content),
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token},
+ 'Content-Type' => 'application/json'
+ }
+ };
+
+ $logger->info("EbookAPI: register patron post request: ". Dumper($req));
+
+ $logger->info("EbookAPI: Calling an API to registering Patron: $username");
+ my $res = $self->request($req, $session_id);
+ if (defined ($res)) {
+ if ($res->{content}->{patronId}) {
+ $logger->info("EbookAPI: User $username successfully registered with RBDigital portal.");
+ return $res->{content}->{patronId};
+ } else {
+ $logger->error("EbookAPI: Registration for $username to RBDigital failed: ".$res->{content}->{message});
+ }
+ }
+
+ $logger->error("EbookAPI: API call to register patron with RBDigital failed for : $username");
+ return 0;
+}
+
+# get basic metadata for an item (title, author, cover image if any)
+# GET //api.{domain}/v1/libraries/{libraryId}/books/{isbn}
+sub get_title_info {
+ my ($self, $isbn) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+
+ $logger->error("EbookAPI: Getting RBDigital title details for ISBN: $isbn");
+ $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/book-metadata/$isbn",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token}
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if (defined($res)) {
+ $logger->debug("EbookAPI: get_title_info api response ".Dumper($res->{content}));
+ return $res;
+ } else {
+ $logger->error("EbookAPI: could not retrieve RBDigital title details for ISBN: $isbn");
+ }
+
+ return undef;
+}
+
+# get title for an item (title, author, cover image if any)
+# GET //api.{domain}/v1/libraries/$library_id/book-metadata/$isbn/summary
+sub get_title_summary {
+ my ($self, $isbn) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+
+ $logger->error("EbookAPI: Getting RBDigital title details for ISBN: $isbn");
+ $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/book-metadata/$isbn/summary",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token}
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if (defined($res)) {
+ $logger->info("EbookAPI: get_title_info api response: ".Dumper($res->{content}));
+ return $res;
+ } else {
+ $logger->error("EbookAPI: could not retrieve RBDigital title details for ISBN: $isbn");
+ }
+
+ return undef;
+}
+
+# GET //api.{domain}/v1/libraries/$library_id/patron-books/Wishlist/$isbn
+sub get_wishlist {
+ my ($self, $patron_id, $isbn) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+
+ $logger->error("EbookAPI: Getting wishlist for ISBN: $isbn from RBDigital.");
+ $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/patron-books/Wishlist/$isbn",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token}
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if (defined($res)) {
+ return $res;
+ } else {
+ $logger->error("EbookAPI: could not get ISBN: $isbn from RBDigital portal.");
+ }
+
+ return undef;
+}
+
+# POST //api.{domain}/v1/libraries/$library_id/patron-books/Wishlist/$isbn
+sub add_to_wishlist {
+ my ($self, $patron_id, $isbn) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+
+ $logger->error("EbookAPI: Adding ISBN: $isbn to a RBDigital wishlist.");
+ $req = {
+ method => 'POST',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/books/Wishlist/$isbn",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token},
+ 'Content-Length' => '0'
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+
+ if (defined ($res)) {
+ if ($res->{is_success}) {
+ return $res->{content};
+ } else {
+ $logger->error("EbookAPI: could not add ISBN: $isbn to RBDigital portal: ".$res->{content}->{message});
+ return $res->{content};
+ }
+ } else {
+ $logger->error("EbookAPI: no response received from RBDigital server.");
+ }
+
+ return { message => "Vendor API error" };
+}
+
+# POST //api.{domain}/v1/libraries/$library_id/patron-books/Wishlist/$isbn
+sub delete_from_wishlist {
+ my ($self, $patron_id, $isbn) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+
+ $logger->error("EbookAPI: Removing ISBN: $isbn from a RBDigital wishlist.");
+ $req = {
+ method => 'DELETE',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/books/Wishlist/$isbn",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token}
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if (defined ($res)) {
+ if ($res->{is_success}) {
+ return $res->{content};
+ } else {
+ $logger->error("EbookAPI: could not add ISBN: $isbn to RBDigital portal: ".$res->{content}->{message});
+ return $res->{content};
+ }
+ } else {
+ $logger->error("EbookAPI: no response received from RBDigital server.");
+ }
+
+ return { message => "Vendor API error when delete an ISBN." };
+}
+
+# GET //api.{domain}/v1/libraries/$library_id/patrons/$patron_id/book-recommendations/$media_format?isbn=$isbn&mediatype=$media_format&$page-index=$page_index&page-size=$page_size
+sub get_book_recommendations {
+ my ($self, $patron_id, $isbn, $media_format, $page_index, $page_size) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+
+ # convert book to ebook
+ if ($media_format eq 'book') {
+ $media_format = 'ebook';
+ }
+
+ $logger->error("EbookAPI: Getting RBDigital $media_format recommendations.");
+ $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/book-recommendations/$media_format?".
+ "isbn=$isbn&mediatype=$media_format&page-index=$page_index&page-size=$page_size",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token}
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if (defined($res) && $res->{is_success}) {
+ $logger->info("EbookAPI: get_book_recommendations api response received.");
+ return $res;
+ } else {
+ $logger->error("EbookAPI: could not retrieve RBDigital $media_format recommendations");
+ }
+
+ return undef;
+}
+
+# does this title have available "copies"? y/n
+# GET //api.{domain}/v1/libraries/{libraryID}/media/{isbn}/availability
+sub do_availability_lookup {
+ my ($self, $isbn) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/media/$isbn/availability"
+ };
+ my $res = $self->request($req, $session_id);
+ if (defined ($res)) {
+ $logger->info("EbookAPI: received availability response for ISBN $isbn: " . Dumper $res);
+ return $res->{content}->{availability};
+ } else {
+ $logger->error("EbookAPI: could not retrieve RBDigital availability for ISBN $isbn");
+ return;
+ }
+}
+
+# RBDigital API does not support detailed holdings lookup,
+# so we return basic availability information.
+sub do_holdings_lookup {
+ my ($self, $isbn) = @_;
+ my $avail = $self->do_availability_lookup($isbn);
+ return { available => $avail };
+}
+
+# checkout an item to a patron
+# item is identified by ISBN, patron ID is their barcode
+# POST //api.{domain}/v1/libraries/{libraryId}/patrons/{patronId}/books/checkouts/$isbn
+sub checkout {
+ my ($self, $isbn, $patron_id) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+ $req = {
+ method => 'POST',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/books/checkouts/$isbn",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token},
+ 'Content-Length' => '0'
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+
+ # HTTP 200 response indicates success, HTTP 409 indicates checkout limit reached
+ if (defined ($res)) {
+ if ($res->{is_success}) {
+ return $res;
+ } else {
+ $logger->error("EbookAPI: checkout failed for RBDigital title $isbn");
+ return { error_msg => $res->{content} };
+ }
+ } else {
+ $logger->error("EbookAPI: no response received from RBDigital server");
+ return;
+ }
+}
+
+# renew a checked-out item
+# item id = ISBN, patron id = barcode
+# PUT //api.{domain}/v1/libraries/{libraryId}/patrons/{patronId}/checkouts/{isbn}
+sub renew {
+ my ($self, $isbn, $patron_id) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req = {
+ method => 'PUT',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/checkouts/$isbn",
+ headers => { "Content-Length" => "0" }
+ };
+ my $res = $self->request($req, $session_id);
+
+ # TODO: more sophisticated response handling
+ # HTTP 200 response indicates success
+ if (defined ($res)) {
+ if ($res->{is_success}) {
+ return {
+ xact_id => $res->{content}->{transactionId},
+ due_date => $res->{content}->{expiration}
+ };
+ } else {
+ $logger->error("EbookAPI: renewal failed for RBDigital title $isbn");
+ return { error_msg => $res->{content} };
+ }
+ } else {
+ $logger->error("EbookAPI: no response received from RBDigital server");
+ return;
+ }
+}
+
+# checkin a checked-out item
+# item id = ISBN, patron id = barcode
+# XXX API docs indicate that a bearer token is required!
+# DELETE //api.{domain}/v1/libraries/{libraryId}/patrons/{patronId}/checkouts/{isbn}
+sub checkin {
+ my ($self, $isbn, $patron_id) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req;
+ $req = {
+ method => 'DELETE',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/checkouts/$isbn",
+ headers => {
+ 'Authorization' => 'Basic ' . $self->{basic_token}
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+ if (defined ($res)) {
+ if ($res->{is_success}) {
+ return $res;
+ } else {
+ $logger->error("EbookAPI: checkin failed for RBDigital title $isbn");
+ return { error_msg => $res->{content} };
+ }
+ } else {
+ $logger->error("EbookAPI: no response received from RBDigital server");
+ return;
+ }
+}
+
+sub place_hold {
+}
+
+sub cancel_hold {
+}
+
+# GET //api.{domain}/v1/libraries/{libraryId}/patrons/{patronId}/checkouts/all
+sub get_patron_checkouts {
+ my ($self, $patron_id) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/checkouts/all"
+ };
+ my $res = $self->request($req, $session_id);
+
+ my $checkouts = [];
+ if (defined ($res)) {
+ $logger->info("EbookAPI: received response for RBDigital checkouts: " . Dumper $res);
+ foreach my $checkout (@{$res->{content}}) {
+ push @$checkouts, {
+ xact_id => $checkout->{transactionId},
+ title_id => $checkout->{isbn},
+ due_date => $checkout->{expiration},
+ download_url => $checkout->{downloadUrl},
+ title => $checkout->{title},
+ author => $checkout->{authors}
+ };
+ };
+ $logger->info("EbookAPI: retrieved " . scalar(@$checkouts) . " RBDigital checkouts for patron $patron_id");
+ $self->{checkouts} = $checkouts;
+ return $self->{checkouts};
+ } else {
+ $logger->error("EbookAPI: failed to retrieve RBDigital checkouts for patron $patron_id");
+ return;
+ }
+}
+
+# GET //api.{domain}/v1/libraries/{libraryId}/patrons/{patronId}/holds/all
+sub get_patron_holds {
+ my ($self, $patron_id) = @_;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+ my $req = {
+ method => 'GET',
+ uri => "$base_uri/libraries/$library_id/patrons/$patron_id/holds/all"
+ };
+ my $res = $self->request($req, $session_id);
+
+ my $holds = [];
+ if (defined ($res)) {
+ $logger->info("EbookAPI: received response for RBDigital holds: " . Dumper $res);
+ foreach my $hold (@{$res->{content}}) {
+ push @$holds, {
+ xact_id => $hold->{transactionId},
+ title_id => $hold->{isbn},
+ expire_date => $hold->{expiration},
+ title => $hold->{title},
+ author => $hold->{authors},
+ # XXX queue position/size and pending vs ready info not available via API
+ queue_position => '-',
+ queue_size => '-',
+ is_ready => 0
+ };
+ };
+ $logger->info("EbookAPI: retrieved " . scalar(@$holds) . " RBDigital holds for patron $patron_id");
+ $self->{holds} = $holds;
+ return $self->{holds};
+ } else {
+ $logger->error("EbookAPI: failed to retrieve RBDigital holds for patron $patron_id");
+ return;
+ }
+}
+
+# Call this method to return 1 - true or 0 - false if the patron is associated with rbdigital library
+sub is_authorized_patron {
+ my ($self, $home_library_id) = @_;
+ my $is_authorized = 0;
+ my $ebook_rds_req;
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ $ebook_rds_req = $pcrud->request('open-ils.pcrud.search.ebook_rdsa.atomic', "ANONYMOUS",
+ { home_ou => $home_library_id }
+ )->gather();
+
+ if ($ebook_rds_req && scalar (@$ebook_rds_req) > 0) {
+ #read the library.id to find corrosponding library id from digital services atuhorized table
+ $is_authorized = 1;
+ }
+
+ return $is_authorized;
+}
+
+# Get user info based on Barcode
+sub _get_user_info {
+ my $barcode = @_;
+
+ my $cstore = OpenSRF::AppSession->create('open-ils.cstore');
+ $cstore->connect();
+
+ my $user_card_req = $cstore->request('open-ils.cstore.direct.actor.card.search',
+ { barcode => $barcode }
+ )->gather();
+
+ if ($user_card_req && defined ($user_card_req->usr)) {
+ my $user_req = $cstore->request('open-ils.cstore.direct.actor.user.search',
+ { id => $user_card_req->usr }
+ )->gather();
+
+ return $user_req;
+ }
+
+ return undef;
+}
+
+# Get Search Filters
+sub get_search_filters {
+ my $self = shift;
+ my $base_uri = $self->{base_uri};
+ my $library_id = $self->{library_id};
+ my $session_id = $self->{session_id};
+
+ # No need to send a token for this api call
+ my $req = {
+ method => 'GET',
+ uri => "$base_uri/facets/book/all?libraryId=$library_id",
+ headers => {
+ 'Authorization' => ''
+ }
+ };
+
+ my $res = $self->request($req, $session_id);
+
+ if (defined ($res)) {
+ if ($res->{is_success}) {
+ return $res;
+ } else {
+ $logger->error("EbookAPI: Unable to retrieve search filters for RBDigital library id: $library_id - ". Dumper($res->{content}));
+ return { error_msg => $res->{content} };
+ }
+ } else {
+ $logger->error("EbookAPI: API call failed to retrieve RBDigital search filters for library id: $library_id");
+ }
+
+ return undef;
+}
+
+# Remove a record from rbdigital.search_fields table
+sub remove_search_fields {
+ my ($self, $authtoken, $search_fields_id) = @_;
+ my $session_id = $self->{session_id};
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+ $pcrud->request('open-ils.pcrud.transaction.begin',$authtoken)->gather(1);
+
+ my $search_fields_req = $pcrud->request('open-ils.pcrud.delete.ebook_rsf', $authtoken, $search_fields_id)->recv(1);
+
+ $pcrud->request('open-ils.pcrud.transaction.commit',$authtoken)->gather(1);
+
+ return { status => "success" };
+}
+
+# Save a record to rbdigital.search_fields table that holds the mapping information for Evergreen/Pines and Third party vendor search field
+sub save_search_fields {
+ my ($self, $authtoken, $vendor_key, $eg_search_field, $ds_search_field, $field_type) = @_;
+ my $session_id = $self->{session_id};
+ my $digital_services_id = 0;
+
+ $logger->info("EbookAPI: Saving DS Service Field");
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ # First, get the Digital Service ID by name
+ $logger->info("EbookAPI: Calling to retreive vendor id from db.");
+ my $digital_services_req = $pcrud->request('open-ils.pcrud.search.ebook_rds.atomic', "ANONYMOUS",
+ { vendor_key => $vendor_key }
+ )->recv();
+
+ if ($digital_services_req) {
+ $digital_services_id = $digital_services_req->content->[0]->id;
+
+ if ($digital_services_id > 0) {
+
+ # Second, Check if it is not a duplicate entry
+ my $ebook_rsf_req = $pcrud->request('open-ils.pcrud.search.ebook_rsf.atomic', "ANONYMOUS",
+ {
+ digital_services_id => $digital_services_id,
+ digital_services_field => $ds_search_field
+ }
+ )->recv();
+
+ if ($ebook_rsf_req && defined($ebook_rsf_req->content->[0])) {
+ if ($ebook_rsf_req->content->[0]->evergreen_field eq $eg_search_field) {
+ return { status => "failed", message => "Duplicate entry found! Please try selecting different values" };
+ }
+
+ return { status => "failed", message => "The value '$ds_search_field' already exists! Please try selecting different values." };
+ }
+
+ #Save a record
+ my $xact;
+
+ eval {
+ $xact = $pcrud->request(
+ 'open-ils.pcrud.transaction.begin',
+ $authtoken
+ )->gather(1);
+ };
+
+ if ($@) {
+ undef($xact);
+ }
+
+ if ($xact) {
+ my $tmpl_rec = Fieldmapper::rbdigital::search_fields->new;
+ $tmpl_rec->digital_services_id($digital_services_id);
+ $tmpl_rec->evergreen_field($eg_search_field);
+ $tmpl_rec->digital_services_field($ds_search_field);
+ $tmpl_rec->field_type($field_type);
+
+ $pcrud->request('open-ils.pcrud.create.ebook_rsf', $authtoken, $tmpl_rec )->gather(1);
+
+ $xact = $pcrud->request(
+ 'open-ils.pcrud.transaction.commit',
+ $authtoken
+ )->gather(1);
+
+ $logger->info("EbookAPI: Record saved");
+
+ return { status => "success" };
+ }
+ }
+ }
+
+ return { status => "failed", message => "Unknown error occurred! Please try to save the fields again." };
+}
+
+# Returns an hash containing array list of mapped search field values
+sub get_search_field_mappings {
+ my ($self, $search_fields_id) = @_;
+ my $session_id = $self->{session_id};
+
+ $logger->info("EbookAPI: Getting DS Service Field Values for search field id: " . $search_fields_id);
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ my $search_fields_mapping_req = $pcrud->request('open-ils.pcrud.search.ebook_rsfm.atomic', "ANONYMOUS",
+ {
+ search_fields_id => $search_fields_id
+ }
+ )->recv();
+
+ my @search_field_values = ();
+ # Iterate over list of values and build an array for JS
+ foreach my $value (@ {$search_fields_mapping_req->content}) {
+ push @search_field_values, [$value->id, $value->search_fields_id, $value->evergreen_field_code,
+ $value->evergreen_field_value, $value->digital_services_field_code, $value->digital_services_field_value];
+ }
+
+ return { status => "success", data => [@search_field_values] };
+}
+
+sub get_evergreen_search_field_values {
+ my ($self, $field_type) = @_;
+ my $session_id = $self->{session_id};
+
+ $logger->info("EbookAPI: Getting DS Service Field Values for search field type: " . $field_type);
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ my $ccvm_req = $pcrud->request('open-ils.pcrud.search.ccvm.atomic', "ANONYMOUS",
+ {
+ opac_visible => 't',
+ ctype => $field_type,
+ code => {'!=' => ' '}
+ }
+ )->recv();
+
+ my @search_field_values = ();
+ # Iterate over list of values and build an array for JS
+ foreach my $value (@ {$ccvm_req->content}) {
+ push @search_field_values, [$value->id, $value->code, $value->value];
+ }
+
+ return { status => "success", data => [@search_field_values] };
+}
+
+# Save a record to rbdigital.search_fields_mappings table that holds the mapping information for Evergreen/Pines and Third party vendor search field values
+sub save_search_field_values {
+ my ($self, $authtoken, $search_fields_id, $evergreen_field_code, $evergreen_field_value, $digital_services_field_code, $digital_services_field_value) = @_;
+ my $session_id = $self->{session_id};
+
+ $logger->info("EbookAPI: Saving Search Field Mappings");
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ # First, Check if it is not a duplicate entry and if it is strictly one to one mapping
+ my $ebook_rsfm_req = $pcrud->request('open-ils.pcrud.search.ebook_rsfm.atomic', "ANONYMOUS",
+ {
+ search_fields_id => $search_fields_id,
+ digital_services_field_code => $digital_services_field_code
+ }
+ )->recv();
+
+ if ($ebook_rsfm_req && defined($ebook_rsfm_req->content->[0])) {
+ if ($ebook_rsfm_req->content->[0]->evergreen_field_code eq $evergreen_field_code) {
+ return { status => "failed", message => "Duplicate entry found! Please try selecting different values" };
+ }
+
+ return { status => "failed", message => "The value '$digital_services_field_value' already exists! Please try selecting different values." };
+ }
+
+ # Now, Save an entry to rbdigital.search_field_mappings table
+ my $xact;
+
+ eval {
+ $xact = $pcrud->request(
+ 'open-ils.pcrud.transaction.begin',
+ $authtoken
+ )->gather(1);
+ };
+
+ if ($@) {
+ undef($xact);
+ }
+
+ if ($xact) {
+ my $tmpl_rec = Fieldmapper::rbdigital::search_field_mappings->new;
+ $tmpl_rec->search_fields_id($search_fields_id);
+ $tmpl_rec->evergreen_field_code($evergreen_field_code);
+ $tmpl_rec->evergreen_field_value($evergreen_field_value);
+ $tmpl_rec->digital_services_field_code($digital_services_field_code);
+ $tmpl_rec->digital_services_field_value($digital_services_field_value);
+
+ $pcrud->request('open-ils.pcrud.create.ebook_rsfm', $authtoken, $tmpl_rec )->gather(1);
+
+ $xact = $pcrud->request(
+ 'open-ils.pcrud.transaction.commit',
+ $authtoken
+ )->gather(1);
+
+ $ebook_rsfm_req = $pcrud->request('open-ils.pcrud.search.ebook_rsfm.atomic', "ANONYMOUS",
+ {
+ search_fields_id => $search_fields_id,
+ evergreen_field_code => $evergreen_field_code,
+ evergreen_field_value => $evergreen_field_value,
+ digital_services_field_code => $digital_services_field_code
+ }
+ )->recv();
+
+ $logger->info("EbookAPI: Record saved to search_fields_mappings table");
+
+ return { status => "success" , data => {id => $ebook_rsfm_req->content->[0]->id} };
+ }
+
+ return { status => "failed", message => "Unknown error occurred! Please try to save the fields again." };
+}
+
+# Remove a record from rbdigital.search_fields_mappings table
+sub remove_search_field_mappings {
+ my ($self, $authtoken, $id) = @_;
+ my $session_id = $self->{session_id};
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+ $pcrud->request('open-ils.pcrud.transaction.begin',$authtoken)->gather(1);
+
+ my $search_fields_req = $pcrud->request('open-ils.pcrud.delete.ebook_rsfm', $authtoken, $id)->recv(1);
+
+ $pcrud->request('open-ils.pcrud.transaction.commit',$authtoken)->gather(1);
+
+ return { status => "success" };
+}
+1;
use OpenILS::WWW::EGCatLoader::SMS;
use OpenILS::WWW::EGCatLoader::Register;
+# EBook API sub-modules
+use OpenILS::WWW::EGCatLoader::RBDigitalSearch;
+use OpenILS::WWW::EGCatLoader::RBDigitalRecord;
+
my $U = 'OpenILS::Application::AppUtils';
use constant COOKIE_SES => 'ses';
return $self->load_temp_warn_post if $path =~ m|opac/temp_warn/post|;
return $self->load_temp_warn if $path =~ m|opac/temp_warn|;
+ # Load EbookAPI modules
+ return $self->load_rbdigital_advanced if $path =~ m|opac/ebook_api/rbdigital/advanced|;
+ return $self->load_rbdigital_manage_search_fields if $path =~ m|opac/ebook_api/rbdigital/manage_search_fields|;
+ return $self->load_rbdigital_results if $path =~ m|opac/ebook_api/rbdigital/results|;
+ return $self->load_rbdigital_print_record if $path =~ m|opac/ebook_api/rbdigital/record/print|;
+ return $self->load_rbdigital_record if $path =~ m|opac/ebook_api/rbdigital/record/\d|;
+
# ----------------------------------------------------------------
# Everything below here requires SSL
# ----------------------------------------------------------------
my ($self, $page) = @_;
$self->ctx->{page} = $page;
$self->ctx->{search_ou} = $self->_get_search_lib();
-
+
return Apache2::Const::OK;
}
return $rows;
};
+ $self->load_rbdigital_common();
+
return Apache2::Const::OK;
}
+sub load_rbdigital_common {
+ my $self = shift;
+
+ # Load vendor tabs for authenticated patrons only
+ if (defined($self->editor->requestor)) {
+ # Call sub to get the session id
+ my $session_id = _get_ebook_session_id();
+
+ # Send back rbdigital_patron_id
+ $self->ctx->{rbdigital_patron_id} = _get_patron_id($self->editor->authtoken, $session_id);
+ $logger->info('EbookAPI: Got patron id: '. $self->ctx->{rbdigital_patron_id});
+
+ # Call sub to get all the vendors to be displayed on the UI
+ $self->ctx->{vendors} = _get_authorized_vendors($self->editor->authtoken, $session_id);
+ } else {
+ $self->ctx->{rbdigital_patron_id} = 0;
+ $self->ctx->{vendors} = [];
+ }
+}
+
sub update_dashboard_stats {
my $self = shift;
pub => 't'
})
);
+
+ # Call sub to get the session id
+ my $session_id = _get_ebook_session_id();
+
+ # Call sub to get all the vendors to be displayed on the UI
+ $self->ctx->{vendors} = _get_authorized_vendors($self->editor->authtoken, $session_id);
+
return $self->prepare_fines($limit, $offset) || Apache2::Const::OK;
}
--- /dev/null
+package OpenILS::WWW::EGCatLoader;
+use strict; use warnings;
+use Apache2::Const -compile => qw(OK DECLINED FORBIDDEN HTTP_GONE HTTP_INTERNAL_SERVER_ERROR REDIRECT HTTP_BAD_REQUEST HTTP_NOT_FOUND);
+use OpenSRF::Utils::Logger qw/$logger/;
+use OpenILS::Utils::CStoreEditor qw/:funcs/;
+use OpenILS::Utils::Fieldmapper;
+use OpenILS::Application::AppUtils;
+use Net::HTTP::NB;
+use IO::Select;
+my $U = 'OpenILS::Application::AppUtils';
+
+our $ac_types = ['toc', 'anotes', 'excerpt', 'summary', 'reviews'];
+
+# context additions:
+# record : bre object
+sub load_rbdigital_record {
+ my $self = shift;
+ my %kwargs = @_;
+ my $ctx = $self->ctx;
+ $ctx->{page} = 'record';
+ $self->ctx->{badge_scores} = [];
+
+ $logger->info('EbookAPI: RBDigitalRecord started');
+
+ $self->timelog("load_rbdigital_record() began");
+
+ my $isbn = $ctx->{page_args}->[0];
+
+ $logger->info('EbookAPI: RBDigitalRecord started for ISBN: '. $isbn);
+ return Apache2::Const::HTTP_BAD_REQUEST
+ unless $isbn and $isbn =~ /^\d+$/;
+
+ # Call sub to get the session id
+ my $session_id = _get_ebook_session_id();
+
+ $ctx->{title_info} = _get_ebook_title_info($session_id, $isbn);
+
+ $ctx->{title_summary} = {};
+ # Get content summary
+ if ($self->cgi->param('expand') eq 'summaryplus') {
+ $ctx->{title_summary} = _get_ebook_title_summary($session_id, $isbn);
+ }
+
+ # Get recommended books
+ $ctx->{recommended_books} = {};
+ if ($self->cgi->param('expand') eq 'recommendations') {
+ my $media_format = $self->cgi->param('fi:search_format') || 'ebook';
+ my $page_index = 0;
+ my $page_size = 10;
+ $ctx->{recommended_books} = _get_book_recommendations($self->editor->authtoken, $session_id, $isbn, $media_format, $page_index, $page_size);
+ }
+
+ $self->ctx->{copy_depth} = $self->cgi->param('copy_depth');
+
+ my $copy_limit = int($self->cgi->param('copy_limit') || 10);
+ my $copy_offset = int($self->cgi->param('copy_offset') || 0);
+
+ $self->get_staff_search_settings;
+ if ($ctx->{staff_saved_search_size}) {
+ $ctx->{saved_searches} = ($self->staff_load_searches)[1];
+ }
+ $self->timelog("past staff saved searches");
+
+ # Check for user and load lists and prefs
+ if ($self->ctx->{user}) {
+ $self->_load_lists_and_settings;
+ $self->timelog("load user lists and settings");
+ }
+
+ return Apache2::Const::OK;
+}
+
+# Get ebook title info
+sub _get_ebook_title_info {
+ my ($session_id, $isbn) = @_;
+
+ $logger->info('EbookAPI: RBDigitalRecord _get_ebook_title_info');
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $api_request = $ebook_api->request('open-ils.ebook_api.title.details', $session_id, $isbn);
+
+ if ($api_request) {
+ return $api_request->recv()->{content}->{content};
+ }
+ $logger->info('EbookAPI: RBDigitalRecord _get_ebook_title_info - No data found');
+ return undef;
+}
+
+# Get ebook summary
+sub _get_ebook_title_summary {
+ my ($session_id, $isbn) = @_;
+
+ $logger->info('EbookAPI: RBDigitalRecord _get_ebook_title_summary');
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $api_request = $ebook_api->request('open-ils.ebook_api.title.summary', $session_id, $isbn);
+
+ if ($api_request) {
+ return $api_request->recv()->{content}->{content};
+ }
+ $logger->info('EbookAPI: RBDigitalRecord _get_ebook_title_summary - No data found');
+ return undef;
+}
+
+sub _get_book_recommendations {
+ my ($authtoken, $session_id, $isbn, $media_format, $page_index, $page_size) = @_;
+
+ $logger->info('EbookAPI: RBDigitalRecord _get_book_recommendations');
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ $logger->info("EbookAPI: Parameters passing $session_id, $isbn, $media_format, $page_index, $page_size");
+
+ # $session_id, $isbn, $media_format, $page_index, $page_size
+ my $api_request = $ebook_api->request('open-ils.ebook_api.get_book_recommendations', $authtoken, $session_id, $isbn, $media_format, $page_index, $page_size);
+
+ if ($api_request) {
+ return $api_request->recv()->{content}->{content};
+ }
+
+ $logger->info('EbookAPI: RBDigitalRecord _get_book_recommendations - No data found');
+ return undef;
+
+}
+
+# collect IDs and info on the search that lead to this details page
+# If no search query, etc is present, we leave ctx.search_result_index == -1
+sub fetch_rbdigital_related_search_info {
+ my $self = shift;
+ my $rec_id = shift;
+ my $ctx = $self->ctx;
+ $ctx->{search_result_index} = -1;
+
+ $self->load_rbdigital_rresults(internal => 1);
+
+ my @search_ids = @{$ctx->{ids}};
+ return unless @search_ids;
+
+ for my $idx (0..$#search_ids) {
+ if ($search_ids[$idx] == $rec_id) {
+ $ctx->{prev_search_record} = $search_ids[$idx - 1] if $idx > 0;
+ $ctx->{next_search_record} = $search_ids[$idx + 1];
+ $ctx->{search_result_index} = $idx;
+ last;
+ }
+ }
+
+ $ctx->{first_search_record} = $search_ids[0];
+ $ctx->{last_search_record} = $search_ids[-1];
+}
+
+sub load_rbdigital_print_record {
+ my $self = shift;
+
+ my $rec_id = $self->ctx->{page_args}->[0]
+ or return Apache2::Const::HTTP_BAD_REQUEST;
+
+ $self->{ctx}->{bre_id} = $rec_id;
+ $self->{ctx}->{printable_record} = $U->simplereq(
+ 'open-ils.search',
+ 'open-ils.search.biblio.record.print', $rec_id);
+
+ return Apache2::Const::OK;
+}
+
+1;
--- /dev/null
+package OpenILS::WWW::EGCatLoader;
+use strict;
+use warnings;
+use Apache2::Const -compile => qw(OK DECLINED FORBIDDEN HTTP_INTERNAL_SERVER_ERROR REDIRECT HTTP_BAD_REQUEST);
+use OpenSRF::Utils::Logger qw/$logger/;
+use OpenILS::Utils::CStoreEditor qw/:funcs/;
+use OpenILS::Utils::Fieldmapper;
+use OpenILS::Application::AppUtils;
+use OpenSRF::Utils::JSON;
+use Data::Dumper;
+$Data::Dumper::Indent = 0;
+my $U = 'OpenILS::Application::AppUtils';
+
+use constant EBOOK_API_VENDOR => 'rbdigital';
+use constant EBOOK_API_OU => 1;
+
+sub load_rbdigital_advanced {
+ my $self = shift;
+ $self->ctx->{search_filters} = {};
+ $logger->info('EbookAPI: RBDigitalSearch calling an API to get search filters');
+
+ # Call sub to get the session id
+ my $session_id = _get_ebook_session_id();
+
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $api_request = $ebook_api->request('open-ils.ebook_api.get_search_filters', $self->editor->authtoken, $session_id);
+
+ if ($api_request) {
+ $self->ctx->{search_filters} = $api_request->recv()->{content}->{content};
+ }
+
+ #Build an array of mapped search fields to be used later by the UI code
+ $self->ctx->{mapped_search_fields} = _get_search_fields();
+
+ my %mapped_fields_array;
+
+ my %mapped_search_field_values;
+ # Iterate over list of values and build an array for JS (Only Dropdown Field Types)
+ foreach my $value (@ {$self->ctx->{mapped_search_fields}}) {
+ if ($value->field_type == 'dropdown') {
+ $mapped_search_field_values{lc($value->evergreen_field)} = [lc($value->digital_services_field), _get_search_field_mappings($self->editor->authtoken, $session_id, $value->id)];
+ }
+
+ $mapped_fields_array{lc($value->evergreen_field)} = lc ($value->digital_services_field);
+ }
+
+ $self->ctx->{mapped_search_field_values} = \%mapped_search_field_values;
+
+ $self->ctx->{mapped_fields_array} = \%mapped_fields_array;
+
+ $logger->info('EbookAPI: RBDigitalRecord load_rbdigital_advanced');
+
+ return Apache2::Const::OK;
+}
+
+sub load_rbdigital_manage_search_fields {
+ my $self = shift;
+
+ $logger->info('EbookAPI: RBDigitalSearch calling an API to search fields for mapping with evergreen');
+
+ # Call sub to get the session id
+ my $session_id = _get_ebook_session_id();
+
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $api_request = $ebook_api->request('open-ils.ebook_api.get_search_filters', $self->editor->authtoken, $session_id);
+ if ($api_request) {
+ $self->ctx->{search_filters} = $api_request->recv()->{content}->{content};
+ }
+
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+
+ #Get Evergreen Search Fields
+ my $evergreen_text_search_field_req = $pcrud->request('open-ils.pcrud.search.cmc.atomic',"ANONYMOUS",
+ {
+ name => {"!=" => undef}
+ },
+ {
+ order_by => { cmc => 'name ASC' }
+ }
+ )->recv();
+
+ $self->ctx->{eg_search_input_fields} = $evergreen_text_search_field_req->{content};
+
+ $self->ctx->{mapped_search_fields} = _get_search_fields();
+
+ $logger->info('EbookAPI: RBDigitalRecord load_rbdigital_advanced_manage_search_fields - No data found');
+
+ return Apache2::Const::OK;
+}
+
+# context additions:
+# page_size
+# hit_count
+# records : list of bre's and copy-count objects
+sub load_rbdigital_results {
+ my $self = shift;
+ my %args = @_;
+ my $internal = $args{internal};
+ my $cgi = $self->cgi;
+ my $ctx = $self->ctx;
+ my $e = $self->editor;
+ my $record_ids;
+ my $results;
+ my $session_id;
+ $logger->info('EbookAPI: RBDigitalSearch started');
+
+ return $self->redirect_auth unless $self->editor->requestor;
+ $logger->info('EbookAPI: RBDigitalSearch User is authenticated.');
+
+ # Call sub to get the session id
+ $session_id = _get_ebook_session_id();
+
+ # Read all the parameters passed
+ my $auth_session = $cgi->cookie('ses') || $cgi->param('ses');
+ my $media_format = $cgi->param('fi:search_format') || '';
+ my $value_to_search = $cgi->param('query') || '';
+ my $page_index = $cgi->param('page') || 0;
+ my $search_type = $cgi->param('qtype') || '';
+ my @facets = ();
+ my @search_inputs = ();
+ my $page_size = $cgi->param('limit') || 10;
+ my $library_location = $cgi->param('locg') || '';
+ my $sort_by = '';
+ my $sort_order = '';
+
+ # Prepage ctx structure
+ $ctx->{page} = 'rresult' unless $internal;
+ $ctx->{ids} = [];
+ $ctx->{records} = [];
+ $ctx->{search_facets} = {};
+ $ctx->{hit_count} = 0;
+ $ctx->{is_meta} = 0;
+ $ctx->{page_size} = $page_size;
+ $ctx->{search_page} = $page_index;
+
+ if ($cgi->param('facet')) {
+ for my $item ($cgi->param('facet')) {
+ push @{facets}, $item;
+ }
+ }
+
+ $logger->info('EbookAPI: RBDigitalSearch: facet: '.scalar(@facets));
+
+ # filters
+ my $filters = [];
+ # my $query;
+ # foreach (grep /^fi:/, $cgi->param) {
+ # /:(-?\w+)$/ or next;
+ # my $term = join(",", $cgi->param($_));
+ # $query .= " $1($term)" if length $term;
+ # }
+
+ # Build array with Search Inputs
+ # Title (if any)
+ if (defined($cgi->param('query_title'))) {
+ push @{search_inputs}, 'title_' . $cgi->param('query_title');
+ }
+
+ # Author (if any)
+ if (defined($cgi->param('query_author')) && $cgi->param('query_author') ne '') {
+ push @{search_inputs}, 'author_' . $cgi->param('query_author');
+ }
+
+ # Narrator (if any)
+ if (defined($cgi->param('query_narrator')) && $cgi->param('query_narrator') ne '') {
+ push @{search_inputs}, 'narrator_' . $cgi->param('query_narrator');
+ }
+
+ # Series (if any)
+ if (defined($cgi->param('query_series')) && $cgi->param('query_series') ne '') {
+ push @{search_inputs}, 'series_' . $cgi->param('query_series');
+ }
+
+ # Publisher (if any)
+ if (defined($cgi->param('query_publisher')) && $cgi->param('query_publisher') ne '') {
+ push @{search_inputs}, 'publisher_' . $cgi->param('query_publisher');
+ }
+
+ # Genre (if any)
+ if (defined($cgi->param('item_genre')) && $cgi->param('item_genre') ne '') {
+ push @{search_inputs}, 'genre_' . $cgi->param('item_genre');
+ }
+
+ # Audience (if any)
+ if (defined($cgi->param('item_audience')) && $cgi->param('item_audience') ne '') {
+ push @{search_inputs}, 'audience_' . $cgi->param('item_audience');
+ }
+
+ # Availability (if any)
+ if (defined($cgi->param('item_availability')) && $cgi->param('item_availability') ne '') {
+ push @{search_inputs}, 'availability_' . $cgi->param('item_availability');
+ }
+
+ # Published Date (if any)
+ if (defined($cgi->param('item_published')) && $cgi->param('item_published') ne '') {
+ push @{search_inputs}, 'published_' . $cgi->param('item_published');
+ }
+
+ # Date Added (if any)
+ if (defined($cgi->param('item_date-added')) && $cgi->param('item_date-added') ne '') {
+ push @{search_inputs}, 'date-added_' . $cgi->param('item_date-added');
+ }
+
+ # Fiction (if any)
+ if (defined($cgi->param('item_isfiction')) && $cgi->param('item_isfiction') ne '') {
+ push @{search_inputs}, 'isfiction_' . $cgi->param('item_isfiction');
+ }
+
+ # Language (if any)
+ if (defined($cgi->param('item_language')) && $cgi->param('item_language') ne '') {
+ push @{search_inputs}, 'language_' . $cgi->param('item_language');
+ }
+
+ # Digital Rights (if any)
+ if (defined($cgi->param('item_hasdrm')) && $cgi->param('item_hasdrm') ne '') {
+ push @{search_inputs}, 'hasdrm_' . $cgi->param('item_hasdrm');
+ }
+
+ # Determine sort by and sort order
+ if (defined($cgi->param('sort')) && $cgi->param('sort') ne '') {
+ ($sort_by, $sort_order) = _handle_sort($cgi->param('sort'));
+ # If the sort request is by pubdate, change it to releasedate
+ if ($sort_by eq 'pubdate') {
+ $sort_by = 'releasedate';
+ }
+ }
+
+ $logger->info('EbookAPI: RBDigitalSearch Checking media type');
+ # Check if RBDigital can perform requested query
+ if ($media_format eq 'eaudio' || $media_format eq 'ebook' || $media_format eq 'book' || $media_format eq 'music' || $media_format eq '') {
+ $logger->info('EbookAPI: RBDigitalSearch Invoking search method');
+
+ $results = _search ($self->editor->authtoken, $session_id,
+ $value_to_search, $search_type, $media_format, $library_location, \@facets, \@search_inputs,
+ $sort_by, $sort_order, $page_index, $page_size);
+
+ $record_ids = _get_record_ids(@{$results->{content}->{content}->{items}});
+ $logger->debug('EbookAPI: RBDigitalSearch Record Ids: '. join(" ",@{$record_ids}) );
+
+ $logger->info('EbookAPI: RBDigitalSearch Basic Search Record Count: '. scalar @$record_ids);
+
+ # Add values to returned query structure for GUI to process
+ $ctx->{ids} = $record_ids;
+ $ctx->{records} = $results->{content}->{content}->{items};
+ $ctx->{hit_count} = $results->{content}->{content}->{resultSetCount};
+ $ctx->{superpage} = $page_index;
+ $ctx->{superpage_size} = 10;
+ $ctx->{pagable_limit} = $page_size;
+ $ctx->{query_struct} = {};
+ $ctx->{canonicalized_query} = '';
+ $ctx->{search_summary} = '';
+ $ctx->{search_facets} = _get_search_facets(@{$results->{content}->{content}->{filters}});
+ }
+
+ return Apache2::Const::OK;
+}
+
+sub _is_authorized {
+ my ($authtoken, $session_id) = @_;
+ my $ebookapi_session = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $vendors_req = $ebookapi_session->request('open-ils.ebook_api.is_authorized_patron',$authtoken, $session_id);
+
+ return $vendors_req->recv->content;
+}
+
+sub _get_authorized_vendors {
+ my ($authtoken, $session_id) = @_;
+ my $ebookapi_session = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $vendors_req = $ebookapi_session->request('open-ils.ebook_api.get_authorized_vendors',$authtoken, $session_id);
+
+ return $vendors_req->recv->content;
+}
+
+sub _get_patron_id {
+ my ($authtoken, $session_id) = @_;
+
+ $logger->info('EbookAPI: RBDigitalRecord _get_patron_id');
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $api_request = $ebook_api->request('open-ils.ebook_api.get_patron_id', $authtoken, $session_id,0);
+
+ if ($api_request) {
+ return $api_request->recv->content;
+ }
+
+ return 1;
+}
+
+sub _get_ebook_session_id {
+ # Create an instance of EbookAPI
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $session_id_req = $ebook_api->request(
+ 'open-ils.ebook_api.start_session', EBOOK_API_VENDOR, EBOOK_API_OU);
+ my $session_id = $session_id_req->recv->content;
+
+ return $session_id;
+}
+
+sub _search {
+ my ($authtoken, $session_id,
+ $value_to_search, $search_type,
+ $media_format, $library_location, $facets, $search_inputs,
+ $sort_by, $sort_order,
+ $page_index, $page_size) = @_;
+ my $record_ids;
+ my $search_results;
+
+ try {
+ $logger->info('EbookAPI: RBDigitalSearch Calling search API');
+
+ my $method = "open-ils.ebook_api.basic_search";
+
+ my $ebookapi_session = OpenSRF::AppSession->create('open-ils.ebook_api');
+ if ($value_to_search eq '' && scalar(@$search_inputs) == 0) {
+ # Nothing to search
+ $logger->info('EbookAPI: RBDigitalSearch No search value was entered by user.'.$value_to_search);
+ return Apache2::Const::OK;
+ }
+
+ #$self->timelog("Firing off the basic search from RBDigital library");
+ my $basic_search_req = $ebookapi_session->request($method,
+ $authtoken, $session_id,
+ $value_to_search, $search_type,
+ $media_format, $library_location, \@$facets, \@$search_inputs,
+ $sort_by, $sort_order,
+ $page_index, $page_size);
+
+ $search_results = $basic_search_req->recv();
+ $logger->debug('EbookAPI: RBDigitalSearch search result: '.Dumper($search_results));
+
+ if (defined($search_results->{content}->{is_success}) && $search_results->{content}->{is_success} eq '1') {
+ $logger->error('EbookAPI: RBDigitalSearch Basic Search API call was successful');
+ } else {
+ $logger->error('EbookAPI: RBDigitalSearch Basic Search API call failed');
+ return Apache2::Const::OK;
+ }
+
+ #$self->timelog("Returned from the basic search from RBDigital library");
+ $logger->info('EbookAPI: RBDigitalSearch Done calling search API');
+
+ } catch Error with {
+ my $err = shift;
+ $logger->error("EbookAPI: basic search error: $err");
+ $search_results = {content => {}};
+
+ };
+
+ return $search_results;
+}
+
+# Converts string 'pubdate.desc' or authorsort to author, desc
+sub _handle_sort {
+ my ($sort_value) = @_;
+ my $sort_by;
+ my $sort_order;
+ my $temp;
+
+ ($sort_by, $sort_order) = split (/\./, $sort_value);
+
+ if ($sort_order eq 'descending') {
+ $sort_order = 'desc';
+ } else {
+ $sort_order = 'asc';
+ }
+
+ ($sort_by, $temp) = split('sort', $sort_by);
+
+ return ($sort_by, $sort_order);
+}
+
+sub _get_record_ids {
+ my @items = @_;
+ my $record_ids = []; #declare array reference
+ my $item;
+
+ for my $item( @items ) {
+ push @{$record_ids}, "'$item->{item}->{id}'";
+ };
+
+ # return array of record ids
+ return $record_ids;
+}
+
+# Group the facets by tokenlabel
+sub _get_search_facets {
+ my @filters = @_;
+ my $facets = {};
+
+ for my $filter ( @filters ) {
+ if ($filter->{count} > 0) {
+ #split token value by '-', change case and then add it to value
+ $filter->{displayLabel} = _scrub_name($filter->{tokenValue});
+
+ if ($filter->{tokenLabel} eq 'genre') {
+ push @{$facets->{genre}}, [$filter];
+ } elsif ($filter->{tokenLabel} eq 'audience') {
+ push @{$facets->{audience}}, [$filter];
+ } elsif ($filter->{tokenLabel} eq 'isfiction') {
+ push @{$facets->{fiction}}, [$filter];
+ } elsif ($filter->{tokenLabel} eq 'hasdrm') {
+ push @{$facets->{digitalRights}}, [$filter];
+ } elsif ($filter->{tokenLabel} eq 'availability') {
+ push @{$facets->{availability}}, [$filter];
+ } elsif ($filter->{tokenLabel} eq 'language') {
+ push @{$facets->{language}}, [$filter];
+ }
+ }
+
+ };
+
+ # return hash reference
+ return $facets;
+}
+
+# Call this method to split the name 'the-quick-brown' into The Quick Brown
+sub _scrub_name {
+ my $name = shift;
+ my $return_value = '';
+ my @value_array = split('-',$name);
+
+ for my $word (@value_array) {
+ $return_value = $return_value . ucfirst($word).' ';
+ }
+
+ return rtrim($return_value);
+}
+
+
+# Perl trim function to remove whitespace from the start and end of the string
+sub trim($)
+{
+ my $string = shift;
+ $string =~ s/^\s+//;
+ $string =~ s/\s+$//;
+ return $string;
+}
+# Left trim function to remove leading whitespace
+sub ltrim($)
+{
+ my $string = shift;
+ $string =~ s/^\s+//;
+ return $string;
+}
+# Right trim function to remove trailing whitespace
+sub rtrim($)
+{
+ my $string = shift;
+ $string =~ s/\s+$//;
+ return $string;
+}
+
+# returns a list of records from search_field_mappings table
+sub _get_search_field_mappings {
+ my ($authtoken, $session_id, $search_fields_id) = @_;
+ my $ebook_api = OpenSRF::AppSession->create('open-ils.ebook_api');
+ my $api_request = $ebook_api->request('open-ils.ebook_api.search_field_mappings.retrieve', $authtoken, $session_id, $search_fields_id);
+
+ if ($api_request) {
+ return $api_request->recv()->{content}->{data};
+ }
+
+ return [];
+}
+
+# returns a list of records from search_fields table
+sub _get_search_fields {
+ my $vendor_key = 'rbdigital';
+ my $pcrud = OpenSRF::AppSession->create('open-ils.pcrud');
+ $pcrud->connect();
+ my $digital_services_req = $pcrud->request('open-ils.pcrud.search.ebook_rds.atomic', "ANONYMOUS",
+ { vendor_key => $vendor_key }
+ )->recv();
+
+ if ($digital_services_req && defined($digital_services_req->content->[0])) {
+
+ #Get RBDigital Search fields
+ my $mapped_search_field_req = $pcrud->request('open-ils.pcrud.search.ebook_rsf.atomic', "ANONYMOUS",
+ {
+ #TODO: Replace the below by join statement
+ digital_services_id => $digital_services_req->content->[0]->id
+
+ }
+ );
+
+ return $mapped_search_field_req->recv()->{content};
+
+ }
+
+ return [];
+}
+
+1;
my $cgi = $self->cgi;
my $ctx = $self->ctx;
my $e = $self->editor;
-
+ my $session_id;
+
# 1. param->metarecord : view constituent bib records for a metarecord
# 2. param->modifier=metabib : perform a metarecord search
my $metarecord = $ctx->{metarecord} = $cgi->param('metarecord');
--- /dev/null
+#!perl
+
+use Test::More tests => 8;
+
+diag("Tests Ebook API: RBDigital Books");
+
+use strict; use warnings;
+
+use OpenILS::Application::EbookAPI;
+use OpenSRF::AppSession;
+use OpenILS::Utils::CStoreEditor qw/:funcs/;
+use OpenILS::Utils::TestUtils;
+use Scalar::Util 'blessed';
+use Data::Dumper;
+
+# ------------------------------------------------------------
+# 1. Set up test environment.
+# ------------------------------------------------------------
+
+use constant EBOOK_API_VENDOR => 'rbdigital';
+use constant EBOOK_API_OU => 1;
+
+# Patrons.
+use constant EBOOK_API_PATRON_USERNAME => 'egadmin';
+use constant EBOOK_API_PATRON_PASSWORD => 'password';
+use constant BARCODE => 'e29bc74e9d13243c861c1d209e9a2e20';
+
+my $script = OpenILS::Utils::TestUtils->new();
+$script->bootstrap;
+
+
+# Authenticate the user
+$script->authenticate({
+ username => EBOOK_API_PATRON_USERNAME,
+ password => EBOOK_API_PATRON_PASSWORD,
+ type => 'staff'});
+
+my $authtoken = $script->authtoken;
+
+print "User Authenticated: Auth Token: $authtoken\n";
+
+my $editor = $script->editor(authtoken=>$script->authtoken);
+$editor->xact_begin;
+
+ok(
+ $authtoken,
+ 'Have an authtoken'
+);
+is(
+ $script->authtime,
+ 14400,
+ 'Default authtime for staff login is 7200 seconds. 14400 seconds are equal to 4 hours'
+);
+
+my $cached_obj = $script->cache()->get_cache("oils_auth_$authtoken");
+
+ok(
+ ref $cached_obj,
+ 'Can retrieve authtoken from memcached'
+);
+
+# Create an instance of EbookAPI
+my $ebook_api = $script->session('open-ils.ebook_api');
+
+# ------------------------------------------------------------
+# 2. Sessions.
+# ------------------------------------------------------------
+
+# Initiate a new EbookAPI session and get a session ID.
+# Returns undef unless a new session was created.
+my $session_id_req = $ebook_api->request(
+ 'open-ils.ebook_api.start_session', EBOOK_API_VENDOR, EBOOK_API_OU);
+my $session_id = $session_id_req->recv->content;
+ok($session_id, 'Initiated an EbookAPI session: '.$session_id);
+
+# Check that an EbookAPI session exists matching our session ID.
+my $ck_session_id_req = $ebook_api->request(
+ 'open-ils.ebook_api.check_session', $session_id, EBOOK_API_VENDOR, EBOOK_API_OU);
+my $ck_session_id = $ck_session_id_req->recv->content;
+ok($ck_session_id eq $session_id, 'Validated existing EbookAPI session');
+
+
+# ------------------------------------------------------------
+# 3. Call Recorded Books API to fetch patron_id
+# ------------------------------------------------------------
+my $get_patron_id_req = $ebook_api->request(
+ 'open-ils.ebook_api.get_patron_id', $authtoken, $session_id, 1);
+my $patronid = $get_patron_id_req->recv->content;
+
+ok(
+ $patronid,
+ 'Patron ID Received: '.$patronid
+);
+
+# ------------------------------------------------------------
+# 4. Perform Basic Search
+# ------------------------------------------------------------
+
+my $value_to_search = 'a';
+my $search_type = 'keyword',
+my $media_format = 'eaudio';
+my $library_location = 1,
+my $page_index = 0;
+my $page_size = 1;
+my $sort_by = 'title';
+my $sort_order ='asc';
+my @facets = ();
+
+my $basic_search_req = $ebook_api->request(
+ 'open-ils.ebook_api.basic_search', $authtoken, $session_id,
+ $value_to_search, $search_type,
+ $media_format, $library_location, \@facets,
+ $sort_by, $sort_order,
+ $page_index, $page_size);
+
+#returns an object of OpenSRF::DomainObject::oilsResult class
+my $search_results = $basic_search_req->recv;
+my $output = "Call Failed!";
+
+if (defined($search_results->{content}->{is_success}) && $search_results->{content}->{is_success} eq '1') {
+ $output = "API Call Succeeded\n";
+}
+
+ok(
+ $search_results,
+ 'Search Results: '. $output
+);
+
+
--- /dev/null
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1030', :eg_version);
+
+INSERT INTO config.org_unit_setting_type
+ (name, label, description, grp, datatype)
+VALUES (
+ 'ebook_api.rbdigital.base_uri',
+ oils_i18n_gettext(
+ 'ebook_api.rbdigital.base_uri',
+ 'RBDigital Base URI',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ebook_api.rbdigital.base_uri',
+ 'Base URI for RBDigital API (defaults to https://api.rbdigital.com/v1). Using HTTPS here is strongly encouraged.',
+ 'coust',
+ 'description'
+ ),
+ 'ebook_api',
+ 'string'
+),(
+ 'ebook_api.rbdigital.library_id',
+ oils_i18n_gettext(
+ 'ebook_api.rbdigital.library_id',
+ 'RBDigital Library ID',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ebook_api.rbdigital.library_id',
+ 'Identifier assigned to this library by RBDigital',
+ 'coust',
+ 'description'
+ ),
+ 'ebook_api',
+ 'string'
+),(
+ 'ebook_api.rbdigital.basic_token',
+ oils_i18n_gettext(
+ 'ebook_api.rbdigital.basic_token',
+ 'RBDigital Basic Token',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ebook_api.rbdigital.basic_token',
+ 'Basic token for client authentication with RBDigital API (supplied by RBDigital)',
+ 'coust',
+ 'description'
+ ),
+ 'ebook_api',
+ 'string'
+);
+
+INSERT INTO actor.org_unit_setting (org_unit, name, value)
+ VALUES
+ (1, 'ebook_api.rbdigital.base_uri', '"api.rbdigital.com"'),
+ (1, 'ebook_api.rbdigital.basic_token', '"BF8DD41C-B286-4F60-9FF5-F4C5B3E57A11"'),
+ (1, 'ebook_api.rbdigital.library_id', '"3925"');
+COMMIT;
+
max-width:300px;
}
+#vendor_tabs {
+ background-color: [% css_colors.primary_fade %];
+ padding-top:5px;
+}
+
#myopac_tabs, #adv_search_parent, #fines_payments_wrapper {
background-color: [% css_colors.primary_fade %];
padding-top:5px;
--- /dev/null
+[%- PROCESS "opac/parts/header.tt2";
+ WRAPPER "opac/parts/base.tt2";
+ vendor_key = 'rbdigital';
+ ebook_uri = ctx.opac_root _ '/ebook_api/rbdigital';
+ INCLUDE "opac/parts/topnav.tt2";
+ ctx.page_title = l("Advanced Search");
+ pane = CGI.param("pane") || "advanced";
+ loc = ctx.search_ou;
+
+ ctx.metalinks.push('<meta name="robots" content="noindex,follow">');
+-%]
+ <h2 class="sr-only">[% l('Advanced Search') %]</h2>
+ <div id="search-wrapper">
+ <div id="search-box">
+ <span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
+ <span class="adv_search_catalog_lbl"><a href="[% mkurl(ebook_uri _ '/results') %]"
+ id="home_adv_search_link">[%l('Basic Search')%]</a></span>
+ </div>
+ <div id="adv_search_parent">
+ <div id="adv_search_tabs">
+ <a href="[% mkurl('', {pane => 'advanced'}) %]"
+ [% IF pane == 'advanced' %]class="on" [% END %]
+ id="adv_search">[% l('Advanced Search') %]</a>
+
+ [%- IF ctx.user.super_user == 't'; %]
+ <a href="[% mkurl(ebook_uri _ '/manage_search_fields',[]) %]"
+ [% IF pane != 'advanced'; %] class="on" [% END; %]
+ >[% l('Manage Search Fields') %]</a>
+ [%- END; %]
+ </div>
+
+ </div>
+ </div>
+ <div id="content-wrapper">
+ <div id="main-content">
+ <div class="advanced_div">
+ [% IF pane == 'advanced' %]
+ [% INCLUDE "opac/ebook_api/rbdigital/parts/advanced/search.tt2" %]
+ [% END %]
+ </div>
+ <div class="common-full-pad"></div>
+ </div>
+ </div>
+[% END %]
\ No newline at end of file
--- /dev/null
+[%- PROCESS "opac/parts/header.tt2";
+ WRAPPER "opac/parts/base.tt2";
+ vendor_key = 'rbdigital';
+ ebook_uri = ctx.opac_root _ '/ebook_api/rbdigital';
+ INCLUDE "opac/parts/topnav.tt2";
+ ctx.page_title = l("Advanced Search");
+ pane = CGI.param("pane") || "advanced";
+ loc = ctx.search_ou;
+ PROCESS "opac/parts/misc_util.tt2";
+ PROCESS get_library;
+ ctx.metalinks.push('<meta name="robots" content="noindex,follow">');
+-%]
+ <h2 class="sr-only">[% l('Advanced Search') %]</h2>
+ <div id="search-wrapper">
+ <div id="search-box">
+ <span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
+ <span class="adv_search_catalog_lbl"><a href="[% mkurl(ebook_uri _ '/results') %]"
+ id="home_adv_search_link">[%l('Basic Search')%]</a></span>
+ </div>
+ <div id="adv_search_parent">
+ <div id="adv_search_tabs">
+ <a href="[% mkurl(ebook_uri _ '/advanced', {pane => 'advanced'}) %]"
+ class="off"
+ id="adv_search">[% l('Advanced Search') %]</a>
+
+ [%- IF ctx.user.super_user == 't'; %]
+ <a href="[% mkurl(ebook_uri _ '/manage_search_fields',[]) %]"
+ class="acct-tab-on"
+ >[% l('Manage Search Fields') %]</a>
+ [%- END; %]
+ </div>
+
+ </div>
+ </div>
+ <div id="content-wrapper">
+ <div id="main-content">
+ <div class="advanced_div">
+ <div class="header_middle">[% l("Map Search Fields") %]</div>
+ </div>
+
+ <div class="container">
+ <span class="pull-right form-inline">
+ <select id="eg_search_field" name="eg_search_field" class="form-control">
+ <option value="">[% l("Select Evergreen Field") %]</option>
+ <optgroup label="Text Input Search Fields">
+ [% FOREACH item IN ctx.eg_search_input_fields; %]
+ <option value="[% item.label FILTER lower %]">[% item.name FILTER ucfirst; %]</option>
+ [% END; %]
+ </optgroup>
+ <optgroup label="Dropdown Search Fields">
+ <option value="audience">[% l("Audience") %]</option>
+ <option value="item_type">[% l("Item Type") %]</option>
+ <option value="item_form">[% l("Item Form") %]</option>
+ <option value="item_lang">[% l("Language") %]</option>
+ <option value="vr_format">[% l("Video Format") %]</option>
+ <option value="bib_level">[% l("Bib Level") %]</option>
+ <option value="lit_form">[% l("Literary Form") %]</option>
+ </optgroup>
+ </select>
+
+ <select id="rbdigital_search_field" name="rbdigital_search_field" class="form-control">
+ <option value="">[% l("Select RBDigital Field") %]</option>
+ <optgroup label="Text Input Search Fields">
+ <option value="author">[% l("Author") %]</option>
+ <option value="narrator">[% l("Narrator") %]</option>
+ <option value="publisher">[% l("Publisher") %]</option>
+ <option value="series">[% l("Series") %]</option>
+ <option value="title">[% l("Title") %]</option>
+ </optgroup>
+ <optgroup label="Dropdown Search Fields">
+ <option value="audience">[% l("Audience") %]</option>
+ <option value="availability">[% l("Availability") %]</option>
+ <option value="date_added">[% l("Date Added") %]</option>
+ <option value="hasdrm">[% l("Digital Rights") %]</option>
+ <option value="fiction">[% l("Fiction") %]</option>
+ <option value="genre">[% l("Genre") %]</option>
+ <option value="language">[% l("Language") %]</option>
+ <option value="published_date">[% l("Published Date") %]</option>
+ </optgroup>
+ </select>
+ <button id="btnSaveSearchField" type="button" class="opac-button" data-toggle="modal" data-target="#modalMapSearchFields"><span class="glyphicon glyphicon-plus"></span> Save</button>
+
+ </span>
+ <table class="table table-striped table-bordered" >
+ <thead>
+ <tr>
+ <th>Evergreen Search Field</th>
+ <th>RBDigital Search Field</th>
+ <th>Data Field Type</th>
+ <th>Action</th>
+ </tr>
+ </thead>
+ <tbody>
+ [% IF ctx.mapped_search_fields.size == 0; %]
+ <tr><td colspan="4" class="text-center">No Data</td></tr>
+ [% ELSE; %]
+ [% FOREACH item IN ctx.mapped_search_fields; %]
+ <tr>
+ <td>[% item.evergreen_field FILTER ucfirst; %]</td>
+ <td>[% item.digital_services_field FILTER ucfirst; %]</td>
+ <td>[% item.field_type FILTER ucfirst; %]</td>
+ <td>
+ <a href="#"
+ data-id="[% item.id; %]"
+ data-eg_search_field="[% item.evergreen_field; %]"
+ data-digital_services_field="[% item.digital_services_field; %]"
+ [% IF item.field_type != 'dropdown'; %]
+ disabled="disabled" placeholder = "Mapping option is not available for this data type"
+ [% END; %]
+ class="btn btn-default openModalMapSearchFieldValues"
+ data-toggle="modal" data-target="#modalMapSearchFieldValues"><span class="glyphicon glyphicon-option-vertical"></span> Map Values</a>
+
+ <a href="#" data-id="[% item.id; %]" class="btn btn-default removeSearchField"><span class="glyphicon glyphicon-trash"></span> Remove</a>
+ </td>
+ </tr>
+ [% END; %]
+ [% END; %]
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
+[% END %]
+
+[% INCLUDE "opac/ebook_api/rbdigital/map_seach_field_values_modal.tt2"; %]
+
+<script type="text/javascript">
+ var rbdigital_search_fields = [];
+ //Preload list of all available search filter values
+ [% FOR filters IN ctx.search_filters;
+ filter_items = filters.items;
+ NEXT IF filters.facetToken == 'imprint';
+
+ FOR items IN filter_items;
+ %]
+ if (typeof rbdigital_search_fields["[% filters.facetToken %]"] == 'undefined') {
+ rbdigital_search_fields["[% filters.facetToken %]"] = [["[% items.valueToken %]","[% items.valueDisplay %]"]];
+ } else {
+ rbdigital_search_fields["[% filters.facetToken %]"].push(["[% items.valueToken %]","[% items.valueDisplay %]"]);
+ }
+
+ [% END;
+ END; %]
+
+
+</script>
\ No newline at end of file
--- /dev/null
+<!-- Modal -->
+ <div class="modal fade" id="modalMapSearchFieldValues" role="dialog">
+ <div class="modal-dialog modal-lg">
+ <!-- Modal content-->
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">×</button>
+ <h4 class="modal-title">Map Search Field Values</h4>
+ </div>
+ <div class="modal-body">
+ <form role="form">
+ <div class="form-group">
+ <span class="col-md-5"><strong>Evergreen Field: </strong><span id="spanEvergreenField"></span></span>
+ <span class="col-md-5"><strong>RBDigital Field: </strong><span id="spanRBDigitalField"></span></span>
+ </div>
+ <div class="form-group">
+ <span class="col-md-5">
+ <select id="eg_search_field_values" class="col-md-12" name="eg_search_field_values">
+ <option value="">[% l("Select Evergreen Field Value") %]</option>
+ </select>
+ </span>
+ <span class="col-md-5">
+ <select id="ds_search_field_values" class="col-md-12" name="ds_search_field_values">
+ <option value="">[% l("Select RBDigital Field Value") %]</option>
+ </select>
+ </span>
+ <span class="col-md-2">
+ <button id="btnSaveSearchFieldMappings" type="button" class="opac-button"><span class="glyphicon glyphicon-plus"></span> Save</button>
+ </span>
+ </div>
+
+ <!--Display Mapped Search Field Values -->
+ <div class="form-group">
+ <div class="col-md-12">
+ <table id="table_mapped_search_values" class="table table-striped table-bordered" >
+ <thead>
+ <tr>
+ <th>Evergreen Search Value</th>
+ <th>RBDigital Search Value</th>
+ <th>Action</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <input type="hidden" id="txtSearchFieldsID" value="">
+ </form>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
+ </div>
+ </div>
+
+ </div>
+ </div>
\ No newline at end of file
--- /dev/null
+[%
+ contains = CGI.param('contains');
+ queries = CGI.param('query');
+ bools = CGI.param('bool');
+ qtypes = CGI.param('qtype');
+
+ # scalar.merge treats the scalar as a 1-item array
+ WHILE queries.size < rowcount; queries = queries.merge(['']); END;
+ WHILE bools.size < rowcount; bools = bools.merge(['and']); END;
+ WHILE qtypes.size < rowcount; qtypes = qtypes.merge(search.default_qtypes.${qtypes.size} ? [search.default_qtypes.${qtypes.size}] : ['keyword']); END;
+
+ IF ctx.mapped_fields_array.size > 0;
+ FOR qtype IN qtypes;
+ c = contains.shift;
+ b = bools.shift;
+ q = queries.shift;
+ # We are only dealing with "contains" option
+ IF c == "contains";
+ IF ctx.mapped_fields_array.$qtype == 'keyword';
+ query_keyword = q;
+ ELSIF ctx.mapped_fields_array.$qtype == 'title';
+ query_title = q;
+ ELSIF ctx.mapped_fields_array.$qtype == 'author';
+ query_author = q;
+ ELSIF ctx.mapped_fields_array.$qtype == 'narrator';
+ query_narrator = q;
+ ELSIF ctx.mapped_fields_array.$qtype == 'series';
+ query_series = q;
+ ELSIF ctx.mapped_fields_array.$qtype == 'publisher';
+ query_publisher = q;
+ END;
+ END;
+ END;
+ ELSE;
+ # Default if there is no mapping available
+ FOR qtype IN qtypes;
+ c = contains.shift;
+ b = bools.shift;
+ q = queries.shift;
+
+ # We are only dealing with "contains" option
+ IF c == "contains";
+ IF qtype == 'keyword';
+ query_keyword = q;
+ ELSIF qtype == 'author';
+ query_author = q;
+ ELSIF qtype == 'title';
+ query_title = q;
+ END;
+ END;
+ END;
+ END;
+
+ IF CGI.param('query_title') != '';
+ query_title = CGI.param('query_title');
+ END;
+
+ IF CGI.param('query_author') != '';
+ query_author = CGI.param('query_author');
+ END;
+
+ IF CGI.param('query_narrator') != '';
+ query_narrator = CGI.param('query_narrator');
+ END;
+
+ IF CGI.param('query_series') != '';
+ query_series = CGI.param('query_series');
+ END;
+
+ IF CGI.param('query_publisher') != '';
+ query_publisher = CGI.param('query_publisher');
+ END;
+%]
+<!--Title -->
+<tr>
+ <td class="td-left">
+ <span class="qtype_selector_margin">
+ <label>Title: </label>
+ </span>
+ </td>
+ <td class="td-left">
+ <input title="[% l('Search term') %]"
+ type='text' size='18' name='query_title' value="[% query_title; %]" x-webkit-speech autofocus />
+ </td>
+
+</tr>
+<!--Author -->
+<tr>
+ <td class="td-left">
+ <span class="qtype_selector_margin">
+ <label>Author: </label>
+ </span>
+ </td>
+ <td class="td-left">
+ <input title="[% l('Search term') %]"
+ type='text' size='18' name='query_author' value="[% query_author; %]" />
+ </td>
+</tr>
+<!--Narrator -->
+<tr>
+ <td class="td-left">
+ <span class="qtype_selector_margin">
+ <label>Narrator: </label>
+ </span>
+ </td>
+ <td class="td-left">
+ <input title="[% l('Search term') %]"
+ type='text' size='18' name='query_narrator' value="[% query_narrator; %]" />
+ </td>
+</tr>
+<!--Series -->
+<tr>
+ <td class="td-left">
+ <span class="qtype_selector_margin">
+ <label>Series: </label>
+ </span>
+ </td>
+ <td class="td-left">
+ <input title="[% l('Search term') %]"
+ type='text' size='18' name='query_series' value="[% query_series; %]" />
+ </td>
+</tr>
+<!--Publisher -->
+<tr>
+ <td class="td-left">
+ <span class="qtype_selector_margin">
+ <label>Publisher: </label>
+ </span>
+ </td>
+ <td class="td-left">
+ <input title="[% l('Search term') %]"
+ type='text' size='18' name='query_publisher' value="[% ; %]" />
+ </td>
+</tr>
\ No newline at end of file
--- /dev/null
+[%
+ PROCESS "opac/parts/misc_util.tt2";
+ PROCESS get_library;
+ ebook_uri = ctx.opac_root _ '/ebook_api/rbdigital';
+
+ #Build an array of dropdown and their values based on URI keys
+ dropdown_items = {};
+ FOREACH item IN ctx.mapped_search_field_values;
+ IF CGI.param('fi:' _ item.key).size > 0;
+ dropdown_value = item.value.0;
+ dropdown_items.$dropdown_value = {};
+ FOREACH uri_field_value IN CGI.param('fi:' _ item.key);
+ FOREACH subitem IN item.value.1;
+ subitem_value = subitem.2;
+ digital_services_field_code = subitem.4;
+ IF subitem_value == uri_field_value;
+ dropdown_items.$dropdown_value.$digital_services_field_code = subitem_value;
+ END;
+ END;
+ END;
+ END;
+ END;
+%]
+
+<form action="[% ebook_uri %]/results" method="get">
+<div id='adv_global_search' class='data_grid data_grid_center rbdigital'>
+ <div id='adv_search_rows'>
+ <!-- Contains the user-addable(?) rows to define search class, containment and text -->
+ <div valign='top' class='adv_global_input_container'>
+ <table id='adv_global_input_table' role="presentation">
+ <thead>
+ <tr>
+ <th colspan="2">
+ <div class="header_middle" id="adv_search_input">
+ [% l("Search Input") %]
+ </div>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+
+ [% INCLUDE "opac/ebook_api/rbdigital/parts/advanced/global_row.tt2" %]
+ </tbody>
+ </table>
+ </div>
+ </div>
+
+ <div id='adv_search_submit'>
+ <input type="hidden" name="_adv" value="1" />
+ <input id="detail" type="hidden" name="detail_record_view"
+ value="[% show_detail_view %]"/>
+ <span>
+ <input id='search-submit-go' type="submit" value="[% l('Search') %]" title="[% l('Search') %]" class="opac-button"
+ onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
+ <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif[% ctx.cache_key %]'
+ class='hidden' alt="[% l('Search in progress icon') %]"/>
+ </span>
+
+ <a href="[% mkurl(ebook_uri _ '/advanced', {$loc_name => loc_value}, 1) %]"
+ class="opac-button">[% l('Clear Form') %]</a>
+ </div>
+
+ <div id='adv_search_filters'>
+ <div class="header_middle">[% l('Search Filters') %]</div>
+ <div class="adv_filter_block rbdigital">
+ [%
+ in_row = 0;
+ count = 0;
+ FOR filters IN ctx.search_filters;
+ filter_items = filters.items;
+ NEXT IF filters.facetToken == 'imprint';
+ %]
+ <div class='adv_filter_block_item'>
+ <div valign='top'>
+ <strong><label for="adv_selector_item_[% filters.facetToken %]">[% filters.facetDisplay %] </label></strong><br/>
+
+ <select id="adv_selector_item_[% filters.facetToken %]" name="item_[% filters.facetToken %]"
+ size="4" title="Select [% filters.facetDisplay %]:">
+ [% FOR items IN filter_items;
+ rbdigital_item_token = filters.facetToken;
+ rbdigital_item_value_token = items.valueToken;
+ IF (dropdown_items.$rbdigital_item_token &&
+ dropdown_items.$rbdigital_item_token.$rbdigital_item_value_token) ||
+ (CGI.param("item_" _ filters.facetToken ) == items.valueToken); %]
+ <option value="[% items.valueToken %]" selected >[% items.valueDisplay %]</option>
+ [% ELSE; %]
+
+ <option value="[% items.valueToken %]">[% items.valueDisplay %]</option>
+ [% END; %]
+ [% END; %]
+ </select>
+ </div>
+ </div>
+
+ [% IF count == 4; %]
+ </div>
+ <div class="adv_filter_block">
+[%
+ END;
+ count = count + 1;
+ END;
+%]
+ </div>
+
+ <div class="adv_filter_block">
+ <div class="adv_filter_block_item">
+ <div valign="top">
+ <strong><label for="adv_selector_sort_results">
+ Sort Results </label></strong><br>
+[%
+ default_sort=ctx.default_sort;
+ IF CGI.param('sort');
+ default_sort=CGI.param('sort');
+ END;
+ INCLUDE "opac/ebook_api/rbdigital/parts/filtersort.tt2"
+ id=adv_chunk.id
+ value=default_sort class='results_header_sel';
+%]
+ </div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+</div>
+</form>
\ No newline at end of file
--- /dev/null
+
+[%-
+ # If caller passes a list of possible attribute types,
+ # search all until we find some values
+
+ IF !attr.size; attr = [attr]; END;
+ all_values = [];
+ attr_class = '';
+ FOR attr_class IN attr;
+ all_values = ctx.search_ccvm('ctype', attr_class, 'opac_visible', 't');
+ IF all_values.size > 0; LAST; END;
+ END;
+ name = name || "fi:" _ attr_class;
+ id = id || attr_class _ "_selector";
+ values = values || CGI.param(name);
+ IF size AND size < 1; size = all_values.size; END;
+-%]
+
+<select id='[% id %]' name='[% name %]'[%
+ multiple ? ' multiple="multiple"' : '';
+ size ? (' size="' _ size _ '"') : '';
+%] title="[% filter_label || l('Select item type:') %]">
+
+[%
+# turn the list of objects into a list of hashes to
+# leverage TT's array.sort('<hashkey>') behavior
+simple_sorter = [];
+sorter = [];
+FOR o IN all_values;
+ IF o.code == "book" || o.code == "ebook" || o.code == "eaudio";
+ IF o.is_simple == 't';
+ simple_sorter.push({code => o.code, value => (o.search_label ? o.search_label : o.value)});
+ ELSE;
+ sorter.push({code => o.code, value => (o.search_label ? o.search_label : o.value)});
+ END;
+ END;
+END;
+FOR o IN simple_sorter.sort('value') %]
+ <option value='[% o.code | html | replace("'","'") %]'[% values.grep('^' _ o.code _ '$').size ? ' selected="selected"' : '' %]>[% o.value | html %]</option>
+[% END;
+IF simple_sorter.size && sorter.size %]
+ <option disabled='true'>-----</option>
+[% END;
+FOR o IN sorter.sort('value') %]
+ <option value='[% o.code | html | replace("'","'") %]'[% values.grep('^' _ o.code _ '$').size ? ' selected="selected"' : '' %]>[% o.value | html %]</option>
+[% END -%]
+</select>
+
--- /dev/null
+[%
+ # Build all_formats for image icon ebook/eaudio
+ format = {};
+ all_formats = [];
+ format.label = 'E-audio';
+ format.icon = ctx.media_prefix _'/images/format_icons/icon_format/eaudio.png' _ ctx.cache_key;
+ format.search_format = 'eaudio';
+ all_formats.push(format);
+
+ format = {};
+ format.label = 'E-book';
+ format.icon = ctx.media_prefix _'/images/format_icons/icon_format/ebook.png' _ ctx.cache_key;
+ format.search_format = 'ebook';
+ all_formats.push(format);
+%]
\ No newline at end of file
--- /dev/null
+<select title="[% l('Search sorting') %]"
+ [% class ? ('class="' _ class _ '"') : '' %] id='[% id || "opac.result.sort" %]'
+ name="[% name || 'sort' %]" [% IF submit_on_change %]onchange='this.form.submit()'[% END %]>
+ [% IF mode != 'bookbag' %]<option value=''>[% l("Sort by Relevance") %]</option>[% END %]
+ <optgroup label='[% l("Sort by Title") %]'>
+ <option value='titlesort'[% value == 'titlesort' ? ' selected="selected"' : '' %]>[% l("Title: A to Z") %]</option>
+ <option value='titlesort.descending'[% value == 'titlesort.descending' ? ' selected="selected"' : '' %]>[% l("Title: Z to A") %]</option>
+ </optgroup>
+ <optgroup label='[% l("Sort by Author") %]'>
+ <option value='authorsort'[% value == 'authorsort' ? ' selected="selected"' : '' %]>[% l("Author: A to Z") %]</option>
+ <option value='authorsort.descending'[% value == 'authorsort.descending' ? ' selected="selected"' : '' %]>[% l("Author: Z to A") %]</option>
+ </optgroup>
+ <optgroup label='[% l("Sort by Narrator") %]'>
+ <option value='narratorsort'[% value == 'narratorsort' ? ' selected="selected"' : '' %]>[% l("Narrator: A to Z") %]</option>
+ <option value='narratorsort.descending'[% value == 'narratorsort.descending' ? ' selected="selected"' : '' %]>[% l("Narrator: Z to A") %]</option>
+ </optgroup>
+ <optgroup label='[% l("Sort by Release Date") %]'>
+ <option value='pubdate.descending'[% value == 'pubdate.descending' ? ' selected="selected"' : '' %]>[% l("Date: Newest to Oldest") %]</option>
+ <option value='pubdate'[% value == 'pubdate' ? ' selected="selected"' : '' %]>[% l("Date: Oldest to Newest") %]</option>
+ </optgroup>
+ <optgroup label='[% l("Sort by Popularity") %]'>
+ <option value='popularity'[% value == 'popularity' ? ' selected="selected"' : '' %]>[% l("Most Popular") %]</option>
+ </optgroup>
+</select>
--- /dev/null
+[%
+ #Set the ebook_record_item before processing the item_parser
+ attrs = {};
+ ebook_item = {};
+
+ vendor_search_uri = '/ebook_api/rbdigital/results';
+ vendor_record_uri = '/ebook_api/rbdigital/record/';
+
+ vendor_record_url = mkurl(ctx.opac_root _ vendor_record_uri _ ebook_record_item.isbn,{},['expand','summaryplus','recommendations']);
+
+ ebook_item.title = ebook_record_item.title;
+ ebook_item.isbn = ebook_record_item.isbn;
+ ebook_item.publisher = ebook_record_item.publisher.text;
+ ebook_item.shortDescription = ebook_record_item.shortDescription;
+ ebook_item.language = ebook_record_item.language;
+ ebook_item.authors = "";
+ ebook_item.narrators = "";
+ ebook_item.genres = "";
+ ebook_item.series = "";
+ ebook_item.format_label = '';
+ ebook_item.pubdate = ebook_record_item.releasedDate || '';
+
+ ebook_item.image_medium = '';
+ ebook_item.image_large = '';
+ ebook_item.image_xl_url = '';
+ ebook_item.image_xxl_url = '';
+ ebook_item.mediaType = '';
+ ebook_item.authors_detail = '';
+
+ # Check title is available for Checkout Service
+ ebook_item.isTitleAvailable = false;
+ IF item.interest.isAvailable == 'true';
+ ebook_item.isTitleAvailable = true;
+ END;
+
+ # Loop over AUTHORS array
+ FOREACH item IN ebook_record_item.authors;
+ IF item.text != '';
+ author_search_url = mkurl(ctx.opac_root _ vendor_search_uri, {qtype => 'author', query => item.text});
+ ebook_item.authors_detail = ebook_item.authors_detail _
+ '<span class="rdetail-author-div" typeof="Person" property="author" resource="#schemacontrib1"><a href="'_
+ author_search_url _
+ '"><span resource="#schemacontrib1"><span property="name">'_ item.text _ '</span></span></a> (<span property="description">Author</span>). </span>';
+ ebook_item.authors = ebook_item.authors _ item.text;
+ IF !loop.last();
+ ebook_item.authors = ebook_item.authors _ ", ";
+ ebook_item.authors_detail = ebook_item.authors_detail _ ", ";
+ END;
+ END;
+ END;
+
+ # Loop over Narrators array
+ FOREACH item IN ebook_record_item.narrators;
+ author_search_url = mkurl(ctx.opac_root _ vendor_search_uri, {qtype => 'author', query => item.text});
+ ebook_item.authors_detail = ebook_item.authors_detail _
+ '<span class="rdetail-author-div" typeof="Person" property="author" resource="#schemacontrib1"><a href="'_
+ author_search_url _
+ '"><span resource="#schemacontrib1"><span property="name">'_ item.text _ '</span></span></a> (<span property="description">Narrator</span>). </span>';
+ ebook_item.narrators = ebook_item.narrators _ item.text;
+ IF !loop.last();
+ ebook_item.narrators = ebook_item.narrators _ ", ";
+ END;
+ END;
+
+ # Get Genre information
+ FOREACH item IN ebook_record_item.genres;
+ genre_search_url = mkurl(ctx.opac_root _ vendor_search_uri, {qtype => 'genre', query => item.token});
+ ebook_item.genres = ebook_item.genres _ '<a href="'_ genre_search_url _ '">' _ item.text _ '</a>';
+ IF !loop.last();
+ ebook_item.genres = ebook_item.genres _ ", ";
+ END;
+ END;
+
+ # Get Series information
+ series_search_url = mkurl(ctx.opac_root _ vendor_search_uri, {qtype => 'series', query => ebook_record_item.series.token});
+ ebook_item.series = ebook_item.series _ '<a href="'_ series_search_url _ '">' _ ebook_record_item.series.text _ '</a>';
+
+ # Loop over IMAGES array and get the medium image link
+ FOREACH pair IN ebook_record_item.images;
+ IF pair.name == 'medium';
+ ebook_item.image_medium = pair.url;
+ ELSIF pair.name == 'large';
+ ebook_item.image_large = pair.url;
+ ELSIF pair.name == 'x-large';
+ ebook_item.image_xl_url = pair.url;
+ ELSIF pair.name == 'xx-large';
+ ebook_item.image_xxl_url = pair.url;
+ END;
+ END;
+
+ # Change the Ebook and Eaudio media type to display native icons
+ IF ebook_record_item.mediaType == 'eAudio';
+ ebook_item.format_label = 'E-audio';
+ ELSIF ebook_record_item.mediaType == 'eBook';
+ ebook_item.format_label = 'E-book';
+ END;
+
+
+ # Get Extended Authors information
+ ebook_item.authors_extended = '';
+ IF ebook_item.authors != '';
+ ebook_item.authors_extended = ' / ' _ ebook_item.authors_extended _ ebook_item.authors;
+ END;
+
+ # Get Extended Title information
+ ebook_item.title_extended = ebook_record_item.title _ ebook_item.authors_extended;
+
+ # Get only year from publication/releasedDate
+ IF ebook_item.pubdate != '';
+ ebook_item.pubdate = ebook_item.pubdate.substr(0, 4);
+ END;
+%]
\ No newline at end of file
--- /dev/null
+[%- attrs = {marc_xml => ctx.marc_xml};
+ PROCESS "opac/parts/misc_util.tt2";
+ PROCESS get_marc_attrs args=attrs;
+ stop_parms = ['expand','cnoffset','copy_offset','copy_limit'];
+ ctx.record_attrs = attrs; # capture for JS
+ ctx.metalinks.push('<meta property="og:type" content="http://schema.org/' _ args.schema.itemtype _ '" />');
+
+ vendor_search_uri = '/ebook_api/rbdigital/results';
+ vendor_record_uri = '/ebook_api/rbdigital/record/';
+%]
+<div id='canvas_main' class='canvas' vocab="http://schema.org/" typeof='[% args.schema.itemtype %] Product' resource="#schemarecord">
+[%- FOREACH link IN args.links.sameAs; %]
+ <link property="sameAs" href="[% link %]">
+[%- END; %]
+[%- FOREACH link IN args.links.exampleOfWork; %]
+ <link property="exampleOfWork" href="[% link %]">
+[%- END; %]
+ [%- INCLUDE "opac/ebook_api/rbdigital/parts/record/navigation.tt2" %]
+ [%- INCLUDE "opac/ebook_api/rbdigital/parts/record/summary.tt2" %]
+ [%- INCLUDE "opac/ebook_api/rbdigital/parts/record/navigation.tt2" %]
+</div>
+
--- /dev/null
+<div class="rdetail_header">
+ <span class="rdetail_results">
+ <a href='[% mkurl(ctx.opac_root _ vendor_search_uri); %]'><span class="nav_arrow_fix">◄</span> [% l('Search Results') %]</a>
+ </span>
+</div>
--- /dev/null
+[%
+ arrow_right = '►';
+ arrow_down = '▼';
+ recommendations = {};
+ recommendations.name = 'recommendations';
+ recommendations.label = 'Recommended Read';
+
+ join_operator = '&';
+ IF vendor_record_url.search(";") == false AND vendor_record_url.search("&") == false;
+ join_operator = '?';
+ END;
+ recommendations.link_show = vendor_record_url.search('expand=recommendations') ?
+ vendor_record_url : vendor_record_url _ join_operator _ 'expand=recommendations#recommendations';
+
+ recommendations.link_hide = mkurl('', {}, ['expand','recommendations']);
+%]
+
+<div id="rdetail_extras_div" style="width: 100%;">
+ <div class="rdetail_extras">
+ <div class="rdetail_extras_hr"></div>
+ <div class="rdetail_extras_link">
+ [% IF CGI.param('expand') == 'recommendations'; %]
+ <a href="[% recommendations.link_hide %]" name='[% recommendations.name %]' class='rdetail_extras_lbl'>[% arrow_down _ ' ' _ recommendations.label %]</a>
+ [% ELSE; %]
+ <a href="[% recommendations.link_show %]" name='[% recommendations.name %]' class='rdetail_extras_lbl'>[% arrow_right _ ' ' _ recommendations.label %]</a>
+ [% END; %]
+
+ </div>
+ </div>
+ [% IF CGI.param('expand') == 'recommendations' %]
+ <div class='rdetail_extras_div'>
+ <div class='rdetail_extras_div'>
+ <div class='rdetail-extras-recommendations'>
+ <span>
+ [% book_recommendation = {};
+ book_recommendation.image_url = "";
+ book_display_count = 0;
+ FOREACH item IN ebook_record_item.recommended_books.items;
+ IF book_display_count == 10;
+ LAST;
+ END;
+ book_display_count = book_display_count+1;
+ book_recommendation.url = mkurl(ctx.opac_root _ vendor_record_uri _ item.item.isbn,{},[]);
+ FOREACH image IN item.item.images;
+ IF image.name == 'large';
+ book_recommendation.image_url = image.url;
+ %]
+ <a href="[% book_recommendation.url %]"><img src = "[% book_recommendation.image_url %]" style="margin:.3em;margin-top:1em"></a>
+ [%
+ LAST;
+ END;
+
+ END;
+ END;
+ %]
+
+ </span>
+ </div>
+ </div>
+ </div>
+ [% END; %]
+</div>
\ No newline at end of file
--- /dev/null
+[% PROCESS "opac/parts/misc_util.tt2";
+ USE ResolverResolver;
+ USE Dumper;
+
+ PROCESS "opac/ebook_api/rbdigital/parts/file_formats.tt2";
+ ctx.page_title = ctx.title_info.item.bookTitle.text | html;
+
+ #Set the ebook_record_item before processing the item_parser
+ ebook_record_item = ctx.title_info.item;
+ ebook_record_item.summary = ctx.title_summary.summary;
+ ebook_record_item.recommended_books = ctx.recommended_books;
+
+ PROCESS "opac/ebook_api/rbdigital/parts/item_parser.tt2";
+%]
+
+<!-- ****************** rdetail_summary.xml ***************************** -->
+<!-- Ebook Spinner -->
+<span id="ebook_spinner" class="hidden"> <img style="width:20px;height:auto" src="[% ctx.media_prefix %]/opac/images/progressbar_green.gif[% ctx.cache_key %]" alt="[% l("Processing...") %]"/></span>
+<abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ebook_item.isbn %]'></abbr>
+<hr />
+
+[%-# This holds the record summary information %]
+<div id="rdetail_summary_header">
+ <div id='rdetail_title_div'>
+ <h1 id='rdetail_title' property="name">[% ebook_item.title_extended | html %]</h1>
+ <div class='rdetail_authors_div'>
+ [% ebook_item.authors_detail %]
+ </div>
+ </div>
+ <div id="rdetail_image_div">
+ <a href='[% ebook_item.image_xl_url %]'><img
+ alt="[% l('Image of item') %]" id='rdetail_image'
+ src='[% ebook_item.image_xl_url %]' />
+ </a>
+ <br />
+ </div>
+ <div id="format_actions">
+ [% FOR format IN all_formats %]
+ [% IF format.label == ebook_item.format_label; %]
+ <img title="[% format.label | html %]"
+ alt="[% format.label | html %]"
+ src="[% format.icon %]" />
+ [% format.label | html %]
+ [% END; %]
+ [% END %]
+
+ <div id="rdetail_actions_div">
+ [% IF ebook_item.isTitleAvailable == true; %]
+ <div class="rdetail_aux_utils ebook_action">
+ <a id="[%- ebook_item.isbn -%]_ebook_checkout" href=""
+ class="no-dec checkout ebook_checkout_link" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
+ [% img_alt(l('Check Out [_1]', ebook_item.title)) %]/>
+ <span>[% l('Check Out E-Item') %]</span></a>
+ </div>
+ [% END; %]
+ <div id="[% ebook_item.isbn %]_ebook_place_hold" class="rdetail_aux_utils ebook_action">
+ <a href="#"
+ class="no-dec ebook_place_hold" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
+ [% img_alt(l('Place Hold on [_1]', ebook_item.title)) %]/>
+ <span>[% l('Place Hold on E-Item') %]</span></a>
+ </div>
+
+ <div class="rdetail_aux_utils">
+ <!-- Display Wishlist option -->
+ [% IF !ctx.is_staff %]
+ <a id="[% ebook_item.isbn %]_ebook_wishlist_add" href="#" class="no-dec ebook_wishlist_link_add" rel="nofollow" data-isbn="[% ebook_item.isbn %]">
+ <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="" /> [% l("Add to Wishlist") %]</a>
+
+ <a id="[% ebook_item.isbn %]_ebook_wishlist_remove" href="#" class="no-dec ebook_wishlist_link_remove hidden" rel="nofollow" vocab="" data-isbn="[% ebook_item.isbn %]">
+ <img src="[% ctx.media_prefix %]/images/minus_sign.png[% ctx.cache_key %]" alt="" /> [% l("Remove from Wishlist") %]</a>
+ [% END %]
+ </div>
+ <div class="rdetail_aux_utils hidden">
+ <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('Print / Email Actions Image') %]" />
+ <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
+ <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
+ </div>
+ [%- IF ctx.refworks.enabled == 'true' %]
+ [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
+ [%- END %]
+ [% IF !ctx.is_staff %]
+ <div class="rdetail_aux_utils share_record">
+ <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
+ <img src="[% ctx.media_prefix %]/images/link.png[% ctx.cache_key %]" alt="[% l('Permalink') %]" />
+ [% l('Permalink') %]
+ </a>
+ </div>
+ [% END %]
+ [%- IF ctx.is_staff %]
+ <div class="rdetail_aux_utils clear_addedcontent_cache">
+ <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
+ [% l('Clear AddedContent Cache') %]
+ </a>
+ </div>
+ [%- END %]
+ </div>
+ </div>
+</div>
+
+[%
+IF ebook_api.enabled == 'true';
+ INCLUDE "opac/parts/ebook_api/avail.tt2";
+END;
+%]
+
+<h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
+<ul>
+ [%- IF ebook_item.publisher; %]
+ <li class='rdetail_isbns'>
+ <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
+ <span class='rdetail_value' property='isbn'>[% ebook_item.isbn | html %]</span>
+ </li>
+ [%- END %]
+
+ [%- IF ebook_item.issns; %]
+ <li class='rdetail_issns'>
+ <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
+ <span class='rdetail_value'>[% issn | html %]</span>
+ </li>
+ [%- END %]
+
+ [%- IF ebook_item.publisher; %]
+ <li id='rdetail_publisher'>
+ <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
+ <span class='rdetail_value' property="publisher" typeof="Organization">
+ <span property="name">[% ebook_item.publisher | html; %],</span>
+ </span>
+ [%- IF ebook_item.pubdate; %]
+ <span property="datePublished"> [% ebook_item.pubdate | html; %]</span>
+ [%- END; %]
+
+ </li>
+ [%- END %]
+
+ [%- IF ebook_item.language %]
+ <li id='rdetail_language'>
+ <strong class='rdetail_label'>[% l("Language:") %]</strong>
+ <span class='rdetail_value' property="language" typeof="Organization">
+ <span property="name">[% ebook_item.language | html; %]</span>
+ </span>
+ </li>
+ [% END %]
+
+ [%- IF ebook_item.copyright %]
+ <li id='rdetail_copyright'>
+ <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
+ <span class='rdetail_value'>[% ebook_item.copyright | html_entity; %]
+ [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
+ [%- IF ebook_item.copyrightYear -%]
+ <meta property='copyrightYear' content='[% ebook_item.copyrightYear | html; %]'>
+ [%- END -%]
+ </span>
+ </li>
+ [%- END %]
+
+ [%- IF ebook_item.genres; %]
+ <li id='rdetail_genres'>
+ <strong class='rdetail_label'>[% l("Genres:") %]</strong>
+ <span class='rdetail_value'>[% ebook_item.genres %]</span>
+ </li>
+ [%- END %]
+
+ [%- IF ebook_item.series && !ebook_item.series.search("Default Blank"); %]
+ <li id='rdetail_series'>
+ <strong class='rdetail_label'>[% l("Series:") %]</strong>
+ <span class='rdetail_value'>[% ebook_item.series %]</span>
+ </li>
+ [%- END %]
+</ul>
+
+[%- IF (ebook_item.shortDescription.size > 0) %]
+<h2 class='rdetail_contents'>[% l('Content descriptions') %]</h2>
+<table class='rdetail_content'>
+ <tbody>
+ <tr>
+ <td class="rdetail_content_type">Short Description: </td>
+ <td class="rdetail_content_value" property="keywords">[%- ebook_item.shortDescription %]<br></td>
+ </tr>
+ </tbody>
+</table>
+[%- END %]
+[% INCLUDE "opac/ebook_api/rbdigital/parts/record/summaryplus.tt2" vendor_search_uri = vendor_search_uri %]
+[% INCLUDE "opac/ebook_api/rbdigital/parts/record/recommendations.tt2" vendor_search_uri = vendor_search_uri %]
--- /dev/null
+[%
+ arrow_right = '►';
+ arrow_down = '▼';
+ summary = {};
+ summary.name = 'summaryplus';
+ summary.label = 'Summaries & More';
+
+ join_operator = '&';
+ IF vendor_record_url.search(";") == false AND vendor_record_url.search("&") == false;
+ join_operator = '?';
+ END;
+ summary.link_show = vendor_record_url.search('expand=summaryplus') ? vendor_record_url : vendor_record_url _ join_operator _ 'expand=summaryplus#summaryplus';
+
+ summary.link_hide = mkurl('', {}, ['expand','summaryplus']);
+%]
+
+<div id="rdetail_extras_div" style="width: 100%;">
+ <div class="rdetail_extras">
+ <div class="rdetail_extras_hr"></div>
+ <div class="rdetail_extras_link">
+ [% IF CGI.param('expand') == 'summaryplus'; %]
+ <a href="[% summary.link_hide %]" name='[% summary.name %]' class='rdetail_extras_lbl'>[% arrow_down _ ' ' _ summary.label %]</a>
+ [% ELSE; %]
+ <a href="[% summary.link_show %]" name='[% summary.name %]' class='rdetail_extras_lbl'>[% arrow_right _ ' ' _ summary.label %]</a>
+ [% END; %]
+
+ </div>
+ </div>
+ [% IF CGI.param('expand') == 'summaryplus' %]
+ <div class='rdetail_extras_div'>
+ <div class='rdetail_extras_div'>
+ <div class='rdetail-extras-summary'>
+ <strong>[% l('Summary: ') %]</strong>
+ <span>[% ebook_record_item.summary | html %] </span>
+ </div>
+ </div>
+ </div>
+ [% END; %]
+</div>
\ No newline at end of file
--- /dev/null
+<div class="facet_box_wrapper">
+[%
+
+long_facets = CGI.param('long_facet') || [];
+selected_facets = CGI.param('facet') || [];
+
+# we'll clobber the facet. "namespace" later
+# Provide a default value if unset in config.tt2
+DEFAULT_DISPLAY_COUNT = facet.default_display_count || 5;
+display_count_by_cmf = {};
+
+# Loop over each filter
+FOREACH facet IN ctx.search_facets;
+ label = '';
+ key = facet.key;
+ fclass = ctx.search_facets.$key.0.tokenLabel;
+ fname = ctx.search_facets.$key.0.tokenValue;
+
+ IF key == 'audience';
+ label = 'Audience';
+ ELSIF key == 'availability';
+ label = 'Availabilty';
+ ELSIF key == 'digitalRights';
+ label = 'Digital Rights';
+ ELSIF key == 'fiction';
+ label = 'Fiction';
+ ELSIF key == 'genre';
+ label = 'Genre';
+ ELSIF key == 'language';
+ label = 'Language';
+ ELSE;
+ label = key;
+ END;
+ fid = facet.tokenValue;
+
+ long_key = key;
+%]
+ <div class="facet_box_temp">
+ <div class="header">
+ [% IF long_facets.grep(long_key).0;
+ new_long = [];
+ FOR fct IN long_facets;
+ IF fct != long_key;
+ new_long.push(fct);
+ END;
+ END;
+ expand_url = mkurl('', {long_facet => new_long});
+ IF new_long.size == 0;
+ expand_url = mkurl('', {}, ['long_facet']);
+ END;
+ %]
+ <a class="button" href="[% expand_url %]"
+ title="[% l('Show Fewer [_1] Entries', facet.cmf.label) %]" rel="nofollow" vocab="">
+ [% l("Fewer") %]
+ </a>
+ [% ELSIF ctx.search_facets.$key.size > DEFAULT_DISPLAY_COUNT %]
+ <a class="button"
+ title="[% l('Show More [_1] Entries', facet.cmf.label) %]"
+ href="[% mkurl('', {long_facet => long_facets.merge([long_key])}) %]" rel="nofollow" vocab="">
+ [% l("More") %]
+ </a>
+ [% END %]
+ <h4 class="title">[% label %]</h4>
+ </div>
+ <div class="box_wrapper">
+ <div class="box">
+ [% FOR facet_data IN ctx.search_facets.$key;
+ facet_data = facet_data.0;
+ display_value = '';
+ param_string = facet_data.tokenLabel _ '_' _ facet_data.tokenValue;
+
+ new_facets = [];
+ filtered_selected_facets = [];
+ this_selected = 0;
+
+ FOR selected IN selected_facets;
+ IF selected == param_string;
+ this_selected = 1;
+ ELSE;
+ new_facets.push(selected);
+ IF !selected.search(facet_data.tokenLabel);
+ filtered_selected_facets.push(selected);
+ END;
+ END;
+ END;
+
+ IF facet_data.displayLabel == 'True';
+ display_value = 'Yes';
+ ELSIF facet_data.displayLabel == 'False';
+ display_value = 'No';
+ ELSE;
+ display_value = facet_data.displayLabel;
+ END;
+ %]
+
+ [% IF this_selected;
+ # This facet is already selected by the user.
+ # Link removes the facet from the set of selected facets.
+ %]
+ <div class="facet_template facet_template_selected">
+ <div class="facet">
+ [% IF new_facets.size == 0 %]
+ <a
+ title="[% l('Show all results, not just those matching this term') %]"
+ href="[% mkurl('', {}, ['facet']) %]" rel="nofollow" vocab="">[% display_value %]</a>
+ [% ELSE %]
+ <a
+ title="[% l('Expand to also show results not matching this term') %]"
+ href="[% mkurl('', {facet => new_facets}) %]" rel="nofollow" vocab="">[% display_value %]</a>
+ [% END %]
+ </div>
+ <div class="count">([% facet_data.count; IF facet_data.count == (ctx.superpage + 1) * ctx.superpage_size; '+'; END %])</div>
+ </div>
+ [%
+ ELSE;
+ # This facet is not currently selected. If selected,
+ # append this facet to the list of currently active facets.
+
+ %]
+ <div class="facet_template">
+ <div class="facet">
+ <a
+ title="[% l('Limit to results matching this term') %]"
+ href='[% mkurl('', {facet => filtered_selected_facets.merge([param_string])}, ['page']) %]' rel="nofollow" vocab="">
+ [% display_value %]
+ </a>
+ </div>
+ <div class="count">([% facet_data.count %])</div>
+ </div>
+ [% END; %]
+ [% IF loop.count == DEFAULT_DISPLAY_COUNT;
+ LAST;
+ END; %]
+
+ [% END; %]
+ </div>
+ </div> <!-- box_wrapper -->
+ </div> <!-- facet_box_temp -->
+[% END; %]
+</div> <!-- facet_box_wrapper -->
+
--- /dev/null
+<div>
+ <div id="zero_search_hits">
+ <div class="facet_sidebar_hidden" id="facet_sidebar">
+ <h3 class="sr-only">[% l('Search Results filters') %]</h3>
+ </div>
+ <div class="zero_search_hits_saved">
+ [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
+ </div>
+ <div class="zero_search_hits_main">
+ <p>[% qhtml = CGI.param('query') | html;
+ IF ctx.bookbag;
+ wbbag = ctx.bookbag.name | html;
+ fmt_bookbag = '<span class="lowhits-bookbag-name">' _ wbbag _ '</span>';
+ IF is_advanced OR is_special;
+ l('Sorry, no entries were found for your search within [_1].', fmt_bookbag);
+ ELSE;
+ l('Sorry, no entries were found for [_1] within [_2].', '<q>' _ qhtml _ '</q>', fmt_bookbag);
+ END;
+ ELSE;
+ IF is_advanced OR is_special;
+ l('Sorry, no entries were found for your search.');
+ ELSE;
+ IF !qhtml;
+ l('Please enter a search term in the Search box.');
+ ELSE;
+ l('Sorry, no entries were found for [_1].', '<q>' _ qhtml _ '</q>');
+ END;
+ END;
+ END %]
+ </p>
+ </div>
+ <div id="lowhits_help">
+ [% INCLUDE "opac/parts/result/lowhits_purchase.tt2" %]
+ <p>
+ <strong>[% l('Keyword Search Tips') %]</strong><br />
+ [% i18n_advsearch = l('Advanced Search');
+ l('Try changing to [_1].', '<strong>' _ i18n_advsearch _ '</strong>') %]
+ </p>
+ <p>
+ <strong>[% l('Adjacency') %]</strong><br />
+ [% l('Multiple words are not searched together as a phrase. They will ' _
+ 'be found in various parts of the record. To search for a phrase, enclose your ' _
+ 'search terms in quotation marks.') %]<br />
+ [% i18n_searchphrase = l('garcia marquez');
+ l('(example: [_1])', '<strong>"' _ i18n_searchphrase _ '"</strong>') %]
+ </p>
+ <p>
+ <strong>[% l('Truncation') %]</strong><br />
+ [% l('Words may be right-hand truncated using an asterisk. Use a single asterisk * ' _
+ 'to truncate any number of characters.') %]<br />
+ [% i18n_searchtrunc = l('environment* agency');
+ l('(example: [_1])', '<strong>' _ i18n_searchtrunc _ '</strong>') %]
+ </p>
+ <p>
+ <strong>[% l('Anchored Searching') %]</strong><br />
+ [% l('You may use ^ and $ to indicate "phrase begins with" and ' _
+ '"phrase ends with," respectively, within a search phrase ' _
+ 'enclosed in quotation marks.') %]<br />
+ [% i18n_searchbegins = l('harry');
+ i18n_searchends = l('stone');
+ l('(examples: [_1] for phrases that begin with the term [_2]. ' _
+ '[_3] for phrases that end in [_4].)',
+ '<strong>"^' _ i18n_searchbegins _ '"</strong>', '<em>' _ i18n_searchbegins _ '</em>',
+ '<strong>"' _ i18n_searchends _ '$"</strong>', '<em>' _ i18n_searchends _ '</em>') %]
+ </p>
+ </div>
+ </div>
+</div>
--- /dev/null
+[% PROCESS "opac/parts/misc_util.tt2";
+ PROCESS "opac/ebook_api/rbdigital/parts/file_formats.tt2";
+ USE ResolverResolver;
+
+ ctx.result_start = 1 + ctx.page_size * page;
+ ctx.result_stop = ctx.page_size * (page + 1);
+ IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END;
+
+ result_count = ctx.result_start;
+ USE Dumper;
+%]
+[% PROCESS "opac/parts/result/paginate.tt2" %]
+[% ctx.results_count_header = PROCESS results_count_header;
+ ctx.results_count_header %]
+[% IF ctx.bookbag %]
+<div id="result-bookbag-heading">
+ <div class="result-bookbag-name">[% ctx.bookbag.name | html %]</div>
+ <div class="result-bookbag-description">[% ctx.bookbag.description | html %]</div>
+</div>
+[% END %]
+
+<div id="result_table_div">
+ <div class="facet_sidebar_hidden" id="facet_sidebar">
+ [%- IF ctx.is_staff %]
+ <h3 class="sr-only">[% l('Saved Searches') %]</h3>
+ [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
+ [%- END %]
+ <h3 class="sr-only">[% l('Search Results facets') %]</h3>
+ [% INCLUDE 'opac/ebook_api/rbdigital/parts/result/facets.tt2' %]
+ <h3 class="sr-only">[% l('Search Results List') %]</h3>
+ </div>
+ <div id="result_block" class="result_block_visible">
+ <table id="result_table_table" title="[% l('Search Results') %]"
+ class="table_no_border_space table_no_cell_pad">
+ <thead class="sr-only">
+ <tr>
+ <th>[% l('Search result number') %]</th>
+ <th>[% l('Book jacket cover art') %]</th>
+ <th>[% l('Item details and Actions') %]</th>
+ </tr>
+ </thead>
+ <tbody id="result_table">
+ [%
+ FOR rec IN ctx.records;
+ ebook_record_item = rec.item;
+ PROCESS "opac/ebook_api/rbdigital/parts/item_parser.tt2";
+
+ -%]
+ <tr class="result_table_row">
+ <td class="results_row_count" name="results_row_count">
+ [% result_count; result_count = result_count + 1 %].</td>
+ <td class='result_table_pic_header'>
+ <a href="[% vendor_record_url %]"><img alt="[% l('Book cover') %]"
+ name='item_jacket' class='result_table_pic' width="55"
+ src="[% ebook_item.image_large %]" /></a><br />
+ </td>
+ <td class='result_table_title_cell' name='result_table_title_cell'>
+ <div class="result_metadata">
+ <abbr class="unapi-id"
+ title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.bre_id %]'>
+ </abbr>
+
+ <a class='record_title search_link' name='record_[% rec.item.id %]'
+ href="[% vendor_record_url %]"
+ [% html_text_attr('title', l('Display record details for "[_1]"', ebook_item.title)) %]>
+ [% ebook_item.title | html %]
+ </a>
+ [% IF rec.mr_constituent_count.defined && rec.mr_constituent_count > 1 %]
+ <span title="[% l('This group contains [_1] records', rec.mr_constituent_count) %]">
+ ([% rec.mr_constituent_count %])
+ </span>
+ [% END %]
+
+[%-
+FOR entry IN ebook_item.graphic_titles;
+ FOR alt IN entry.graphic;
+ diratt = "";
+ IF alt.dir;
+ diratt = ' dir="' _ alt.dir _ '"';
+ END;
+-%]
+<div class="graphic880"[% diratt %]>
+ [% alt.value | html %]
+</div>
+[%-
+ END;
+END;
+-%]
+
+ <div>
+ <a title="[% l("Perform an Author Search") %]"
+ class="record_author"
+ href="[%-
+ authorquery = ebook_item.authors | replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
+ mkurl(ctx.opac_root _ vendor_search_uri, {qtype => 'author', query => authorquery},
+ general_search_parms.merge(expert_search_parms, browse_search_parms, facet_search_parms))
+ -%]" rel="nofollow" vocab="">[% ebook_item.authors | html %]</a>
+[%-
+FOR entry IN ebook_item.graphic_authors;
+ FOR alt IN entry.graphic;
+ diratt = "";
+ IF alt.dir;
+ diratt = ' dir="' _ alt.dir _ '"';
+ END;
+-%]
+<div class="graphic880"[% diratt %]>
+ [% alt.value | html %]
+</div>
+[%-
+ END;
+END;
+-%]
+
+ </div>
+ [% IF ebook_item.narrators != ''; %]
+ <div class='result_narrators_cell'>
+ Narrators: <a title="[% l("Perform an Narrator Search") %]"
+ class="record_author"
+ href="[%-
+ authorquery = ebook_item.narrators | replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
+ mkurl(ctx.opac_root _ vendor_search_uri, {qtype => 'narrator', query => authorquery},
+ general_search_parms.merge(expert_search_parms, browse_search_parms, facet_search_parms))
+ -%]" rel="nofollow" vocab="">[% ebook_item.narrators | html %]
+ </a>
+ </div>
+ [% END; %]
+ <div class='result_table_title_cell'>
+ [%- IF ebook_item.format_label; %]
+ [% FOR format IN all_formats %]
+ [% IF format.label == ebook_item.format_label; %]
+ <img title="[% format.label | html %]"
+ alt="[% format.label | html %]"
+ src="[% format.icon %]" />
+ [% format.label | html %]
+ [% END; %]
+ [% END %]
+ [%- END %]
+ [%- UNLESS show_detail_view;
+ IF ebook_item.pubdate;
+ pubdate_clean = ebook_item.pubdate | html;
+ l(" ([_1])", pubdate_clean);
+ ELSIF ebook_item.copyright;
+ copyright_clean = ebook_item.copyright | html;
+ l(" ([_1])", copyright_clean);
+ END;
+ END
+ -%]
+ </div>
+ [% IF rec.popularity > 0.0 %]
+ <div>
+ <span><strong>[% l('Popularity:') %]</strong> [% rec.popularity %] / 5.0</span>
+ </div>
+ [% END %]
+ <table
+ role="presentation"
+ title="[% l('Record Holdings Summary') %]"
+ class="table_no_border_space table_no_cell_pad table_no_border results_info_table">
+ [% UNLESS rec.mmr_id %]
+ [% IF args.holdings.size > 0 %]
+ <tr name='bib_cn_list' class='result_table_title_cell'>
+ <td valign='top'>
+ <strong>[% l('Call number:') %]</strong>
+ </td>
+ <td>[% args.holdings.0.label | html %]</td>
+ </tr>
+ [% END %]
+ [% END %]
+
+ [%- IF show_detail_view -%]
+ <!-- These fields are visible when viewing the results page in 'detailed' mode -->
+ [% UNLESS rec.mmr_id %]
+ <!-- Do not show publication-specific information on a metarecord search results page -->
+ [% IF ebook_item.publisher %]
+ <tr name="results_pub_tr">
+ <td valign="top">
+ <strong>[% l('Publisher:') %]</strong>
+ </td>
+ <td>[% ebook_item.pubplace | html; %] [% ebook_item.publisher | html; %] [% ebook_item.pubdate | html; %]
+[%-
+FOR entry IN ebook_item.graphic_pubinfos;
+ FOR alt IN entry.graphic;
+ diratt = "";
+ IF alt.dir;
+ diratt = ' dir="' _ alt.dir _ '"';
+ END;
+-%]
+<div class="graphic880"[% diratt %]>
+ [% alt.value | html %]
+</div>
+[%-
+ END;
+END;
+-%]
+</td>
+ </tr>
+ [% ELSIF ebook_item.producer %]
+ <tr name="results_pub_tr">
+ <td valign="top">
+ <strong>[% l('Producer:') %]</strong>
+ </td>
+ <td>[% ebook_item.prodplace | html; %] [% ebook_item.producer | html; %] [% ebook_item.proddate | html; %]</td>
+ </tr>
+ [% ELSIF ebook_item.distributor %]
+ <tr name="results_pub_tr">
+ <td valign="top">
+ <strong>[% l('Distributor:') %]</strong>
+ </td>
+ <td>[% ebook_item.distplace | html; %] [% ebook_item.distributor | html; %] [% ebook_item.distdate | html; %]</td>
+ </tr>
+ [% ELSIF ebook_item.manufacturer %]
+ <tr name="results_pub_tr">
+ <td valign="top">
+ <strong>[% l('Manufacturer:') %]</strong>
+ </td>
+ <td>[% ebook_item.manplace | html; %] [% ebook_item.manufacturer | html; %] [% ebook_item.mandate | html; %]</td>
+ </tr>
+ [% END %]
+ [% IF ebook_item.isbns.size > 0 %]
+ <tr name="results_isbn_tr">
+ <td valign="top">
+ <strong>[% l('ISBN:') %]</strong>
+ </td>
+ <td>[% ebook_item.isbns.0 | html %]</td>
+ </tr>
+ [% END %]
+ [%- IF ebook_item.issns.size > 0 %]
+ <tr name="results_issn_tr">
+ <td valign="top">
+ <strong>[% l('ISSN:') %]</strong>
+ </td>
+ <td>[% ebook_item.issns.0 | html %]</td>
+ </tr>
+ [%- END %]
+ [%- IF openurl.enabled == 'true';
+ FOREACH issn IN args.issns;
+ NEXT IF issn == '';
+ res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl);
+ FOREACH res IN res_urls;
+ %]
+ <tr name="results_issn_tr">
+ <td valign="top">
+ <strong><a href="[% res.target_url %]">
+ [% res.public_name | html %]</a></strong>
+ </td>
+ <td>[% res.target_coverage | html %]
+ [%- IF res.target_embargo != '';
+ ' - ';
+ res.target_embargo | html;
+ END;
+ -%]
+ </td>
+ </tr>
+ [% END %]
+ [% END %]
+ [% END %]
+
+ [% IF ebook_item.edition %]
+ <tr name="results_edition_tr">
+ <td valign="top">
+ <strong>[% l('Edition:') %]</strong>
+ </td>
+ <td>[% ebook_item.edition | html %]
+[%-
+FOR entry IN ebook_item.graphic_editions;
+ FOR alt IN entry.graphic;
+ diratt = "";
+ IF alt.dir;
+ diratt = ' dir="' _ alt.dir _ '"';
+ END;
+-%]
+<div class="graphic880"[% diratt %]>
+ [% alt.value | html %]
+</div>
+[%-
+ END;
+END;
+-%]
+</td>
+ </tr>
+ [% END %]
+ [% IF ebook_item.phys_desc %]
+ <tr name="results_phys_desc_tr">
+ <td nowrap="nowrap" valign="top">
+ <strong>[% l('Phys. Desc.:') %]</strong>
+ </td>
+ <td>
+ [% args.phys_desc | html %]
+ </td>
+ </tr>
+ [% END %]
+ [% FOR uri IN args.uris %]
+ <tr name='bib_uri_list' class='result_table_title_cell'>
+ <td valign='top'>
+ <strong>[% l('Electronic resource') %]</strong>
+ </td>
+ <td><a href="[% uri.href %]" class="uri_link">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
+ </tr>
+ [% END %]
+ [% END %]
+ [%- IF args.holdings.size > 0;
+ FOREACH copy IN args.holdings;
+ IF copy.part_label != '';
+ has_parts = 'true';
+ LAST;
+ END;
+ END;
+ %]
+ <tr name='bib_cn_list' class='result_table_title_cell'>
+ <td colspan='2'>
+ <table title="[% l('Record Holdings Details') %]"
+ class='result_holdings_table'>
+ <thead><tr>
+ <th>[% l('Library') %]</th>
+ <th>[% l('Shelving location') %]</th>
+ <th>[% l('Call number') %]</th>
+ [%- IF has_parts == 'true'; %]
+ <th>[% l('Part') %]</th>
+ [%- END %]
+ <th>[% l('Status') %]</th>
+ </tr></thead>
+ <tbody>
+ [% FOR copy IN args.holdings %]
+ <tr>
+ <td>
+[%- copy_info = copy;
+ INCLUDE "opac/parts/library_name_link.tt2"; %]
+ </td>
+ <td>[% copy.location | html %]</td>
+ <td>[% copy.label | html %]</td>
+ [%- IF has_parts == 'true'; %]
+ <td>[% copy.part_label %]</td>
+ [%- END %]
+ <td>[% copy.status | html %]</td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ [%- has_parts = 'false';
+ END;
+ %]
+ [% END %] <!-- END detail_record_view -->
+ </table>
+ [%
+ IF ebook_api.enabled == 'true';
+ INCLUDE "opac/parts/ebook_api/avail.tt2";
+ END;
+ %]
+ [% PROCESS "opac/parts/result/copy_counts.tt2" %]
+ [% IF rec.user_circulated %]
+ <div class="result_item_circulated">
+ <img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]" alt="[% l('Checked Out Before') %]"/>
+ <span>[% l('I have checked this item out before') %]</span>
+ </div>
+ [% END %]
+ [% IF ctx.bookbag;
+ rec_id = rec.id;
+ FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
+ <div class="result-bookbag-item-note">
+ [% note.note | html %]
+ </div>
+ [% END %]
+ [% END %]
+ </div>
+ <div class="result_table_utils_cont">
+ <div class="result_table_utils">
+ [% IF ebook_item.isTitleAvailable == true; %]
+ <div id="[%- rec.item.isbn -%]_ebook_checkout" class="results_aux_utils result_util ebook_action">
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
+ {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'},
+ ['query','tag','subfield','term','_special','sort','page']) %]"
+ [% html_text_attr('title', l('Check Out [_1]', ebook_item.title)) %]
+ class="no-dec" rel="nofollow" vocab=""><img
+ src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
+ alt=""/><span class="result_place_hold">[% l('Check Out E-Item') %]</span></a>
+ </div>
+ [% END; %]
+ [% IF !ctx.is_meta %]
+ <div class="results_aux_utils result_util">
+ [% IF !ctx.is_staff;
+
+ %]
+ <a id="[% ebook_item.isbn %]_ebook_wishlist_add" href="#" class="no-dec ebook_wishlist_link_add"
+ [% html_text_attr('title', title_label) %] rel="nofollow" data-isbn="[% ebook_item.isbn %]">
+ <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="" /> [% l("Add to Wishlist") %]</a>
+
+ <a id="[% ebook_item.isbn %]_ebook_wishlist_remove" href="#" class="no-dec ebook_wishlist_link_remove hidden" rel="nofollow" vocab="" data-isbn="[% ebook_item.isbn %]">
+ <img src="[% ctx.media_prefix %]/images/minus_sign.png[% ctx.cache_key %]" alt="" /> [% l("Remove from Wishlist") %]</a>
+ [% END %]
+ </div>
+ [% END %]
+
+ [% IF ENV.OILS_CONTENT_CAFE_USER %]
+ [% ident = ebook_item.isbn_clean || ebook_item.upc %]
+ <div class="results_aux_utils result_util">
+ <a target='_blank'
+ [% html_text_attr('title', l('Reviews and More for [_1]', ebook_item.title)) %]
+ href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%-
+ ENV.OILS_CONTENT_CAFE_USER %]&Password=[%-
+ ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" rel="nofollow" vocab="">
+ <img src='[% ctx.media_prefix %]/images/starz.png[% ctx.cache_key %]' alt="[% l('Ratings Icon') %]"/>
+ <span class="results_reviews">[% l('Reviews & More') %]</span>
+ </a>
+ </div>
+ [% END %]
+ </div>
+ </div>
+
+ </td>
+
+ </tr>
+ [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
+ <tr>
+ <td/>
+ <td align='center'> <!-- Chilifresh reviews link -->
+ <span class="chili_review" id="isbn_[% ebook_item.isbn_clean | html %]"> </span>
+ </td>
+ </tr>
+ <tr>
+ <td/>
+ <td colspan='5'> <!-- Chilifresh reviews panel -->
+ <div id="chili_review_[% ebook_item.isbn_clean | html %]" style="display: none;" align="center"></div>
+ </td>
+ </tr>
+ [%- END %]
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+</div>
+<div class="result_footer_nav1">
+ [% ctx.results_count_header %]
+</div>
+<script>
+resultBlock = document.getElementById('result_block');
+resultButton = document.getElementById('return_to_hits');
+facetSidebar = document.getElementById('facet_sidebar');
+facetButton = document.getElementById('refine_hits');
+function getFacety() {
+ resultBlock.setAttribute('class', 'result_block_hidden');
+ resultButton.setAttribute('class', 'results_header_btns result_block_visible');
+ facetSidebar.setAttribute('class', 'facet_sidebar_visible');
+ facetButton.setAttribute('class', 'result_block_hidden');
+ window.location.hash = 'return_to_hits';
+}
+function getResulty() {
+ resultBlock.setAttribute('class', 'result_block_visible');
+ resultButton.setAttribute('class', 'result_block_hidden');
+ facetSidebar.setAttribute('class', 'facet_sidebar_hidden');
+ facetButton.setAttribute('class', 'results_header_btns result_block_visible');
+ window.location.hash = 'refine_hits';
+}
+</script>
--- /dev/null
+<h3 class="sr-only">[% l('Catalog Search') %]</h3>
+[% PROCESS "opac/parts/org_selector.tt2";
+
+ebook_uri = ctx.opac_root _ '/ebook_api/rbdigital';
+# We need to ignore some filters in our count
+
+fignore = ['location_groups','site','core_limit','limit','badge_orgs','badges','estimation_strategy','depth'];
+fcount = 0;
+FOR f IN ctx.query_struct.filters;
+ IF fignore.grep('^' _ f.name _ '$').size;
+ NEXT;
+ END;
+ fcount = fcount + 1;
+END;
+
+ # don't display a box for the search_format filter,
+ # as that's got its own widget
+ ignore_filters = ['search_format'];
+
+ trimmed_filters = [];
+ FOR filter IN ctx.query_struct.filters;
+ fname = filter.name;
+ IF ignore_filters.grep('^' _ fname _ '$').size;
+ NEXT;
+ END;
+ trimmed_filters.push(filter);
+ END;
+
+ ctx.query_struct.filters = trimmed_filters;
+
+ %]
+
+<div id="search-wrapper">
+
+ <form action="[% ebook_uri %]/results" method="get">
+
+ [% IF ctx.page == 'rresult' && ctx.metarecord && search.metarecord_default %]
+ <input type="hidden" name="modifier" value="metabib"/>
+ [% END %]
+ [% IF (ctx.page == 'place_hold' || ctx.page == 'myopac' || ctx.page == 'home' || ctx.page == 'record') && search.metarecord_default %]
+ <input type="hidden" name="modifier" value="metabib"/>
+ [% END %]
+ <div id="search-box">
+ <span class="search_catalog_lbl mobile_hide">[% l('Search the Catalog') %]</span>
+ <span class="adv_search_catalog_lbl"><a href="[% mkurl(ebook_uri _ '/advanced', {}, expert_search_parms.merge(browse_search_parms, facet_search_parms)) %]"
+ id="home_adv_search_link">[% l('Advanced Search') %]</a></span>
+ </div>
+ <div class="searchbar">
+ <span class='search_box_wrapper'>
+ [%- # autosuggest breaks accessibility, as the aria-label
+ # attribute is removed when the Dijit is created. :( %]
+ <label id="search_box_label" for="search_box">[% l('Search: ') %]
+ <input type="text" id="search_box" name="query" aria-label="[%
+ l('Enter search query:');
+ %]" value="[% is_advanced ? ctx.naive_query_scrub(ctx.user_query) : CGI.param('query') | html %]"
+ [%- IF use_autosuggest.enabled == "t" %]
+ dojoType="openils.widget.AutoSuggest" type_selector="'qtype'"
+ submitter="this.textbox.form.submit();"
+ [%- IF use_autosuggest.value.search('opac_visible') %]
+ store_args='{"org_unit_getter": function() { return [% ctx.search_ou %]; }}'
+ [%- END # opac_visible -%]
+ [%- ELSE -%]
+ [% IF basic_search != "f" %] autofocus [% END %] x-webkit-speech
+ [%- END # autosuggest enabled %] />
+ </label>
+ </span>
+
+ <label id="search_itype_label" for="search_itype_selector">
+ [%-
+ l('Format: ');
+ IF search.basic_config.type == 'attr';
+ INCLUDE "opac/ebook_api/rbdigital/parts/coded_value_selector.tt2"
+ attr=search.basic_config.group none_ok=1
+ id='search_itype_selector'
+ none_label=search.basic_config.none_label;
+ ELSIF search.basic_config.type == 'filter';
+ INCLUDE "opac/parts/filter_group_selector.tt2"
+ filter_group=search.basic_config.group none_ok=1
+ id='search_itype_selector'
+ none_label=search.basic_config.none_label;
+ END;
+ -%]
+ </label>
+
+ <span>
+ <input id="detail" type="hidden" name="detail_record_view" value="[% show_detail_view %]"/>
+ <input id='search-submit-go' type="submit" value="[% l('Search') %]" class="opac-button"
+ onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden";}, 2000)'/>
+ <img id='search-submit-spinner' src='[% ctx.media_prefix %]/opac/images/progressbar_green.gif[% ctx.cache_key %]' style='height:16px;width:16px;' class='hidden' alt='[% l("Search In Progress") %]'/>
+ </span>
+ </div>
+ [% IF ctx.bookbag %]
+ <div id="search-only-bookbag-container">
+ <input type="checkbox" id="search-only-bookbag" name="bookbag"
+ value="[% ctx.bookbag.id | html %]" checked="checked" />
+ <label for="search-only-bookbag">
+ [% l('Search only within the chosen list') %]
+ </label>
+ </div>
+ [% END %]
+ [% IF is_advanced || is_special %]
+ <div>
+ <input type="hidden" name="_adv" value="1" />
+ [% IF ctx.processed_search_query OR (NOT is_advanced AND NOT is_special) %]
+ <input name='page' type='hidden' value="0" />
+ [% END %]
+ [% IF is_advanced;
+ FOR p IN CGI.params.keys;
+ NEXT UNLESS p.match('^fi:');
+ NEXT IF p.match('^fi:search_format');
+ FOR pv IN CGI.params.$p;
+ %]<input type="hidden" name="[% p | html %]" value="[% pv | html %]" />[%
+ END;
+ END;
+ END %]
+ [% IF is_special %]
+ <input type="hidden" name="_special" value="1" /> [%
+ number_of_expert_rows = CGI.param('tag').list.size;
+ index = 0;
+ WHILE index < number_of_expert_rows %]
+ <input type="hidden" name="tag" value="[% CGI.param('tag').list.$index | html %]" />
+ <input type="hidden" name="subfield" value="[% CGI.param('subfield').list.$index | html %]" />
+ <input type="hidden" name="term" value="[% CGI.param('term').list.$index | html %]" />
+ [% index = index + 1; %]
+ [% END %]
+ [% END %]
+ </div>
+ [%- END %]
+ [% UNLESS took_care_of_form %]
+ [% IF ctx.default_sort %]
+ <input type="hidden" name="sort" value="[% ctx.default_sort %]"/>
+ [% END %]
+ </form>
+ [% END %]
+ [% IF fcount > 0 %]
+ <div class="refine_search result_block_visible">
+ <span id="filter_hits">[ <a href="#" onclick="getAdvLimits();return false;">[% l('[quant,_1,filter,filters] applied', fcount) %]</a> ]</span>
+ </div>
+ [% END %]
+ [% IF ctx.query_struct.filters.size > 0 %]
+ [% stuff = INCLUDE 'opac/parts/result/adv_filter.tt2' %]
+ [% IF stuff %]
+ <h3 class="sr-only">[% l('Search Results filters') %]</h3>
+ <div id="adv_filter_results_block" class="adv_filter_results_hide">
+ <span class="adv_filter_results_block_label">[% l('Filtered by:') %]</span>
+ [% stuff %]
+ </div>
+ [% END %]
+ [% END %]
+ [% IF (is_advanced AND NOT is_special) AND CGI.param('qtype') %]
+ <div class="refine_search result_block_visible">
+ <span id="refine_search_link">[ <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[%
+ l('Refine My Original Search')
+ %]</a> ]</span>
+ </div>
+ [% END %]
+
+ <script>
+ function getAdvLimits() {
+ var AdvLimitsClass = document.getElementById('adv_filter_results_block').classList;
+ if (AdvLimitsClass.contains("adv_filter_results_hide")) {
+ AdvLimitsClass.remove("adv_filter_results_hide");
+ } else {
+ AdvLimitsClass.add("adv_filter_results_hide");
+ }
+ if (AdvLimitsClass.contains("adv_filter_results_show")) {
+ AdvLimitsClass.remove("adv_filter_results_show");
+ } else {
+ AdvLimitsClass.add("adv_filter_results_show");
+ }
+ }
+ </script>
+ <!-- Canonicalized query:
+
+ [% ctx.canonicalized_query | html %]
+
+ -->
+ <!--
+ <div id="breadcrumb">
+ <a href="[% ctx.opac_root %]/home">[% l('Catalog Home') %]</a> >
+ </div>
+ -->
+ <div class="clear-both"></div>
+</div>
--- /dev/null
+[%- PROCESS "opac/parts/header.tt2";
+ WRAPPER "opac/parts/base.tt2";
+ vendor_key="rbdigital";
+ INCLUDE "opac/parts/topnav.tt2";
+ ctx.page_title = l("Record Detail");
+ canon = ctx.proto _ '://' _ ctx.hostname _ mkurl('', {}, 1);
+ ctx.metalinks.push('<link rel="canonical" href="' _ canon _ '" />');
+ ctx.metalinks.push('<meta property="og:url" content="' _ canon _ '" />');
+ IF CGI.param("expand"); basic_search = "f"; END;
+-%]
+ <h2 class="sr-only">[% l('Record Details') %]</h2>
+ [% INCLUDE "opac/ebook_api/rbdigital/parts/searchbar.tt2" %]
+ <br class="clear-both" />
+ <div id="content-wrapper" class="content-wrapper-record-page">
+ [% IF ctx.staff_saved_search_size %]
+ <div id="results-side-bar">
+ <div id="staff-saved-search">
+ [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
+ </div>
+ </div>
+ [% END %]
+ <div id="[% ctx.staff_saved_search_size ? 'main-content-after-bar' : 'main-content' %]">
+ [% INCLUDE "opac/ebook_api/rbdigital/parts/record/body.tt2" %]
+ <div class="common-full-pad"></div>
+ </div>
+ <br class="clear-both" />
+ </div>
+[%- END %]
--- /dev/null
+<div class="container rbdigital">
+ <!-- Modal -->
+ <div id="rbdigitalRegisterModal" class="modal fade" role="dialog">
+ <div class="modal-dialog">
+
+ <!-- Modal content-->
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">×</button>
+ <h4><span class="glyphicon glyphicon-lock"></span>New RBDigital Password</h4>
+ </div>
+ <div class="modal-body">
+ <form id="frmRegisterRBDigital" role="form">
+ <div class="form-group">
+ <label for="usrname"><span class="glyphicon glyphicon-user"></span> Username</label>
+ <input type="text" class="form-control" id="userrname" placeholder="Enter email" value="[% ctx.user.usrname | html %]" disabled>
+ </div>
+ <div id="divPassword" class="form-group">
+ <label for="psw"><span class="glyphicon glyphicon-eye-open"></span> New Password</label>
+ <input type="password" class="form-control" id="password" name="password" placeholder="Enter new password"
+ data-toggle="tooltip" data-placement="right" data-html="true" autofocus required>
+ </div>
+ <div id="passwordError" class="hidden alert alert-danger">Password did not meet the requirement. Please hover over the password field to see the requirement.</div>
+ <div class="form-group">
+ <label for="psw"><span class="glyphicon glyphicon-eye-open"></span> Confirm Password</label>
+ <input type="password" class="form-control" id="confirmPassword" name="confirmPassword" placeholder="Confirm password"
+ data-toggle="tooltip" data-placement="right" title="Confirm password must match the password field." required>
+ </div>
+ <div id="confirmPasswordError" class="hidden alert alert-danger">Confirm password must match with the password you entered.</div>
+
+ <button id="btnRegister" type="submit" class="btn btn-success pull-left"><span class="glyphicon glyphicon-off"></span> Register</button>
+ <button id="btnCancel" type="submit" class="btn btn-danger btn-default pull-right" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Cancel</button>
+ </form>
+ </div>
+ <div class="modal-footer">
+ <span id="registerProgress" class="pull-left hidden">Registering ... <img src="[% ctx.media_prefix %]/opac/images/progressbar_green.gif[% ctx.cache_key %]" alt="[% l("Registering...") %]"/></span>
+ <span id="registerError" class="pull-left hidden">Registration failed! Please try it again.</span>
+ <span class="pull-right"><img src="[% ctx.media_prefix %]/images/rbdigital_logo.png[% ctx.cache_key %]" alt="[% l("RBDigital") %]"/></span>
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+ <!-- Modal for Registration Success -->
+ <div id="rbdigitalRegisterSuccess" class="modal fade" role="dialog">
+ <div class="modal-dialog">
+ <!-- Modal content-->
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal">×</button>
+ <h4><span class="glyphicon glyphicon-lock"></span>RBDigital - Registration Success</h4>
+ </div>
+ <div class="modal-body">
+ <div class="alert alert-success">
+ <strong>Success!</strong> You have been successfully registered with RBDigital.
+ </div>
+ <button id="btnCloseRegisterSuccess" type="submit" class="btn btn-danger btn-default pull-right" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Close</button>
+ </div>
+ </div>
+</div>
\ No newline at end of file
--- /dev/null
+[%- PROCESS "opac/parts/header.tt2";
+ WRAPPER "opac/parts/base.tt2";
+
+ vendor_key="rbdigital";
+ INCLUDE "opac/parts/topnav.tt2";
+
+ # Set default search URI for vendor, the exact one will be pull from database
+ vendor_search_uri = '/ebook_api/rbdigital/results';
+ IF is_advanced || is_special;
+ ctx.page_title = l("Search Results");
+ ELSE;
+ ctx.page_title = l("Search Results: ") _ CGI.param('query') | html;
+ END;
+
+ page = CGI.param('page');
+ page = page.match('^\d+$') ? page : 0; # verify page is a sane value
+
+ page_count = (!ctx.page_size.defined || !ctx.hit_count.defined || ctx.page_size == 0) ? 1 : POSIX.ceil(ctx.hit_count / ctx.page_size);
+
+ # We don't want search engines indexing search results
+ ctx.metalinks.push('<meta name="robots" content="noindex,follow">');
+
+ PROCESS "opac/parts/misc_util.tt2";
+ PROCESS get_library;
+-%]
+
+ <h2 class="sr-only">[% l('Search Results') %]</h2>
+ <form action="[% ctx.opac_root _ vendor_search_uri %]" method="get">
+ [% INCLUDE "opac/ebook_api/rbdigital/parts/searchbar.tt2" took_care_of_form=1 %]
+ <h3 class="sr-only">[% l('Additional search filters and navigation') %]</h3>
+ <div class="almost-content-wrapper">
+
+ [%# hide the header bar when displaying metarecord constituents
+ instead of skipping it altogether to allow the search form
+ variables to propagate %]
+ [% IF ctx.metarecord;
+ mr_attrs = {marc_xml => ctx.metarecord_master.marc_xml};
+ PROCESS get_marc_attrs args=mr_attrs %]
+ <div class="results_header_lbl">
+ [% l('Viewing Results for Grouped Record: [_1]',
+ mr_attrs.title) | html %]
+ </div>
+ [% IF CGI.param('query') %]
+ <div>
+ <a href="[% mkurl(ctx.opac_root _ vendor_search_uri, {}, ['metarecord','page']); %]">
+ [% l('◄ Return to Grouped Search Results') %]
+ </a>
+ </div>
+ <br/>
+ [% END %]
+ [% END %]
+ <div id="results_header_bar" [%- IF ctx.metarecord %]class="hidden"[% END -%]>
+ <div id="results_header_inner">
+ <div class="results_header_btns">
+ <a href="[% mkurl(ctx.opac_root _ '/home', {$loc_name => loc_value, 'detail_record_view' => show_detail_view}, 1) %]">[% l('Another Search') %]</a>
+ </div>
+ <div class="results_header_btns">
+ <a href="[% mkurl(ctx.opac_root _ '/advanced',{}, expert_search_parms.merge(browse_search_parms, facet_search_parms)) %]">[% l('Advanced Search') %]</a>
+ </div>
+ <div id="refine_hits" class="results_header_btns result_block_visible"><a onclick="getFacety();">[% l('Refine these results') %]</a></div>
+ <div id="return_to_hits" class="results_header_btns"><a onclick="getResulty();">[% l('Back to results') %]</a></div>
+ [% IF ctx.mylist.size %]
+ <div class="results_header_btns">
+ [%- IF ctx.user; %]
+ <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]">[% l('View My List') %]</a>
+ [%- ELSE %]
+ <a href="[% mkurl(ctx.opac_root _ '/mylist') %]">[% l('View My List') %]</a>
+ [%- END %]
+ </div>
+ [% END %]
+ <label class="results_header_lbl" for="opac.result.sort">[% l('Sort by') %]
+ [% INCLUDE "opac/ebook_api/rbdigital/parts/filtersort.tt2" value=CGI.param('sort') submit_on_change=1 %]
+ </label>
+ </div>
+ </div>
+ </div>
+ </form>
+ <div id="content-wrapper">
+ <div id="main-content">
+ <div id="results-page">
+ [%- IF (ctx.depth_sel_checkbox OR ctx.depth_sel_button) AND CGI.param('depth') == ctx.depth_sel_depth AND ctx.depth_sel_resultshint %]
+ <div id="results-page-depth-hint">[% ctx.depth_sel_resultshint | html %]</div>
+ [%- END %]
+ [% path = "opac/ebook_api/rbdigital/parts/result/" _
+ (ctx.records.size ? "table.tt2" : "lowhits.tt2");
+ INCLUDE $path %]
+ </div>
+ <div class="common-full-pad"></div>
+ </div>
+ <br class="clear-both" />
+ </div>
+[%- END %]
\ No newline at end of file
[% custom_css = ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_css') %]
[% '<style>'; custom_css ; '</style>' %]
[% END %]
+
+ <!-- Load Bootstrap CSS Library -->
+ [%- IF ctx.user %]
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/js/ui/default/staff/build/css/bootstrap.min.css[% ctx.cache_key %]" />
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/js/ui/default/staff/build/css/animate.min.css[% ctx.cache_key %]" />
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/js/ui/default/staff/build/css/pnotify.custom.min.css?v=[% date.format; %]" />
+ <link rel="stylesheet" href="[% ctx.media_prefix %]/css/skin/default/ebook/rbdigital.css[% ctx.cache_key %]" />
+ [%- END %]
[%- libname = ctx.get_aou(ctx.search_ou).name;
libname = libname | html;
##############################################################################
# Ebook API integration
##############################################################################
-ebook_api.enabled = 'false';
-ebook_api.ebook_test.enabled = 'false';
+ebook_api.enabled = 'true';
+ebook_api.ebook_test.enabled = 'true';
ebook_api.ebook_test.base_uris = [ 'http://example.com/ebookapi/t/' ];
ebook_api.oneclickdigital.enabled = 'false';
ebook_api.oneclickdigital.base_uris = [ 'http://example.oneclickdigital.com/Products/ProductDetail.aspx' ];
ebook_api.overdrive.enabled = 'false';
ebook_api.overdrive.base_uris = [ 'http://elm.lib.overdrive.com/' ];
+ebook_api.rbdigital.enabled = 'true';
+ebook_api.rbdigital.base_uris = [ 'http://api.rbdigitalstage.com/' ];
##############################################################################
# Enable "Forgot your password?" prompt at login
%]
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/session.js[% ctx.cache_key %]"></script>
-<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/ebook.js[% ctx.cache_key %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/ebook.js?v=[% date.format; %]"></script>
<script type="text/javascript">
// translatable strings as JS variables
[% IF ebook_api.overdrive.enabled == 'true' %]
vendor_list.push('overdrive');
[% END %]
+[% IF ebook_api.rbdigital.enabled == 'true' %]
+vendor_list.push('rbdigital');
+[% END %]
var cookie_registry = [ 'ebook_xact_cache' ];
dojo.forEach(vendor_list, function(v) {
[%- IF ctx.user %]
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/relation.js[% ctx.cache_key %]"></script>
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/loggedin.js[% ctx.cache_key %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/common/build/js/jquery.min.js[% ctx.cache_key %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/bootstrap.min.js[% ctx.cache_key %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/staff/build/js/pnotify.custom.min.js?v=[% date.format; %]"></script>
+<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/rbdigital.js?v=[% date.format; %]"></script>
[%- END %]
[%- IF (ctx.page == 'rresult' OR ctx.page == 'record') %]
<script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/opac/ebook_api/avail.js[% ctx.cache_key %]"></script>
-[%- END %]
-
+[%- END %]
\ No newline at end of file
-[%-
+[%
# Support multiscript records via alternate graphic 880 fields
# get_graphic_880s(target_field='100')
# See "Model A" in http://www.loc.gov/marc/bibliographic/ecbdmulti.html
END;
END;
+ IF ebook_api.rbdigital.enabled == 'true';
+ # A record might conceivably have multiple RBDigital URIs,
+ # but we use (the same) ISBN as the ebook ID in each case.
+ IF !args.rbdigital_id;
+ FOR base_uri IN ebook_api.rbdigital.base_uris;
+ IF res.href.match(base_uri);
+ # found a RBDigital URI, let's grab our ID and move on
+ args.rbdigital_id = clean_isbn;
+ LAST;
+ END;
+ END;
+ END;
+ END;
+
IF ebook_api.overdrive.enabled == 'true';
# Ideally we already have an OverDrive record ID from MARC 037 (see above).
# But for older records, it will be embedded in the URI in MARC 856.
ELSIF args.overdrive_id;
args.ebook.ebook_id = args.overdrive_id;
args.ebook.vendor = 'overdrive';
+ ELSIF args.rbdigital_id;
+ args.ebook.ebook_id = args.rbdigital_id;
+ args.ebook.vendor = 'rbdigital';
END;
END;
</div>
</div>
[% INCLUDE "opac/parts/topnav_links.tt2" %]
+[% INCLUDE "opac/parts/vendor_tabs.tt2" %]
[% END %]
--- /dev/null
+[% IF ctx.user and ctx.vendors.size > 1; %]
+ <!-- Show Tabular View of Vendors -->
+ <div id="vendor_tabs">
+ <div id="acct_tabs">
+ [% vendor_search_uri = "";
+ vendor_tab_class = "";
+ IF vendor_key == '';
+ vendor_key = 'default';
+ END;
+ FOR vendor IN ctx.vendors;
+ IF vendor.vendor_key == vendor_key;
+ vendor_tab_class = "acct-tab-on";
+ vendor_search_uri = vendor.search_uri;
+ ELSE;
+ vendor_tab_class = "acct-tab-off";
+ END; %]
+ <a id="lnkSearchResults_[% vendor.vendor_key %]"
+ href="[% mkurl(ctx.opac_root _ vendor.search_uri) %]" class="[% vendor_tab_class %]">[% vendor.name %]</a>
+ [% END; %]
+ </div>
+ </div>
+ <input type="hidden" id="rbdigitalPatronId" value="[% ctx.rbdigital_patron_id %]">
+ [% IF ctx.rbdigital_patron_id == 0 %]
+ <!-- Load Code for displaying the password prompt -->
+ [%- INCLUDE 'opac/ebook_api/rbdigital/register_modal.tt2' %]
+ [% END;%]
+
+[% END; %]
[%- PROCESS "opac/parts/header.tt2";
WRAPPER "opac/parts/base.tt2";
+
+ vendor_key="default";
INCLUDE "opac/parts/topnav.tt2";
IF is_advanced || is_special;
PROCESS "opac/parts/misc_util.tt2";
PROCESS get_library;
+
-%]
<h2 class="sr-only">[% l('Search Results') %]</h2>
<form action="[% ctx.opac_root %]/results" method="get">
[% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %]
- <h3 class="sr-only">[% l('Additional search filters and navigation') %]</h3>
- <div class="almost-content-wrapper">
+
+ <div id="divDefaultSearchResult" class="tabcontents">
+ <h3 class="sr-only">[% l('Additional search filters and navigation') %]</h3>
+ <div class="almost-content-wrapper">
[%# hide the header bar when displaying metarecord constituents
instead of skipping it altogether to allow the search form
</div>
<br class="clear-both" />
</div>
-[%- END %]
+ </div>
+[%- END %]
\ No newline at end of file
--- /dev/null
+.rbdigital .modal-header, .rbdigital h4, .close {
+ background-color: #007a54;
+ color:white !important;
+ text-align: center;
+ font-size: 30px;
+}
+
+.rbdigital .modal-body {
+ padding:40px 50px;
+}
+
+.rbdigital .btn-success {
+ background-color: #007a54;
+}
+
+/* Tooltip */
+.rbdigital .tooltip > .tooltip-inner {
+ background-color: #007a54;
+ color: #FFFFFF;
+ border: 1px solid green;
+ padding: 10px;
+ font-size: 11px;
+ width: 600px;
+}
+/* Tooltip on top */
+.rbdigital .tooltip.top > .tooltip-arrow {
+ border-top: 5px solid green;
+}
+/* Tooltip on bottom */
+.rbdigital .tooltip.bottom > .tooltip-arrow {
+ border-bottom: 5px solid blue;
+}
+/* Tooltip on left */
+.rbdigital .tooltip.left > .tooltip-arrow {
+ border-left: 5px solid red;
+}
+/* Tooltip on right */
+.rbdigital .tooltip.right > .tooltip-arrow {
+ border-right: 5px solid black;
+}
+
+#divPassword .tooltip > .tooltip-inner {
+ width: 600px;
+}
+
+#divPassword .tooltip > .tooltip-inner > ul {
+ list-style: none;
+ padding-left: 20px;
+ text-align: left;
+ padding-bottom: 0;
+}
+
+.rbdigital #registerProgress, #registerError {
+ font-size: 18px;
+ color: #007a54;
+ margin-left: 2em;
+}
+
+#registerProgress > img {
+ width: 30px;
+ height: auto;
+}
+
+.rbdigital .adv_global_input_container {
+ width: 230px !important;
+}
+
+.rbdigital #adv_global_input_table td {
+ padding-bottom: 10px;
+}
+
+#modalMapSearchFieldValues .opac-button {
+ margin-top: 0;
+}
+
+#modalMapSearchFieldValues .modal-body {
+ padding-top: 10px;
+ padding-bottom: 150px;
+}
+a.opac-button:hover {
+ color: white;
+ text-decoration: none;
+}
\ No newline at end of file
}).send();
}
+Ebook.prototype.wishlist = function(authtoken, action, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.patron.wishlist',
+ params: [authtoken, ses, ebook.id, action ],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Wishlist API call response: ' + resp.content().message);
+ return callback(resp.content(), ebook.id);
+ }
+ }
+ }).send();
+
+ });
+}
+
+//Register a patron
+Ebook.prototype.registerPatron = function(authtoken, password, callback) {
+ var ebook = this;
+ console.log(dojo.cookie(this.vendor));
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ console.log("After checking session: " + dojo.cookie(vendor_cookie_name));
+
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.patron.register',
+ params: [authtoken, ses, password],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content());
+ }
+ }
+ }).send();
+
+ });
+}
+
+//Save Search Field
+Ebook.prototype.saveSearchField = function(authtoken, vendor_key, eg_search_field, ds_search_field, field_type, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.search_fields.save',
+ params: [authtoken, ses, vendor_key, eg_search_field, ds_search_field, field_type],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content());
+ } else {
+ new PNotify({
+ title: 'Error Saving Fields',
+ text: 'Unknown error occured while saving search field. Please try again',
+ type: 'error'
+ });
+ }
+ }
+ }).send();
+ });
+}
+
+//Remove Search Field
+Ebook.prototype.removeSearchField = function(authtoken, search_field_id, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.search_fields.remove',
+ params: [authtoken, ses, search_field_id],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content());
+ } else {
+ new PNotify({
+ title: 'Error remvoing Search Field',
+ text: 'Unknown error occured while removing search field. Please try again',
+ type: 'error'
+ });
+ }
+ }
+ }).send();
+ });
+}
+
+//Save Search Field value
+Ebook.prototype.saveSearchFieldValue = function(authtoken, search_fields_id, evergreen_field_code, evergreen_field_value, digital_services_field_code, digital_services_search_field_value, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.search_field_mappings.save',
+ params: [authtoken, ses, search_fields_id, evergreen_field_code, evergreen_field_value, digital_services_field_code, digital_services_search_field_value],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content());
+ } else {
+ new PNotify({
+ title: 'Error Saving Fields',
+ text: 'Unknown error occured while saving search field. Please try again',
+ type: 'error'
+ });
+ }
+ }
+ }).send();
+ });
+}
+
+//Remove Search Field
+Ebook.prototype.removeSearchFieldValue = function(authtoken, id, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.search_field_mappings.remove',
+ params: [authtoken, ses, id],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content(),id);
+ } else {
+ new PNotify({
+ title: 'Error remvoing Search Field Value',
+ text: 'Unknown error occured while removing search field value. Please try again',
+ type: 'error'
+ });
+ }
+ }
+ }).send();
+ });
+}
+
+//Get a list of Evergreen Search Field values
+//Returns response in the following format:
+// { status: "success"
+// data: [id, value] }
+Ebook.prototype.getEvergreenbSearchFieldValues = function(authtoken, field_type, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.evergreen_search_field_values.retrieve',
+ params: [authtoken, ses, field_type],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content());
+ } else {
+ new PNotify({
+ title: 'Error remvoing Search Field',
+ text: 'Unknown error occured while getting the search field values. Please try again',
+ type: 'error'
+ });
+ }
+ }
+ }).send();
+ });
+}
+
+//Get a list of Mapped Search Field values
+//Returns response in the following format:
+// { status: "success"
+// data: [id, search_fields_id, evergreen_field_code, evergreen_field_value, digital_services_field_value] }
+Ebook.prototype.getMappedSearchFieldValues = function(authtoken, search_fields_id, callback) {
+ var ebook = this;
+ //Reload new session (if any)
+ checkSession(this.vendor, function(vendor_cookie_name) {
+ var ses = ebook.ses || dojo.cookie(vendor_cookie_name);
+ new OpenSRF.ClientSession('open-ils.ebook_api').request({
+ method: 'open-ils.ebook_api.search_field_mappings.retrieve',
+ params: [authtoken, ses, search_fields_id],
+ async: true,
+ oncomplete: function(r) {
+ var resp = r.recv();
+ if (resp) {
+ console.log('Register API call response: ' + resp.content());
+ return callback(resp.content());
+ } else {
+ new PNotify({
+ title: 'Error remvoing Search Field',
+ text: 'Unknown error occured while getting the search field values. Please try again',
+ type: 'error'
+ });
+ }
+ }
+ }).send();
+ });
+}
\ No newline at end of file
--- /dev/null
+var ebook_rbdigital;
+var vendor_rbdigital = new Vendor("rbdigital");
+var ebook_spinner;
+var rbdigitalPatronId;
+var EG_ID_FIELD_SEPARATOR = '__';
+
+$( document ).ready(function() {
+ ebook_rbdigital = new Ebook('rbdigital', 0);
+ ebook_spinner = $("#ebook_spinner");
+ rbdigitalPatronId = parseInt($('#rbdigitalPatronId').val());
+ setupEventHandlers();
+
+ $('#password').tooltip({
+ title: '<div>Password must meet the following:</div><ul>'+
+ '<li>At least 8 to 16 characters long</li>'+
+ '<li>At least 1 lowercase character</li>' +
+ '<li>At least 1 uppercase character</li>' +
+ '<li>At least 1 numeric character</li>' +
+ '<li>At least 1 special character:</li>'+
+ '<li> -~!@#\$%\^&</li></ul>'
+ });
+
+ //Load Tooltips & popover elements
+ $('[data-toggle="tooltip"]').tooltip({
+ trigger: 'hover focus'
+ });
+
+});
+
+function setupEventHandlers() {
+ $('.ebook_checkout_link').on('click',function(event) {
+ console.log('Not implement');
+ });
+
+ $(document).on("click", ".ebook_wishlist_link_add", function () {
+ showEbookSpinner($(this));
+ var isbn = $(this).data('isbn');
+ ebook_rbdigital.id = isbn;
+
+ ebook_rbdigital.wishlist(authtoken, 'add', wishlistAddCallback);
+ return false;
+ });
+
+ $(document).on("click", ".ebook_wishlist_link_remove", function () {
+ showEbookSpinner($(this));
+ var isbn = $(this).data('isbn');
+ ebook_rbdigital.id = isbn;
+ ebook_rbdigital.wishlist(authtoken, 'delete', wishlistRemoveCallback);
+ return false;
+ });
+
+ $("#lnkSearchResults_rbdigital").click(function(event){
+ //Do not show registration modal if patronid exists
+ if (rbdigitalPatronId > 0) {
+ return true;
+ }
+ event.preventDefault();
+ $('#password').focus();
+ $("#rbdigitalRegisterModal").modal();
+ return false;
+ });
+
+ $( "#frmRegisterRBDigital" ).submit(function( event ) {
+ event.preventDefault();
+
+ var password = $('#password'),
+ confirmPassword = $('#confirmPassword'),
+ passwordError = $('#passwordError'),
+ confirmPasswordError = $('#confirmPasswordError');
+
+ passwordError.addClass('hidden');
+ confirmPasswordError.addClass('hidden');
+ $('#registerError').addClass('hidden');
+
+ console.log(password.val());
+ //Check if password matches the strength
+ if (!checkPasswordStrength(password.val())) {
+ password.focus();
+ passwordError.removeClass('hidden');
+ return;
+ } else if (password.val() !== confirmPassword.val()) {
+ confirmPasswordError.removeClass('hidden');
+ confirmPassword.focus();
+ return;
+ }
+ $('#btnRegister').prop("disabled", true);
+ $('#registerProgress').removeClass('hidden');
+ ebook_rbdigital.registerPatron(authtoken, password.val(), registerPatronCallback);
+
+ });
+
+ //Set Modal Focus for Register
+ $('#rbdigitalRegisterModal').on('shown.bs.modal', function () {
+ $('#password').focus();
+ });
+
+ //Display Search after modal for register success is closed
+ $("#btnCloseRegisterSuccess").click(function(event) {
+ //redirect user to rbdigital search page
+ window.location.href = window.location.protocol+"//"+window.location.host+$("#lnkSearchResults_rbdigital").attr('href');
+
+ });
+
+ //Listen for Save Mapping Fields Event
+ $("#btnSaveSearchField").click(function(event) {
+ var eg_search_field = $('#eg_search_field').val(),
+ rbdigital_search_field = $('#rbdigital_search_field').val(),
+ eg_selected_optgroup = $('#eg_search_field :selected').closest('optgroup').attr('label'),
+ rbdigital_selected_optgroup = $('#rbdigital_search_field :selected').closest('optgroup').attr('label'),
+ field_type;
+
+ if (eg_search_field == '' || rbdigital_search_field == '') {
+ showNotification('Empty Selection','Please select Evergreen and RBDigital fields to save!','error');
+ } else if (eg_selected_optgroup != rbdigital_selected_optgroup) {
+ showNotification('Invalid Selection','Please select both Text values or Dropdown values from selections!','error');
+ } else {
+ showEbookSpinner($(this));
+ field_type = eg_selected_optgroup.indexOf("Dropdown") == 0 ? "dropdown" : "text";
+ ebook_rbdigital.saveSearchField(authtoken, vendor_rbdigital.name, eg_search_field, rbdigital_search_field, field_type, saveSearchFieldCallback);
+ }
+ });
+
+ //Listen for Save Search Field Mappings (Field Values)
+ $('#btnSaveSearchFieldMappings').click(function(event) {
+ var eg_search_field_value = $('#eg_search_field_values').val(),
+ digital_services_field_code = $('#ds_search_field_values').val(),
+ digital_services_field_code,
+ eg_selected_value, evergreen_field_code, evergreen_field_value;
+
+ if (eg_search_field_value == '' || digital_services_field_code == '') {
+ showNotification('Empty Selection','Please select Evergreen and RBDigital field value to save!','error');
+ } else {
+ //Split the value __ to get code and value separately
+ eg_selected_value = eg_search_field_value.split(EG_ID_FIELD_SEPARATOR);
+ evergreen_field_code = eg_selected_value[0];
+ evergreen_field_value = eg_selected_value[1];
+ digital_services_search_field_value = $('#ds_search_field_values option:selected').text();
+
+ ebook_rbdigital.saveSearchFieldValue(authtoken, $('#txtSearchFieldsID').val(), evergreen_field_code, evergreen_field_value,
+ digital_services_field_code, digital_services_search_field_value, saveSearchFieldValueCallback);
+ }
+ });
+
+ //Listen for Modal that display Search Field Values
+ $(document).on('click', '.openModalMapSearchFieldValues', function () {
+ var eg_search_field = $(this).data('eg_search_field'),
+ digital_services_field = $(this).data('digital_services_field'),
+ search_fields_id = $(this).data('id');
+
+ $('#spanEvergreenField').html(eg_search_field.ucfirst());
+ $('#spanRBDigitalField').html(digital_services_field.ucfirst());
+
+ //Store search_fields_id to a hidden input element
+ $('#txtSearchFieldsID').val(search_fields_id);
+
+ populateSeachFieldValuesForSelection(eg_search_field, digital_services_field);
+ ebook_rbdigital.getMappedSearchFieldValues(authtoken, search_fields_id, getMappedSearchFieldValuesCallback);
+ });
+
+ $(document).on('click', '.removeSearchField', function () {
+ var search_fields_id = $(this).attr('data-id');
+ ebook_rbdigital.removeSearchField(authtoken, search_fields_id, removeSearchFieldCallback);
+ });
+
+ $(document).on('click', '.removeSearchFieldValue', function () {
+ var search_field_mappings_id = $(this).attr('data-id');
+ ebook_rbdigital.removeSearchFieldValue(authtoken, search_field_mappings_id, removeSearchFieldValueCallback);
+ });
+}
+
+function showNotification(title, text, type) {
+ new PNotify({
+ title: title,
+ text: text,
+ type: type
+ });
+}
+
+function showEbookSpinner(adjacent_element) {
+ //Add an ebook spinner right to the adjacent element
+ $(adjacent_element).after(ebook_spinner);
+ ebook_spinner.removeClass('hidden');
+}
+
+function hideEbookSpinner() {
+ ebook_spinner.addClass('hidden');
+}
+
+//Process post ajax call to add wishlist to patron's account
+function wishlistAddCallback(responseContents, isbn) {
+ if (responseContents.message == "success") {
+ $("#"+isbn+"_ebook_wishlist_add").addClass('hidden');
+ $("#"+isbn+"_ebook_wishlist_remove").removeClass('hidden');
+ } else if (responseContents.message.indexOf("already exists") > 1) {
+ $("#"+isbn+"_ebook_wishlist_add").addClass('hidden');
+ $("#"+isbn+"_ebook_wishlist_remove").removeClass('hidden');
+ } else {
+ console.log(responseContents.message);
+ }
+ hideEbookSpinner();
+}
+
+//Process post ajax call to remove wishlist to patron's account
+function wishlistRemoveCallback(responseContents, isbn) {
+ if (responseContents.message == "success") {
+ console.log(responseContents.message);
+ $("#"+isbn+"_ebook_wishlist_add").removeClass('hidden');
+ $("#"+isbn+"_ebook_wishlist_remove").addClass('hidden');
+ } else {
+ console.log(responseContents.message);
+ }
+
+ hideEbookSpinner();
+}
+
+//Process post ajax call to register the patron
+function registerPatronCallback(response) {
+ rbdigitalPatronId = parseInt(response);
+ console.log(rbdigitalPatronId);
+ if (rbdigitalPatronId < 1 ) {
+ $('#registerError').removeClass('hidden');
+ $('#registerProgress').addClass('hidden');
+ $('#btnRegister').prop("disabled", false);
+ return;
+ }
+
+ $('#rbdigitalRegisterModal').modal('hide')
+
+ $('#btnRegister').prop("disabled", false);
+ $('#registerProgress').addClass('hidden');
+
+ $('#rbdigitalRegisterSuccess').modal();
+}
+
+function saveSearchFieldCallback(responseContents) {
+ if (responseContents.status == "success") {
+ showNotification("Success", "Search Field Saved", "success");
+ location.reload();
+ } else if (typeof responseContents.message != 'undefined') {
+ showNotification("Error", responseContents.message, "error");
+ } else {
+ showNotification("Error", "Unable to save entry", "error");
+ }
+ hideEbookSpinner();
+}
+
+function removeSearchFieldCallback(responseContents) {
+ if (responseContents.status == "success") {
+ showNotification("Success", "Search Field Removed", "success");
+ } else {
+ showNotification("Error", "Unable to remove entry", "error");
+ }
+
+ hideEbookSpinner();
+ //Refresh a page
+ location.reload();
+}
+
+function saveSearchFieldValueCallback(responseContents) {
+ if (responseContents.status == "success") {
+ var data, eg_search_field_value, ds_search_field_value,
+ eg_selected_value, evergreen_field_value;
+ data = responseContents.data;
+ eg_search_field_value = $('#eg_search_field_values').val();
+ ds_search_field_value = $('#ds_search_field_values option:selected').text();
+
+ //Split the value __ to get code and value separately
+ eg_selected_value = eg_search_field_value.split(EG_ID_FIELD_SEPARATOR);
+ evergreen_field_value = eg_selected_value[1];
+
+ //Add an entry to the table row
+ var tableMappedSearchFieldBody = $('#table_mapped_search_values > tbody:last-child');
+ tableMappedSearchFieldBody.append('<tr id="search_value_'+data.id+'"><td>'+ evergreen_field_value + '</td><td>'+ ds_search_field_value +
+ '</td><td><a href="#" data-id="'+ data.id +
+ '" class="btn btn-default removeSearchFieldValue"><span class="glyphicon glyphicon-trash"></span> Remove</a> </td></tr>');
+ showNotification("Success", "Search Field value Saved", "success");
+ } else {
+ showNotification("Error", "Unable to save entry", "error");
+ }
+}
+
+function removeSearchFieldValueCallback(responseContents, search_field_mappings_id) {
+ if (responseContents.status == "success") {
+ $('#search_value_'+search_field_mappings_id).remove();
+ showNotification("Success", "Search Field Value Removed", "success");
+ } else {
+ showNotification("Error", "Unable to remove entry", "error");
+ }
+}
+
+function populateSeachFieldValuesForSelection(eg_search_field, digital_services_field) {
+ var ds_search_field_values, eg_data, data;
+
+ ds_search_field_values = $('#ds_search_field_values');
+
+ if (typeof rbdigital_search_fields[digital_services_field] != 'undefined' ) {
+ data = rbdigital_search_fields[digital_services_field];
+ } else {
+ data = [];
+ }
+
+ //Empty dropdown except for first one
+ ds_search_field_values.find('option:gt(0)').remove();
+
+ //Iterate over Digital Service values and add them to the drop down list
+ for (i = 0; i < data.length; i++) {
+ //Read and build select elememnts for selections
+ ds_search_field_values.append('<option value="'+data[i][0]+'">'+data[i][1]+'</option>');
+ }
+
+ //Call an API to get Ebook A
+ ebook_rbdigital.getEvergreenbSearchFieldValues(authtoken, eg_search_field, getEvergreenbSearchFieldValuesCallback);
+}
+
+function getEvergreenbSearchFieldValuesCallback(responseContents) {
+ var data, eg_search_field_values;
+
+ if (responseContents.status == "success") {
+ data = responseContents.data;
+ eg_search_field_values = $('#eg_search_field_values');
+
+ //Empty dropdown except for first one
+ eg_search_field_values.find('option:gt(0)').remove();
+
+ //Loop over EG Values and build selection list
+ //code_value, value
+ for (i = 0; i < data.length; i++) {
+ if (data[i][1].trim() != '') {
+ eg_search_field_values.append('<option value="'+data[i][1]+EG_ID_FIELD_SEPARATOR+data[i][2]+'">'+data[i][2]+'</option>');
+ }
+ }
+
+ } else {
+ showNotification("Error", "No data was found! Please contact system admin to load the data.", "error");
+ }
+}
+
+function getMappedSearchFieldValuesCallback(responseContents) {
+ var data, tableMappedSearchFieldBody;
+ if (responseContents.status == "success") {
+ data = responseContents.data;
+ tableMappedSearchFieldBody = $('#table_mapped_search_values > tbody');
+ tableMappedSearchFieldBody.empty();
+ //Loop over the data array to read the values in the following order:
+ //id, search_fields_id, evergreen_field_value, digital_services_field_value
+ for (i = 0; i < data.length; i++) {
+ tableMappedSearchFieldBody.append('<tr id="search_value_'+data[i][0]+'"><td>'+ data[i][3] + '</td><td>'+ data[i][5] +
+ '</td><td><a href="#" data-id="'+ data[i][0] +
+ '" class="btn btn-default removeSearchFieldValue"><span class="glyphicon glyphicon-trash"></span> Remove</a> </td></tr>');
+ }
+ } else {
+ showNotification("Error", "No data was found! Please contact system admin to load the data.", "error");
+ }
+}
+
+function getCookie(cname) {
+ var name = cname + "=";
+ var decodedCookie = decodeURIComponent(document.cookie);
+ var ca = decodedCookie.split(';');
+ for(var i = 0; i <ca.length; i++) {
+ var c = ca[i];
+ while (c.charAt(0) == ' ') {
+ c = c.substring(1);
+ }
+ if (c.indexOf(name) == 0) {
+ return c.substring(name.length, c.length);
+ }
+ }
+ return "";
+}
+
+/**
+ *
+ * (?=.*[a-z]) The string must contain at least 1 lowercase alphabetical character
+ * (?=.*[A-Z]) The string must contain at least 1 uppercase alphabetical character
+ * (?=.*[0-9]) The string must contain at least 1 numeric character
+ * (?=.[-~!@#\$%\^&]) The string must contain at least one special character, but we are escaping reserved RegEx characters to avoid conflict
+ * (?=.{8,16}$) The string must be between eight characters and 16 characters long
+ * @param {*} password
+ */
+function checkPasswordStrength(password) {
+ var strongRegex = new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[-~!@#\$%\^&\*])(?=.{8,16}$)");
+
+ return strongRegex.test(password);
+}
+
+String.prototype.ucfirst = function() {
+ return this.charAt(0).toUpperCase() + this.substr(1);
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+Copyright (C) 2006-2008 Georgia Public Library Service
+Copyright (C) 2008 Equinox Software, Inc
+Author: Mike Rylander <miker@esilibrary.com>
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+############################
+ TEMPLATE
+############################
+
+ <class
+ id=""
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper=""
+ oils_persist:tablename=""
+ reporter:label=""
+ oils_persist:field_safe=""
+ oils_persist:virtual=""
+ oils_persist:readonly=""
+ reporter:core=""
+ >
+
+ <oils_persist:source_definition><![CDATA[
+ SELECT * FROM foo
+ ]]></oils_persist:source_definition>
+
+ <fields oils_persist:primary="" oils_persist:sequence="">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="" name="" reporter:datatype="org_unit"/>
+ <field reporter:label="" name="" reporter:datatype="text"/>
+ <field reporter:label="" name="" reporter:datatype="link"/>
+ <field reporter:label="" name="" reporter:datatype="timestamp"/>
+ <field reporter:label="" name="" reporter:datatype="money"/>
+ <field reporter:label="" name="" reporter:datatype="bool"/>
+ <field reporter:label="" name="" reporter:datatype="int" oils_obj:required="true"/>
+ <field reporter:label="" name="" reporter:datatype="int" oils_persist:virtual="true"/>
+ </fields>
+
+ <links>
+ <link field="" reltype="has_a" key="" map="" class=""/>
+ </links>
+
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="" gloabl_required="true"/>
+ <retrieve/>
+ <update permission="" context_field=""/>
+ <delete permission="">
+ <context link="" field=""/>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+
+-->
+
+<IDL xmlns="http://opensrf.org/spec/IDL/base/v1" xmlns:idl="http://opensrf.org/spec/IDL/base/v1" xmlns:oils_persist="http://open-ils.org/spec/opensrf/IDL/persistence/v1" xmlns:oils_obj="http://open-ils.org/spec/opensrf/IDL/objects/v1" xmlns:reporter="http://open-ils.org/spec/opensrf/IDL/reporter/v1" xmlns:permacrud="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+
+ <!-- Virtual classes -->
+ <class id="mups" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_payment_summary" oils_persist:virtual="true" reporter:label="User Payment Summary">
+ <fields>
+ <field name="usr" oils_persist:virtual="true" />
+ <field name="forgive_payment" oils_persist:virtual="true" />
+ <field name="work_payment" oils_persist:virtual="true" />
+ <field name="credit_payment" oils_persist:virtual="true" />
+ <field name="goods_payment" oils_persist:virtual="true" />
+ <field name="account_adjustment" oils_persist:virtual="true" />
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="mwps" controller="open-ils.cstore" oils_obj:fieldmapper="money::workstation_payment_summary" oils_persist:virtual="true" reporter:label="Workstation Payment Summary">
+ <fields>
+ <field name="workstation" oils_persist:virtual="true" />
+ <field name="cash_payment" oils_persist:virtual="true" />
+ <field name="check_payment" oils_persist:virtual="true" />
+ <field name="credit_card_payment" oils_persist:virtual="true" />
+ </fields>
+ <links>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ </links>
+ </class>
+
+ <class id="brn" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_node" oils_persist:virtual="true" reporter:label="Record Node">
+ <fields>
+ <field name="id" oils_persist:virtual="true" />
+ <field name="children" oils_persist:virtual="true" />
+ <field name="owner_doc" oils_persist:virtual="true" />
+ <field name="intra_doc_id" oils_persist:virtual="true" />
+ <field name="parent_node" oils_persist:virtual="true" />
+ <field name="node_type" oils_persist:virtual="true" />
+ <field name="namespace_uri" oils_persist:virtual="true" />
+ <field name="name" oils_persist:virtual="true" />
+ <field name="value" oils_persist:virtual="true" />
+ </fields>
+ </class>
+
+ <class id="mvr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::virtual_record" oils_persist:virtual="true" reporter:label="Virtual Record">
+ <fields>
+ <field name="title" oils_persist:virtual="true" />
+ <field name="author" oils_persist:virtual="true" />
+ <field name="doc_id" oils_persist:virtual="true" />
+ <field name="doc_type" oils_persist:virtual="true" />
+ <field name="pubdate" oils_persist:virtual="true" />
+ <field name="isbn" oils_persist:virtual="true" />
+ <field name="publisher" oils_persist:virtual="true" />
+ <field name="tcn" oils_persist:virtual="true" />
+ <field name="subject" oils_persist:virtual="true" />
+ <field name="types_of_resource" oils_persist:virtual="true" />
+ <field name="call_numbers" oils_persist:virtual="true" />
+ <field name="edition" oils_persist:virtual="true" />
+ <field name="online_loc" oils_persist:virtual="true" />
+ <field name="synopsis" oils_persist:virtual="true" />
+ <field name="physical_description" oils_persist:virtual="true" />
+ <field name="toc" oils_persist:virtual="true" />
+ <field name="copy_count" oils_persist:virtual="true" />
+ <field name="series" oils_persist:virtual="true" />
+ <field name="serials" oils_persist:virtual="true" />
+ <field name="foreign_copy_maps" oils_persist:virtual="true" />
+ </fields>
+ </class>
+
+ <class id="ex" controller="open-ils.cstore" oils_obj:fieldmapper="ex" oils_persist:virtual="true">
+ <fields>
+ <field name="err_msg" oils_persist:virtual="true" />
+ <field name="type" oils_persist:virtual="true" />
+ </fields>
+ </class>
+
+ <class id="perm_ex" controller="open-ils.cstore" oils_obj:fieldmapper="perm_ex" oils_persist:virtual="true">
+ <fields>
+ <field name="err_msg" oils_persist:virtual="true" />
+ <field name="type" oils_persist:virtual="true" />
+ </fields>
+ </class>
+
+ <class id="amtr" controller="open-ils.cstore" oils_obj:fieldmapper="action::matrix_test_result" oils_persist:virtual="true" reporter:label="Matrix Test Result">
+ <fields oils_persist:primary="matchpoint">
+ <field reporter:label="Matchpoint ID" name="matchpoint" reporter:datatype="id"/>
+ <field reporter:label="Success" name="success" reporter:datatype="bool"/>
+ <field reporter:label="Failure Part" name="fail_part" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
+ </links>
+ </class>
+
+ <class id="accs" controller="open-ils.cstore" oils_obj:fieldmapper="action::circ_chain_summary" oils_persist:virtual="true" reporter:label="Circulation Chain Summary">
+ <!-- when the time is right, turn me into a view. -->
+ <fields>
+ <field reporter:label="Total Circs" name="num_circs" reporter:datatype="int"/>
+ <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Checkout Workstation" name="checkout_workstation" reporter:datatype="text"/>
+ <field reporter:label="Last Renewal Time" name="last_renewal_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Stop Fines" name="last_stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Last Stop Fines Time" name="last_stop_fines_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Renewal Workstation" name="last_renewal_workstation" reporter:datatype="text"/>
+ <field reporter:label="Last Checkin Workstation" name="last_checkin_workstation" reporter:datatype="text"/>
+ <field reporter:label="Last Checkin Time" name="last_checkin_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Checkin Scan Time" name="last_checkin_scan_time" reporter:datatype="timestamp"/>
+ </fields>
+ </class>
+
+ <class id="rhr" oils_obj:fieldmapper="resolver::holdings_record" oils_persist:virtual="true">
+ <fields>
+ <field name="public_name" oils_persist:virtual="true" />
+ <field name="target_url" oils_persist:virtual="true" />
+ <field name="target_coverage" oils_persist:virtual="true" />
+ <field name="target_embargo" oils_persist:virtual="true" />
+ </fields>
+ </class>
+
+ <!-- Actually in the DB -->
+ <class id="vmp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::merge_profile" oils_persist:tablename="vandelay.merge_profile" reporter:label="Bib Import Merge Profile">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.merge_profile_id_seq">
+ <field reporter:label="Field ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Add Specification" name="add_spec" reporter:datatype="text"/>
+ <field reporter:label="Replace Specification" name="replace_spec" reporter:datatype="text"/>
+ <field reporter:label="Remove Specification" name="strip_spec" reporter:datatype="text"/>
+ <field reporter:label="Preserve Specification" name="preserve_spec" reporter:datatype="text"/>
+ <field reporter:label="Min. Quality Ratio" name="lwm_ratio" reporter:datatype="float"/>
+ <field reporter:label="Update Bib. Source" name="update_bib_source" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_MERGE_PROFILE CREATE_MERGE_PROFILE" context_field="owner"/>
+ <retrieve permission="ADMIN_MERGE_PROFILE CREATE_MERGE_PROFILE UPDATE_MERGE_PROFILE DELETE_MERGE_PROFILE VIEW_MERGE_PROFILE" context_field="owner"/>
+ <update permission="ADMIN_MERGE_PROFILE UPDATE_MERGE_PROFILE" context_field="owner"/>
+ <delete permission="ADMIN_MERGE_PROFILE DELETE_MERGE_PROFILE" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vibtf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_bib_trash_fields" oils_persist:tablename="vandelay.import_bib_trash_fields" reporter:label="Import/Overlay Fields for Removal">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_bib_trash_fields_id_seq">
+ <field reporter:label="Field ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Group" name="grp" reporter:datatype="link"/>
+ <field reporter:label="Field" name="field" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="grp" reltype="has_a" key="id" map="" class="vibtg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_IMPORT_TRASH_FIELD">
+ <context link="grp" field="owner"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_IMPORT_TRASH_FIELD">
+ <context link="grp" field="owner"/>
+ </update>
+ <delete permission="DELETE_IMPORT_TRASH_FIELD">
+ <context link="grp" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rrbs"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="rating::record_badge_score"
+ oils_persist:tablename="rating.record_badge_score"
+ reporter:label="Statistical Popularity Badge">
+ <fields oils_persist:primary="id"
+ oils_persist:sequence="rating.record_badge_score_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Badge" name="badge" reporter:datatype="link"/>
+ <field reporter:label="Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Score" name="score" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="badge" reltype="has_a" key="id" map="" class="rb"/>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rp"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="rating::popularity_parameter"
+ oils_persist:tablename="rating.popularity_parameter"
+ reporter:label="Statistical Popularity Parameter">
+ <fields oils_persist:primary="id"
+ oils_persist:sequence="rating.popularity_parameter_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Population Function" name="func" reporter:datatype="text"/>
+ <field reporter:label="Require Horizon" name="require_horizon" reporter:datatype="bool"/>
+ <field reporter:label="Require Percentile" name="require_percentile" reporter:datatype="bool"/>
+ <field reporter:label="Require Importance" name="require_importance" reporter:datatype="bool"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_POP_PARAMETER" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_POP_PARAMETER" global_required="true"/>
+ <delete permission="DELETE_POP_PARAMETER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rb"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="rating::badge"
+ oils_persist:tablename="rating.badge"
+ reporter:label="Statistical Popularity Badge">
+ <fields oils_persist:primary="id"
+ oils_persist:sequence="rating.badge_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Scope" name="scope" reporter:datatype="org_unit"/>
+ <field reporter:label="Weight" name="weight" reporter:datatype="int"/>
+ <field reporter:label="Age Horizon" name="horizon_age" reporter:datatype="text"/>
+ <field reporter:label="Importance Horizon" name="importance_age" reporter:datatype="text"/>
+ <field reporter:label="Importance Interval" name="importance_interval" reporter:datatype="text"/>
+ <field reporter:label="Importance Scale" name="importance_scale" reporter:datatype="text"/>
+ <field reporter:label="Percentile" name="percentile" reporter:datatype="float"/>
+ <field reporter:label="Attribute Filter" name="attr_filter" reporter:datatype="text"/>
+ <field reporter:label="Circ Mod Filter" name="circ_mod_filter" reporter:datatype="link"/>
+ <field reporter:label="Bib Source Filter" name="src_filter" reporter:datatype="link"/>
+ <field reporter:label="Location Group Filter" name="loc_grp_filter" reporter:datatype="link"/>
+ <field reporter:label="Recalculation Interval" name="recalc_interval" reporter:datatype="text"/>
+ <field reporter:label="Fixed Rating" name="fixed_rating" reporter:datatype="int"/>
+ <field reporter:label="Discard Value Count" name="discard" reporter:datatype="int"/>
+ <field reporter:label="Last Refresh Time" name="last_calc" reporter:datatype="timestamp"/>
+ <field reporter:label="Popularity Parameter" name="popularity_parameter" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="scope" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="popularity_parameter" reltype="has_a" key="id" map="" class="rp"/>
+ <link field="src_filter" reltype="has_a" key="id" map="" class="cbs"/>
+ <link field="circ_mod_filter" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="loc_grp_filter" reltype="has_a" key="id" map="" class="acplg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_POP_BADGE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_POP_BADGE" global_required="true"/>
+ <delete permission="DELETE_POP_BADGE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vibtg"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="vandelay::import_bib_trash_group"
+ oils_persist:tablename="vandelay.import_bib_trash_group"
+ reporter:label="Import/Overlay Field Groups for Removal">
+ <fields oils_persist:primary="id"
+ oils_persist:sequence="vandelay.import_bib_trash_group_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Always Apply" name="always_apply" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_IMPORT_TRASH_FIELD" context_field="owner"/>
+ <retrieve/>
+ <update permission="UPDATE_IMPORT_TRASH_FIELD" context_field="owner"/>
+ <delete permission="DELETE_IMPORT_TRASH_FIELD" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="vii" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_item" oils_persist:tablename="vandelay.import_item" reporter:label="Import Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_id_seq">
+ <field reporter:label="Import Item ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Import Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Attribute Definition" name="definition" reporter:datatype="link"/>
+ <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
+ <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
+ <field reporter:label="Final Target Copy" name="imported_as" reporter:datatype="link"/>
+ <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="int"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="int"/>
+ <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
+ <field reporter:label="Copy Number" name="copy_number" reporter:datatype="int"/>
+ <field reporter:label="Status" name="status" reporter:datatype="int"/>
+ <field reporter:label="Shelving Location" name="location" reporter:datatype="int"/>
+ <field reporter:label="Circulate" name="circulate" reporter:datatype="bool"/>
+ <field reporter:label="Deposit" name="deposit" reporter:datatype="bool"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
+ <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
+ <field reporter:label="Holdable" name="holdable" reporter:datatype="bool"/>
+ <field reporter:label="Price" name="price" reporter:datatype="money"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
+ <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
+ <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Overlay Match ID" name="internal_id" reporter:datatype="int"/>
+ <field reporter:label="Stat Cat Data" name="stat_cat_data" reporter:datatype="text"/>
+ <field reporter:label="Parts Data" name="parts_data" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
+ <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
+ <link field="definition" reltype="has_a" key="id" map="" class="viiad"/>
+ <link field="imported_as" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_IMPORT_ITEM">
+ <context link="definition" field="owner"/>
+ </create>
+ <retrieve permission="CREATE_IMPORT_ITEM UPDATE_IMPORT_ITEM DELETE_IMPORT_ITEM">
+ <context link="definition" field="owner"/>
+ </retrieve>
+ <update permission="UPDATE_IMPORT_ITEM">
+ <context link="definition" field="owner"/>
+ </update>
+ <delete permission="DELETE_IMPORT_ITEM">
+ <context link="definition" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="viiad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_item_attr_definition" oils_persist:tablename="vandelay.import_item_attr_definition" reporter:label="Import Item Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.import_item_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="text"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="text"/>
+ <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
+ <field reporter:label="Status" name="status" reporter:datatype="text"/>
+ <field reporter:label="Shelving Location" name="location" reporter:datatype="text"/>
+ <field reporter:label="Circulate" name="circulate" reporter:datatype="text"/>
+ <field reporter:label="Deposit" name="deposit" reporter:datatype="text"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
+ <field reporter:label="Reference" name="ref" reporter:datatype="text"/>
+ <field reporter:label="Holdable" name="holdable" reporter:datatype="text"/>
+ <field reporter:label="Price" name="price" reporter:datatype="text"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="text"/>
+ <field reporter:label="Circulate As MARC Type" name="circ_as_type" reporter:datatype="text"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ <field reporter:label="Public Note" name="pub_note" reporter:datatype="text"/>
+ <field reporter:label="Private Note" name="priv_note" reporter:datatype="text"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="text"/>
+ <field reporter:label="Copy Number" name="copy_number" reporter:datatype="text"/>
+ <field reporter:label="Overlay Match ID" name="internal_id" reporter:datatype="text"/>
+ <field reporter:label="Stat Cat Data" name="stat_cat_data" reporter:datatype="text"/>
+ <field reporter:label="Parts Data" name="parts_data" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
+ <retrieve permission="CREATE_IMPORT_ITEM_ATTR_DEF UPDATE_IMPORT_ITEM_ATTR_DEF DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
+ <update permission="UPDATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
+ <delete permission="DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vbq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::bib_queue" oils_persist:tablename="vandelay.bib_queue" reporter:label="Import/Overlay Bib Queue">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
+ <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
+ <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
+ <field reporter:label="Item Import Attribute Definition" name="item_attr_def" reporter:datatype="link"/>
+ <field reporter:label="Match Bucket" name="match_bucket" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="item_attr_def" reltype="has_a" key="id" map="" class="viiad"/>
+ <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
+ <link field="match_bucket" reltype="has_a" key="id" map="" class="cbreb"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vie" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::import_error" oils_persist:tablename="vandelay.import_error" reporter:label="Import/Overlay Error Definitions">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Error Code" name="code" reporter:selector="description" reporter:datatype="id"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="item_attr_def" reltype="has_a" key="id" map="" class="viiad"/>
+ <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vqbr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_bib_record" oils_persist:tablename="vandelay.queued_bib_record" reporter:label="Queued Bib Record">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_record_id_seq">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
+ <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
+ <field reporter:label="Queue" name="queue" reporter:datatype="link"/>
+ <field reporter:label="Bib Source" name="bib_source" reporter:datatype="link"/>
+ <field reporter:label="Final Target Record" name="imported_as" reporter:datatype="link"/>
+ <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
+ <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
+ <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
+ <field reporter:label="Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Matches" name="matches" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Import Items" name="import_items" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
+ <link field="queue" reltype="has_a" key="id" map="" class="vbq"/>
+ <link field="bib_source" reltype="has_a" key="id" map="" class="cbs"/>
+ <link field="imported_as" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="attributes" reltype="has_many" key="record" map="" class="vqbra"/>
+ <link field="matches" reltype="has_many" key="queued_record" map="" class="vbm"/>
+ <link field="import_items" reltype="has_many" key="record" map="" class="vii"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vqbrad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::bib_attr_definition" oils_persist:tablename="vandelay.bib_attr_definition" reporter:label="Queued Bib Record Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.bib_attr_definition_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
+ <field reporter:label="Remove RegExp" name="remove" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_IMPORT_FIELD_DEF" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
+ <delete permission="DELETE_BIB_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vqbra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_bib_record_attr" oils_persist:tablename="vandelay.queued_bib_record_attr" reporter:label="Queued Bib Record Attribute">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_bib_record_attr_id_seq">
+ <field reporter:label="Attribute ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Field" name="field" reporter:datatype="link"/>
+ <field reporter:label="Value" name="attr_value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="vqbr"/>
+ <link field="field" reltype="has_a" key="id" map="" class="vqbrad"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vbm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::bib_match" oils_persist:tablename="vandelay.bib_match" reporter:label="Queued Bib Record Match">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.bib_match_id_seq">
+ <field reporter:label="Match ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Queued Record" name="queued_record" reporter:datatype="link"/>
+ <field reporter:label="Evergreen Record" name="eg_record" reporter:datatype="link"/>
+ <field reporter:label="Quality" name="quality" reporter:datatype="text"/>
+ <field reporter:label="Match Score" name="match_score" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
+ <link field="eg_record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_BIB_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_BIB_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vaq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::authority_queue" oils_persist:tablename="vandelay.authority_queue" reporter:label="Import/Overlay Authority Queue">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queue_id_seq">
+ <field reporter:label="Queue ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ <field reporter:label="Type" name="queue_type" reporter:datatype="text"/>
+ <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vqar" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_authority_record" oils_persist:tablename="vandelay.queued_authority_record" reporter:label="Queued Authority Record">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_record_id_seq">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Import Time" name="import_time" reporter:datatype="timestamp"/>
+ <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
+ <field reporter:label="Queue" name="queue" reporter:datatype="link"/>
+ <field reporter:label="Final Target Record" name="imported_as" reporter:datatype="link"/>
+ <field reporter:label="Import Error" name="import_error" reporter:datatype="link"/>
+ <field reporter:label="Import Error Detail" name="error_detail" reporter:datatype="text"/>
+ <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
+ <field reporter:label="Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Matches" name="matches" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="import_error" reltype="has_a" key="code" map="" class="vie"/>
+ <link field="queue" reltype="has_a" key="id" map="" class="vaq"/>
+ <link field="imported_as" reltype="has_a" key="id" map="" class="are"/>
+ <link field="attributes" reltype="has_many" key="record" map="" class="vqara"/>
+ <link field="matches" reltype="has_many" key="queued_record" map="" class="vam"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vqarad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::authority_attr_definition" oils_persist:tablename="vandelay.authority_attr_definition" reporter:label="Queued Authority Record Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.authority_attr_definition_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
+ <field reporter:label="Remove RegExp" name="remove" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vqara" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::queued_authority_record_attr" oils_persist:tablename="vandelay.queued_authority_record_attr" reporter:label="Queued Authority Record Attribute">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.queued_authority_record_attr_id_seq">
+ <field reporter:label="Attribute ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Field" name="field" reporter:datatype="link"/>
+ <field reporter:label="Value" name="attr_value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="vqar"/>
+ <link field="field" reltype="has_a" key="id" map="" class="vqarad"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vam" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::authority_match" oils_persist:tablename="vandelay.authority_match" reporter:label="Queued Authority Record Match">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.authority_match_id_seq">
+ <field reporter:label="Match ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Queued Record" name="queued_record" reporter:datatype="link"/>
+ <field reporter:label="Evergreen Record" name="eg_record" reporter:datatype="link"/>
+ <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
+ <field reporter:label="Match Score" name="match_score" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="queued_record" reltype="has_a" key="id" map="" class="vqar"/>
+ <link field="eg_record" reltype="has_a" key="id" map="" class="are"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <retrieve permission="CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <update permission="UPDATE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_IMPORT_QUEUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vms" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::match_set" oils_persist:tablename="vandelay.match_set" reporter:label="Record Matching Definition Set">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_id_seq">
+ <field reporter:label="Match Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Match Set Type" name="mtype" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
+ <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET" context_field="owner"/>
+ <update permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
+ <delete permission="ADMIN_IMPORT_MATCH_SET" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vmsp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::match_set_point" oils_persist:tablename="vandelay.match_set_point" reporter:label="Record Matching Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_point_id_seq">
+ <field reporter:label="Match Definition ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Expression Tree Parent" name="parent" reporter:datatype="link"/>
+ <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
+ <field reporter:label="Boolean Operator" name="bool_op" reporter:datatype="text"/>
+ <field reporter:label="Coded Field" name="svf" reporter:datatype="link"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
+ <field reporter:label="Negate" name="negate" reporter:datatype="bool"/>
+ <field reporter:label="Importance" name="quality" reporter:datatype="int"/>
+ <field reporter:label="Expression Tree Children" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Authority Heading" name="heading" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent" reltype="has_a" key="id" map="" class="vmsp"/>
+ <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
+ <link field="svf" reltype="has_a" key="id" map="" class="crad"/>
+ <link field="children" reltype="has_many" key="parent" map="" class="vmsp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </update>
+ <delete permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="vmsq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="vandelay::match_set_quality" oils_persist:tablename="vandelay.match_set_quality" reporter:label="Record Quality Metric">
+ <fields oils_persist:primary="id" oils_persist:sequence="vandelay.match_set_quality_id_seq">
+ <field reporter:label="Quality Metric ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Match Set" name="match_set" reporter:datatype="link"/>
+ <field reporter:label="Record Attribute" name="svf" reporter:datatype="text"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Quality" name="quality" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="match_set" reltype="has_a" key="id" map="" class="vms"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </update>
+ <delete permission="ADMIN_IMPORT_MATCH_SET">
+ <context link="match_set" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="auoi" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_org_unit_opt_in" oils_persist:tablename="actor.usr_org_unit_opt_in" reporter:label="User Sharing Opt-in">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_org_unit_opt_in_id_seq">
+ <field reporter:label="Opt-in ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Workstation" name="opt_in_ws" reporter:datatype="link"/>
+ <field reporter:label="Staff Member" name="staff" reporter:datatype="link"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Allowed Org Unit" name="org_unit" reporter:datatype="link"/>
+ <field reporter:label="Opt-in Date/Time" name="opt_in_ts" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="opt_in_ws" reltype="has_a" key="id" map="" class="aws"/>
+ </links>
+ </class>
+
+ <class id="cgf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::global_flag" oils_persist:tablename="config.global_flag" reporter:label="Global Flags and Settings" oils_persist:field_safe="true">
+ <fields oils_persist:primary="name">
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Enabled" name="enabled" reporter:datatype="bool"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
+ <retrieve permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
+ <update permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
+ <delete permission="ADMIN_GLOBAL_FLAG" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cin" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::index_normalizer" oils_persist:tablename="config.index_normalizer" reporter:label="Indexing Normalizer" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Function" name="func" reporter:datatype="text"/>
+ <field reporter:label="Required Parameter Count" name="param_count" reporter:datatype="int"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmfinm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_field_index_norm_map" oils_persist:tablename="config.metabib_field_index_norm_map" reporter:label="Metabib Field to Indexing Normalizer Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_index_norm_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Metabib Field" name="field" reporter:datatype="link"/>
+ <field reporter:label="Normalizer" name="norm" reporter:datatype="link"/>
+ <field reporter:label="Parameters (JSON Array)" name="params" reporter:datatype="text"/>
+ <field reporter:label="Order of Application" name="pos" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ <link field="norm" reltype="has_a" key="id" map="" class="cin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmrcfmt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc_format" oils_persist:tablename="config.marc_format" reporter:label="MARC Formats" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.marc_format_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TAG_TABLE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_TAG_TABLE" global_required="true"/>
+ <delete permission="ADMIN_TAG_TABLE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmrcfld" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc_field" oils_persist:tablename="config.marc_field" reporter:label="MARC Fields" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.marc_field_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="MARC Format" name="marc_format" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="MARC Record Type" name="marc_record_type" reporter:datatype="text" oils_obj:required="true" />
+ <field reporter:label="MARC Tag" name="tag" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Fixed Field?" name="fixed_field" reporter:datatype="bool"/>
+ <field reporter:label="Repeatable?" name="repeatable" reporter:datatype="bool"/>
+ <field reporter:label="Mandatory?" name="mandatory" reporter:datatype="bool"/>
+ <field reporter:label="Hidden?" name="hidden" reporter:datatype="bool"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="marc_format" reltype="has_a" key="id" map="" class="cmrcfmt"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TAG_TABLE" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_TAG_TABLE" context_field="owner"/>
+ <delete permission="ADMIN_TAG_TABLE" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmrcsubfld" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc_subfield" oils_persist:tablename="config.marc_subfield" reporter:label="MARC Subfields" oils_persist:subfield_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.marc_subfield_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="MARC Format" name="marc_format" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="MARC Record Type" name="marc_record_type" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="MARC Tag" name="tag" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="MARC Subfield" name="code" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Repeatable?" name="repeatable" reporter:datatype="bool"/>
+ <field reporter:label="Mandatory?" name="mandatory" reporter:datatype="bool"/>
+ <field reporter:label="Hidden?" name="hidden" reporter:datatype="bool"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="marc_format" reltype="has_a" key="id" map="" class="cmrcfmt"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TAG_TABLE" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_TAG_TABLE" context_field="owner"/>
+ <delete permission="ADMIN_TAG_TABLE" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="crad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::record_attr_definition" oils_persist:tablename="config.record_attr_definition" reporter:label="SVF Record Attribute Defintion" oils_persist:field_safe="true">
+ <fields oils_persist:primary="name">
+ <field reporter:label="Name" name="name" reporter:datatype="id" reporter:selector="label" oils_obj:required="true"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_obj:required="true" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Multi-valued?" name="multi" reporter:datatype="bool"/>
+ <field reporter:label="Filter?" name="filter" reporter:datatype="bool"/>
+ <field reporter:label="Sorter?" name="sorter" reporter:datatype="bool"/>
+ <field reporter:label="Composite attribute?" name="composite" reporter:datatype="bool"/>
+ <field reporter:label="MARC Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="MARC Subfields" name="sf_list" reporter:datatype="text"/>
+ <field reporter:label="Joiner" name="joiner" reporter:datatype="text"/>
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
+ <field reporter:label="Format" name="format" reporter:datatype="link"/>
+ <field reporter:label="Starting Position" name="start_pos" reporter:datatype="int"/>
+ <field reporter:label="String Length" name="string_len" reporter:datatype="int"/>
+ <field reporter:label="Fixed Field" name="fixed_field" reporter:datatype="text"/>
+ <field reporter:label="Physical Characteristic" name="phys_char_sf" reporter:datatype="text"/>
+ <field reporter:label="Vocabulary URI" name="vocabulary" reporter:datatype="text"/>
+ <field reporter:label="Normalizers" name="normalizers" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+ <links>
+ <link field="format" reltype="has_a" key="name" map="" class="cxt"/>
+ <link field="normalizers" reltype="has_many" key="name" map="" class="crainm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SVF" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_SVF" global_required="true"/>
+ <delete permission="ADMIN_SVF" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="csc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::sms_carrier" oils_persist:tablename="config.sms_carrier" reporter:label="SMS Carrier" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.sms_carrier_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Region" name="region" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool" oils_persist:i18n="true"/>
+ <field reporter:label="Email Gateway" name="email_gateway" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SMS_CARRIER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_SMS_CARRIER" global_required="true"/>
+ <delete permission="ADMIN_SMS_CARRIER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccraed" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::composite_attr_entry_definition" oils_persist:tablename="config.composite_attr_entry_definition" reporter:label="Composite Attribute Definitions" oils_persist:field_safe="true">
+ <fields oils_persist:primary="coded_value">
+ <field reporter:label="Coded Value" name="coded_value" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Defintion" name="definition" reporter:datatype="text" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="coded_value" reltype="has_a" key="id" map="" class="ccvm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CODED_VALUE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CODED_VALUE" global_required="true"/>
+ <delete permission="ADMIN_CODED_VALUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="murav" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::uncontrolled_record_attr_value" oils_persist:tablename="metabib.uncontrolled_record_attr_value" reporter:label="Uncontrolled Record Attribute Values" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.uncontrolled_record_attr_value_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Attribute" name="attr" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="mrs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_sorter" oils_persist:tablename="metabib.record_sorter" reporter:label="Record Sort Values" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.record_sorter_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Bib Record ID" name="source" reporter:datatype="int" oils_obj:required="true"/>
+ <field reporter:label="Attribute" name="attr" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="mravl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr_vector_list" oils_persist:tablename="metabib.record_attr_vector_list" reporter:label="MVF Record Attribute Vectors" oils_persist:field_safe="true">
+ <fields oils_persist:primary="source">
+ <field reporter:label="Record ID" name="source" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Vector" name="vlist" reporter:datatype="text" oils_obj:required="true"/> <!-- Actually an int[], but this is the best we can do in fm_IDL.xml -->
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="mraf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr_flat" oils_persist:tablename="metabib.record_attr_flat" reporter:label="MVF Record Attribute Flat List" oils_persist:field_safe="true">
+ <fields>
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Attribute" name="attr" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="mra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::record_attr" oils_persist:tablename="metabib.record_attr" reporter:label="SVF Record Attribute" oils_persist:field_safe="true" oils_persist:readonly="true">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Attributes" name="attrs" reporter:datatype="text" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="crainm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::record_attr_index_norm_map" oils_persist:tablename="config.record_attr_index_norm_map" reporter:label="SVF Record Attribute to Indexing Normalizer Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.record_attr_index_norm_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="SVF Attribute" name="attr" reporter:datatype="link"/>
+ <field reporter:label="Normalizer" name="norm" reporter:datatype="link"/>
+ <field reporter:label="Parameters (JSON Array)" name="params" reporter:datatype="text"/>
+ <field reporter:label="Order of Application" name="pos" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="attr" reltype="has_a" key="name" map="" class="crad"/>
+ <link field="norm" reltype="has_a" key="id" map="" class="cin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccvm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::coded_value_map" oils_persist:tablename="config.coded_value_map" reporter:label="SVF Record Attribute Coded Value Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.coded_value_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" oils_obj:required="true" reporter:selector="value"/>
+ <field reporter:label="SVF Attribute" name="ctype" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="Code" name="code" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text" oils_obj:required="true" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Search Label" name="search_label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Is Simple Selector" name="is_simple" reporter:datatype="bool"/>
+ <field reporter:label="Concept URI" name="concept_uri" reporter:datatype="text"/>
+ <field reporter:label="Composite Definition" name="composite_def" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="ctype" reltype="has_a" key="name" map="" class="crad"/>
+ <link field="composite_def" reltype="might_have" key="coded_value" map="" class="ccraed"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CODED_VALUE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CODED_VALUE" global_required="true"/>
+ <delete permission="ADMIN_CODED_VALUE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cracct" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::remote_account" oils_persist:tablename="config.remote_account" reporter:label="Remote (3rd party) Account">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.remote_account_id_seq">
+ <field name="id" reporter:datatype="id" reporter:label="ID"/>
+ <field name="label" reporter:datatype="text" reporter:label="Label"/>
+ <field name="host" reporter:datatype="text" reporter:label="Host"/>
+ <field name="username" reporter:datatype="text" reporter:label="Username"/>
+ <field name="password" reporter:datatype="text" reporter:label="Password"/>
+ <field name="account" reporter:datatype="text" reporter:label="Account"/>
+ <field name="path" reporter:datatype="text" reporter:label="Path"/>
+ <field name="owner" reporter:datatype="link" reporter:label="Owner"/>
+ <field name="last_activity" reporter:datatype="timestamp" reporter:label="Last Activity"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
+ <retrieve permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
+ <update permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
+ <delete permission="ADMIN_CONFIG_REMOTE_ACCOUNT" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="czs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::z3950_source" oils_persist:tablename="config.z3950_source" reporter:label="Z39.50 Source">
+ <fields oils_persist:primary="name">
+ <field reporter:label="Z39.50 Source" name="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Host" name="host" reporter:datatype="text"/>
+ <field reporter:label="Port" name="port" reporter:datatype="int"/>
+ <field reporter:label="DB" name="db" reporter:datatype="text"/>
+ <field reporter:label="Record Format" name="record_format" reporter:datatype="text"/>
+ <field reporter:label="Transmission Format" name="transmission_format" reporter:datatype="text"/>
+ <field reporter:label="Auth" name="auth" reporter:datatype="bool"/>
+ <field reporter:label="Attrs" name="attrs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Use Permission" name="use_perm" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="attrs" reltype="has_many" key="source" map="" class="cza"/>
+ <link field="use_perm" reltype="has_a" key="id" map="" class="ppl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cza" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::z3950_attr" oils_persist:tablename="config.z3950_attr" reporter:label="Z39.50 Attribute">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_attr_id_seq">
+ <field reporter:label="Z39.50 Attribute ID" name="id" reporter:datatype="id" reporter:selector="label"/>
+ <field reporter:label="Z39.50 Source" name="source" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Code" name="code" reporter:datatype="int"/>
+ <field reporter:label="Format" name="format" reporter:datatype="int"/>
+ <field reporter:label="Truncation" name="truncation" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="name" map="" class="czs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="czifm" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="config::z3950_index_field_map"
+ oils_persist:tablename="config.z3950_index_field_map"
+ reporter:label="Z39.50 Index Field Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.z3950_index_field_map_id_seq">
+ <field reporter:label="Map ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Metabib Field" name="metabib_field" reporter:datatype="link"/>
+ <field reporter:label="Record Attribute" name="record_attr" reporter:datatype="link"/>
+ <field reporter:label="Z39.50 Attribute" name="z3950_attr" reporter:datatype="link"/>
+ <field reporter:label="Z39.50 Attribute Type" name="z3950_attr_type" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="metabib_field" reltype="has_a" key="id" map="" class="cmf"/>
+ <link field="record_attr" reltype="has_a" key="name" map="" class="crad"/>
+ <link field="z3950_attr" reltype="has_a" key="id" map="" class="cza"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ <delete permission="ADMIN_Z3950_SOURCE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="ateo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::event_output" oils_persist:tablename="action_trigger.event_output" reporter:label="Event Output">
+ <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_output_id_seq">
+ <field reporter:label="Output ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Create Date/Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Data" name="data" reporter:datatype="text"/>
+ <field reporter:label="Is Error" name="is_error" reporter:datatype="bool"/>
+ <field reporter:label="Events" name="events" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Error Events" name="error_events" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="events" reltype="has_many" key="template_output" map="" class="atev"/>
+ <link field="error_events" reltype="has_many" key="error_output" map="" class="atev"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ <delete permission="ADMIN_TRIGGER_TEMPLATE_OUTPUT DELETE_TRIGGER_TEMPLATE_OUTPUT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ath" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::hook" oils_persist:tablename="action_trigger.hook" reporter:label="Trigger Hook Point">
+ <fields oils_persist:primary="key">
+ <field reporter:label="Hook Key" name="key" reporter:datatype="text"/>
+ <field reporter:label="Core Type" name="core_type" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Passive" name="passive" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_HOOK CREATE_TRIGGER_HOOK" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_TRIGGER_HOOK UPDATE_TRIGGER_HOOK" global_required="true"/>
+ <delete permission="ADMIN_TRIGGER_HOOK DELETE_TRIGGER_HOOK" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atcol" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::collector" oils_persist:tablename="action_trigger.collector" reporter:label="Trigger Environment Collector">
+ <fields oils_persist:primary="module">
+ <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ </class>
+
+ <class id="atval" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::validator" oils_persist:tablename="action_trigger.validator" reporter:label="Trigger Condition Validator">
+ <fields oils_persist:primary="module">
+ <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_VALIDATOR CREATE_TRIGGER_VALIDATOR" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_TRIGGER_VALIDATOR UPDATE_TRIGGER_VALIDATOR" global_required="true"/>
+ <delete permission="ADMIN_TRIGGER_VALIDATOR DELETE_TRIGGER_VALIDATOR" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atreact" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::reactor" oils_persist:tablename="action_trigger.reactor" reporter:label="Trigger Event Reactor">
+ <fields oils_persist:primary="module">
+ <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_REACTOR CREATE_TRIGGER_REACTOR" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_TRIGGER_REACTOR UPDATE_TRIGGER_REACTOR" global_required="true"/>
+ <delete permission="ADMIN_TRIGGER_REACTOR DELETE_TRIGGER_REACTOR" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atclean" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::cleanup" oils_persist:tablename="action_trigger.cleanup" reporter:label="Trigger Event Cleanup">
+ <fields oils_persist:primary="module">
+ <field reporter:label="Module Name" name="module" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_CLEANUP CREATE_TRIGGER_CLEANUP" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_TRIGGER_CLEANUP UPDATE_TRIGGER_CLEANUP" global_required="true"/>
+ <delete permission="ADMIN_TRIGGER_CLEANUP DELETE_TRIGGER_CLEANUP" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atenv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::environment" oils_persist:tablename="action_trigger.environment" reporter:label="Trigger Event Environment Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.environment_id_seq">
+ <field reporter:label="Environment ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
+ <field reporter:label="Field Path" name="path" reporter:datatype="text"/>
+ <field reporter:label="Collector" name="collector" reporter:datatype="link"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
+ <link field="collector" reltype="has_a" key="id" map="" class="atcol"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </update>
+ <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atevdef" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::event_definition" oils_persist:tablename="action_trigger.event_definition" reporter:label="Trigger Event Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Enabled" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Hook" name="hook" reporter:datatype="link"/>
+ <field reporter:label="Validator" name="validator" reporter:datatype="link"/>
+ <field reporter:label="Reactor" name="reactor" reporter:datatype="link"/>
+ <field reporter:label="Success Cleanup" name="cleanup_success" reporter:datatype="link"/>
+ <field reporter:label="Failure Cleanup" name="cleanup_failure" reporter:datatype="link"/>
+ <field reporter:label="Processing Delay" name="delay" reporter:datatype="interval"/>
+ <field reporter:label="Max Event Validity Delay" name="max_delay" reporter:datatype="interval"/>
+ <field reporter:label="Processing Delay Context Field" name="delay_field" reporter:datatype="text"/>
+ <field reporter:label="Processing Group Context Field" name="group_field" reporter:datatype="text"/>
+ <field reporter:label="Template" name="template" reporter:datatype="text"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Granularity" name="granularity" reporter:datatype="text"/>
+ <field reporter:label="Opt-In User Field" name="usr_field" reporter:datatype="text"/>
+ <field reporter:label="Opt-In Setting Type" name="opt_in_setting" reporter:datatype="link"/>
+ <field reporter:label="Event Repeatability Delay" name="repeat_delay" reporter:datatype="interval"/>
+ <field reporter:label="Message Template" name="message_template" reporter:datatype="text"/>
+ <field reporter:label="Message Title" name="message_title" reporter:datatype="text"/>
+ <field reporter:label="Message User Path" name="message_usr_path" reporter:datatype="text"/>
+ <field reporter:label="Message Library Path" name="message_library_path" reporter:datatype="text"/>
+ <field reporter:label="Environment Entries" name="env" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Parameters" name="params" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Retention Interval" name="retention_interval" reporter:datatype="interval"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="hook" reltype="has_a" key="key" map="" class="ath"/>
+ <link field="validator" reltype="has_a" key="module" map="" class="atval"/>
+ <link field="reactor" reltype="has_a" key="module" map="" class="atreact"/>
+ <link field="cleanup_success" reltype="has_a" key="module" map="" class="atclean"/>
+ <link field="cleanup_failure" reltype="has_a" key="module" map="" class="atclean"/>
+ <link field="env" reltype="has_many" key="event_def" map="" class="atenv"/>
+ <link field="params" reltype="has_many" key="event_def" map="" class="atevparam"/>
+ <link field="opt_in_setting" reltype="has_a" key="name" map="" class="cust"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF" context_field="owner"/>
+ <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF" context_field="owner"/>
+ <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF" context_field="owner"/>
+ <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atev" controller="open-ils.cstore" oils_obj:fieldmapper="action_trigger::event" oils_persist:tablename="action_trigger.event" reporter:label="Trigger Event Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_id_seq">
+ <field reporter:label="Event ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Target ID" name="target" reporter:datatype="int"/>
+ <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
+ <field reporter:label="Add Time" name="add_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Run Time" name="run_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Update Time" name="update_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Complete Time" name="complete_time" reporter:datatype="timestamp"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="User Data" name="user_data" reporter:datatype="text"/>
+ <field reporter:label="Template Output" name="template_output" reporter:datatype="link"/>
+ <field reporter:label="Error Output" name="error_output" reporter:datatype="text"/>
+ <field reporter:label="Asynchronous Output" name="async_output" reporter:datatype="link"/>
+ <field reporter:label="Update Process" name="update_process" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
+ <link field="template_output" reltype="has_a" key="id" map="" class="ateo"/>
+ <link field="error_output" reltype="has_a" key="id" map="" class="ateo"/>
+ <link field="async_output" reltype="has_a" key="id" map="" class="ateo"/>
+ </links>
+ </class>
+
+ <class id="atevparam" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::event_param" oils_persist:tablename="action_trigger.event_params" reporter:label="Trigger Event Parameter">
+ <fields oils_persist:primary="id" oils_persist:sequence="action_trigger.event_params_id_seq">
+ <field reporter:label="Parameter ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Event Definition" name="event_def" reporter:datatype="link"/>
+ <field reporter:label="Parameter Name" name="param" reporter:datatype="text"/>
+ <field reporter:label="Parameter Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="event_def" reltype="has_a" key="id" map="" class="atevdef"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </update>
+ <delete permission="ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF">
+ <context link="event_def" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="atul" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action_trigger::user_log" reporter:label="Action Trigger User Log" oils_persist:readonly="true">
+ <oils_persist:source_definition><![CDATA[
+ SELECT atevdef.hook,
+ atevdef.name,
+ atevdef.reactor,
+ atev.id,
+ atev.event_def,
+ atev.add_time,
+ atev.run_time,
+ atev.start_time,
+ atev.update_time,
+ atev.complete_time,
+ atev.update_process,
+ atev.state,
+ atev.user_data,
+ atev.template_output,
+ atev.error_output,
+ atev.async_output,
+ targ_circ.id AS target_circ,
+ targ_ahr.id AS target_hold,
+ COALESCE(
+ targ_circ.circ_lib,
+ targ_ahr.pickup_lib
+ ) AS perm_lib
+ FROM action_trigger.event atev
+ JOIN action_trigger.event_definition atevdef ON
+ (atevdef.id = atev.event_def)
+ JOIN action_trigger.hook ath ON
+ (ath.key = atevdef.hook)
+ LEFT JOIN action.circulation targ_circ ON
+ (ath.core_type = 'circ' AND targ_circ.id = atev.target)
+ LEFT JOIN action.hold_request targ_ahr ON
+ (ath.core_type = 'ahr' AND targ_ahr.id = atev.target)
+ WHERE atev.add_time > NOW() - (SELECT MAX(value) FROM (
+ SELECT value::INTERVAL FROM actor.org_unit_ancestor_setting(
+ 'circ.staff.max_visible_event_age',
+ COALESCE(targ_circ.circ_lib, targ_ahr.pickup_lib)
+ ) UNION
+ SELECT '1000 YEARS'::INTERVAL AS value
+ ) ous)
+ ]]></oils_persist:source_definition>
+ <fields oils_persist:primary="id">
+ <field reporter:label="Hook" name="hook" reporter:datatype="link" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" />
+ <field reporter:label="Reactor" name="reactor" reporter:datatype="text" />
+ <field reporter:label="Event ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Event Definition ID" name="event_def" reporter:datatype="int" />
+ <field reporter:label="Event Add Time" name="add_time" reporter:datatype="timestamp" />
+ <field reporter:label="Event Run Time" name="run_time" reporter:datatype="timestamp" />
+ <field reporter:label="Event Start Time" name="start_time" reporter:datatype="timestamp" />
+ <field reporter:label="Event Update Time" name="update_time" reporter:datatype="timestamp" />
+ <field reporter:label="Event Complete Time" name="complete_time" reporter:datatype="timestamp" />
+ <field reporter:label="Event Update PID" name="update_process" reporter:datatype="int" />
+ <field reporter:label="Event State" name="state" reporter:datatype="text" />
+ <field reporter:label="Event User Data" name="user_data" reporter:datatype="text" />
+ <field reporter:label="Event Template Output" name="template_output" reporter:datatype="link" />
+ <field reporter:label="Event Error Output" name="error_output" reporter:datatype="link" />
+ <field reporter:label="Event Async Output" name="async_output" reporter:datatype="link" />
+ <field reporter:label="Target Circulation" name="target_circ" reporter:datatype="link" />
+ <field reporter:label="Target Hold" name="target_hold" reporter:datatype="link" />
+ <field reporter:label="Permission Context" name="perm_lib" reporter:datatype="org_unit" />
+ </fields>
+ <links>
+ <link field="hook" reltype="has_a" key="key" map="" class="ath" />
+ <link field="template_output" reltype="has_a" key="id" map="" class="ateo" />
+ <link field="error_output" reltype="has_a" key="id" map="" class="ateo" />
+ <link field="async_output" reltype="has_a" key="id" map="" class="ateo" />
+ <link field="target_circ" reltype="has_a" key="id" map="" class="circ" />
+ <link field="target_hold" reltype="has_a" key="id" map="" class="ahr" />
+ <link field="perm_lib" reltype="has_a" key="id" map="" class="aou" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_TRIGGER_EVENT" context_field="perm_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aws" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::workstation" oils_persist:tablename="actor.workstation" reporter:label="Workstation">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.workstation_id_seq">
+ <field reporter:label="Workstation ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Workstation Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Toolbars" name="toolbars" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="toolbars" reltype="has_many" key="ws" map="" class="atb"/>
+ <link field="circulations" reltype="has_many" key="workstation" map="" class="circ"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="STAFF_LOGIN" context_field="owning_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_modifier" oils_persist:tablename="config.circ_modifier" reporter:label="Circulation Modifier">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="SIP2 Media Type" name="sip2_media_type" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Magnetic Media" name="magnetic_media" reporter:datatype="bool"/>
+ <field reporter:label="Average Wait Time" name="avg_wait_time" reporter:datatype="interval"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MOD" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MOD" global_required="true"/>
+ <delete permission="ADMIN_CIRC_MOD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aiit" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_item_type" oils_persist:tablename="acq.invoice_item_type" reporter:label="Non-bibliographic Invoice Item Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Prorate?" name="prorate" reporter:datatype="bool"/>
+ <field reporter:label="Blanket?" name="blanket" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_INVOICE_ITEM_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_INVOICE_ITEM_TYPE" global_required="true"/>
+ <delete permission="DELETE_INVOICE_ITEM_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqim" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_method" oils_persist:tablename="acq.invoice_method" reporter:label="Invoice Method used by Vendor" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INVOICE_METHOD CREATE_INVOICE_METHOD" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INVOICE_METHOD UPDATE_INVOICE_METHOD" global_required="true"/>
+ <delete permission="ADMIN_INVOICE_METHOD DELETE_INVOICE_METHOD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccpbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::copy_bucket_type" oils_persist:tablename="container.copy_bucket_type" reporter:label="Copy Bucket Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY_BTYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_COPY_BTYPE" global_required="true"/>
+ <delete permission="DELETE_COPY_BTYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccnbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::call_number_bucket_type" oils_persist:tablename="container.call_number_bucket_type" reporter:label="Call Number Bucket Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_CN_BTYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_CN_BTYPE" global_required="true"/>
+ <delete permission="DELETE_CN_BTYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="bpt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="biblio::peer_type" oils_persist:tablename="biblio.peer_type" reporter:label="Bibliographic Record Peer Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_type_id_seq">
+ <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_PTYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_BIB_PTYPE" global_required="true"/>
+ <delete permission="DELETE_BIB_PTYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="bpbcm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="biblio::peer_bib_copy_map" oils_persist:tablename="biblio.peer_bib_copy_map" reporter:label="Bibliographic Record Peer Copy Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.peer_bib_copy_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Peer Type" name="peer_type" reporter:datatype="link"/>
+ <field reporter:label="Peer Record" name="peer_record" reporter:datatype="link"/>
+ <field reporter:label="Target Copy" name="target_copy" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="peer_type" reltype="has_a" key="id" map="" class="bpt"/>
+ <link field="peer_record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_COPY">
+ <context link="target_copy" field="circ_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_COPY">
+ <context link="target_copy" field="circ_lib"/>
+ </update>
+ <delete permission="UPDATE_COPY">
+ <context link="target_copy" field="circ_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cbrebt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::biblio_record_entry_bucket_type" oils_persist:tablename="container.biblio_record_entry_bucket_type" reporter:label="Bibliographic Record Bucket Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_BTYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_BIB_BTYPE" global_required="true"/>
+ <delete permission="DELETE_BIB_BTYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cubt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::user_bucket_type" oils_persist:tablename="container.user_bucket_type" reporter:label="User Bucket Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_USER_BTYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_USER_BTYPE" global_required="true"/>
+ <delete permission="DELETE_USER_BTYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cvrfm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::videorecording_format_map" oils_persist:tablename="config.videorecording_format_map" reporter:label="Videorecording Format" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="value" reporter:datatype="id"/>
+ <field reporter:label="Format" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_MARC_CODE" global_required="true"/>
+ <delete permission="ADMIN_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="chmw" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::hold_matrix_weights" oils_persist:tablename="config.hold_matrix_weights" reporter:label="Hold Matrix Weights">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_weights_id_seq">
+ <field reporter:label="Hold Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="float"/>
+ <field reporter:label="Request Library" name="request_ou" reporter:datatype="float"/>
+ <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="float"/>
+ <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="float"/>
+ <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="float"/>
+ <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="float"/>
+ <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="float"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="float"/>
+ <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="float"/>
+ <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="float"/>
+ <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="float"/>
+ <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="float"/>
+ <field reporter:label="Juvenile?" name="juvenile_flag" oils_persist:primitive="string" reporter:datatype="float"/>
+ <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
+ <field reporter:label="Item Age <" name="item_age" reporter:datatype="float"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccmw" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_matrix_weights" oils_persist:tablename="config.circ_matrix_weights" reporter:label="Circ Matrix Weights">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_weights_id_seq">
+ <field reporter:label="Circ Weights ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="float"/>
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="float"/>
+ <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="float"/>
+ <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="float"/>
+ <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="float"/>
+ <field reporter:label="Permission Group" name="grp" reporter:datatype="float"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="float"/>
+ <field reporter:label="Copy Location" name="copy_location" reporter:datatype="float"/>
+ <field reporter:label="MARC Type" name="marc_type" reporter:datatype="float"/>
+ <field reporter:label="MARC Form" name="marc_form" reporter:datatype="float"/>
+ <field reporter:label="MARC Bib Level" name="marc_bib_level" reporter:datatype="float"/>
+ <field reporter:label="Videorecording Format" name="marc_vr_format" reporter:datatype="float"/>
+ <field reporter:label="Reference?" name="ref_flag" reporter:datatype="float"/>
+ <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="float"/>
+ <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="float"/>
+ <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="float"/>
+ <field reporter:label="Item Age <" name="item_age" reporter:datatype="float"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cwa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::weight_assoc" oils_persist:tablename="config.weight_assoc" reporter:label="Matrix Weight Association">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.weight_assoc_id_seq">
+ <field reporter:label="Assoc ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Circ Weights" name="circ_weights" reporter:datatype="link"/>
+ <field reporter:label="Hold Weights" name="hold_weights" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="circ_weights" reltype="has_a" key="id" map="" class="ccmw"/>
+ <link field="hold_weights" reltype="has_a" key="id" map="" class="chmw"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="chmm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::hold_matrix_matchpoint" oils_persist:tablename="config.hold_matrix_matchpoint" reporter:label="Hold Matrix Matchpoint">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.hold_matrix_matchpoint_id_seq">
+ <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Strict OU matches?" name="strict_ou_match" reporter:datatype="bool"/>
+ <field reporter:label="User Home Library" name="user_home_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Request Library" name="request_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Pickup Library" name="pickup_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Owning Library" name="item_owning_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Item Circ Library" name="item_circ_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="User Permission Group" name="usr_grp" reporter:datatype="link"/>
+ <field reporter:label="Requestor Permission Group" name="requestor_grp" reporter:datatype="link"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
+ <field reporter:label="Item Age <" name="item_age" reporter:datatype="text"/>
+ <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
+ <field reporter:label="Range is from Owning Lib?" name="distance_is_from_owner" reporter:datatype="bool"/>
+ <field reporter:label="Transit Range" name="transit_range" reporter:datatype="link"/>
+ <field reporter:label="Max Holds" name="max_holds" reporter:datatype="int"/>
+ <field reporter:label="Max includes Frozen" name="include_frozen_holds" reporter:datatype="bool"/>
+ <field reporter:label="Copy Age Hold Protection Rule" name="age_hold_protect_rule" reporter:datatype="link"/>
+ <field name="description" reporter:datatype="text" reporter:label="Description"/>
+ </fields>
+ <links>
+ <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="request_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="pickup_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="item_owning_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="item_circ_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_grp" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="requestor_grp" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
+ <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
+ <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
+ <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
+ <link field="age_hold_protect_rule" reltype="has_a" key="id" map="" class="crahp"/>
+ <link field="transit_range" reltype="has_a" key="id" map="" class="aout"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ <retrieve permission="ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ <update permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ <delete permission="ADMIN_HOLD_MATRIX_MATCHPOINT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccmm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_matrix_matchpoint" oils_persist:tablename="config.circ_matrix_matchpoint" reporter:label="Circulation Matrix Matchpoint">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_matchpoint_id_seq">
+ <field reporter:label="Matchpoint ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Renewal?" name="is_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit" oils_obj:required="true"/>
+ <field reporter:label="Copy Circ Lib" name="copy_circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Copy Owning Lib" name="copy_owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="User Home Lib" name="user_home_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Permission Group" name="grp" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="Copy Location" name="copy_location" reporter:datatype="link"/>
+ <field reporter:label="MARC Type" name="marc_type" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="MARC Form" name="marc_form" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="MARC Bib Level" name="marc_bib_level" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="Videorecording Format" name="marc_vr_format" oils_persist:primitive="string" reporter:datatype="link"/>
+ <field reporter:label="Reference?" name="ref_flag" reporter:datatype="bool"/>
+ <field reporter:label="Juvenile?" name="juvenile_flag" reporter:datatype="bool"/>
+ <field reporter:label="User Age: Lower Bound" name="usr_age_lower_bound" reporter:datatype="text"/>
+ <field reporter:label="User Age: Upper Bound" name="usr_age_upper_bound" reporter:datatype="text"/>
+ <field reporter:label="Item Age <" name="item_age" reporter:datatype="text"/>
+ <field reporter:label="Circulate?" name="circulate" reporter:datatype="bool"/>
+ <field reporter:label="Duration Rule" name="duration_rule" reporter:datatype="link"/>
+ <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Hard Due Date" name="hard_due_date" reporter:datatype="link"/>
+ <field reporter:label="Renewals Override" name="renewals" reporter:datatype="int"/>
+ <field reporter:label="Grace Period Override" name="grace_period" reporter:datatype="interval"/>
+ <field reporter:label="Script Test" name="script_test" reporter:datatype="text"/>
+ <field name="total_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Total Copy/Hold Ratio"/>
+ <field name="available_copy_hold_ratio" reporter:datatype="float" reporter:label="Minimum Available Copy/Hold Ratio"/>
+ <field name="description" reporter:datatype="text" reporter:label="Description"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="user_home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="marc_type" reltype="has_a" key="code" map="" class="citm"/>
+ <link field="marc_form" reltype="has_a" key="code" map="" class="cifm"/>
+ <link field="marc_bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
+ <link field="marc_vr_format" reltype="has_a" key="code" map="" class="cvrfm"/>
+ <link field="duration_rule" reltype="has_a" key="id" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="id" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="id" map="" class="crrf"/>
+ <link field="hard_due_date" reltype="has_a" key="id" map="" class="chdd"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ <retrieve permission="ADMIN_CIRC_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field='org_unit'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cclg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_group" oils_persist:tablename="config.circ_limit_group" reporter:label="Circulation Limit Group">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_group_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccls" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set" oils_persist:tablename="config.circ_limit_set" reporter:label="Circulation Limit Set">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Items Out" name="items_out" reporter:datatype="int"/>
+ <field reporter:label="Min Depth" name="depth" reporter:datatype="int"/>
+ <field reporter:label="Global" name="global" reporter:datatype="bool"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccmlsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_matrix_limit_set_map" oils_persist:tablename="config.circ_matrix_limit_set_map" reporter:label="Circulation Matrix Limit Set Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_matrix_limit_set_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Matchpoint" name="matchpoint" reporter:datatype="link"/>
+ <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
+ <field reporter:label="Fallthrough" name="fallthrough" reporter:datatype="bool"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="matchpoint" reltype="has_a" key="id" map="" class="ccmm"/>
+ <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="matchpoint" field="org_unit"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="matchpoint" field="org_unit"/>
+ </update>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="matchpoint" field="org_unit"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cclscmm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set_circ_mod_map" oils_persist:tablename="config.circ_limit_set_circ_mod_map" reporter:label="Circulation Limit Set Circ Mod Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_circ_mod_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
+ <field reporter:label="Circulation Modifier" name="circ_mod" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
+ <link field="circ_mod" reltype="has_a" key="code" map="" class="ccm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </update>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cclsacpl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set_copy_loc_map" oils_persist:tablename="config.circ_limit_set_copy_loc_map" reporter:label="Circulation Limit Set Copy Location Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_copy_loc_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
+ <field reporter:label="Copy Location" name="copy_loc" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
+ <link field="copy_loc" reltype="has_a" key="id" map="" class="acpl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </update>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cclsgm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::circ_limit_set_group_map" oils_persist:tablename="config.circ_limit_set_group_map" reporter:label="Circulation Limit Set Group Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.circ_limit_set_group_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Limit Set" name="limit_set" reporter:datatype="link"/>
+ <field reporter:label="Limit Group" name="limit_group" reporter:datatype="link"/>
+ <field reporter:label="Check Only" name="check_only" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="limit_set" reltype="has_a" key="id" map="" class="ccls"/>
+ <link field="limit_group" reltype="has_a" key="id" map="" class="cclg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </update>
+ <delete permission="ADMIN_CIRC_MATRIX_MATCHPOINT">
+ <context link="limit_set" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cit" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::identification_type" oils_persist:tablename="config.identification_type" reporter:label="Identification Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.identification_type_id_seq">
+ <field reporter:label="Identification ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Identification Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_IDENT_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_IDENT_TYPE" global_required="true"/>
+ <delete permission="ADMIN_IDENT_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="asvq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey_question" oils_persist:tablename="action.survey_question" reporter:label="User Survey Question">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.survey_question_id_seq">
+ <field reporter:label="Answers" name="answers" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Question ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Question" name="question" reporter:datatype="text"/>
+ <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
+ <link field="responses" reltype="has_many" key="question" map="" class="asvr"/>
+ <link field="answers" reltype="has_many" key="question" map="" class="asva"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SURVEY">
+ <context link="survey" field="owner"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SURVEY">
+ <context link="survey" field="owner"/>
+ </update>
+ <delete permission="ADMIN_SURVEY">
+ <context link="survey" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mbts" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::billable_transaction_summary" oils_persist:tablename="money.materialized_billable_xact_summary" reporter:label="Billable Transaction Summary" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
+ <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
+ <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
+ <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
+ <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
+ <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
+ <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
+ <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="usr" field="home_ou" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mbtslv" controller="open-ils.cstore" oils_obj:fieldmapper="money::billable_transaction_summary_location_view" oils_persist:tablename="money.billable_xact_summary_location_view" reporter:label="Billable Transaction Summary with Billing Location" oils_persist:readonly="true" reporter:core="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
+ <field reporter:label="Transaction ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
+ <field reporter:label="Last Billing Timestamp" name="last_billing_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
+ <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
+ <field reporter:label="Last Payment Timestamp" name="last_payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
+ <field reporter:label="Total Owed" name="total_owed" reporter:datatype="money"/>
+ <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
+ <field reporter:label="Billed User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Transaction Start Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
+ <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+ <class id="aum" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_message" oils_persist:tablename="actor.usr_message" reporter:label="User Message">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_message_id_seq">
+ <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Read Date/Time" name="read_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creating Library" name="sending_lib" reporter:datatype="link"/>
+ <field reporter:label="Message ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Deleted?" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link" />
+ <field reporter:label="Message" name="message" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="sending_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions> <!-- created magically, so no create action -->
+ <retrieve permission="VIEW_USER" context_field="sending_lib" />
+ <update permission="UPDATE_USER" context_field="sending_lib" />
+ <delete permission="UPDATE_USER" context_field="sending_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="auml" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_message_limited" oils_persist:tablename="actor.usr_message_limited" reporter:label="User Message (Limited Access)">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_message_id_seq">
+ <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Read Date/Time" name="read_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creating Library" name="sending_lib" reporter:datatype="link"/>
+ <field reporter:label="Message ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Deleted?" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link" />
+ <field reporter:label="Message" name="message" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="sending_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions> <!-- created magically, so no create action -->
+ <retrieve permission="UPDATE_USER" context_field="sending_lib" owning_user="usr"/>
+ <update permission="UPDATE_USER" context_field="sending_lib" owning_user="usr"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aun" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_note" oils_persist:tablename="actor.usr_note" reporter:label="User Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_note_id_seq">
+ <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creating Staff" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Note ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Note Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link" />
+ <field reporter:label="Note Content" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_USER" context_field="owner">
+ <context link="usr" field="home_ou"/>
+ </create>
+ <!-- note: public notes are still accessible via API -->
+ <retrieve permission="UPDATE_USER">
+ <context link="usr" field="home_ou"/>
+ </retrieve>
+ <update permission="UPDATE_USER">
+ <context link="usr" field="home_ou"/>
+ </update>
+ <delete permission="UPDATE_USER">
+ <context link="usr" field="home_ou"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aupr" controller="open-ils.cstore" oils_obj:fieldmapper="actor::usr_password_reset" oils_persist:tablename="actor.usr_password_reset" reporter:label="User password reset requests">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_password_reset_id_seq">
+ <field reporter:label="Request ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="UUID" name="uuid" reporter:datatype="text"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Request Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Was Reset?" name="has_been_reset" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="aus" controller="open-ils.cstore" oils_obj:fieldmapper="actor::user_setting" oils_persist:tablename="actor.usr_setting" reporter:label="User Setting">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_setting_id_seq">
+ <field reporter:label="Setting ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Name" name="name" reporter:datatype="link"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="name" reltype="has_a" key="name" map="" class="cust"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="mafe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::author_field_entry" oils_persist:tablename="metabib.author_field_entry" reporter:label="Author Field Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.author_field_entry_id_seq">
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="aihu" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::in_house_use" oils_persist:tablename="action.in_house_use" reporter:core="true" reporter:label="In House Use">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.in_house_use_id_seq">
+ <field reporter:label="Use ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Item" name="item" reporter:datatype="int" />
+ <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
+ <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="item" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ancihu" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::non_cat_in_house_use" oils_persist:tablename="action.non_cat_in_house_use" reporter:core="true" reporter:label="Non-cataloged In House Use">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.non_cat_in_house_use_id_seq">
+ <field reporter:label="Use ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Item Type" name="item_type" reporter:datatype="link"/>
+ <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Recording Staff" name="staff" reporter:datatype="link"/>
+ <field reporter:label="Use Date/Time" name="use_time" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
+ <link field="staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="atc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::transit_copy" oils_persist:tablename="action.transit_copy" reporter:core="true" reporter:label="Copy Transit">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
+ <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="bool"/>
+ <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
+ <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
+ <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
+ <field reporter:label="Source" name="source" reporter:datatype="link"/>
+ <field reporter:label="Prev Destination" name="prev_dest" reporter:datatype="org_unit"/>
+ <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
+ <link field="source" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="prev_dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="TRANSIT_COPY" context_field="owner">
+ <context link="target_copy" field="circ_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_TRANSIT" context_field="dest source"/>
+ <delete permission="DELETE_TRANSIT" context_field="dest source"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="asvr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey_response" oils_persist:tablename="action.survey_response" reporter:label="Survey Response">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.survey_response_id_seq">
+ <field reporter:label="Answer" name="answer" reporter:datatype="link"/>
+ <field reporter:label="Answer Date/Time" name="answer_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Effective Answer Date/Time" name="effective_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Question" name="question" reporter:datatype="link"/>
+ <field reporter:label="Response Group ID" name="response_group_id" reporter:datatype="int" />
+ <field reporter:label="Survey" name="survey" reporter:datatype="link"/>
+ <field reporter:label="Responding User" name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
+ <link field="survey" reltype="has_a" key="id" map="" class="asv"/>
+ <link field="answer" reltype="has_a" key="id" map="" class="asva"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SURVEY">
+ <context link="survey" field="owner"/>
+ </create>
+ <retrieve permission="VIEW_USER">
+ <context link="usr" field="home_ou"/>
+ </retrieve>
+ <update permission="ADMIN_SURVEY">
+ <context link="survey" field="owner"/>
+ </update>
+ <delete permission="ADMIN_SURVEY">
+ <context link="survey" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccbi" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::copy_bucket_item" oils_persist:tablename="container.copy_bucket_item" reporter:label="Copy Bucket Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_id_seq">
+ <field name="bucket" />
+ <field name="id" reporter:datatype="id" />
+ <field name="target_copy" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="pos" reporter:datatype="int" />
+ <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
+ <link field="notes" reltype="has_many" map="" key="item" class="ccbin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_COPY_BUCKET">
+ <context link="bucket" owning_lib="owning_lib"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccbin" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_item_note" oils_persist:tablename="container.copy_bucket_item_note" reporter:label="Copy Bucket Item Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_item_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="item" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="item" reltype="has_a" key="id" map="" class="ccbi"/>
+ </links>
+ </class>
+
+ <class id="acs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set" oils_persist:tablename="authority.control_set" reporter:label="Authority Control Set" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_id_seq">
+ <field reporter:label="Control Set ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Controlling Authority Fields" name="authority_fields" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+ <links>
+ <link field="authority_fields" reltype="has_many" key="control_set" map="" class="acsaf"/>
+ <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acsaf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set_authority_field" oils_persist:tablename="authority.control_set_authority_field" reporter:label="Authority Control Set Authority Field" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_authority_field_id_seq">
+ <field reporter:label="Control Set Authority Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Main Entry" name="main_entry" reporter:datatype="link"/>
+ <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
+ <field reporter:label="Subfield List" name="sf_list" reporter:datatype="text" />
+ <field reporter:label="Subfield List for Display" name="display_sf_list" reporter:datatype="text" />
+ <field reporter:label="Non-filing Indicator" name="nfi" reporter:datatype="text" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Linking Subfield" name="linking_subfield" reporter:datatype="text" />
+ <field reporter:label="Subordinate Entries" name="sub_entries" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Controlled Bib Fields" name="bib_fields" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Thesauri" name="thesauri" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Browse Axis Maps" name="axis_maps" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Joiner" name="joiner" reporter:datatype="text" />
+ <field reporter:label="Heading Field" name="heading_field" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="axis_maps" reltype="has_many" key="field" map="" class="abaafm"/>
+ <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
+ <link field="bib_fields" reltype="has_many" key="authority_field" map="" class="acsbf"/>
+ <link field="thesauri" reltype="has_many" key="control_set" map="" class="at"/>
+ <link field="main_entry" reltype="has_a" key="id" map="" class="acsaf"/>
+ <link field="sub_entries" reltype="has_many" key="main_entry" map="" class="acsaf"/>
+ <link field="heading" reltype="has_a" key="id" map="" class="ahf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acsbf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set_bib_field" oils_persist:tablename="authority.control_set_bib_field" reporter:label="Authority Control Set Bib Field" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_bib_field_id_seq">
+ <field reporter:label="Controlled Bib Field ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Controlling Authority Field" name="authority_field" reporter:datatype="link"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.{3}$"/>
+ </fields>
+ <links>
+ <link field="authority_field" reltype="has_a" key="id" map="" class="acsaf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acsbfmfm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::control_set_bib_field_metabib_field_map" oils_persist:tablename="authority.control_set_bib_field_metabib_field_map" reporter:label="Authority Control Set Bib Field to Metabib Field Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.control_set_bib_field_metabib_field_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Bib Field" name="bib_field" reporter:datatype="link"/>
+ <field reporter:label="Metabib Field" name="metabib_field" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="bib_field" reltype="has_a" key="id" map="" class="acsbf"/>
+ <link field="metabib_field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="at" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::thesaurus" oils_persist:tablename="authority.thesaurus" reporter:label="Authority Thesaurus" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Thesaurus Code" name="code" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Short Code" name="short_code" reporter:datatype="text" />
+ <field reporter:label="URI" name="uri" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aba" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::browse_axis" oils_persist:tablename="authority.browse_axis" reporter:label="Authority Browse Axis" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:datatype="id" reporter:selector="name" oils_obj:validate="^\S+$"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" oils_obj:required="true"/>
+ <field reporter:label="Sorter Attribute" name="sorter" reporter:datatype="link"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Authority Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Authority Field Maps" name="maps" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+ <links>
+ <link field="sorter" reltype="has_a" key="name" map="" class="crad"/>
+ <link field="fields" reltype="has_many" key="axis" map="field" class="abaafm"/>
+ <link field="maps" reltype="has_many" key="axis" map="" class="abaafm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="abaafm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::browse_axis_authority_field_map" oils_persist:tablename="authority.browse_axis_authority_field_map" reporter:label="Authority Browse Axis Field Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.browse_axis_authority_field_map_id_seq">
+ <field reporter:label="Axis Authority Field Map ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Authority Field" name="field" oils_obj:required="true" reporter:datatype="link"/>
+ <field reporter:label="Axis" name="axis" reporter:datatype="link" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="field" reltype="has_a" key="id" map="" class="acsaf"/>
+ <link field="axis" reltype="has_a" key="code" map="" class="aba"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="are" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::record_entry" oils_persist:tablename="authority.record_entry" reporter:label="Authority Record Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.record_entry_id_seq">
+ <field name="active" reporter:datatype="bool"/>
+ <field name="create_date" reporter:datatype="timestamp"/>
+ <field name="creator" />
+ <field name="deleted" reporter:datatype="bool"/>
+ <field name="edit_date" reporter:datatype="timestamp"/>
+ <field name="editor" />
+ <field name="id" reporter:datatype="id" />
+ <field name="last_xact_id" />
+ <field name="marc" />
+ <field name="source" />
+ <field reporter:label="Control Set" name="control_set" reporter:datatype="link"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit"/>
+ <field name="heading" />
+ <field name="simple_heading" />
+ <field name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="bib_links" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="control_set" reltype="has_a" key="id" map="" class="acs"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="notes" reltype="has_many" key="record" map="" class="arn"/>
+ <link field="bib_links" reltype="has_many" key="authority" map="" class="abl"/>
+ <link field="fixed_fields" reltype="might_have" key="record" map="" class="ard"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_RECORD IMPORT_MARC" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_RECORD" global_required="true"/>
+ <delete permission="DELETE_AUTHORITY_RECORD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ard" controller="open-ils.cstore" oils_obj:fieldmapper="authority::record_descriptor" oils_persist:tablename="authority.rec_descriptor" reporter:label="Authority Record Descriptor">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.rec_descriptor_id_seq">
+ <field name="char_encoding" />
+ <field name="id" />
+ <field name="record" />
+ <field name="record_status" />
+ <field name="thesaurus" />
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="are"/>
+ <link field="thesaurus" reltype="might_have" key="code" map="" class="at"/>
+ </links>
+ </class>
+ <class id="abl" controller="open-ils.cstore" oils_obj:fieldmapper="authority::bib_linking" oils_persist:tablename="authority.bib_linking" reporter:label="Authority-Bibliographic Record Link">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.bib_linking_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="bib" reporter:datatype="link" />
+ <field name="authority" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="bib" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="authority" reltype="has_a" key="id" map="" class="are"/>
+ </links>
+ </class>
+ <class id="ash" controller="open-ils.cstore" oils_obj:fieldmapper="authority::simple_heading" oils_persist:tablename="authority.simple_heading" reporter:label="Authority Simple Heading">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.simple_heading_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="record" reporter:datatype="link" />
+ <field name="atag" reporter:datatype="link" />
+ <field name="value" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="are"/>
+ <link field="atag" reltype="has_a" key="id" map="" class="acsaf"/>
+ </links>
+ </class>
+
+ <class id="ahf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::heading_field" oils_persist:tablename="authority.heading_field" reporter:label="Authority Heading Fields">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.heading_fields_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="heading_type" reporter:datatype="text" reporter:label="Heading Type" />
+ <field name="heading_purpose" reporter:datatype="text" reporter:label="Heading Purpose" />
+ <field name="label" reporter:datatype="text" reporter:label="Heading Field Label" />
+ <field name="format" reporter:datatype="text" reporter:label="Heading XSLT Format" />
+ <field name="heading_xpath" reporter:datatype="text" reporter:label="Heading XPath" />
+ <field name="component_xpath" reporter:datatype="text" reporter:label="Heading Component XPath" />
+ <field name="type_xpath" reporter:datatype="text" reporter:label="Related/Variant Type XPath" />
+ <field name="thesaurus_xpath" reporter:datatype="text" reporter:label="Thesaurus XPath" />
+ <field name="thesaurus_override_xpath" reporter:datatype="text" reporter:label="Thesaurus Override XPath" />
+ <field name="joiner" reporter:datatype="text" reporter:label="Joiner string" />
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ <delete permission="UPDATE_AUTHORITY_CONTROL_SET" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="clm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::language_map" oils_persist:tablename="config.language_map" reporter:label="Language Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code" oils_persist:sequence="">
+ <field reporter:label="Language Code" name="code" reporter:selector="value" reporter:datatype="text"/>
+ <field reporter:label="Language" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_MARC_CODE" global_required="true"/>
+ <delete permission="DELETE_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mccp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::credit_card_payment" oils_persist:tablename="money.credit_card_payment" reporter:label="Credit Card Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field name="accepting_usr" />
+ <field name="amount" reporter:datatype="money" />
+ <field name="amount_collected" reporter:datatype="money" />
+ <field name="approval_code" reporter:datatype="text"/>
+ <field name="cash_drawer" reporter:datatype="link"/>
+ <field name="cc_number" reporter:datatype="text"/>
+ <field name="cc_order_number" reporter:datatype="text"/>
+ <field name="cc_processor" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="note" reporter:datatype="text"/>
+ <field name="payment_ts" reporter:datatype="timestamp"/>
+ <field name="xact" reporter:datatype="link"/>
+ <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cxt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::xml_transform" oils_persist:tablename="config.xml_transform" reporter:label="XML/XSLT Transform Definition">
+ <fields oils_persist:primary="name">
+ <field reporter:label="Name" name="name" reporter:datatype="text" />
+ <field reporter:label="Namespace URI" name="namespace_uri" reporter:datatype="text"/>
+ <field reporter:label="Namespace Prefix" name="prefix" reporter:datatype="text"/>
+ <field reporter:label="XSLT" name="xslt" reporter:datatype="text" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_XML_TRANSFORM" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_XML_TRANSFORM" global_required="true"/>
+ <delete permission="DELETE_XML_TRANSFORM" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmsa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_search_alias" oils_persist:tablename="config.metabib_search_alias" reporter:label="Metabib Search Alias" oils_persist:field_safe="true">
+ <fields oils_persist:primary="alias">
+ <field reporter:label="Alias (RegExp)" name="alias" reporter:datatype="text"/>
+ <field reporter:label="Class" name="field_class" reporter:datatype="link"/>
+ <field reporter:label="Field" name="field" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_METABIB_SEARCH_ALIAS" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_METABIB_SEARCH_ALIAS" global_required="true"/>
+ <delete permission="DELETE_METABIB_SEARCH_ALIAS" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_class" oils_persist:tablename="config.metabib_class" reporter:label="Metabib Class" oils_persist:field_safe="true">
+ <fields oils_persist:primary="name">
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Buoyant?" name="buoyant" reporter:datatype="bool" />
+ <field reporter:label="Restrict?" name="restrict" reporter:datatype="bool" />
+ <field reporter:label="Combined?" name="combined" reporter:datatype="bool" />
+ <field reporter:label="A Weight" name="a_weight" reporter:datatype="float" />
+ <field reporter:label="B Weight" name="b_weight" reporter:datatype="float" />
+ <field reporter:label="C Weight" name="c_weight" reporter:datatype="float" />
+ <field reporter:label="D Weight" name="d_weight" reporter:datatype="float" />
+ <field reporter:label="Fields" name="fields" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+ <links>
+ <link field="fields" reltype="has_many" key="name" map="" class="cmf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_METABIB_CLASS" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_METABIB_CLASS" global_required="true"/>
+ <delete permission="DELETE_METABIB_CLASS" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_field" oils_persist:tablename="config.metabib_field" reporter:label="Metabib Field" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_id_seq">
+ <field reporter:label="Class" name="field_class" reporter:datatype="link"/>
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="label"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text"/>
+ <field reporter:label="Weight" name="weight" reporter:datatype="int" />
+ <field reporter:label="Format" name="format" reporter:datatype="link"/>
+ <field reporter:label="Search Field" name="search_field" reporter:datatype="bool" />
+ <field reporter:label="Facet Field" name="facet_field" reporter:datatype="bool" />
+ <field reporter:label="Facet XPath" name="facet_xpath" reporter:datatype="text" />
+ <field reporter:label="Display XPath" name="display_xpath" reporter:datatype="text" />
+ <field reporter:label="Browse Field" name="browse_field" reporter:datatype="bool" />
+ <field reporter:label="Browse XPath" name="browse_xpath" reporter:datatype="text" />
+ <field reporter:label="Restrict?" name="restrict" reporter:datatype="bool" />
+ <field reporter:label="Display Field?" name="display_field" reporter:datatype="bool" />
+ <field reporter:label="Display Field Map" name="display_field_map" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
+ <link field="display_field_map" reltype="might_have" key="field" map="" class="cdfm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_METABIB_FIELD" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_METABIB_FIELD" global_required="true"/>
+ <delete permission="DELETE_METABIB_FIELD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cbho" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::best_hold_order" oils_persist:tablename="config.best_hold_order" reporter:label="Best-Hold Sort Order">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.best_hold_order_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name" />
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Capture Lib to Pickup Lib Proximity" name="pprox" reporter:datatype="int" />
+ <field reporter:label="Circ Lib to Request Lib Proximity" name="hprox" reporter:datatype="int" />
+ <field reporter:label="Adjusted Circ Lib to Pickup Lib Proximity" name="aprox" reporter:datatype="int" />
+ <field reporter:label="Adjusted Capture Location to Pickup Lib Proximity" name="approx" reporter:datatype="int" />
+ <field reporter:label="Hold Priority" name="priority" reporter:datatype="int" />
+ <field reporter:label="Hold Cut-in-line State" name="cut" reporter:datatype="int" />
+ <field reporter:label="Hold Selection Depth" name="depth" reporter:datatype="int" />
+ <field reporter:label="Copy Has Circulated From Home Lately" name="htime" reporter:datatype="int" />
+ <field reporter:label="Hold Request Time" name="rtime" reporter:datatype="int" />
+ <field reporter:label="Copy Has Been Home At All Lately" name="shtime" reporter:datatype="int" />
+ </fields>
+ <links>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
+ <retrieve permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
+ <update permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
+ <delete permission="ADMIN_HOLD_CAPTURE_SORT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cbfp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::biblio_fingerprint" oils_persist:tablename="config.biblio_fingerprint" reporter:label="Fingerprint Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.biblio_fingerprint_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="xpath" reporter:datatype="text"/>
+ <field name="format" reporter:datatype="link"/>
+ <field name="first_word" reporter:datatype="bool" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIBLIO_FINGERPRINT" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_BIBLIO_FINGERPRINT" global_required="true"/>
+ <delete permission="DELETE_BIBLIO_FINGERPRINT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cam" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::audience_map" oils_persist:tablename="config.audience_map" reporter:label="Audience Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code" oils_persist:sequence="">
+ <field reporter:label="Audience Code" name="code" reporter:selector="value" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Audience" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_MARC_CODE" global_required="true"/>
+ <delete permission="DELETE_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cifm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::item_form_map" oils_persist:tablename="config.item_form_map" reporter:label="Item Form Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code" oils_persist:sequence="">
+ <field reporter:label="Item Form Code" name="code" reporter:selector="value" reporter:datatype="text"/>
+ <field reporter:label="Item Form" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_MARC_CODE" global_required="true"/>
+ <delete permission="ADMIN_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acnc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::call_number_class" oils_persist:tablename="asset.call_number_class" reporter:label="Call number classification scheme">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_class_id_seq">
+ <field reporter:label="Call number class ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Normalizer function" name="normalizer" reporter:datatype="text"/>
+ <field reporter:label="Call number fields" name="field" reporter:datatype="text"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acns" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::call_number_suffix" oils_persist:tablename="asset.call_number_suffix" reporter:label="Call Number/Volume Suffix">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_suffix_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Label Sort Key" name="label_sortkey" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_VOLUME_SUFFIX" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="UPDATE_VOLUME_SUFFIX" context_field="owning_lib"/>
+ <delete permission="DELETE_VOLUME_SUFFIX" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acnp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::call_number_prefix" oils_persist:tablename="asset.call_number_prefix" reporter:label="Call Number/Volume Prefix">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_prefix_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Label Sort Key" name="label_sortkey" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_VOLUME_PREFIX" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="UPDATE_VOLUME_PREFIX" context_field="owning_lib"/>
+ <delete permission="DELETE_VOLUME_PREFIX" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::call_number" oils_persist:tablename="asset.call_number" reporter:label="Call Number/Volume">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_id_seq">
+ <field reporter:label="Copies" name="copies" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Create Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Call Number/Volume ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Call Number Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Bib Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="URI Maps" name="uri_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="URIs" name="uris" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Call Number Sort Key" name="label_sortkey" reporter:datatype="text"/>
+ <field reporter:label="Classification Scheme" name="label_class" reporter:datatype="link"/>
+ <field reporter:label="Prefix" name="prefix" reporter:datatype="link"/>
+ <field reporter:label="Suffix" name="suffix" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="notes" reltype="has_many" key="call_number" map="" class="acnn"/>
+ <link field="copies" reltype="has_many" key="call_number" map="" class="acp"/>
+ <link field="uris" reltype="has_many" key="call_number" map="uri" class="auricnm"/>
+ <link field="uri_maps" reltype="has_many" key="call_number" map="" class="auricnm"/>
+ <link field="label_class" reltype="has_a" key="id" map="" class="acnc"/>
+ <link field="prefix" reltype="has_a" key="id" map="" class="acnp"/>
+ <link field="suffix" reltype="has_a" key="id" map="" class="acns"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_VOLUME" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="UPDATE_VOLUME" context_field="owning_lib"/>
+ <delete permission="DELETE_VOLUME" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="auri" controller="open-ils.cstore" oils_obj:fieldmapper="asset::uri" oils_persist:tablename="asset.uri" reporter:label="Electronic Access URI">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.uri_id_seq">
+ <field reporter:label="URI ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="URI" name="href" reporter:datatype="text"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Use Information" name="use_restriction" reporter:datatype="text"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Call Number Maps" name="call_number_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Call Numbers" name="call_numbers" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="call_numbers" reltype="has_many" key="uri" map="call_number" class="auricnm"/>
+ <link field="call_number_maps" reltype="has_many" key="uri" map="" class="auricnm"/>
+ </links>
+ </class>
+ <class id="auricnm" controller="open-ils.cstore" oils_obj:fieldmapper="asset::uri_call_number_map" oils_persist:tablename="asset.uri_call_number_map" reporter:label="Electronic Access URI to Call Number Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.uri_call_number_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="URI" name="uri" reporter:datatype="int"/>
+ <field reporter:label="Call Number" name="call_number" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="uri" reltype="has_a" key="id" map="" class="auri"/>
+ <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
+ </links>
+ </class>
+ <class id="cst" controller="open-ils.cstore" oils_obj:fieldmapper="config::standing" oils_persist:tablename="config.standing" reporter:label="Standing Penalty">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.standing_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="value" oils_persist:i18n="true" />
+ </fields>
+ <links/>
+ </class>
+ <class id="mous" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::open_user_summary" oils_persist:tablename="money.open_usr_summary" reporter:label="Open User Summary">
+ <fields oils_persist:primary="usr" oils_persist:sequence="">
+ <field name="balance_owed" reporter:datatype="money" />
+ <field name="total_owed" reporter:datatype="money" />
+ <field name="total_paid" reporter:datatype="money" />
+ <field name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER">
+ <context link="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mct" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::collections_tracker" oils_persist:tablename="money.collections_tracker" reporter:label="Collections Tracker">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.collections_tracker_id_seq">
+ <field name="collector" />
+ <field name="enter_time" reporter:datatype="timestamp"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="location" reporter:datatype="link"/>
+ <field name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="collector" reltype="has_a" key="id" map="" class="au"/>
+ <link field="location" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="money.collections_tracker.create" context_field="location"/>
+ <retrieve permission="money.collections_tracker.create" context_field="location"/>
+ <delete permission="money.collections_tracker.create" context_field="location"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="bre" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="biblio::record_entry" oils_persist:tablename="biblio.record_entry" reporter:core="true" reporter:label="Bibliographic Record">
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry_id_seq">
+ <field reporter:label="Call Numbers" name="call_numbers" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Fixed Field Entry" name="fixed_fields" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Is Active?" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Record Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Record Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted?" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Last Edit Data/Time" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Last Transaction ID" name="last_xact_id" reporter:datatype="text"/>
+ <field reporter:label="MARC21Slim" name="marc" reporter:datatype="text"/>
+ <field reporter:label="Overall Quality" name="quality" reporter:datatype="int" />
+ <field reporter:label="Record Source" name="source" reporter:datatype="link"/>
+ <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
+ <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Share Depth" name="share_depth" reporter:datatype="int"/>
+ <field reporter:label="Metarecord" name="metarecord" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Language Code" name="language" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Non-MARC Record Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Indexed Keyword Field Entries" name="keyword_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Indexed Subject Field Entries" name="subject_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Indexed Title Field Entries" name="title_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Indexed Identifier Field Entries" name="identifier_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Indexed Author Field Entries" name="author_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Indexed Series Field Entries" name="series_field_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Flattened MARC Fields " name="full_record_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Simple Record Extracts " name="simple_record" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Authority Links" name="authority_links" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Subscriptions" name="subscriptions" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="SVF Attributes" name="attrs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="MVF Attributes" name="mattrs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Display Fields" name="display_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Flat Display Entries" name="flat_display_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Compressed Display Entries" name="compressed_display_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Wide Display Entries" name="wide_display_entry" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="simple_record" reltype="might_have" key="id" map="" class="rmsr"/>
+ <link field="metarecord" reltype="might_have" key="source" map="metarecord" class="mmrsm"/>
+ <link field="call_numbers" reltype="has_many" key="record" map="" class="acn"/>
+ <link field="keyword_field_entries" reltype="has_many" key="source" map="" class="mkfe"/>
+ <link field="fixed_fields" reltype="might_have" key="record" map="" class="mrd"/>
+ <link field="language" reltype="might_have" key="record" map="item_lang" class="mrd"/>
+ <link field="subject_field_entries" reltype="has_many" key="source" map="" class="msfe"/>
+ <link field="title_field_entries" reltype="has_many" key="source" map="" class="mtfe"/>
+ <link field="identifier_field_entries" reltype="has_many" key="source" map="" class="mife"/>
+ <link field="notes" reltype="has_many" key="record" map="" class="bren"/>
+ <link field="author_field_entries" reltype="has_many" key="source" map="" class="mafe"/>
+ <link field="series_field_entries" reltype="has_many" key="source" map="" class="msefe"/>
+ <link field="full_record_entries" reltype="has_many" key="record" map="" class="mfr"/>
+ <link field="authority_links" reltype="has_many" key="bib" map="" class="abl"/>
+ <link field="subscriptions" reltype="has_many" key="record_entry" map="" class="ssub"/>
+ <link field="attrs" reltype="might_have" key="id" map="" class="mra"/>
+ <link field="mattrs" reltype="might_have" key="id" map="" class="mraf"/>
+ <link field="source" reltype="has_a" key="id" map="" class="cbs"/>
+ <link field="display_entries" reltype="has_many" key="source" map="" class="mde"/>
+ <link field="flat_display_entries" reltype="has_many" key="source" map="" class="mfde"/>
+ <link field="compressed_display_entries" reltype="has_many" key="source" map="" class="mcde"/>
+ <link field="wide_display_entry" reltype="might_have" key="source" map="" class="mwde"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MARC IMPORT_MARC" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_MARC" global_required="true"/>
+ <!-- WARNING: Deleting records via PCRUD does NOT check that any prerequisite conditions have been handled first. It is your responsibility to check for those conditions before deleting bib records. -->
+ <delete permission="DELETE_RECORD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aouhoo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit::hours_of_operation" oils_persist:tablename="actor.hours_of_operation" reporter:label="Hours of Operation">
+ <fields oils_persist:primary="id">
+ <field name="dow_0_close" />
+ <field name="dow_0_open" />
+ <field name="dow_1_close" />
+ <field name="dow_1_open" />
+ <field name="dow_2_close" />
+ <field name="dow_2_open" />
+ <field name="dow_3_close" />
+ <field name="dow_3_open" />
+ <field name="dow_4_close" />
+ <field name="dow_4_open" />
+ <field name="dow_5_close" />
+ <field name="dow_5_open" />
+ <field name="dow_6_close" />
+ <field name="dow_6_open" />
+ <field name="id" reporter:datatype="id" />
+ <field name="org_unit" oils_persist:virtual="true" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="id" reltype="might_have" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_HOURS_OF_OPERATION" context_field="id"/>
+ <retrieve/>
+ <update permission="UPDATE_HOURS_OF_OPERATION" context_field="id"/>
+ <delete permission="DELETE_HOURS_OF_OPERATION" context_field="id"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="bmp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="biblio::monograph_part" oils_persist:tablename="biblio.monograph_part" reporter:label="Monograph Parts" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.monograph_part_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="record" reporter:datatype="link"/>
+ <field name="label" reporter:datatype="text"/>
+ <field name="label_sortkey" reporter:datatype="text"/>
+ <field name="deleted" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MONOGRAPH_PART" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_MONOGRAPH_PART" global_required="true"/>
+ <delete permission="DELETE_MONOGRAPH_PART" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acpm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_part_map" oils_persist:tablename="asset.copy_part_map" reporter:label="Copy Monograph Part Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_part_map_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="target_copy" reporter:datatype="link" />
+ <field name="part" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="part" reltype="has_a" key="id" map="" class="bmp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="MAP_MONOGRAPH_PART" global_required="true"/>
+ <retrieve/>
+ <update permission="MAP_MONOGRAPH_PART" global_required="true"/>
+ <delete permission="MAP_MONOGRAPH_PART" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aoucd" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit::closed_date" oils_persist:tablename="actor.org_unit_closed" reporter:label="Closed Dates">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_closed_id_seq">
+ <field name="close_end" reporter:datatype="timestamp" />
+ <field name="close_start" reporter:datatype="timestamp" />
+ <field name="id" reporter:datatype="id" />
+ <field name="org_unit" reporter:datatype="org_unit"/>
+ <field name="reason" reporter:datatype="text"/>
+ <field name="full_day" reporter:datatype="bool"/>
+ <field name="multi_day" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_ORG_UNIT_CLOSING" context_field="org_unit"/>
+ <retrieve/>
+ <update permission="UPDATE_ORG_UNIT_CLOSING" context_field="org_unit"/>
+ <delete permission="DELETE_ORG_UNIT_CLOSING" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="crcd" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::circ_duration" oils_persist:tablename="config.rule_circ_duration" reporter:label="Circulation Duration Rule">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.rule_circ_duration_id_seq">
+ <field name="extended" reporter:datatype="interval"/>
+ <field name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field name="max_renewals" reporter:datatype="int" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="normal" reporter:datatype="interval"/>
+ <field name="shrt" reporter:datatype="interval"/>
+ </fields>
+ <links>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_CIRC_DURATION" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_CIRC_DURATION" global_required="true"/>
+ <delete permission="DELETE_CIRC_DURATION" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="chdd" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::hard_due_date" oils_persist:tablename="config.hard_due_date" reporter:label="Hard Due Date">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.hard_due_date_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Always Use?" name="forceto" reporter:datatype="bool"/>
+ <field reporter:label="Current Ceiling Date" name="ceiling_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_CIRC_DURATION" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_CIRC_DURATION" global_required="true"/>
+ <delete permission="DELETE_CIRC_DURATION" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="chddv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::hard_due_date_values" oils_persist:tablename="config.hard_due_date_values" reporter:label="Hard Due Date Values">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.hard_due_date_values_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Hard Due Date" name="hard_due_date" reporter:datatype="link"/>
+ <field reporter:label="Ceiling Date" name="ceiling_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Active Date" name="active_date" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="hard_due_date" reltype="has_a" key="id" map="" class="chdd"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_CIRC_DURATION" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_CIRC_DURATION" global_required="true"/>
+ <delete permission="DELETE_CIRC_DURATION" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="mobts" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::open_billable_transaction_summary" oils_persist:tablename="money.open_billable_xact_summary" reporter:label="Open Billable Transaction Summary">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field name="balance_owed" reporter:datatype="money"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="last_billing_note" reporter:datatype="text"/>
+ <field name="last_billing_ts" reporter:datatype="timestamp"/>
+ <field name="last_billing_type" reporter:datatype="text"/>
+ <field name="last_payment_note" reporter:datatype="text"/>
+ <field name="last_payment_ts" reporter:datatype="timestamp"/>
+ <field name="last_payment_type" reporter:datatype="text"/>
+ <field name="total_owed" reporter:datatype="money"/>
+ <field name="total_paid" reporter:datatype="money"/>
+ <field name="usr" reporter:datatype="link"/>
+ <field name="xact_finish" reporter:datatype="timestamp" />
+ <field name="xact_start" reporter:datatype="timestamp" />
+ <field name="xact_type" reporter:datatype="text"/>
+ <field name="xact" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="grocery" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="reservation" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="billing_location" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
+ <link field="reservation" reltype="might_have" key="id" map="" class="bresv"/>
+ <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="usr" field="home_ou" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="au" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::user" oils_persist:tablename="actor.usr" reporter:core="true" reporter:label="ILS User">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_id_seq">
+ <field reporter:label="All Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="All Library Cards" name="cards" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="All Circulations" name="checkouts" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="All Hold Requests" name="hold_requests" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="All Permissions" name="permissions" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="All User Settings" name="settings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Standing Penalties" name="standing_penalties" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Survey Responses" name="survey_responses" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Workstation Org Unit" name="ws_ou" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Workstation ID" name="wsid" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ <field reporter:label="Barred" name="barred" reporter:datatype="bool"/>
+ <field reporter:label="Physical Address" name="billing_address" reporter:datatype="link"/>
+ <field reporter:label="Current Library Card" name="card" reporter:datatype="link"/>
+ <field reporter:label="Claims-returned Count" name="claims_returned_count" reporter:datatype="int" />
+ <field reporter:label="Claims Never Checked Out Count" name="claims_never_checked_out_count" reporter:datatype="int" />
+ <field reporter:label="Record Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Credit Balance" name="credit_forward_balance" reporter:datatype="money" />
+ <field reporter:label="Daytime Phone" name="day_phone" reporter:datatype="text"/>
+ <field reporter:label="Date of Birth" name="dob" reporter:datatype="timestamp"/>
+ <field reporter:label="Email Address" name="email" reporter:datatype="text"/>
+ <field reporter:label="Evening Phone" name="evening_phone" reporter:datatype="text"/>
+ <field reporter:label="Privilege Expiration Date" name="expire_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Name" name="family_name" reporter:datatype="text"/>
+ <field reporter:label="First Name" name="first_given_name" reporter:datatype="text"/>
+ <field reporter:label="Home Library" name="home_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="User ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Primary Identification Type" name="ident_type" reporter:datatype="link"/>
+ <field reporter:label="Secondary Identification Type" name="ident_type2" reporter:datatype="link"/>
+ <field reporter:label="Primary Identification" name="ident_value" reporter:datatype="text"/>
+ <field reporter:label="Secondary Identification" name="ident_value2" reporter:datatype="text"/>
+ <field reporter:label="Last Transaction ID" name="last_xact_id" reporter:datatype="text"/>
+ <field reporter:label="Mailing Address" name="mailing_address" reporter:datatype="link"/>
+ <field reporter:label="Is Group Lead Account" name="master_account" reporter:datatype="bool"/>
+ <field reporter:label="Internet Access Level" name="net_access_level" reporter:datatype="link"/>
+ <field reporter:label="Other Phone" name="other_phone" reporter:datatype="text"/>
+ <field reporter:label="Password" name="passwd" suppress_controller="open-ils.pcrud open-ils.reporter-store" reporter:datatype="text"/>
+ <field reporter:label="Photo URL" name="photo_url" reporter:datatype="text"/>
+ <field reporter:label="Prefix/Title" name="prefix" reporter:datatype="text"/>
+ <field reporter:label="Main (Profile) Permission Group" name="profile" reporter:datatype="link"/>
+ <field reporter:label="Middle Name" name="second_given_name" reporter:datatype="text"/>
+ <field reporter:label="Standing (unused)" name="standing" reporter:datatype="link"/>
+ <field reporter:label="Suffix" name="suffix" reporter:datatype="text"/>
+ <field reporter:label="Is Super User" name="super_user" reporter:datatype="bool"/>
+ <field reporter:label="Family Linkage or other Group" name="usrgroup" reporter:datatype="int"/>
+ <field reporter:label="OPAC/Staff Client User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="OPAC/Staff Client Holds Alias" name="alias" reporter:datatype="text"/>
+ <field reporter:label="Juvenile" name="juvenile" reporter:datatype="bool"/>
+ <field reporter:label="Record Last Update Time" name="last_update_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Additional Permission Groups" name="groups" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="User Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Demographic Info" name="demographic" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billable Transactions" name="billable_transactions" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Money Summary" name="money_summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Open Billable Transactions" name="open_billable_transactions_summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Checkins" name="checkins" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulations Performed as Staff" name="performed_circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Fund Allocation Percentages" name="fund_alloc_pcts" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Reservations" name="reservations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="User Activity Entries" name="usr_activity" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="User/Working Location Map" name="usr_work_ou_map" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="demographic" reltype="might_have" key="id" map="" class="rud"/>
+ <link field="net_access_level" reltype="has_a" key="id" map="" class="cnal"/>
+ <link field="profile" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="ident_type" reltype="has_a" key="id" map="" class="cit"/>
+ <link field="billing_address" reltype="has_a" key="id" map="" class="aua"/>
+ <link field="mailing_address" reltype="has_a" key="id" map="" class="aua"/>
+ <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="standing" reltype="has_a" key="id" map="" class="cst"/>
+ <link field="card" reltype="has_a" key="id" map="" class="ac"/>
+ <link field="ident_type2" reltype="has_a" key="id" map="" class="cit"/>
+ <link field="stat_cat_entries" reltype="has_many" key="target_usr" map="" class="actscecm"/>
+ <link field="groups" reltype="has_many" key="usr" map="grp" class="pugm"/>
+ <link field="usrgroup" reltype="has_many" key="usrgroup" map="" class="au"/>
+ <link field="checkouts" reltype="has_many" key="usr" map="" class="circ"/>
+ <link field="hold_requests" reltype="has_many" key="usr" map="" class="ahr"/>
+ <link field="permissions" reltype="has_many" key="usr" map="perm" class="pupm"/>
+ <link field="settings" reltype="has_many" key="usr" map="" class="aus"/>
+ <link field="billable_transactions" reltype="has_many" key="usr" map="" class="mbt"/>
+ <link field="open_billable_transactions_summary" reltype="has_many" key="usr" map="" class="mobts"/>
+ <link field="money_summary" reltype="might_have" key="usr" map="" class="mus"/>
+ <link field="standing_penalties" reltype="has_many" key="usr" map="" class="ausp"/>
+ <link field="addresses" reltype="has_many" key="usr" map="" class="aua"/>
+ <link field="survey_responses" reltype="has_many" key="usr" map="" class="asvr"/>
+ <link field="notes" reltype="has_many" key="usr" map="" class="aun"/>
+ <link field="checkins" reltype="has_many" key="checkin_staff" map="" class="circ"/>
+ <link field="cards" reltype="has_many" key="usr" map="" class="ac"/>
+ <link field="performed_circulations" reltype="has_many" key="circ_staff" map="" class="circ"/>
+ <link field="fund_alloc_pcts" reltype="has_many" key="allocator" map="" class="acqfap"/>
+ <link field="reservations" reltype="has_many" key="usr" map="" class="bresv"/>
+ <link field="usr_activity" reltype="has_many" key="usr" map="" class="auact"/>
+ <link field="usr_work_ou_map" reltype="has_many" key="usr" map="" class="puwoum"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER" context_field="home_ou" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cuat" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::usr_activity_type" oils_persist:tablename="config.usr_activity_type" reporter:label="User Activity Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.usr_activity_type_id_seq">
+ <field name="id" reporter:label="ID" reporter:datatype="id" />
+ <field name="ewho" reporter:label="Event Caller" reporter:datatype="text"/>
+ <field name="ewhat" reporter:label="Event Type" reporter:datatype="text"/>
+ <field name="ehow" reporter:label="Event Mechanism" reporter:datatype="text"/>
+ <field name="label" reporter:label="Label" reporter:datatype="text"/>
+ <field name="egroup" reporter:label="Activity Group" reporter:datatype="text"/>
+ <field name="enabled" reporter:label="Enabled" reporter:datatype="bool"/>
+ <field name="transient" reporter:label="Transient" reporter:datatype="bool"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_USER_ACTIVITY_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_USER_ACTIVITY_TYPE" global_required="true"/>
+ <delete permission="ADMIN_USER_ACTIVITY_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="auact" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_activity" oils_persist:tablename="actor.usr_activity" reporter:label="User Activity">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_activity_id_seq">
+ <field name="id" reporter:label="ID" reporter:datatype="id" />
+ <field name="usr" reporter:label="User" reporter:datatype="link" />
+ <field name="etype" reporter:label="Activity Type" reporter:datatype="link" />
+ <field name="event_time" reporter:label="Event Time" reporter:datatype="timestamp" />
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="etype" reltype="has_a" key="id" map="" class="cuat"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="RUN_REPORTS">
+ <context link="usr" field="home_ou" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="atb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::toolbar" oils_persist:tablename="actor.toolbar" reporter:label="Custom Toolbar">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.toolbar_id_seq">
+ <field name="id" reporter:label="ID" reporter:datatype="id" />
+ <field name="usr" reporter:label="Owning User" reporter:datatype="link" />
+ <field name="org" reporter:label="Owning Org Unit" reporter:datatype="link" />
+ <field name="ws" reporter:label="Owning Workstation" reporter:datatype="link" />
+ <field name="label" reporter:label="Label" reporter:datatype="text" oils_persist:i18n="true" />
+ <field name="layout" reporter:label="Layout" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="usr" reltype="might_have" key="id" map="" class="au"/>
+ <link field="org" reltype="might_have" key="id" map="" class="aou"/>
+ <link field="ws" reltype="might_have" key="id" map="" class="aws"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_TOOLBAR STAFF_LOGIN" context_field="org">
+ <context link="usr" field="home_ou" />
+ <context link="ws" field="owning_lib" />
+ </retrieve>
+ <create permission="ADMIN_TOOLBAR" context_field="org">
+ <context link="usr" field="home_ou" />
+ <context link="ws" field="owning_lib" />
+ </create>
+ <update permission="ADMIN_TOOLBAR" context_field="org">
+ <context link="usr" field="home_ou" />
+ <context link="ws" field="owning_lib" />
+ </update>
+ <delete permission="ADMIN_TOOLBAR" context_field="org">
+ <context link="usr" field="home_ou" />
+ <context link="ws" field="owning_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="csg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::settings_group" oils_persist:tablename="config.settings_group" reporter:label="Settings Group">
+ <fields oils_persist:primary="name">
+ <field name="name" reporter:datatype="text"/>
+ <field name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_USER_SETTING_GROUP" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_USER_SETTING_GROUP" global_required="true"/>
+ <delete permission="ADMIN_USER_SETTING_GROUP" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cust" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::usr_setting_type" oils_persist:tablename="config.usr_setting_type" reporter:label="User Setting Type">
+ <fields oils_persist:primary="name">
+ <field name="name" reporter:label="Name" reporter:datatype="text"/>
+ <field name="label" reporter:label="Label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="description" reporter:label="Description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="datatype" reporter:label="Datatype" reporter:datatype="text"/>
+ <field name="fm_class" reporter:label="Fieldmapper Class" reporter:datatype="text"/>
+ <field name="grp" reporter:label="Settings Group" reporter:datatype="link"/>
+ <field name="opac_visible" reporter:label="OPAC/Patron Visible" reporter:datatype="bool"/>
+ <field name="reg_default" reporter:label="Registration Default" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="name" reltype="has_many" key="name" map="" class="aus"/>
+ <link field="grp" reltype="has_a" key="name" map="" class="csg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_USER_SETTING_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_USER_SETTING_TYPE" global_required="true"/>
+ <delete permission="ADMIN_USER_SETTING_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="coust" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::org_unit_setting_type" oils_persist:tablename="config.org_unit_setting_type" reporter:label="Organizational Unit Setting Type">
+ <fields oils_persist:primary="name">
+ <field name="name" reporter:datatype="text"/>
+ <field name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="datatype" reporter:datatype="text"/>
+ <field name="view_perm" reporter:datatype="link"/>
+ <field name="update_perm" reporter:datatype="link"/>
+ <field name="fm_class" reporter:datatype="text"/>
+ <field name="grp" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="name" reltype="has_many" key="name" map="" class="aous"/>
+ <link field="view_perm" reltype="has_a" key="id" map="" class="ppl"/>
+ <link field="update_perm" reltype="has_a" key="id" map="" class="ppl"/>
+ <link field="grp" reltype="has_a" key="name" map="" class="csg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ORG_UNIT_SETTING_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_ORG_UNIT_SETTING_TYPE" global_required="true"/>
+ <delete permission="ADMIN_ORG_UNIT_SETTING_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aous" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_setting" oils_persist:tablename="actor.org_unit_setting" reporter:label="Organizational Unit Setting">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_setting_id_seq">
+ <field name="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="org_unit" reporter:datatype="org_unit"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="name" reltype="has_a" key="name" map="" class="coust"/>
+ </links>
+ </class>
+ <class id="acpn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_note" oils_persist:tablename="asset.copy_note" reporter:label="Copy Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_note_id_seq">
+ <field reporter:label="Note Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Note Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Note ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Copy" name="owning_copy" reporter:datatype="link"/>
+ <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Note Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Note Content" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY_NOTE">
+ <context link="owning_copy" field="circ_lib"/>
+ </create>
+ <retrieve permission="VIEW_COPY_NOTES">
+ <context link="owning_copy" field="circ_lib"/>
+ </retrieve>
+ <update permission="UPDATE_COPY_NOTE">
+ <context link="owning_copy" field="circ_lib"/>
+ </update>
+ <delete permission="DELETE_COPY_NOTE">
+ <context link="owning_copy" field="circ_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mfr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::full_rec" oils_persist:tablename="metabib.full_rec" reporter:label="Flattened MARC Fields">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.full_rec_id_seq">
+ <field reporter:label="Field ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Indicator 1" name="ind1" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Indicator 2" name="ind2" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Bib Record Entry" name="record" reporter:datatype="link"/>
+ <field reporter:label="Subfield" name="subfield" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="Normalized Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="mmr" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord" oils_persist:tablename="metabib.metarecord" reporter:label="Metarecord">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_id_seq">
+ <field name="fingerprint" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="master_record" reporter:datatype="link"/>
+ <field name="mods" reporter:datatype="text"/>
+ <field name="source_records" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="master_record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="source_records" reltype="has_many" key="metarecord" map="source" class="mmrsm"/>
+ </links>
+ </class>
+ <class id="cnal" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::net_access_level" oils_persist:tablename="config.net_access_level" reporter:label="Net Access Level">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.net_access_level_id_seq">
+ <field name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_NET_ACCESS_LEVEL" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_NET_ACCESS_LEVEL" global_required="true"/>
+ <delete permission="DELETE_NET_ACCESS_LEVEL" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ppl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="permission::perm_list" oils_persist:tablename="permission.perm_list" reporter:label="Permission List">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.perm_list_id_seq">
+ <field name="code" reporter:datatype="text"/>
+ <field name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="id" reporter:selector="code" reporter:datatype="id"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PERM" global_required="true"/>
+ <retrieve permission="CREATE_PERM UPDATE_PERM DELETE_PERM" global_required="true"/>
+ <update permission="UPDATE_PERM" global_required="true"/>
+ <delete permission="DELETE_PERM" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mmrsm" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::metarecord_source_map" oils_persist:tablename="metabib.metarecord_source_map" oils_persist:field_safe="true" reporter:label="Metarecord Source Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.metarecord_source_map_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="metarecord" reporter:datatype="link"/>
+ <field name="source" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
+ </links>
+ </class>
+ <class id="mde" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="metabib::display_entry"
+ oils_persist:tablename="metabib.display_entry"
+ oils_persist:field_safe="true"
+ reporter:label="Display Field Entry" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.display_entry_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="field" reporter:datatype="link"/>
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mfde" controller="open-ils.cstore open-ils.pcrud"
+ oils_persist:tablename="metabib.flat_display_entry"
+ oils_obj:fieldmapper="metabib::flat_display_entry"
+ oils_persist:field_safe="true"
+ reporter:label="Flat Display Entry"
+ oils_persist:readonly="true">
+ <fields>
+ <field name="source" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="multi" reporter:datatype="bool"/>
+ <field name="label" reporter:datatype="text"/>
+ <field name="field" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ <link field="name" reltype="has_a" key="name" map="" class="cdfm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mcde" controller="open-ils.cstore open-ils.pcrud"
+ oils_persist:tablename="metabib.compressed_display_entry"
+ oils_obj:fieldmapper="metabib::compressed_display_entry"
+ oils_persist:field_safe="true"
+ reporter:label="Compressed Display Entry"
+ oils_persist:readonly="true">
+ <fields>
+ <field name="source" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="multi" reporter:datatype="bool"/>
+ <field name="label" reporter:datatype="text"/>
+ <field name="field" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ <link field="name" reltype="has_a" key="name" map="" class="cdfm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mwde" controller="open-ils.cstore open-ils.pcrud"
+ oils_persist:tablename="metabib.wide_display_entry"
+ oils_obj:fieldmapper="metabib::wide_display_entry"
+ oils_persist:field_safe="true"
+ reporter:label="Wide Display Entry"
+ oils_persist:readonly="true">
+ <fields oils_persist:primary="source">
+ <field name="source" reporter:label="Record ID" reporter:datatype="id" />
+ <field name="title" reporter:label="Title" reporter:datatype="text"/>
+ <field name="author" reporter:label="Author" reporter:datatype="text"/>
+ <field name="subject" reporter:label="Subject" reporter:datatype="text"/>
+ <field name="creators" reporter:label="Creators" reporter:datatype="text"/>
+ <field name="isbn" reporter:label="ISBN" reporter:datatype="text"/>
+ <!-- TODO add all well-known fields -->
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cdfm" controller="open-ils.cstore open-ils.pcrud"
+ oils_persist:tablename="config.display_field_map"
+ oils_obj:fieldmapper="config::display_field_map"
+ oils_persist:field_safe="true"
+ reporter:label="Display Field Map"
+ oils_persist:readonly="true">
+ <fields oils_persist:primary="name">
+ <field name="name" reporter:datatype="text"/>
+ <field name="field" reporter:datatype="link"/>
+ <field name="multi" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ <create permission="CREATE_METABIB_FIELD" global_required="true"/>
+ <update permission="UPDATE_METABIB_FIELD" global_required="true"/>
+ <delete permission="DELETE_METABIB_FIELD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="mfae" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::facet_entry" oils_persist:tablename="metabib.facet_entry" reporter:label="Combined Facet Entry" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.facet_entry_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="field" reporter:datatype="link"/>
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="mbe" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::browse_entry" oils_persist:tablename="metabib.browse_entry" reporter:label="Combined Browse Entry" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.browse_entry_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="value" reporter:datatype="text"/>
+ <field name="def_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="def_maps" reltype="has_many" key="entry" map="" class="mbedm"/>
+ </links>
+ </class>
+ <class id="mbedm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::browse_entry_def_map" oils_persist:tablename="metabib.browse_entry_def_map" reporter:label="Combined Browse Entry Definition Map" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.browse_entry_def_map_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="entry" reporter:datatype="link"/>
+ <field name="def" reporter:datatype="link"/>
+ <field name="source" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="entry" reltype="has_a" key="id" map="" class="mbe"/>
+ <link field="def" reltype="has_a" key="id" map="" class="cmf"/>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="mbeshm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::browse_entry_simple_heading_map" oils_persist:tablename="metabib.browse_entry_simple_heading_map" reporter:label="Combined Browse Entry Simple Authority Heading Map" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.browse_entry_simple_heading_map_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="entry" reporter:datatype="link"/>
+ <field name="simple_heading" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="entry" reltype="has_a" key="id" map="" class="mbe"/>
+ <link field="simple_heading" reltype="has_a" key="id" map="" class="ash"/>
+ </links>
+ </class>
+ <class id="mfe" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="metabib::field_entry" reporter:label="Combined Field Entry View" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+ SELECT * FROM metabib.author_field_entry
+ UNION ALL
+ SELECT * FROM metabib.keyword_field_entry
+ UNION ALL
+ SELECT * FROM metabib.identifier_field_entry
+ UNION ALL
+ SELECT * FROM metabib.title_field_entry
+ UNION ALL
+ SELECT * FROM metabib.subject_field_entry
+ UNION ALL
+ SELECT * FROM metabib.series_field_entry
+ </oils_persist:source_definition>
+ <fields>
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="mkfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::keyword_field_entry" oils_persist:tablename="metabib.keyword_field_entry" reporter:label="Keyword Field Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.keyword_field_entry_id_seq">
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="mcp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::cash_payment" oils_persist:tablename="money.cash_payment" reporter:label="Cash Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field name="accepting_usr" reporter:datatype="link"/>
+ <field name="amount" reporter:datatype="money" />
+ <field name="amount_collected" reporter:datatype="money" />
+ <field name="cash_drawer" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="note" reporter:datatype="text"/>
+ <field name="payment_ts" reporter:datatype="timestamp"/>
+ <field name="xact" reporter:datatype="link"/>
+ <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mfp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::forgive_payment" oils_persist:tablename="money.forgive_payment" reporter:label="Forgive Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field name="accepting_usr" reporter:datatype="link"/>
+ <field name="amount" reporter:datatype="money" />
+ <field name="amount_collected" reporter:datatype="money" />
+ <field name="id" reporter:datatype="id" />
+ <field name="note" reporter:datatype="text"/>
+ <field name="payment_ts" reporter:datatype="timestamp"/>
+ <field name="xact" reporter:datatype="link"/>
+ <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="maa" controller="open-ils.cstore" oils_obj:fieldmapper="money::account_adjustment" oils_persist:tablename="money.account_adjustment" reporter:label="Account Adjustment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field name="accepting_usr" reporter:datatype="link"/>
+ <field name="amount" reporter:datatype="money" />
+ <field name="amount_collected" reporter:datatype="money" />
+ <field name="id" reporter:datatype="id" />
+ <field name="note" reporter:datatype="text"/>
+ <field name="payment_ts" reporter:datatype="timestamp"/>
+ <field name="xact" reporter:datatype="link"/>
+ <field name="billing" reporter:datatype="link"/>
+ <field name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ <link field="billing" reltype="might_have" key="id" class="mb"/>
+ </links>
+ </class>
+ <class id="mrd" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::record_descriptor" oils_persist:tablename="metabib.rec_descriptor" reporter:label="Basic Record Descriptor">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.rec_descriptor_id_seq">
+ <field reporter:label="Audn" name="audience" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="BLvl" name="bib_level" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Cat Form" name="cat_form" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Character Encoding" name="char_encoding" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Ctrl" name="control_type" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="ELvl" name="enc_level" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Descriptor ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Form" name="item_form" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Lang" name="item_lang" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Type" name="item_type" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="LitF" name="lit_form" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Pub Status" name="pub_status" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Bib Record Entry" name="record" reporter:datatype="link"/>
+ <field reporter:label="TMat" name="type_mat" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Video Recording Format" name="vr_format" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Date1" name="date1" oils_persist:primitive="string" reporter:datatype="text"/>
+ <field reporter:label="Date2" name="date2" oils_persist:primitive="string" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="item_lang" reltype="has_a" key="code" map="" class="clm"/>
+ <link field="item_type" reltype="has_a" key="code" map="" class="citm"/>
+ <link field="bib_level" reltype="has_a" key="code" map="" class="cblvl"/>
+ <link field="item_form" reltype="has_a" key="code" map="" class="cifm"/>
+ <link field="audience" reltype="has_a" key="code" map="" class="cam"/>
+ <link field="lit_form" reltype="has_a" key="code" map="" class="clfm"/>
+ </links>
+ </class>
+
+ <class id="csp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::standing_penalty" oils_persist:tablename="config.standing_penalty" reporter:label="Standing Penalty">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.standing_penalty_id_seq">
+ <field reporter:label="Penalty ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Block List" name="block_list" reporter:datatype="text"/>
+ <field reporter:label="Staff Alert" name="staff_alert" reporter:datatype="bool"/>
+ <field reporter:label="Org Depth" name="org_depth" reporter:datatype="int"/>
+ <field reporter:label="Ignore Proximity" name="ignore_proximity" reporter:datatype="int"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_STANDING_PENALTY" global_required="true"/>
+ <retrieve permission="ADMIN_STANDING_PENALTY VIEW_STANDING_PENALTY" global_required="true"/>
+ <update permission="ADMIN_STANDING_PENALTY" global_required="true"/>
+ <delete permission="ADMIN_STANDING_PENALTY" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="pgpt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="permission::grp_penalty_threshold" oils_persist:tablename="permission.grp_penalty_threshold" reporter:label="Group Penalty Threshold">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_penalty_threshold_id_seq">
+ <field name="id" reporter:selector="name" reporter:datatype="id" reporter:label="ID"/>
+ <field name="grp" reporter:datatype="link" reporter:label="Group"/>
+ <field name="penalty" reporter:datatype="link" reporter:label="Penalty"/>
+ <field name="threshold" reporter:datatype="float" reporter:label="Threshold"/>
+ <field name="org_unit" reporter:datatype="org_unit" reporter:label="Org Unit"/>
+ </fields>
+ <links>
+ <link field="penalty" reltype="has_a" key="id" map="" class="csp"/>
+ <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
+ <retrieve permission="VIEW_GROUP_PENALTY_THRESHOLD ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
+ <update permission="ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
+ <delete permission="ADMIN_GROUP_PENALTY_THRESHOLD" context_field='org_unit'/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::copy_status" oils_persist:tablename="config.copy_status" oils_persist:restrict_primary="100" reporter:label="Copy Status" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.copy_status_id_seq">
+ <field name="holdable" reporter:datatype="bool"/>
+ <field name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="opac_visible" reporter:datatype="bool"/>
+ <field name="copy_active" reporter:datatype="bool"/>
+ <field name="restrict_copy_delete" reporter:datatype="bool"/>
+ <field name="is_available" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY_STATUS" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_COPY_STATUS" global_required="true"/>
+ <delete permission="DELETE_COPY_STATUS" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ausp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::user_standing_penalty" oils_persist:tablename="actor.usr_standing_penalty" oils_persist:restrict_primary="100" reporter:label="User Standing Penalty">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_standing_penalty_id_seq">
+ <field name="id" reporter:datatype="id" reporter:label="ID" />
+ <field name="set_date" reporter:datatype="timestamp" reporter:label="Set Date"/>
+ <field name="usr" reporter:datatype="link" reporter:label="User"/>
+ <field name="staff" reporter:datatype="link" reporter:label="Staff"/>
+ <field name="standing_penalty" reporter:datatype="link" reporter:label="Standing Penalty"/>
+ <field name="org_unit" reporter:datatype="link" reporter:label="Org Unit"/>
+ <field name="stop_date" reporter:datatype="timestamp" reporter:label="Stop Date"/>
+ <field name="note" reporter:datatype="text" reporter:label="Note"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="standing_penalty" reltype="has_a" key="id" map="" class="csp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_USER"><context link="usr" field="home_ou"/></create>
+ <retrieve permission="VIEW_USER"><context link="usr" field="home_ou"/></retrieve>
+ <update permission="UPDATE_USER"><context link="usr" field="home_ou"/></update>
+ <delete permission="UPDATE_USER"><context link="usr" field="home_ou"/></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aua" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::user_address" oils_persist:tablename="actor.usr_address" reporter:label="User Address">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_address_id_seq">
+ <field reporter:label="Type" name="address_type" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="Country" name="country" reporter:datatype="text"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="Address ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
+ <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Valid Address?" name="valid" reporter:datatype="bool"/>
+ <field reporter:label="Within City Limits?" name="within_city_limits" reporter:datatype="bool"/>
+ <field reporter:label="Replaces" name="replaces" reporter:datatype="link"/>
+ <field reporter:label="Pending" name="pending" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="replaces" reltype="has_a" key="id" map="" class="aua"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_USER"><context link="usr" field="home_ou"/></create>
+ <retrieve permission="VIEW_USER"><context link="usr" field="home_ou"/></retrieve>
+ <update permission="UPDATE_USER"><context link="usr" field="home_ou"/></update>
+ <delete permission="UPDATE_USER"><context link="usr" field="home_ou"/></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aal" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::address_alert" oils_persist:tablename="actor.address_alert" reporter:label="Address Alert">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.address_alert_id_seq">
+ <field reporter:label="Address Alert ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" oils_obj:required="true"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Match All Fields" name="match_all" reporter:datatype="bool" />
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
+ <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Country" name="country" reporter:datatype="text"/>
+ <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
+ <field reporter:label="Mailing Address" name="mailing_address" reporter:datatype="bool"/>
+ <field reporter:label="Billing Address" name="billing_address" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create context_field='owner' permission="ADMIN_ADDRESS_ALERT"/>
+ <retrieve context_field='owner' permission="ADMIN_ADDRESS_ALERT VIEW_ADDRESS_ALERT CREATE_USER"/>
+ <update context_field='owner' permission="ADMIN_ADDRESS_ALERT"/>
+ <delete context_field='owner' permission="ADMIN_ADDRESS_ALERT"/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="auss" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::usr_saved_search" oils_persist:tablename="actor.usr_saved_search" reporter:label="User Saved Search">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.usr_saved_search_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Query Text" name="query_text" reporter:datatype="text"/>
+ <field reporter:label="Query Type" name="query_type" reporter:datatype="text"/>
+ <field reporter:label="Target" name="target" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="acnn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::call_number_note" oils_persist:tablename="asset.call_number_note" reporter:label="Call Number Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.call_number_note_id_seq">
+ <field name="call_number" />
+ <field name="create_date" reporter:datatype="timestamp"/>
+ <field name="creator" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="pub" reporter:datatype="bool"/>
+ <field name="title" reporter:datatype="text"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_VOLUME_NOTE">
+ <context link="call_number" field="owning_lib"/>
+ </create>
+ <retrieve permission="VIEW_VOLUME_NOTES">
+ <context link="call_number" field="owning_lib"/>
+ </retrieve>
+ <update permission="UPDATE_VOLUME_NOTE">
+ <context link="call_number" field="owning_lib"/>
+ </update>
+ <delete permission="DELETE_VOLUME_NOTE">
+ <context link="call_number" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="arn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="authority::record_note" oils_persist:tablename="authority.record_note" reporter:label="Authority Record Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.record_note_id_seq">
+ <field name="create_date" reporter:datatype="timestamp"/>
+ <field name="creator" reporter:datatype="link"/>
+ <field name="edit_date" reporter:datatype="timestamp"/>
+ <field name="editor" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="record" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="are"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_AUTHORITY_RECORD_NOTE" global_required='true'/>
+ <retrieve/>
+ <update permission="UPDATE_AUTHORITY_RECORD_NOTE" global_required='true'/>
+ <delete permission="DELETE_AUTHORITY_RECORD_NOTE" global_required='true'/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ocirccount" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circ_count" reporter:label="Open Circulation Count" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+SELECT usr,
+ SUM(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date >= 'today') OR (fine_interval < '1 day' AND due_date > 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN 1
+ ELSE 0
+ END
+ ) AS out,
+
+ SUM(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date < 'today') OR (fine_interval < '1 day' AND due_date < 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN 1
+ ELSE 0
+ END
+ ) AS overdue,
+
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LOST') THEN 1 ELSE 0 END) AS lost,
+ SUM( CASE WHEN stop_fines = 'CLAIMSRETURNED' THEN 1 ELSE 0 END) AS claims_returned,
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LONGOVERDUE') THEN 1 ELSE 0 END) AS long_overdue
+ FROM action.circulation
+ WHERE checkin_time IS NULL
+ GROUP BY 1
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="usr">
+ <field reporter:label="User ID" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Out" name="out" reporter:datatype="text"/>
+ <field reporter:label="Overdue" name="overdue" reporter:datatype="text"/>
+ <field reporter:label="Lost" name="lost" reporter:datatype="text"/>
+ <field reporter:label="Claims Returned" name="claims_returned" reporter:datatype="text"/>
+ <field reporter:label="Long Overdue" name="long_overdue" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="ocirclist" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circ_list" reporter:label="Open Circulation List" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+SELECT usr,
+ STRING_AGG(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date >= 'today') OR (fine_interval < '1 day' AND due_date > 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN id::TEXT
+ ELSE '0'
+ END
+ ,',') AS out,
+
+ STRING_AGG(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date < 'today') OR (fine_interval < '1 day' AND due_date < 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN id::TEXT
+ ELSE '0'
+ END
+ ,',') AS overdue,
+
+ STRING_AGG( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LOST') THEN id::TEXT ELSE '0' END,',') AS lost,
+ STRING_AGG( CASE WHEN stop_fines = 'CLAIMSRETURNED' THEN id::TEXT ELSE '0' END,',') AS claims_returned,
+ STRING_AGG( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LONGOVERDUE') THEN id::TEXT ELSE '0' END,',') AS long_overdue
+ FROM action.circulation
+ WHERE checkin_time IS NULL
+ GROUP BY 1
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="usr">
+ <field reporter:label="User ID" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Out" name="out" reporter:datatype="text"/>
+ <field reporter:label="Overdue" name="overdue" reporter:datatype="text"/>
+ <field reporter:label="Lost" name="lost" reporter:datatype="text"/>
+ <field reporter:label="Claims Returned" name="claims_returned" reporter:datatype="text"/>
+ <field reporter:label="Long Overdue" name="long_overdue" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="circ" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::circulation" oils_persist:tablename="action.circulation" reporter:core="true" reporter:label="Circulation">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
+ <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Checkout / Renewal Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
+ <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
+ <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
+ <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+ <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
+ <field reporter:label="Grace Period" name="grace_period" reporter:datatype="interval" />
+ <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Checkout Date/Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Workstation" name="workstation" reporter:datatype="link"/>
+ <field reporter:label="Checkin Workstation" name="checkin_workstation" reporter:datatype="link"/>
+ <field reporter:label="Checkin Scan Date/Time" name="checkin_scan_time" reporter:datatype="timestamp" />
+ <field reporter:label="Parent Circulation" name="parent_circ" reporter:datatype="link"/>
+ <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Unrecovered Debt" name="unrecovered" reporter:datatype="bool"/>
+ <field reporter:label="Shelving Location" name="copy_location" reporter:datatype="link"/>
+ <field reporter:label="Archived Patron Stat-Cat Entries" name="aaactsc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Archived Copy Stat-Cat Entries" name="aaasc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+ <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="checkin_workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="parent_circ" reltype="has_a" key="id" map="" class="circ"/>
+ <link field="renewals" reltype="has_many" key="parent_circ" map="" class="circ"/>
+ <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="aaactsc_entries" reltype="has_many" key="xact" map="" class="aaactsc"/>
+ <link field="aaasc_entries" reltype="has_many" key="xact" map="" class="aaasc"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_CIRCULATIONS" context_field="circ_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aacct" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::all_circulation_combined_types" oils_persist:tablename="action.all_circulation_combined_types" reporter:core="true" reporter:label="All Circulation Combined Types" oils_persist:readonly="true">
+ <fields>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
+ <field reporter:label="Circ ID" name="id" reporter:datatype="int" />
+ <field reporter:label="Checkout Date/Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Create Date/Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Circulation Type" name="circ_type" reporter:datatype="text"/>
+ <field reporter:label="Item Type" name="item_type" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_CIRCULATIONS" context_field="circ_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aacs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::all_circulation_slim" oils_persist:tablename="action.all_circulation_slim" reporter:core="true" reporter:label="Combined Aged and Active circulations" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
+ <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
+ <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
+ <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
+ <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+ <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
+ <field reporter:label="Grace Period" name="grace_period" reporter:datatype="interval" />
+ <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Checkout Date/Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Parent Circulation" name="parent_circ" reporter:datatype="link"/>
+ <field reporter:label="Checkin Scan Time" name="checkin_scan_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Checkin Workstation" name="checkin_workstation" reporter:datatype="link"/>
+ <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Workstation" name="workstation" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Archived Patron Stat-Cat Entries" name="aaactsc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Archived Copy Stat-Cat Entries" name="aaasc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Linked Active Circulation" name="active_circ" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Linked Aged Circulation" name="aged_circ" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+ <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="checkin_workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="aaactsc_entries" reltype="has_many" key="xact" map="" class="aaactsc"/>
+ <link field="aaasc_entries" reltype="has_many" key="xact" map="" class="aaasc"/>
+ <link field="active_circ" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="aged_circ" reltype="might_have" key="id" map="" class="acirc"/>
+ <link field="parent_circ" reltype="might_have" key="id" map="" class="acirc"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_CIRCULATIONS" context_field="circ_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="combcirc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::all_circulation" oils_persist:tablename="action.all_circulation" reporter:core="true" reporter:label="Combined Aged and Active Circulations" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
+ <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
+ <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
+ <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
+ <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+ <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
+ <field reporter:label="Grace Period" name="grace_period" reporter:datatype="interval" />
+ <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Patron ZIP" name="usr_post_code" reporter:datatype="text"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Checkout Date/Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Parent Circulation" name="parent_circ" reporter:datatype="link"/>
+ <field reporter:label="Checkin Scan Time" name="checkin_scan_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Checkin Workstation" name="checkin_workstation" reporter:datatype="link"/>
+ <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Workstation" name="workstation" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Patron Home Library" name="usr_home_ou" reporter:datatype="link"/>
+ <field reporter:label="Patron Profile Group" name="usr_profile" reporter:datatype="link"/>
+ <field reporter:label="Patron Birth Year" name="usr_birth_year" reporter:datatype="int"/>
+ <field reporter:label="Call Number" name="copy_call_number" reporter:datatype="link"/>
+ <field reporter:label="Shelving Location" name="copy_location" reporter:datatype="link"/>
+ <field reporter:label="Copy Owning Library" name="copy_owning_lib" reporter:datatype="link"/>
+ <field reporter:label="Copy Circulating Library" name="copy_circ_lib" reporter:datatype="link"/>
+ <field reporter:label="Bib Record" name="copy_bib_record" reporter:datatype="link"/>
+ <field reporter:label="Archived Patron Stat-Cat Entries" name="aaactsc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Archived Copy Stat-Cat Entries" name="aaasc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Linked Active Circulation" name="active_circ" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Linked Aged Circulation" name="aged_circ" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+ <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ <link field="copy_call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="checkin_workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="copy_bib_record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="aaactsc_entries" reltype="has_many" key="xact" map="" class="aaactsc"/>
+ <link field="aaasc_entries" reltype="has_many" key="xact" map="" class="aaasc"/>
+ <link field="usr_home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_profile" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="active_circ" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="aged_circ" reltype="might_have" key="id" map="" class="acirc"/>
+ <link field="parent_circ" reltype="might_have" key="id" map="" class="acirc"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_CIRCULATIONS" context_field="circ_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acirc" controller="open-ils.cstore" oils_obj:fieldmapper="action::aged_circulation" oils_persist:tablename="action.aged_circulation" reporter:core="true" reporter:label="Aged (patronless) Circulation">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
+ <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
+ <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
+ <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
+ <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+ <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
+ <field reporter:label="Grace Period" name="grace_period" reporter:datatype="interval" />
+ <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Patron ZIP" name="usr_post_code" reporter:datatype="text"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Checkout Date/Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Record Creation Date/Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Workstation" name="workstation" reporter:datatype="link"/>
+ <field reporter:label="Checkin Workstation" name="checkin_workstation" reporter:datatype="link"/>
+ <field reporter:label="Checkin Scan Date/Time" name="checkin_scan_time" reporter:datatype="timestamp" />
+ <field reporter:label="Parent Circulation" name="parent_circ" reporter:datatype="link"/>
+ <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Patron Home Library" name="usr_home_ou" reporter:datatype="link"/>
+ <field reporter:label="Patron Profile Group" name="usr_profile" reporter:datatype="link"/>
+ <field reporter:label="Patron Birth Year" name="usr_birth_year" reporter:datatype="int"/>
+ <field reporter:label="Call Number" name="copy_call_number" reporter:datatype="link"/>
+ <field reporter:label="Shelving Location" name="copy_location" reporter:datatype="link"/>
+ <field reporter:label="Copy Owning Library" name="copy_owning_lib" reporter:datatype="link"/>
+ <field reporter:label="Copy Circulating Library" name="copy_circ_lib" reporter:datatype="link"/>
+ <field reporter:label="Bib Record" name="copy_bib_record" reporter:datatype="link"/>
+ <field reporter:label="Archived Patron Stat-Cat Entries" name="aaactsc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Archived Copy Stat-Cat Entries" name="aaasc_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+ <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ <link field="copy_call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="copy_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_bib_record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="checkin_workstation" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="parent_circ" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="renewals" reltype="has_many" key="parent_circ" map="" class="circ"/>
+ <link field="aaactsc_entries" reltype="has_many" key="xact" map="" class="aaactsc"/>
+ <link field="aaasc_entries" reltype="has_many" key="xact" map="" class="aaasc"/>
+ </links>
+ </class>
+ <class id="auch"
+ controller="open-ils.cstore"
+ oils_obj:fieldmapper="action::user_circ_history"
+ oils_persist:tablename="action.usr_circ_history"
+ reporter:label="User Checkout History">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.usr_circ_history_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <!-- prevent reporting on the user that owns the checkout history -->
+ <field reporter:label="User" name="usr" reporter:datatype="link" suppress_controller="open-ils.reporter-store"/>
+ <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Checkin Time" name="checkin_time" reporter:datatype="timestamp" />
+ <field reporter:label="Due Date" name="due_date" reporter:datatype="timestamp" />
+ <field reporter:label="Checkout Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Source Circulation" name="source_circ" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="source_circ" reltype="has_a" key="id" map="" class="circ"/>
+ </links>
+ </class>
+ <class id="brt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::resource_type" oils_persist:tablename="booking.resource_type" reporter:label="Resource Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="booking.resource_type_id_seq">
+ <field reporter:label="Resource Type ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Resource Type Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Fine Amount" name="fine_amount" reporter:datatype="money"/>
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money"/>
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Catalog Item" name="catalog_item" reporter:datatype="bool"/>
+ <field reporter:label="Bibliographic Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Transferable" name="transferable" reporter:datatype="bool"/>
+ <field reporter:label="Inter-booking and Inter-circulation Interval" name="elbow_room" reporter:datatype="interval"/>
+ <field reporter:label="Resources" name="resources" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Resource Attributes" name="resource_attrs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Target Resource Types" name="tgt_rsrc_types" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="resources" reltype="has_many" key="type" map="" class="brsrc"/>
+ <link field="resource_attrs" reltype="has_many" key="type" map="" class="bra"/>
+ <link field="tgt_rsrc_types" reltype="has_many" key="type" map="" class="bresv"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESOURCE_TYPE" context_field='owner'/>
+ <retrieve permission="ADMIN_BOOKING_RESOURCE_TYPE" context_field='owner'/>
+ <update permission="ADMIN_BOOKING_RESOURCE_TYPE" context_field='owner'/>
+ <delete permission="ADMIN_BOOKING_RESOURCE_TYPE" context_field='owner'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="brsrc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::resource" oils_persist:tablename="booking.resource" reporter:label="Resource">
+ <fields oils_persist:primary="id" oils_persist:sequence="booking.resource_id_seq">
+ <field reporter:label="Resource ID" name="id" reporter:datatype="id" reporter:selector="barcode" />
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Resource Type" name="type" reporter:datatype="link"/>
+ <field reporter:label="Overbook" name="overbook" reporter:datatype="bool"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Is Deposit Required" name="deposit" reporter:datatype="bool"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
+ <field reporter:label="User Fee" name="user_fee" reporter:datatype="money"/>
+ <field reporter:label="Resource Attribute Maps" name="attr_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Reservation Target Resources" name="tgt_rsrcs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Reservation Current Resources" name="curr_rsrcs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Catalog Item" name="catalog_item" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="type" reltype="has_a" key="id" map="" class="brt"/>
+ <link field="attr_maps" reltype="has_many" key="resource" map="" class="bram"/>
+ <link field="tgt_rsrcs" reltype="has_many" key="targeted_resource" map="" class="bresv"/>
+ <link field="curr_rsrcs" reltype="has_many" key="current_resource" map="" class="bresv"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESOURCE" context_field='owner'/>
+ <retrieve permission="ADMIN_BOOKING_RESOURCE" context_field='owner'/>
+ <update permission="ADMIN_BOOKING_RESOURCE" context_field='owner'/>
+ <delete permission="ADMIN_BOOKING_RESOURCE" context_field='owner'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="bra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::resource_attr" oils_persist:tablename="booking.resource_attr" reporter:label="Resource Attribute">
+ <fields oils_persist:primary="id" oils_persist:sequence="booking.resource_attr_id_seq">
+ <field reporter:label="Resource Attribute ID" name="id" reporter:datatype="id" reporter:selector="name" />
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Resource Attribute Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Resource Type" name="resource_type" reporter:datatype="link"/>
+ <field reporter:label="Is Required" name="required" reporter:datatype="bool"/>
+ <field reporter:label="Valid Values" name="valid_values" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Resource Attribute Maps" name="attr_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="resource_type" reltype="has_a" key="id" map="" class="brt"/>
+ <link field="valid_values" reltype="has_many" key="attr" map="" class="brav"/>
+ <link field="attr_maps" reltype="has_many" key="attr" map="" class="bram"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESOURCE_ATTR" context_field='owner'/>
+ <retrieve permission="ADMIN_BOOKING_RESOURCE_ATTR" context_field='owner'/>
+ <update permission="ADMIN_BOOKING_RESOURCE_ATTR" context_field='owner'/>
+ <delete permission="ADMIN_BOOKING_RESOURCE_ATTR" context_field='owner'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="brav" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::resource_attr_value" oils_persist:tablename="booking.resource_attr_value" reporter:label="Resource Attribute Value">
+ <fields oils_persist:primary="id" oils_persist:sequence="booking.resource_attr_value_id_seq">
+ <field reporter:label="Resource Attribute Value ID" name="id" reporter:datatype="id" reporter:selector="valid_value" />
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Resource Attribute" name="attr" reporter:datatype="link"/>
+ <field reporter:label="Valid Value" name="valid_value" reporter:datatype="text"/>
+ <field reporter:label="Resource Attribute Maps" name="attr_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Resource Attribute Value Maps" name="attr_val_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="attr" reltype="has_a" key="id" map="" class="bra"/>
+ <link field="attr_maps" reltype="has_many" key="id" map="" class="bram"/>
+ <link field="attr_val_maps" reltype="has_many" key="attr_value" map="" class="bravm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESOURCE_ATTR_VALUE" context_field='owner'/>
+ <retrieve permission="ADMIN_BOOKING_RESOURCE_ATTR_VALUE" context_field='owner'/>
+ <update permission="ADMIN_BOOKING_RESOURCE_ATTR_VALUE" context_field='owner'/>
+ <delete permission="ADMIN_BOOKING_RESOURCE_ATTR_VALUE" context_field='owner'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="bram" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::resource_attr_map" oils_persist:tablename="booking.resource_attr_map" reporter:label="Resource Attribute Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="booking.resource_attr_map_id_seq">
+ <field reporter:label="Resource Attribute Map ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Resource" name="resource" reporter:datatype="link"/>
+ <field reporter:label="Resource Attribute" name="resource_attr" reporter:datatype="link"/>
+ <field reporter:label="Attribute Value" name="value" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="resource" reltype="has_a" key="id" map="" class="brsrc"/>
+ <link field="resource_attr" reltype="has_a" key="id" map="" class="bra"/>
+ <link field="value" reltype="has_a" key="id" map="" class="brav"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESOURCE_ATTR_MAP">
+ <context link="resource" field="owner" />
+ </create>
+ <retrieve permission="ADMIN_BOOKING_RESOURCE_ATTR_MAP">
+ <context link="resource" field="owner" />
+ </retrieve>
+ <update permission="ADMIN_BOOKING_RESOURCE_ATTR_MAP">
+ <context link="resource" field="owner" />
+ </update>
+ <delete permission="ADMIN_BOOKING_RESOURCE_ATTR_MAP">
+ <context link="resource" field="owner" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="bresv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::reservation" oils_persist:tablename="booking.reservation" reporter:label="Reservation">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
+ <field reporter:label="Unrecovered Debt" name="unrecovered" reporter:datatype="bool"/>
+ <field reporter:label="Billing Line Items" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payment Line Items" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Summary" name="summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Request Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
+ <field reporter:label="End Time" name="end_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Capture Time" name="capture_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Cancel Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Pickup Time" name="pickup_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Return Time" name="return_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Booking Interval" name="booking_interval" reporter:datatype="interval"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Fine Amount" name="fine_amount" reporter:datatype="money"/>
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money"/>
+ <field reporter:label="Target Resource Type" name="target_resource_type" reporter:datatype="link"/>
+ <field reporter:label="Target Resource" name="target_resource" reporter:datatype="link"/>
+ <field reporter:label="Current Resource" name="current_resource" reporter:datatype="link"/>
+ <field reporter:label="Request Library" name="request_lib" reporter:datatype="link"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="link"/>
+ <field reporter:label="Capture Staff" name="capture_staff" reporter:datatype="link"/>
+ <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+ <field reporter:label="Attribute Value Maps" name="attr_val_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ <link field="summary" reltype="might_have" key="id" map="" class="mbts"/>
+ <link field="target_resource_type" reltype="has_a" key="id" map="" class="brt"/>
+ <link field="target_resource" reltype="has_a" key="id" map="" class="brsrc"/>
+ <link field="current_resource" reltype="has_a" key="id" map="" class="brsrc"/>
+ <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="pickup_lib" reltype="might_have" key="id" map="" class="aou"/>
+ <link field="capture_staff" reltype="might_have" key="id" map="" class="au"/>
+ <link field="attr_val_maps" reltype="has_many" key="reservation" map="" class="bravm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESERVATION" global_required='true'/>
+ <retrieve permission="STAFF_LOGIN" global_required='true'/>
+ <update permission="ADMIN_BOOKING_RESERVATION" global_required='true'/>
+ <delete permission="ADMIN_BOOKING_RESERVATION" global_required='true'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="bravm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="booking::reservation_attr_value_map" oils_persist:tablename="booking.reservation_attr_value_map" reporter:label="Reservation Attribute Value Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="booking.reservation_attr_value_map_id_seq">
+ <field reporter:label="Reservation Attribute Value Map" name="id" reporter:datatype="id"/>
+ <field reporter:label="Reservation" name="reservation" reporter:datatype="link"/>
+ <field reporter:label="Attribute Map" name="attr_value" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="reservation" reltype="has_a" key="id" map="" class="bresv"/>
+ <link field="attr_value" reltype="has_a" key="id" map="" class="brav"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_BOOKING_RESERVATION_ATTR_MAP" global_required='true'/>
+ <retrieve permission="STAFF_LOGIN" global_required='true'/>
+ <update permission="ADMIN_BOOKING_RESERVATION_ATTR_MAP" global_required='true'/>
+ <delete permission="ADMIN_BOOKING_RESERVATION_ATTR_MAP" global_required='true'/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ccnbi" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::call_number_bucket_item" oils_persist:tablename="container.call_number_bucket_item" reporter:label="Call Number Bucket Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_item_id_seq">
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="target_call_number" reporter:datatype="link" />
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="pos" reporter:datatype="int" />
+ <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="target_call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
+ <link field="notes" reltype="has_many" map="" key="item" class="ccnbin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_CALLNUMBER_BUCKET">
+ <context link="bucket" owning_lib="owning_lib"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccnbin" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_item_note" oils_persist:tablename="container.call_number_bucket_item_note" reporter:label="Call Number Bucket Item Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_item_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="item" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="item" reltype="has_a" key="id" map="" class="ccnbi"/>
+ </links>
+ </class>
+ <class id="cbreb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::biblio_record_entry_bucket" oils_persist:tablename="container.biblio_record_entry_bucket" reporter:label="Bibliographic Record Entry Bucket">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_id_seq">
+ <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="btype" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="description" reporter:datatype="text"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="pub" reporter:datatype="bool"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="owning_lib" reporter:datatype="org_unit" />
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="items" reltype="has_many" key="bucket" map="" class="cbrebi"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_BUCKET ADMIN_BIB_BUCKET" context="owning_lib" owning_user="owner"/>
+ <retrieve permission="CREATE_BIB_BUCKET ADMIN_BIB_BUCKET" context="owning_lib" owning_user="owner"/>
+ <update permission="CREATE_BIB_BUCKET ADMIN_BIB_BUCKET" context="owning_lib" owning_user="owner"/>
+ <delete permission="CREATE_BIB_BUCKET ADMIN_BIB_BUCKET" context="owning_lib" owning_user="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cbrebn" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket_note" oils_persist:tablename="container.biblio_record_entry_bucket_note" reporter:label="Bibliographic Record Entry Bucket Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="bucket" reltype="has_a" key="id" map="" class="cbreb"/>
+ </links>
+ </class>
+ <class id="ahcm" controller="open-ils.cstore" oils_obj:fieldmapper="action::hold_copy_map" oils_persist:tablename="action.hold_copy_map" reporter:label="Hold Copy Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_copy_map_id_seq">
+ <field name="hold" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="target_copy" reporter:datatype="link"/>
+ <field name="proximity" reporter:datatype="number"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ </class>
+ <class id="ahn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::hold_notification" oils_persist:tablename="action.hold_notification" reporter:label="Hold Notification">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_notification_id_seq">
+ <field reporter:label="Hold" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Notification ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Notification Method" name="method" reporter:datatype="text"/>
+ <field reporter:label="Notification Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Notifying Staff" name="notify_staff" reporter:datatype="link"/>
+ <field reporter:label="Notification Date/Time" name="notify_time" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ <link field="notify_staff" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_HOLD_NOTIFICATION">
+ <context link="hold" jump="usr" field="home_ou" />
+ </create>
+ <retrieve permission="VIEW_HOLD_NOTIFICATION">
+ <context link="hold" jump="usr" field="home_ou" />
+ </retrieve>
+ <update permission="CREATE_HOLD_NOTIFICATION">
+ <context link="hold" jump="usr" field="home_ou" />
+ </update>
+ <delete permission="CREATE_HOLD_NOTIFICATION">
+ <context link="hold" jump="usr" field="home_ou" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acpl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_location" oils_persist:tablename="asset.copy_location" reporter:label="Copy/Shelving Location" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_id_seq">
+ <field reporter:label="Can Circulate?" name="circulate" reporter:datatype="bool"/>
+ <field reporter:label="Is Holdable?" name="holdable" reporter:datatype="bool"/>
+ <field reporter:label="Hold Capture Requires Verification" name="hold_verify" reporter:datatype="bool"/>
+ <field reporter:label="Location ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Is OPAC Visible?" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Owning Org Unit" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Copy Location Orders" name="orders" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Copies" name="copies" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Label Prefix" name="label_prefix" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Label Suffix" name="label_suffix" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Checkin Alert" name="checkin_alert" reporter:datatype="bool" />
+ <field reporter:label="Is Deleted?" name="deleted" reporter:datatype="bool" />
+ <field reporter:label="URL" name="url" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="distribution_formula_entries" reltype="has_many" key="location" map="" class="acqdfe"/>
+ <link field="orders" reltype="has_many" key="location" map="" class="acplo"/>
+ <link field="copies" reltype="has_many" key="location" map="" class="acp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY_LOCATION" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="UPDATE_COPY_LOCATION" context_field="owning_lib"/>
+ <delete permission="DELETE_COPY_LOCATION" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acplg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_location_group" oils_persist:tablename="asset.copy_location_group" reporter:label="Copy/Shelving Location Group">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_group_id_seq">
+ <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Is OPAC Visible?" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Owning Org Unit" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Position" name="pos" reporter:datatype="int"/>
+ <field reporter:label="Display Above Orgs" name="top" reporter:datatype="bool"/>
+ <field reporter:label="Copy Location Mappings" name="location_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="location_maps" reltype="has_many" key="lgroup" map="" class="acplgm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_COPY_LOCATION_GROUP" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_COPY_LOCATION_GROUP" context_field="owner"/>
+ <delete permission="ADMIN_COPY_LOCATION_GROUP" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acplgm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_location_group_map" oils_persist:tablename="asset.copy_location_group_map" reporter:label="Copy/Shelving Location Group Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_group_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Group" name="lgroup" reporter:datatype="link"/>
+ <field reporter:label="Copy Location" name="location" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="lgroup" reltype="has_a" key="id" map="" class="acplg"/>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_COPY_LOCATION_GROUP">
+ <context link="lgroup" field="owner" />
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_COPY_LOCATION_GROUP">
+ <context link="lgroup" field="owner" />
+ </update>
+ <delete permission="ADMIN_COPY_LOCATION_GROUP">
+ <context link="lgroup" field="owner" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acplo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_location_order" oils_persist:tablename="asset.copy_location_order" reporter:label="Copy/Shelving Location Order">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_location_order_id_seq">
+ <field reporter:label="Location Order ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Location ID" name="location" reporter:datatype="link"/>
+ <field reporter:label="Org Unit" name="org" reporter:datatype="org_unit"/>
+ <field reporter:label="Position" name="position" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="org" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_COPY_LOCATION_ORDER" context_field="org"/>
+ <retrieve/>
+ <update permission="ADMIN_COPY_LOCATION_ORDER" context_field="org"/>
+ <delete permission="ADMIN_COPY_LOCATION_ORDER" context_field="org"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="svr" controller="open-ils.cstore" oils_obj:fieldmapper="serial::virtual_record" oils_persist:virtual="true" reporter:label="Serial Virtual Record">
+ <fields>
+ <field name="sre_id" oils_persist:virtual="true" />
+ <field name="location" oils_persist:virtual="true" />
+ <field name="owning_lib" oils_persist:virtual="true" />
+ <field name="basic_holdings" oils_persist:virtual="true" />
+ <field name="basic_holdings_add" oils_persist:virtual="true" />
+ <field name="supplement_holdings" oils_persist:virtual="true" />
+ <field name="supplement_holdings_add" oils_persist:virtual="true" />
+ <field name="index_holdings" oils_persist:virtual="true" />
+ <field name="index_holdings_add" oils_persist:virtual="true" />
+ <field name="online" oils_persist:virtual="true" />
+ <field name="missing" oils_persist:virtual="true" />
+ <field name="incomplete" oils_persist:virtual="true" />
+ </fields>
+ </class>
+
+ <class id="sre" controller="open-ils.pcrud open-ils.cstore" oils_obj:fieldmapper="serial::record_entry" oils_persist:tablename="serial.record_entry" reporter:label="Serial Record Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.record_entry_id_seq">
+ <field reporter:label="Is Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Bib Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Edit date" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Last Transaction ID" name="last_xact_id" reporter:datatype="text"/>
+ <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
+ <field reporter:label="Source" name="source" reporter:datatype="int"/>
+ <field reporter:label="Owning Org Unit" name="owning_lib" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MFHD_RECORD" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="UPDATE_MFHD_RECORD" context_field="owning_lib"/>
+ <delete permission="DELETE_MFHD_RECORD" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="scap" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::caption_and_pattern" oils_persist:tablename="serial.caption_and_pattern" reporter:label="Caption and Pattern">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.caption_and_pattern_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Subscription" name="subscription" reporter:datatype="link"/>
+ <field reporter:label="Type" name="type" reporter:datatype="text"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Start Date" name="start_date" reporter:datatype="timestamp"/>
+ <field reporter:label="End Date" name="end_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Active?" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Pattern Code" name="pattern_code" reporter:datatype="text"/>
+ <field reporter:label="Enum 1" name="enum_1" reporter:datatype="text"/>
+ <field reporter:label="Enum 2" name="enum_2" reporter:datatype="text"/>
+ <field reporter:label="Enum 3" name="enum_3" reporter:datatype="text"/>
+ <field reporter:label="Enum 4" name="enum_4" reporter:datatype="text"/>
+ <field reporter:label="Enum 5" name="enum_5" reporter:datatype="text"/>
+ <field reporter:label="Enum 6" name="enum_6" reporter:datatype="text"/>
+ <field reporter:label="Chron 1" name="chron_1" reporter:datatype="text"/>
+ <field reporter:label="Chron 2" name="chron_2" reporter:datatype="text"/>
+ <field reporter:label="Chron 3" name="chron_3" reporter:datatype="text"/>
+ <field reporter:label="Chron 4" name="chron_4" reporter:datatype="text"/>
+ <field reporter:label="Chron 5" name="chron_5" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_CAPTION_PATTERN">
+ <context link="subscription" field="owning_lib" />
+ </create>
+ <retrieve />
+ <update permission="ADMIN_SERIAL_CAPTION_PATTERN">
+ <context link="subscription" field="owning_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_CAPTION_PATTERN">
+ <context link="subscription" field="owning_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ssub" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::subscription" oils_persist:tablename="serial.subscription" reporter:label="Subscription">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.subscription_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Start Date" name="start_date" reporter:datatype="timestamp"/>
+ <field reporter:label="End Date" name="end_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Bibliographic Record Entry" name="record_entry" reporter:datatype="link"/>
+ <field reporter:label="Expected Date Offset" name="expected_date_offset" reporter:datatype="interval"/>
+ <field reporter:label="Distributions" name="distributions" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Issuances" name="issuances" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Captions and Patterns" name="scaps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="record_entry" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="distributions" reltype="has_many" key="subscription" map="" class="sdist"/>
+ <link field="issuances" reltype="has_many" key="subscription" map="" class="siss"/>
+ <link field="scaps" reltype="has_many" key="subscription" map="" class="scap"/>
+ <link field="notes" reltype="has_many" key="subscription" map="" class="ssubn"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_SUBSCRIPTION" context_field="owning_lib"/>
+ <retrieve />
+ <update permission="ADMIN_SERIAL_SUBSCRIPTION" context_field="owning_lib"/>
+ <delete permission="ADMIN_SERIAL_SUBSCRIPTION" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ssubn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::subscription_note" oils_persist:tablename="serial.subscription_note" reporter:label="Subscription Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.subscription_note_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Subscription" name="subscription" reporter:datatype="link"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Public?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Alert?" name="alert" reporter:datatype="bool"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_SUBSCRIPTION" context_field="owning_lib">
+ <context link="subscription" field="owning_lib"/>
+ </create>
+ <retrieve />
+ <update permission="ADMIN_SERIAL_SUBSCRIPTION" context_field="owning_lib">
+ <context link="subscription" field="owning_lib"/>
+ </update>
+ <delete permission="ADMIN_SERIAL_SUBSCRIPTION" context_field="owning_lib">
+ <context link="subscription" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sdist" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::distribution" oils_persist:tablename="serial.distribution" reporter:label="Distribution">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.distribution_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Legacy Record Entry" name="record_entry" reporter:datatype="link"/>
+ <field reporter:label="Summary Method" name="summary_method" reporter:datatype="text"/>
+ <field reporter:label="Subscription" name="subscription" reporter:datatype="link"/>
+ <field reporter:label="Holding Lib" name="holding_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Receive Call Number" name="receive_call_number" reporter:datatype="link"/>
+ <field reporter:label="Receive Unit Template" name="receive_unit_template" reporter:datatype="link"/>
+ <field reporter:label="Bind Call Number" name="bind_call_number" reporter:datatype="link"/>
+ <field reporter:label="Bind Unit Template" name="bind_unit_template" reporter:datatype="link"/>
+ <field reporter:label="Unit Label Prefix" name="unit_label_prefix" reporter:datatype="text"/>
+ <field reporter:label="Unit Label Suffix" name="unit_label_suffix" reporter:datatype="text"/>
+ <field reporter:label="Display Grouping" name="display_grouping" reporter:datatype="text"/>
+ <field reporter:label="Streams" name="streams" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Basic Issue Summary" name="basic_summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Supplemental Issue Summary" name="supplement_summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Index Issue Summary" name="index_summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="record_entry" reltype="has_a" key="id" map="" class="sre"/>
+ <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
+ <link field="holding_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="receive_call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="receive_unit_template" reltype="has_a" key="id" map="" class="act"/>
+ <link field="bind_call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="bind_unit_template" reltype="has_a" key="id" map="" class="act"/>
+ <link field="streams" reltype="has_many" key="distribution" map="" class="sstr"/>
+ <link field="notes" reltype="has_many" key="distribution" map="" class="sdistn"/>
+ <link field="basic_summary" reltype="might_have" key="distribution" map="" class="sbsum"/>
+ <link field="supplement_summary" reltype="might_have" key="distribution" map="" class="sssum"/>
+ <link field="index_summary" reltype="might_have" key="distribution" map="" class="sisum"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_DISTRIBUTION" context_field="holding_lib" />
+ <retrieve />
+ <update permission="ADMIN_SERIAL_DISTRIBUTION" context_field="holding_lib" />
+ <delete permission="ADMIN_SERIAL_DISTRIBUTION" context_field="holding_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sdistn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::distribution_note" oils_persist:tablename="serial.distribution_note" reporter:label="Distribution Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.distribution_note_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Distribution" name="distribution" reporter:datatype="link"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Public?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Alert?" name="alert" reporter:datatype="bool"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="distribution" reltype="has_a" key="id" map="" class="sdist"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </create>
+ <retrieve permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </retrieve>
+ <update permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sstr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::stream" oils_persist:tablename="serial.stream" reporter:label="Stream">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.stream_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Distribution" name="distribution" reporter:datatype="link"/>
+ <field reporter:label="Routing Label" name="routing_label" reporter:datatype="text"/>
+ <field reporter:label="Items" name="items" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Routing List Users" name="routing_list_users" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="distribution" reltype="has_a" key="id" map="" class="sdist"/>
+ <link field="items" reltype="has_many" key="stream" map="" class="sitem"/>
+ <link field="routing_list_users" reltype="has_many" key="stream" map="" class="srlu"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_STREAM">
+ <context link="distribution" field="holding_lib" />
+ </create>
+ <retrieve />
+ <update permission="ADMIN_SERIAL_STREAM">
+ <context link="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_STREAM">
+ <context link="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="srlu" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::routing_list_user" oils_persist:tablename="serial.routing_list_user" reporter:label="Routing List User">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.routing_list_user_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Stream" name="stream" reporter:datatype="link"/>
+ <field reporter:label="Position" name="pos" reporter:datatype="int"/>
+ <field reporter:label="Reader" name="reader" reporter:datatype="link"/>
+ <field reporter:label="Department" name="department" reporter:datatype="text"/>
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="stream" reltype="has_a" key="id" map="" class="sstr"/>
+ <link field="reader" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_STREAM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </create>
+ <retrieve permission="RECEIVE_SERIAL">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </retrieve>
+ <update permission="ADMIN_SERIAL_STREAM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_STREAM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="siss" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::issuance" oils_persist:tablename="serial.issuance" reporter:label="Issuance">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.issuance_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Edit Date" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Subscription" name="subscription" reporter:datatype="link"/>
+ <field reporter:label="Caption/Pattern" name="caption_and_pattern" reporter:datatype="link"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Date Published" name="date_published" reporter:datatype="timestamp"/>
+ <field reporter:label="Holding Code" name="holding_code" reporter:datatype="text"/>
+ <field reporter:label="Holding Type" name="holding_type" reporter:datatype="text"/>
+ <field reporter:label="Holding Link ID" name="holding_link_id" reporter:datatype="int"/>
+ <field reporter:label="Items" name="items" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="subscription" reltype="has_a" key="id" map="" class="ssub"/>
+ <link field="caption_and_pattern" reltype="has_a" key="id" map="" class="scap"/>
+ <link field="items" reltype="has_many" key="issuance" map="" class="sitem"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_SUBSCRIPTION">
+ <context link="subscription" field="owning_lib" />
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SERIAL_SUBSCRIPTION">
+ <context link="subscription" field="owning_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_SUBSCRIPTION">
+ <context link="subscription" field="owning_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sunit" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::unit" oils_persist:tablename="serial.unit" reporter:label="Unit">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Age Hold Protection" name="age_protect" reporter:datatype="link"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Call Number/Volume" name="call_number" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type (MARC)" name="circ_as_type" reporter:datatype="text"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="link"/>
+ <field reporter:label="Can Circulate" name="circulate" reporter:datatype="bool"/>
+ <field reporter:label="Copy Number on Volume" name="copy_number" reporter:datatype="text"/>
+ <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Active Date/Time" name="active_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Dummy ISBN" name="dummy_isbn" reporter:datatype="text"/>
+ <field reporter:label="Is Deposit Required" name="deposit" reporter:datatype="bool"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money" />
+ <field reporter:label="Precat Dummy Author" name="dummy_author" reporter:datatype="text"/>
+ <field reporter:label="Precat Dummy Title" name="dummy_title" reporter:datatype="text"/>
+ <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Fine Level" name="fine_level" reporter:datatype="int"/>
+ <field reporter:label="Is Holdable" name="holdable" reporter:datatype="bool" />
+ <field reporter:label="Loan Duration" name="loan_duration" reporter:datatype="int"/>
+ <field reporter:label="Shelving Location" name="location" reporter:datatype="link"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool" />
+ <field reporter:label="Price" name="price" reporter:datatype="money" />
+ <field reporter:label="Is Reference" name="ref" reporter:datatype="bool"/>
+ <field reporter:label="Copy Status" name="status" reporter:datatype="link"/>
+ <field reporter:label="Copy Status Changed Time" name="status_changed_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool"/>
+ <field reporter:label="Floating Group" name="floating" reporter:datatype="link"/>
+ <field reporter:label="Cost" name="cost" reporter:datatype="money"/>
+ <field reporter:label="Sort Key" name="sort_key" reporter:datatype="text"/>
+ <field reporter:label="Summary Contents" name="summary_contents" reporter:datatype="text"/>
+ <field reporter:label="Detailed Contents" name="detailed_contents" reporter:datatype="text"/>
+ <field reporter:label="Copy Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Total Circulations" name="total_circ_count" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Holds" name="holds" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+ <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="holds" reltype="has_many" key="target_copy" map="hold" class="ahcm"/>
+ <link field="stat_cat_entry_copy_maps" reltype="has_many" key="owning_copy" map="" class="ascecm"/>
+ <link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
+ <link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
+ <link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
+ <link field="total_circ_count" reltype="might_have" key="id" map="" class="erfcc"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="floating" reltype="has_a" key="id" map="" class="cfg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="RECEIVE_SERIAL ADMIN_SERIAL_SUBSCRIPTION" context_field="circ_lib" />
+ <retrieve/>
+ <update permission="RECEIVE_SERIAL ADMIN_SERIAL_SUBSCRIPTION" context_field="circ_lib" />
+ <delete permission="RECEIVE_SERIAL ADMIN_SERIAL_SUBSCRIPTION" context_field="circ_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sitem" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::item" oils_persist:tablename="serial.item" reporter:label="Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.item_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Edit Date" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Issuance" name="issuance" reporter:datatype="link"/>
+ <field reporter:label="Stream" name="stream" reporter:datatype="link"/>
+ <field reporter:label="Unit" name="unit" reporter:datatype="link"/>
+ <field reporter:label="URI" name="uri" reporter:datatype="link"/>
+ <field reporter:label="Date Expected" name="date_expected" reporter:datatype="timestamp"/>
+ <field reporter:label="Date Received" name="date_received" reporter:datatype="timestamp"/>
+ <field reporter:label="Status" name="status" reporter:datatype="text"/>
+ <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Shadowed?" name="shadowed" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="issuance" reltype="has_a" key="id" map="" class="siss"/>
+ <link field="stream" reltype="has_a" key="id" map="" class="sstr"/>
+ <link field="unit" reltype="has_a" key="id" map="" class="sunit"/>
+ <link field="uri" reltype="has_a" key="id" map="" class="auri"/>
+ <link field="notes" reltype="has_many" key="item" map="" class="sin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_ITEM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </create>
+ <retrieve permission="ADMIN_SERIAL_ITEM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </retrieve>
+ <update permission="ADMIN_SERIAL_ITEM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_ITEM">
+ <context link="stream" jump="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sin" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::item_note" oils_persist:tablename="serial.item_note" reporter:label="Item Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.item_note_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Item" name="item" reporter:datatype="link"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Public?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Alert?" name="alert" reporter:datatype="bool"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="item" reltype="has_a" key="id" map="" class="sitem"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_ITEM">
+ <context link="item" jump="stream.distribution" field="holding_lib" />
+ </create>
+ <retrieve permission="ADMIN_SERIAL_ITEM">
+ <context link="item" jump="stream.distribution" field="holding_lib" />
+ </retrieve>
+ <update permission="ADMIN_SERIAL_ITEM">
+ <context link="item" jump="stream.distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_ITEM">
+ <context link="item" jump="stream.distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="sasum" controller="open-ils.cstore" oils_obj:fieldmapper="serial::any_summary" oils_persist:tablename="serial.any_summary" reporter:label="All Issues' Summaries" oils_persist:readonly="true">
+ <fields>
+ <field name="summary_type" reporter:label="Summary Type" reporter:datatype="text" />
+ <field name="id" reporter:label="Native ID" reporter:datatype="int" /><!-- not datatype="id", because id is not unique in this view -->
+ <field name="distribution" reporter:label="Distribution" reporter:datatype="link" />
+ <field name="generated_coverage" reporter:label="Generated Coverage" reporter:datatype="text" />
+ <field name="show_generated" reporter:label="Show Generated?" reporter:datatype="bool" />
+ </fields>
+ <links>
+ <link field="distribution" reltype="has_a" key="id" map="" class="sdist"/>
+ </links>
+ </class>
+ <class id="smhc" controller="open-ils.cstore" oils_obj:fieldmapper="serial::materialized_holding_code" oils_persist:tablename="serial.materialized_holding_code" reporter:label="Materialized Holding Code" oils_persist:readonly="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.materialized_holding_code_id_seq">
+ <field name="id" reporter:label="ID" reporter:datatype="id" />
+ <field name="issuance" reporter:label="Issuance" reporter:datatype="link" />
+ <field name="holding_type" reporter:label="Holding Type" reporter:datatype="text" />
+ <field name="ind1" reporter:label="First Indicator" reporter:datatype="text" />
+ <field name="ind2" reporter:label="Second Indicator" reporter:datatype="text" />
+ <field name="subfield" reporter:label="Subfield" reporter:datatype="text" />
+ <field name="value" reporter:label="Value" reporter:datatype="text" oils_obj:validate="^\w$" />
+ </fields>
+ <links>
+ <link field="issuance" reltype="has_a" key="id" map="" class="siss"/>
+ </links>
+ </class>
+ <class id="sbsum" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::basic_summary" oils_persist:tablename="serial.basic_summary" reporter:label="Basic Issue Summary">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.basic_summary_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Distribution" name="distribution" reporter:datatype="link"/>
+ <field reporter:label="Generated Coverage" name="generated_coverage" reporter:datatype="text"/>
+ <field reporter:label="Textual Holdings" name="textual_holdings" reporter:datatype="text"/>
+ <field reporter:label="Show Generated?" name="show_generated" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="distribution" reltype="has_a" key="id" map="" class="sdist"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sssum" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::supplement_summary" oils_persist:tablename="serial.supplement_summary" reporter:label="Supplemental Issue Summary">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.supplement_summary_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Distribution" name="distribution" reporter:datatype="link"/>
+ <field reporter:label="Generated Coverage" name="generated_coverage" reporter:datatype="text"/>
+ <field reporter:label="Textual Holdings" name="textual_holdings" reporter:datatype="text"/>
+ <field reporter:label="Show Generated?" name="show_generated" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="distribution" reltype="has_a" key="id" map="" class="sdist"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="sisum" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::index_summary" oils_persist:tablename="serial.index_summary" reporter:label="Index Issue Summary">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.index_summary_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Distribution" name="distribution" reporter:datatype="link"/>
+ <field reporter:label="Generated Coverage" name="generated_coverage" reporter:datatype="text"/>
+ <field reporter:label="Textual Holdings" name="textual_holdings" reporter:datatype="text"/>
+ <field reporter:label="Show Generated?" name="show_generated" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="distribution" reltype="has_a" key="id" map="" class="sdist"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </update>
+ <delete permission="ADMIN_SERIAL_DISTRIBUTION">
+ <context link="distribution" field="holding_lib" />
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="spt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="serial::pattern_template" oils_persist:tablename="serial.pattern_template" reporter:label="Prediction Pattern Template">
+ <fields oils_persist:primary="id" oils_persist:sequence="serial.pattern_template_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Pattern Code" name="pattern_code" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit" oils_obj:required="true"/>
+ <field reporter:label="Share Depth" name="share_depth" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SERIAL_PATTERN_TEMPLATE" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="ADMIN_SERIAL_PATTERN_TEMPLATE" context_field="owning_lib"/>
+ <delete permission="ADMIN_SERIAL_PATTERN_TEMPLATE" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ascecm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::stat_cat_entry_copy_map" oils_persist:tablename="asset.stat_cat_entry_copy_map" reporter:label="Statistical Category Entry Copy Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_copy_map_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="owning_copy" reporter:datatype="link"/>
+ <field name="stat_cat" reporter:datatype="link"/>
+ <field name="stat_cat_entry" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owning_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="asce"/>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="citm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::item_type_map" oils_persist:tablename="config.item_type_map" reporter:label="Item Type Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Item Type Code" name="code" reporter:selector="value" reporter:datatype="text"/>
+ <field reporter:label="Item Type" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_MARC_CODE" global_required="true"/>
+ <delete permission="ADMIN_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cblvl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::bib_level_map" oils_persist:tablename="config.bib_level_map" reporter:label="Bib Level Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Bib Level Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="Bib Level" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_MARC_CODE" global_required="true"/>
+ <delete permission="DELETE_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="sra" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="search::relevance_adjustment" oils_persist:tablename="search.relevance_adjustment" reporter:label="Relevance Adjustment">
+ <fields oils_persist:primary="id" oils_persist:sequence="search.relevance_adjustment_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Index Field" name="field" reporter:datatype="link"/>
+ <field reporter:label="Bump Type" name="bump_type" reporter:datatype="text"/>
+ <field reporter:label="Multiplier" name="multiplier" reporter:datatype="number"/>
+ </fields>
+ <links>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_RELEVANCE_ADJUSTMENT" global_required="true"/>
+ <retrieve permission="CREATE_RELEVANCE_ADJUSTMENT UPDATE_RELEVANCE_ADJUSTMENT DELETE_RELEVANCE_ADJUSTMENT" global_required="true"/>
+ <update permission="UPDATE_RELEVANCE_ADJUSTMENT" global_required="true"/>
+ <delete permission="DELETE_RELEVANCE_ADJUSTMENT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="lasso" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_lasso" oils_persist:tablename="actor.org_lasso" reporter:label="Org Lasso">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_lasso_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_LASSO" global_required="true"/>
+ <retrieve permission="CREATE_LASSO UPDATE_LASSO DELETE_LASSO" global_required="true"/>
+ <update permission="UPDATE_LASSO" global_required="true"/>
+ <delete permission="DELETE_LASSO" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="lmap" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_lasso_map" oils_persist:tablename="actor.org_lasso_map" reporter:label="Org Lasso Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_lasso_map_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="lasso" reporter:datatype="link"/>
+ <field name="org_unit" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="lasso" reltype="has_a" key="id" map="" class="lasso"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_LASSO_MAP" global_required="true"/>
+ <retrieve permission="CREATE_LASSO_MAP UPDATE_LASSO_MAP DELETE_LASSO_MAP" global_required="true"/>
+ <update permission="UPDATE_LASSO_MAP" global_required="true"/>
+ <delete permission="DELETE_LASSO_MAP" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aoupa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit_proximity_adjustment" oils_persist:tablename="actor.org_unit_proximity_adjustment" reporter:label="Org Unit Proximity Adjustment">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_adjustment_id_seq">
+ <field name="id" reporter:label="ID" reporter:datatype="id" />
+ <field name="item_circ_lib" reporter:label="Item Circ Lib" reporter:datatype="org_unit"/>
+ <field name="item_owning_lib" reporter:label="Item Owning Lib" reporter:datatype="org_unit"/>
+ <field name="hold_pickup_lib" reporter:label="Hold Pickup Lib" reporter:datatype="org_unit"/>
+ <field name="hold_request_lib" reporter:label="Hold Request Lib" reporter:datatype="org_unit"/>
+ <field name="copy_location" reporter:label="Copy Location" reporter:datatype="link"/>
+ <field name="circ_mod" reporter:label="Circ Modifier" reporter:datatype="link"/>
+ <field name="pos" reporter:label="Position" reporter:datatype="int" />
+ <field name="absolute_adjustment" reporter:label="Absolute adjustment?" reporter:datatype="bool" />
+ <field name="prox_adjustment" reporter:label="Proximity Adjustment" reporter:datatype="number" />
+ </fields>
+ <links>
+ <link field="item_circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="item_owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="hold_pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="hold_request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="circ_mod" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="copy_location" reltype="has_a" key="id" map="" class="acpl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROXIMITY_ADJUSTMENT" global_required="true"/>
+ <retrieve permission="ADMIN_PROXIMITY_ADJUSTMENT" global_required="true"/>
+ <update permission="ADMIN_PROXIMITY_ADJUSTMENT" global_required="true"/>
+ <delete permission="ADMIN_PROXIMITY_ADJUSTMENT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aoup" controller="open-ils.cstore" oils_obj:fieldmapper="actor::org_unit_proximity" oils_persist:tablename="actor.org_unit_proximity" reporter:label="Org Unit Proximity">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="from_org" reporter:datatype="org_unit"/>
+ <field name="to_org" reporter:datatype="org_unit"/>
+ <field name="prox" reporter:datatype="int" />
+ </fields>
+ <links>
+ <link field="from_org" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="to_org" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+ <class id="ssr" controller="open-ils.cstore" oils_obj:fieldmapper="search::search_result" oils_persist:tablename="search.search_result" oils_persist:readonly="true" reporter:label="Search Result">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_proximity_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Relevance" name="rel" reporter:datatype="float"/>
+ <field reporter:label="Record" name="record" reporter:datatype="link"/>
+ <field reporter:label="Total Results" name="total" reporter:datatype="int" />
+ <field reporter:label="Checked" name="checked" reporter:datatype="int"/>
+ <field reporter:label="Visible" name="visible" reporter:datatype="int"/>
+ <field reporter:label="Deleted" name="deleted" reporter:datatype="int"/>
+ <field reporter:label="Excluded" name="excluded" reporter:datatype="int"/>
+ </fields>
+ <links/>
+ </class>
+ <class id="asv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey" oils_persist:tablename="action.survey" reporter:label="Survey">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.survey_id_seq">
+ <field reporter:label="Questions" name="questions" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Responses" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Survey End Date/Time" name="end_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Survey ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="OPAC Survey?" name="opac" reporter:datatype="bool"/>
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Poll Style?" name="poll" reporter:datatype="bool"/>
+ <field reporter:label="Is Required?" name="required" reporter:datatype="bool"/>
+ <field reporter:label="Survey Start Date/Time" name="start_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Display in User Summary" name="usr_summary" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="responses" reltype="has_many" key="survey" map="" class="asvr"/>
+ <link field="questions" reltype="has_many" key="survey" map="" class="asvq"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SURVEY" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_SURVEY" context_field="owner"/>
+ <delete permission="ADMIN_SURVEY" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aoa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_address" oils_persist:tablename="actor.org_address" reporter:label="Org Address">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_address_id_seq">
+ <field name="address_type" reporter:datatype="text"/>
+ <field name="city" reporter:datatype="text"/>
+ <field name="country" reporter:datatype="text"/>
+ <field name="county" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="org_unit" reporter:datatype="org_unit"/>
+ <field name="post_code" reporter:datatype="text"/>
+ <field name="state" reporter:datatype="text"/>
+ <field name="street1" reporter:datatype="text"/>
+ <field name="street2" reporter:datatype="text"/>
+ <field name="valid" reporter:datatype="bool"/>
+ <field name="san" reporter:datatype="text" reporter:label="SAN"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_ORG_ADDRESS" context_field="org_unit"/>
+ <retrieve/>
+ <update permission="UPDATE_ORG_ADDRESS" context_field="org_unit"/>
+ <delete permission="DELETE_ORG_ADDRESS" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="asq" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::search_query" oils_persist:tablename="actor.search_query" reporter:label="Search Query" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.search_query_id_seq">
+ <field name="id" reporter:datatype="id" reporter:selector="label"/>
+ <field name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="query_text" reporter:datatype="text"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="asfg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::search_filter_group" oils_persist:tablename="actor.search_filter_group" reporter:label="Search Filter Group" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.search_filter_group_id_seq">
+ <field name="id" reporter:datatype="id" reporter:selector="label"/>
+ <field name="owner" reporter:datatype="org_unit"/>
+ <field name="code" reporter:datatype="text"/>
+ <field name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="create_date" reporter:datatype="timestamp"/>
+ <field name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="entries" reltype="has_many" key="grp" map="" class="asfge"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SEARCH_FILTER_GROUP" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_SEARCH_FILTER_GROUP" context_field="owner"/>
+ <delete permission="ADMIN_SEARCH_FILTER_GROUP" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="asfge" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::search_filter_group_entry" oils_persist:tablename="actor.search_filter_group_entry" reporter:label="Search Filter Group Entry" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.search_filter_group_entry_id_seq">
+ <field name="id" reporter:datatype="id"/>
+ <field name="grp" reporter:datatype="link"/>
+ <field name="pos" reporter:datatype="int"/>
+ <field name="query" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="grp" reltype="has_a" key="id" map="" class="asfg"/>
+ <link field="query" reltype="has_a" key="id" map="" class="asq"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SEARCH_FILTER_GROUP">
+ <context link="grp" field="owner"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SEARCH_FILTER_GROUP">
+ <context link="grp" field="owner"/>
+ </update>
+ <delete permission="ADMIN_SEARCH_FILTER_GROUP">
+ <context link="grp" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <!-- A note: Please update alhr and ahopl when updating ahr -->
+ <class id="ahr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::hold_request" oils_persist:tablename="action.hold_request" reporter:core="true" reporter:label="Hold Request">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
+ <field reporter:label="Status" name="status" oils_persist:virtual="true" />
+ <field reporter:label="Transit" name="transit" oils_persist:virtual="true" />
+ <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Currently Targeted Copy" name="current_copy" reporter:datatype="link"/>
+ <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+ <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
+ <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
+ <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
+ <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Notifications Phone Number" name="phone_notify" reporter:datatype="text"/>
+ <field reporter:label="Notifications SMS Number" name="sms_notify" reporter:datatype="text"/>
+ <field reporter:label="Notifications SMS Carrier" name="sms_carrier" reporter:datatype="link"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting User" name="requestor" reporter:datatype="link"/>
+ <field reporter:label="Item Selection Depth" name="selection_depth" />
+ <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
+ <field reporter:label="Hold User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Notify Time" name="notify_time" oils_persist:virtual="true" reporter:datatype="timestamp"/>
+ <field reporter:label="Notify Count" name="notify_count" oils_persist:virtual="true" reporter:datatype="int" />
+ <field reporter:label="Notifications" name="notifications" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Eligible Copies" name="eligible_copies" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
+ <field reporter:label="Activation Date" name="thaw_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
+ <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
+ <field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool" />
+ <field reporter:label="Shelf Expire Time" name="shelf_expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Current Shelf Lib" name="current_shelf_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Behind Desk" name="behind_desk" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
+ <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
+ <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
+ <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
+ <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
+ <link field="notes" reltype="has_many" key="hold" map="" class="ahrn"/>
+ <link field="current_shelf_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="sms_carrier" reltype="has_a" key="id" map="" class="csc"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_HOLD" context_field="pickup_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ahopl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::hold_on_pull_list" reporter:label="Hold On Pull List" oils_persist:readonly="true">
+ <oils_persist:source_definition><![CDATA[
+ SELECT
+ ahr.*,
+ COALESCE(acplo.position, acpl_ordered.fallback_position) AS
+ copy_location_order_position,
+ CASE WHEN au.alias IS NOT NULL THEN
+ au.alias
+ ELSE
+ au.first_given_name
+ END AS usr_alias_or_first_given_name,
+ au.first_given_name AS usr_first_given_name,
+ au.second_given_name AS usr_second_given_name,
+ au.family_name AS usr_family_name,
+ au.prefix AS usr_prefix,
+ au.suffix AS usr_suffix,
+ au.alias AS usr_alias,
+ CASE WHEN au.alias IS NOT NULL THEN
+ au.alias
+ ELSE
+ REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[
+ COALESCE(au.family_name, ''),
+ COALESCE(au.suffix, ''),
+ ', ',
+ COALESCE(au.prefix, ''),
+ COALESCE(au.first_given_name, ''),
+ COALESCE(au.second_given_name, '')
+ ], ' '), E'\\s+,', ',')
+ END AS usr_alias_or_display_name,
+ REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[
+ COALESCE(au.family_name, ''),
+ COALESCE(au.suffix, ''),
+ ', ',
+ COALESCE(au.prefix, ''),
+ COALESCE(au.first_given_name, ''),
+ COALESCE(au.second_given_name, '')
+ ], ' '), E'\\s+,', ',') AS usr_display_name,
+ TRIM(acnp.label || ' ' || acn.label || ' ' || acns.label)
+ AS call_number_label,
+ siss.label AS issuance_label,
+ (ahr.usr <> ahr.requestor) AS is_staff_hold,
+ ahcm_1.copy_count AS potential_copies
+ FROM action.hold_request ahr
+ JOIN asset.copy acp ON (acp.id = ahr.current_copy)
+ JOIN asset.call_number acn ON (acp.call_number = acn.id)
+ JOIN asset.call_number_prefix acnp ON (acn.prefix = acnp.id)
+ JOIN asset.call_number_suffix acns ON (acn.suffix = acns.id)
+ JOIN actor.usr au ON (au.id = ahr.usr)
+ JOIN (
+ SELECT *, (ROW_NUMBER() OVER (ORDER BY name) + 1000000) AS fallback_position
+ FROM asset.copy_location
+ ) acpl_ordered ON (acpl_ordered.id = acp.location)
+ LEFT JOIN actor.usr_standing_penalty ausp
+ ON (ahr.usr = ausp.usr AND (ausp.stop_date IS NULL OR ausp.stop_date > NOW()))
+ LEFT JOIN config.standing_penalty csp
+ ON (
+ csp.id = ausp.standing_penalty AND
+ csp.block_list LIKE '%CAPTURE%' AND (
+ (csp.org_depth IS NULL AND ahr.pickup_lib = ausp.org_unit) OR
+ (csp.org_depth IS NOT NULL AND ahr.pickup_lib IN (
+ SELECT id FROM actor.org_unit_descendants(ausp.org_unit, csp.org_depth))
+ )
+ )
+ )
+ JOIN (
+ SELECT COUNT(target_copy) AS copy_count, hold
+ FROM action.hold_copy_map
+ GROUP BY 2
+ ) ahcm_1 ON (ahcm_1.hold = ahr.id)
+ LEFT JOIN serial.issuance siss
+ ON (ahr.hold_type = 'I' AND siss.id = ahr.target)
+ LEFT JOIN asset.copy_location_order acplo
+ ON (acp.location = acplo.location AND
+ acp.circ_lib = acplo.org)
+ WHERE
+ ahr.capture_time IS NULL AND
+ ahr.cancel_time IS NULL AND
+ csp.id IS NULL AND
+ (ahr.expire_time is NULL OR ahr.expire_time > NOW()) AND
+ acp.status IN (0,7)
+ ]]></oils_persist:source_definition>
+ <fields oils_persist:primary="id">
+ <field reporter:label="Status" name="status" oils_persist:virtual="true" />
+ <field reporter:label="Transit" name="transit" oils_persist:virtual="true" />
+ <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Currently Targeted Copy" name="current_copy" reporter:datatype="link"/>
+ <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+ <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
+ <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
+ <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
+ <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Notifications Phone Number" name="phone_notify" reporter:datatype="text"/>
+ <field reporter:label="Notifications SMS Number" name="sms_notify" reporter:datatype="text"/>
+ <field reporter:label="Notifications SMS Carrier" name="sms_carrier" reporter:datatype="link"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting User" name="requestor" reporter:datatype="link"/>
+ <field reporter:label="Item Selection Depth" name="selection_depth" />
+ <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
+ <field reporter:label="Hold User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Notify Time" name="notify_time" oils_persist:virtual="true" reporter:datatype="timestamp"/>
+ <field reporter:label="Notify Count" name="notify_count" oils_persist:virtual="true" reporter:datatype="int" />
+ <field reporter:label="Notifications" name="notifications" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Eligible Copies" name="eligible_copies" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
+ <field reporter:label="Activation Date" name="thaw_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
+ <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
+ <field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool" />
+ <field reporter:label="Shelf Expire Time" name="shelf_expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Current Shelf Lib" name="current_shelf_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Copy Location Sort Order" name="copy_location_order_position" reporter:datatype="int" />
+ <field reporter:label="User First Given Name" name="usr_first_given_name" reporter:datatype="text" />
+ <field reporter:label="User Second Given Name" name="usr_second_given_name" reporter:datatype="text" />
+ <field reporter:label="User Family Name" name="usr_family_name" reporter:datatype="text" />
+ <field reporter:label="User Prefix" name="usr_prefix" reporter:datatype="text" />
+ <field reporter:label="User Suffix" name="usr_suffix" reporter:datatype="text" />
+ <field reporter:label="User Alias or First Given Name" name="usr_alias_or_first_given_name" reporter:datatype="text" />
+ <field reporter:label="User Display Name" name="usr_display_name" reporter:datatype="text" />
+ <field reporter:label="User Alias or Display Name" name="usr_alias_or_display_name" reporter:datatype="text" />
+ <field reporter:label="User Alias" name="usr_alias" reporter:datatype="text" />
+ <field reporter:label="Call Number Label" name="call_number_label" reporter:datatype="text" />
+ <field reporter:label="Issuance Label" name="issuance_label" reporter:datatype="text" />
+ <field reporter:label="Is Staff Hold?" name="is_staff_hold" reporter:datatype="bool" />
+ <field reporter:label="Potential Copies" name="potential_copies" reporter:datatype="int" />
+ <field reporter:label="Behind Desk" name="behind_desk" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
+ <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
+ <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
+ <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
+ <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
+ <link field="notes" reltype="has_many" key="hold" map="" class="ahrn"/>
+ <link field="current_shelf_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="sms_carrier" reltype="has_a" key="id" map="" class="csc"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_HOLD" context_field="pickup_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="alhr" controller="open-ils.cstore" oils_obj:fieldmapper="action::last_hold_request" reporter:label="Last Captured Hold Request" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+ SELECT ahr.* FROM action.hold_request ahr JOIN (SELECT current_copy, MAX(capture_time) AS capture_time FROM action.hold_request WHERE capture_time IS NOT NULL AND current_copy IS NOT NULL AND fulfillment_time IS NULL GROUP BY current_copy)x USING (current_copy, capture_time)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id">
+ <field reporter:label="Status" name="status" oils_persist:virtual="true" />
+ <field reporter:label="Transit" name="transit" oils_persist:virtual="true" />
+ <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Currently Targeted Copy" name="current_copy" reporter:datatype="link"/>
+ <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+ <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
+ <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
+ <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
+ <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Notifications Phone Number" name="phone_notify" reporter:datatype="text"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting User" name="requestor" reporter:datatype="link"/>
+ <field reporter:label="Item Selection Depth" name="selection_depth" />
+ <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
+ <field reporter:label="Hold User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Notify Time" name="notify_time" oils_persist:virtual="true" reporter:datatype="timestamp"/>
+ <field reporter:label="Notify Count" name="notify_count" oils_persist:virtual="true" reporter:datatype="int" />
+ <field reporter:label="Notifications" name="notifications" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Eligible Copies" name="eligible_copies" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
+ <field reporter:label="Activation Date" name="thaw_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
+ <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
+ <field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool" />
+ <field reporter:label="Shelf Expire Time" name="shelf_expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Current Shelf Lib" name="current_shelf_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Behind Desk" name="behind_desk" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="requestor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="transit" reltype="might_have" key="hold" map="" class="ahtc"/>
+ <link field="notifications" reltype="has_many" key="hold" map="" class="ahn"/>
+ <link field="eligible_copies" reltype="has_many" key="hold" map="target_copy" class="ahcm"/>
+ <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
+ <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
+ <link field="notes" reltype="has_many" key="hold" map="" class="ahrn"/>
+ <link field="current_shelf_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="ahrn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::hold_request_note" oils_persist:tablename="action.hold_request_note" reporter:label="Hold Request Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_note_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Body" name="body" reporter:datatype="text"/>
+ <field reporter:label="Slip?" name="slip" reporter:datatype="bool"/>
+ <field reporter:label="Pub?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Staff?" name="staff" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_HOLD"><context link="hold" field="request_lib"/></create>
+ <retrieve permission="VIEW_USER"><context link="hold" field="request_lib"/></retrieve>
+ <update permission="UPDATE_HOLD"><context link="hold" field="request_lib"/></update>
+ <delete permission="UPDATE_HOLD"><context link="hold" field="request_lib"/></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="combahr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::all_hold_request" oils_persist:tablename="action.all_hold_request" reporter:core="true" reporter:label="Combined (Active & Aged) Hold Request">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
+ <field reporter:label="Status" name="status" oils_persist:virtual="true" />
+ <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Currently Targeted Copy" name="current_copy" reporter:datatype="link"/>
+ <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+ <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
+ <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
+ <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
+ <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Notify by Phone?" name="phone_notify" reporter:datatype="bool"/>
+ <field reporter:label="Notify by SMS?" name="sms_notify" reporter:datatype="bool"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Patron ZIP" name="usr_post_code" reporter:datatype="text"/>
+ <field reporter:label="Patron Home Library" name="usr_home_ou" reporter:datatype="link"/>
+ <field reporter:label="Patron Profile Group" name="usr_profile" reporter:datatype="link"/>
+ <field reporter:label="Patron Birth Year" name="usr_birth_year" reporter:datatype="int"/>
+ <field reporter:label="Staff Placed?" name="staff_placed" reporter:datatype="bool"/>
+ <field reporter:label="Item Selection Depth" name="selection_depth" />
+ <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
+ <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
+ <field reporter:label="Activation Date" name="thaw_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
+ <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
+ <field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool" />
+ <field reporter:label="Shelf Expire Time" name="shelf_expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Current Shelf Lib" name="current_shelf_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Behind Desk" name="behind_desk" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
+ <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
+ <link field="current_shelf_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_profile" reltype="has_a" key="id" map="" class="pgt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_HOLD" context_field="pickup_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aahr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::aged_hold_request" oils_persist:tablename="action.aged_hold_request" reporter:core="true" reporter:label="Aged Hold Request">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_id_seq">
+ <field reporter:label="Status" name="status" oils_persist:virtual="true" />
+ <field reporter:label="Capture Date/Time" name="capture_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Currently Targeted Copy" name="current_copy" reporter:datatype="link"/>
+ <field reporter:label="Notify by Email?" name="email_notify" reporter:datatype="bool"/>
+ <field reporter:label="Hold Expire Date/Time" name="expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Fulfilling Library" name="fulfillment_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Fulfilling Staff" name="fulfillment_staff" />
+ <field reporter:label="Fulfillment Date/Time" name="fulfillment_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold Type" name="hold_type" reporter:datatype="text"/>
+ <field reporter:label="Holdable Formats (for M-type hold)" name="holdable_formats" reporter:datatype="text"/>
+ <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Notify by Phone?" name="phone_notify" reporter:datatype="bool"/>
+ <field reporter:label="Notify by SMS?" name="sms_notify" reporter:datatype="bool"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Last Targeting Date/Time" name="prev_check_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Requesting Library" name="request_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Request Date/Time" name="request_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Patron ZIP" name="usr_post_code" reporter:datatype="text"/>
+ <field reporter:label="Patron Home Library" name="usr_home_ou" reporter:datatype="link"/>
+ <field reporter:label="Patron Profile Group" name="usr_profile" reporter:datatype="link"/>
+ <field reporter:label="Patron Birth Year" name="usr_birth_year" reporter:datatype="int"/>
+ <field reporter:label="Staff Placed?" name="staff_placed" reporter:datatype="bool"/>
+ <field reporter:label="Item Selection Depth" name="selection_depth" />
+ <field reporter:label="Selection Locus" name="selection_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Target Object ID" name="target" reporter:datatype="link"/>
+ <field reporter:label="Hold Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Bib Record link" name="bib_rec" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Currently Frozen" name="frozen" reporter:datatype="bool"/>
+ <field reporter:label="Activation Date" name="thaw_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Shelf Time" name="shelf_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
+ <field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
+ <field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool" />
+ <field reporter:label="Shelf Expire Time" name="shelf_expire_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Current Shelf Lib" name="current_shelf_lib" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="fulfillment_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="fulfillment_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="selection_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="request_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="bib_rec" reltype="might_have" key="id" map="" class="rhrr"/>
+ <link field="cancel_cause" reltype="might_have" key="id" map="" class="ahrcc"/>
+ <link field="current_shelf_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_profile" reltype="has_a" key="id" map="" class="pgt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_HOLD" context_field="pickup_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aou" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit" oils_persist:tablename="actor.org_unit" reporter:label="Organizational Unit" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_id_seq">
+ <field reporter:label="Subordinate Organizational Units" name="children" oils_persist:virtual="true" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Address" name="billing_address" reporter:datatype="link"/>
+ <field reporter:label="Holds Receiving Address" name="holds_address" reporter:datatype="link"/>
+ <field reporter:label="Organizational Unit ID" name="id" reporter:datatype="org_unit" reporter:selector="shortname"/>
+ <field reporter:label="ILL Receiving Address" name="ill_address" reporter:datatype="link"/>
+ <field reporter:label="Mailing Address" name="mailing_address" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Organizational Unit Type" name="ou_type" reporter:datatype="link"/>
+ <field reporter:label="Parent Organizational Unit" name="parent_ou" reporter:datatype="link"/>
+ <field reporter:label="Short (Policy) Name" name="shortname" reporter:datatype="text" oils_obj:required="true" oils_obj:validate="^.+$"/>
+ <field reporter:label="Email Address" name="email" reporter:datatype="text"/>
+ <field reporter:label="Phone Number" name="phone" reporter:datatype="text"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Fiscal Calendar" name="fiscal_calendar" reporter:datatype="link"/>
+ <field reporter:label="Users" name="users" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Closed Dates" name="closed_dates" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Settings" name="settings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Checkins" name="checkins" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Workstations" name="workstations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Fund Allocation Percentages" name="fund_alloc_pcts" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Copy Location Orders" name="copy_location_orders" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Transit Copy Prev Destinations" name="atc_prev_dests" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Reservation Requests" name="resv_requests" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Reservation Pickups" name="resv_pickups" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Resource Types" name="rsrc_types" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Resources" name="resources" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Resource Attributes" name="rsrc_attrs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Attribute Values" name="attr_vals" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Hours of Operation" name="hours_of_operation" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
+ <link field="holds_address" reltype="has_a" key="id" map="" class="aoa"/>
+ <link field="ou_type" reltype="has_a" key="id" map="" class="aout"/>
+ <link field="mailing_address" reltype="has_a" key="id" map="" class="aoa"/>
+ <link field="parent_ou" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="ill_address" reltype="has_a" key="id" map="" class="aoa"/>
+ <link field="fiscal_calendar" reltype="has_a" key="id" map="" class="acqfc"/>
+ <link field="users" reltype="has_many" key="home_ou" map="" class="au"/>
+ <link field="closed_dates" reltype="has_many" key="org_unit" map="" class="aoucd"/>
+ <link field="children" reltype="has_many" key="parent_ou" map="" class="aou"/>
+ <link field="circulations" reltype="has_many" key="circ_lib" map="" class="circ"/>
+ <link field="settings" reltype="has_many" key="org_unit" map="" class="aous"/>
+ <link field="addresses" reltype="has_many" key="org_unit" map="" class="aoa"/>
+ <link field="checkins" reltype="has_many" key="checkin_lib" map="" class="circ"/>
+ <link field="workstations" reltype="has_many" key="owning_lib" map="" class="aws"/>
+ <link field="fund_alloc_pcts" reltype="has_many" key="org" map="" class="acqfap"/>
+ <link field="copy_location_orders" reltype="has_many" key="org" map="" class="acplo"/>
+ <link field="atc_prev_dests" reltype="has_many" key="prev_dest" map="" class="atc"/>
+ <link field="resv_requests" reltype="has_many" key="request_lib" map="" class="bresv"/>
+ <link field="resv_pickups" reltype="has_many" key="pickup_lib" map="" class="bresv"/>
+ <link field="rsrc_types" reltype="has_many" key="owner" map="" class="brt"/>
+ <link field="resources" reltype="has_many" key="owner" map="" class="brsrc"/>
+ <link field="rsrc_attrs" reltype="has_many" key="owner" map="" class="bra"/>
+ <link field="attr_vals" reltype="has_many" key="owner" map="" class="brav"/>
+ <link field="hours_of_operation" reltype="might_have" key="id" map="" class="aouhoo"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_ORG_UNIT" context_field="parent_ou"/>
+ <retrieve />
+ <update permission="UPDATE_ORG_UNIT" context_field="id"/>
+ <delete permission="DELETE_ORG_UNIT" context_field="parent_ou"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aouct" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit_custom_tree" oils_persist:tablename="actor.org_unit_custom_tree" reporter:label="Org Unit Custom Tree">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_custom_tree_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Purpose" name="purpose" reporter:datatype="text"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ORG_UNIT_CUSTOM_TREE" global_required="true" />
+ <retrieve/>
+ <update permission="ADMIN_ORG_UNIT_CUSTOM_TREE" global_required="true" />
+ <delete permission="ADMIN_ORG_UNIT_CUSTOM_TREE" global_required="true" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aouctn" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit_custom_tree_node" oils_persist:tablename="actor.org_unit_custom_tree_node" reporter:label="Org Unit Custom Tree Node">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_custom_tree_node_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Tree" name="tree" reporter:datatype="link"/>
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="link"/>
+ <field reporter:label="Parent" name="parent_node" reporter:datatype="link"/>
+ <field reporter:label="Sibling Sort Order" name="sibling_order" reporter:datatype="int"/>
+ <field reporter:label="Children" name="children" reporter:datatype="link" oils_persist:virtual="true" />
+ </fields>
+ <links>
+ <link field="tree" reltype="has_a" key="id" map="" class="aouct"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="parent_node" reltype="has_a" key="id" map="" class="aouctn"/>
+ <link field="children" reltype="has_many" key="parent_node" map="" class="aouctn"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ORG_UNIT_CUSTOM_TREE" global_required="true" />
+ <retrieve/>
+ <update permission="ADMIN_ORG_UNIT_CUSTOM_TREE" global_required="true" />
+ <delete permission="ADMIN_ORG_UNIT_CUSTOM_TREE" global_required="true" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccnb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::call_number_bucket" oils_persist:tablename="container.call_number_bucket" reporter:label="Call Number Bucket">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_id_seq">
+ <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="btype" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="description" reporter:datatype="text"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="pub" reporter:datatype="bool"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="owning_lib" reporter:datatype="org_unit" />
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="items" reltype="has_many" key="bucket" map="" class="ccnbi"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET" context="owning_lib" owning_user="owner"/>
+ <retrieve permission="CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET" context="owning_lib" owning_user="owner"/>
+ <update permission="CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET" context="owning_lib" owning_user="owner"/>
+ <delete permission="CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET" context="owning_lib" owning_user="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccnbn" controller="open-ils.cstore" oils_obj:fieldmapper="container::call_number_bucket_note" oils_persist:tablename="container.call_number_bucket_note" reporter:label="Call Number Bucket Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.call_number_bucket_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="bucket" reltype="has_a" key="id" map="" class="ccnb"/>
+ </links>
+ </class>
+ <class id="asc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::stat_cat" oils_persist:tablename="asset.stat_cat" reporter:label="Asset Statistical Category">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_id_seq">
+ <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Stat Cat ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="SIP Field" name="sip_field" reporter:datatype="link"/>
+ <field reporter:label="SIP Format" name="sip_format" reporter:datatype="text"/>
+ <field reporter:label="Required" name="required" reporter:datatype="bool"/>
+ <field reporter:label="Checkout Archive" name="checkout_archive" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="sip_field" reltype="has_a" key="field" map="" class="ascsf"/>
+ <link field="entries" reltype="has_many" key="stat_cat" map="" class="asce"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ac" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::card" oils_persist:tablename="actor.card" reporter:label="Library Card">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.card_id_seq">
+ <field reporter:label="IsActive?" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Card ID" name="id" reporter:datatype="id" />
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER">
+ <context link="usr" field="home_ou" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="actscsf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::stat_cat_sip_fields" oils_persist:tablename="actor.stat_cat_sip_fields" reporter:label="SIP Statistical Category Field Identifier">
+ <fields oils_persist:primary="field">
+ <field reporter:label="Field Identifier" name="field" reporter:datatype="text" reporter:selector="name"/>
+ <field reporter:label="Field Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Exclusive?" name="one_only" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PATRON_STAT_CAT" global_required="true"/>
+ <retrieve />
+ <update permission="UPDATE_PATRON_STAT_CAT" global_required="true"/>
+ <delete permission="DELETE_PATRON_STAT_CAT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="actsc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::stat_cat" oils_persist:tablename="actor.stat_cat" reporter:label="User Statistical Category">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_id_seq">
+ <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Default Entries" name="default_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Stat Cat ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Owning Library" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="User Summary" name="usr_summary" reporter:datatype="bool"/>
+ <field reporter:label="SIP Field" name="sip_field" reporter:datatype="link"/>
+ <field reporter:label="SIP Format" name="sip_format" reporter:datatype="text"/>
+ <field reporter:label="Checkout Archive" name="checkout_archive" reporter:datatype="bool"/>
+ <field reporter:label="Required" name="required" reporter:datatype="bool"/>
+ <field reporter:label="Free Text" name="allow_freetext" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="sip_field" reltype="has_a" key="field" map="" class="actscsf"/>
+ <link field="entries" reltype="has_many" key="stat_cat" map="" class="actsce"/>
+ <link field="default_entries" reltype="has_many" key="stat_cat" map="" class="actsced"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PATRON_STAT_CAT" context_field="owner"/>
+ <retrieve />
+ <update permission="UPDATE_PATRON_STAT_CAT" context_field="owner"/>
+ <delete permission="DELETE_PATRON_STAT_CAT" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="msefe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::series_field_entry" oils_persist:tablename="metabib.series_field_entry" reporter:label="Series Field Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.series_field_entry_id_seq">
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="cub" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::user_bucket" oils_persist:tablename="container.user_bucket" reporter:label="User Bucket">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_id_seq">
+ <field name="items" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="btype" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="description" reporter:datatype="text"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="pub" reporter:datatype="bool"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="owning_lib" reporter:datatype="org_unit" />
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="items" reltype="has_many" key="bucket" map="" class="cubi"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_USER_BUCKET ADMIN_USER_BUCKET" context="owning_lib" owning_user="owner"/>
+ <retrieve permission="CREATE_USER_BUCKET ADMIN_USER_BUCKET" context="owning_lib" owning_user="owner"/>
+ <update permission="CREATE_USER_BUCKET ADMIN_USER_BUCKET" context="owning_lib" owning_user="owner"/>
+ <delete permission="CREATE_USER_BUCKET ADMIN_USER_BUCKET" context="owning_lib" owning_user="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cubn" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_note" oils_persist:tablename="container.user_bucket_note" reporter:label="User Bucket Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
+ </links>
+ </class>
+ <class id="mcrp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::credit_payment" oils_persist:tablename="money.credit_payment" reporter:label="House Credit Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
+ <field reporter:label="Pyament ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Payment Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="afr" controller="open-ils.cstore" oils_obj:fieldmapper="authority::full_rec" oils_persist:tablename="authority.full_rec" reporter:label="Full Authority Record">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.full_rec_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="ind1" />
+ <field name="ind2" />
+ <field name="record" />
+ <field name="subfield" />
+ <field name="tag" />
+ <field name="value" />
+ </fields>
+ <links>
+ <link field="record" reltype="has_a" key="id" map="" class="are"/>
+ </links>
+ </class>
+ <class id="aalink" controller="open-ils.cstore" oils_obj:fieldmapper="authority::authority_linking" oils_persist:tablename="authority.authority_linking" reporter:label="Authority to Authority Linking">
+ <fields oils_persist:primary="id" oils_persist:sequence="authority.authority_linking_id_seq">
+ <field name="id" reporter:label="ID" reporter:datatype="id" />
+ <field name="source" reporter:label="Source Record" reporter:datatype="link" />
+ <field name="target" reporter:label="Target Record" reporter:datatype="link" />
+ <field name="field" reporter:label="Authority Field" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="are"/>
+ <link field="target" reltype="has_a" key="id" map="" class="are"/>
+ <link field="field" reltype="has_a" key="id" map="" class="acsaf"/>
+ </links>
+ </class>
+ <class id="cnct" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::non_cataloged_type" oils_persist:tablename="config.non_cataloged_type" reporter:label="Non-cataloged Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.non_cataloged_type_id_seq">
+ <field reporter:label="Circulation Duration" name="circ_duration" reporter:datatype="interval"/>
+ <field reporter:label="Non-cat Type ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="In House?" name="in_house" reporter:datatype="bool"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_NON_CAT_TYPE" context_field="owning_lib"/>
+ <retrieve/>
+ <update permission="CREATE_NON_CAT_TYPE" context_field="owning_lib"/>
+ <delete permission="CREATE_NON_CAT_TYPE" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+
+ </class>
+ <class id="aout" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="actor::org_unit_type" oils_persist:tablename="actor.org_unit_type" reporter:label="Organizational Unit Type" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.org_unit_type_id_seq">
+ <field reporter:label="Subordinate Types" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Can Have Users?" name="can_have_users" reporter:datatype="bool"/>
+ <field reporter:label="Can Have Volumes?" name="can_have_vols" reporter:datatype="bool"/>
+ <field reporter:label="Type Depth" name="depth" reporter:datatype="int" />
+ <field reporter:label="Type ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Type Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="OPAC Label" name="opac_label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Parent Type" name="parent" reporter:datatype="link"/>
+ <field reporter:label="Org Units" name="org_units" oils_persist:virtual="true" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="parent" reltype="has_a" key="id" map="" class="aout"/>
+ <link field="children" reltype="has_many" key="parent" map="" class="aout"/>
+ <link field="org_units" reltype="has_many" key="ou_type" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_ORG_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_ORG_TYPE" global_required="true"/>
+ <delete permission="DELETE_ORG_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="bren" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::record_note" oils_persist:tablename="biblio.record_note" reporter:label="Bib Record Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_note_id_seq">
+ <field name="create_date" reporter:datatype="timestamp"/>
+ <field name="creator" reporter:datatype="link"/>
+ <field name="edit_date" reporter:datatype="timestamp"/>
+ <field name="editor" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="pub" reporter:datatype="bool"/>
+ <field name="record" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="mucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_circulation_summary" oils_persist:tablename="money.usr_circulation_summary" reporter:label="User Circulation Summary">
+ <fields oils_persist:primary="usr" oils_persist:sequence="">
+ <field name="balance_owed" reporter:datatype="money" />
+ <field name="total_owed" reporter:datatype="money" />
+ <field name="total_paid" reporter:datatype="money" />
+ <field name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="mg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::grocery" oils_persist:tablename="money.grocery" reporter:label="Grocery Transaction">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Billing Location" name="billing_location" reporter:datatype="link"/>
+ <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Timestamp" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Transaction Start Timestamp" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billable Transaction link" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS" context_field="billing_location"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cbs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::bib_source" oils_persist:tablename="config.bib_source" reporter:label="Bib Source">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.bib_source_id_seq">
+ <field name="id" reporter:selector="source" reporter:datatype="id"/>
+ <field name="quality" reporter:datatype="int" />
+ <field name="source" reporter:datatype="text"/>
+ <field name="transcendant" reporter:datatype="bool"/>
+ <field name="can_have_copies" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BIB_SOURCE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_BIB_SOURCE" global_required="true"/>
+ <delete permission="DELETE_BIB_SOURCE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::billable_transaction" oils_persist:tablename="money.billable_xact" reporter:label="Billable Transaction">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
+ <field reporter:label="Unrecovered Debt" name="unrecovered" reporter:datatype="bool"/>
+ <field reporter:label="Grocery Billing link" name="grocery" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulation Billing link" name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billing Line Items" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payment Line Items" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="money"/>
+ <field reporter:label="Payment Summary" name="summary" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="grocery" reltype="might_have" key="id" map="" class="mg"/>
+ <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ <link field="summary" reltype="might_have" key="id" map="" class="mbts"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="usr" field="home_ou" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="actsce" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry" oils_persist:tablename="actor.stat_cat_entry" reporter:label="User Stat Cat Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_id_seq">
+ <field reporter:label="Entry ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
+ <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Default Entries" name="default_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="default_entries" reltype="has_many" key="stat_cat_entry" map="" class="actsced"/>
+ </links>
+ </class>
+ <class id="actsced" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry_default" oils_persist:tablename="actor.stat_cat_entry_default" reporter:label="User Stat Cat Default Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_default_id_seq">
+ <field reporter:label="Default Entry ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Default Entry Value" name="stat_cat_entry" reporter:datatype="link"/>
+ <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
+ <field reporter:label="Default for Owner" name="owner" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="stat_cat_entry" reltype="has_a" key="id" map="" class="actsce"/>
+ </links>
+ </class>
+ <class id="cubi" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::user_bucket_item" oils_persist:tablename="container.user_bucket_item" reporter:label="User Bucket Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_id_seq">
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="target_user" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="pos" reporter:datatype="int" />
+ <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="target_user" reltype="has_a" key="id" map="" class="au"/>
+ <link field="bucket" reltype="has_a" key="id" map="" class="cub"/>
+ <link field="notes" reltype="has_many" map="" key="item" class="cubin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_USER_BUCKET">
+ <context link="bucket" owning_lib="owning_lib"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cubin" controller="open-ils.cstore" oils_obj:fieldmapper="container::user_bucket_item_note" oils_persist:tablename="container.user_bucket_item_note" reporter:label="User Bucket Item Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.user_bucket_item_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="item" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="item" reltype="has_a" key="id" map="" class="cubi"/>
+ </links>
+ </class>
+ <class id="mus" controller="open-ils.cstore" oils_obj:fieldmapper="money::user_summary" oils_persist:tablename="money.usr_summary" reporter:label="User Summary">
+ <fields oils_persist:primary="usr" oils_persist:sequence="">
+ <field name="balance_owed" reporter:datatype="money" />
+ <field name="total_owed" reporter:datatype="money" />
+ <field name="total_paid" reporter:datatype="money" />
+ <field name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="clfm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::lit_form_map" oils_persist:tablename="config.lit_form_map" reporter:label="Literary Form" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code" oils_persist:sequence="">
+ <field reporter:label="LitF Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="LitF Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="LitF Name" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_MARC_CODE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_MARC_CODE" global_required="true"/>
+ <delete permission="DELETE_MARC_CODE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mwp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::work_payment" oils_persist:tablename="money.work_payment" reporter:label="Work Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction ID" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mgp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::goods_payment" oils_persist:tablename="money.goods_payment" reporter:label="Goods Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction ID" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aoc" controller="open-ils.cstore" oils_obj:fieldmapper="action::open_circulation" oils_persist:tablename="action.open_circulation" reporter:label="Open Circulation">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field name="checkin_lib" reporter:datatype="link"/>
+ <field name="checkin_staff" reporter:datatype="link"/>
+ <field name="checkin_time" reporter:datatype="timestamp"/>
+ <field name="circ_lib" reporter:datatype="org_unit"/>
+ <field name="circ_staff" reporter:datatype="link"/>
+ <field name="desk_renewal" reporter:datatype="bool"/>
+ <field name="due_date" reporter:datatype="timestamp"/>
+ <field name="duration" reporter:datatype="interval"/>
+ <field name="duration_rule" reporter:datatype="link"/>
+ <field name="fine_interval" reporter:datatype="interval"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="max_fine" reporter:datatype="money" />
+ <field name="max_fine_rule" reporter:datatype="link"/>
+ <field name="opac_renewal" reporter:datatype="bool"/>
+ <field name="phone_renewal" reporter:datatype="bool"/>
+ <field name="recurring_fine" reporter:datatype="money" />
+ <field name="recurring_fine_rule" reporter:datatype="link"/>
+ <field name="renewal_remaining" reporter:datatype="int" />
+ <field name="grace_period" reporter:datatype="interval" />
+ <field name="stop_fines" reporter:datatype="text"/>
+ <field name="stop_fines_time" reporter:datatype="timestamp"/>
+ <field name="target_copy" reporter:datatype="link"/>
+ <field name="usr" reporter:datatype="link"/>
+ <field name="xact_finish" reporter:datatype="timestamp" />
+ <field name="xact_start" reporter:datatype="timestamp" />
+ <field name="circulation" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="circulation" reltype="might_have" key="id" map="" class="circ"/>
+ <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+ </links>
+ </class>
+ <class id="msfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::subject_field_entry" oils_persist:tablename="metabib.subject_field_entry" reporter:label="Subject Field Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.subject_field_entry_id_seq">
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="crrf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::recurring_fine" oils_persist:tablename="config.rule_recurring_fine" reporter:label="Recurring Fine Rule">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.rule_recurring_fine_id_seq">
+ <field name="high" reporter:datatype="money" />
+ <field name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field name="low" reporter:datatype="money" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="normal" reporter:datatype="money" />
+ <field name="recurrence_interval" reporter:datatype="interval"/>
+ <field name="grace_period" reporter:datatype="interval" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_RECURRING_FINE_RULE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_RECURRING_FINE_RULE" global_required="true"/>
+ <delete permission="ADMIN_RECURRING_FINE_RULE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mckp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::check_payment" oils_persist:tablename="money.check_payment" reporter:label="Check Payment">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.payment_id_seq">
+ <field reporter:label="Accepting Staff Member" name="accepting_usr" reporter:datatype="link"/>
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Amount Collected" name="amount_collected" reporter:datatype="money" />
+ <field reporter:label="Workstation link" name="cash_drawer" reporter:datatype="link"/>
+ <field reporter:label="Check Number" name="check_number" reporter:datatype="int" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Timestamp" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction link" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Payment link" name="payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payment Type" name="payment_type" oils_persist:virtual="true" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="payment" reltype="might_have" key="id" map="" class="mp"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy" oils_persist:tablename="asset.copy" reporter:core="true" reporter:label="Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_id_seq">
+ <field reporter:label="Age Hold Protection" name="age_protect" reporter:datatype="link"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Call Number/Volume" name="call_number" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type (MARC)" name="circ_as_type" reporter:datatype="text"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="link"/>
+ <field reporter:label="Can Circulate" name="circulate" reporter:datatype="bool"/>
+ <field reporter:label="Copy Number on Volume" name="copy_number" reporter:datatype="text"/>
+ <field reporter:label="Creation Date/Time" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Active Date/Time" name="active_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creating User" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Is Deleted" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="Dummy ISBN" name="dummy_isbn" reporter:datatype="text"/>
+ <field reporter:label="Is Deposit Required" name="deposit" reporter:datatype="bool"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money" />
+ <field reporter:label="Precat Dummy Author" name="dummy_author" reporter:datatype="text"/>
+ <field reporter:label="Precat Dummy Title" name="dummy_title" reporter:datatype="text"/>
+ <field reporter:label="Last Edit Date/Time" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Editing User" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Fine Level" name="fine_level" reporter:datatype="int"/>
+ <field reporter:label="Is Holdable" name="holdable" reporter:datatype="bool" />
+ <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Loan Duration" name="loan_duration" reporter:datatype="int"/>
+ <field reporter:label="Shelving Location" name="location" reporter:datatype="link"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool" />
+ <field reporter:label="Price" name="price" reporter:datatype="money" />
+ <field reporter:label="Is Reference" name="ref" reporter:datatype="bool"/>
+ <field reporter:label="Copy Status" name="status" reporter:datatype="link"/>
+ <field reporter:label="Copy Status Changed Time" name="status_changed_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool"/>
+ <field reporter:label="Floating Group" name="floating" reporter:datatype="link"/>
+ <field reporter:label="Cost" name="cost" reporter:datatype="money"/>
+ <field reporter:label="Copy Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Aged (patronless) Circulations" name="aged_circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Combined Aged and Active Circulations" name="all_circulations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Total Circulations" name="total_circ_count" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Last Circulation Date" name="last_circ" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Holds" name="holds" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Statistical Category Entries" name="stat_cat_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Monograph Parts" name="parts" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Peer Record Maps" name="peer_record_maps" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Peer Records" name="peer_records" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Last Captured Hold" name="last_captured_hold" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Has Holds" name="holds_count" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Copy Tags" name="tags" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+ <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="holds" reltype="has_many" key="target_copy" map="hold" class="ahcm"/>
+ <link field="stat_cat_entry_copy_maps" reltype="has_many" key="owning_copy" map="" class="ascecm"/>
+ <link field="notes" reltype="has_many" key="owning_copy" map="" class="acpn"/>
+ <link field="stat_cat_entries" reltype="has_many" key="owning_copy" map="stat_cat_entry" class="ascecm"/>
+ <link field="circulations" reltype="has_many" key="target_copy" map="" class="circ"/>
+ <link field="aged_circulations" reltype="has_many" key="target_copy" map="" class="acirc"/>
+ <link field="all_circulations" reltype="has_many" key="target_copy" map="" class="combcirc"/>
+ <link field="total_circ_count" reltype="might_have" key="id" map="" class="erfcc"/>
+ <link field="last_circ" reltype="might_have" key="id" map="" class="rlc"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="parts" reltype="has_many" key="target_copy" map="part" class="acpm"/>
+ <link field="peer_record_maps" reltype="has_many" key="target_copy" map="" class="bpbcm"/>
+ <link field="peer_records" reltype="has_many" key="target_copy" map="peer_record" class="bpbcm"/>
+ <link field="last_captured_hold" reltype="has_a" key="current_copy" map="" class="alhr"/>
+ <link field="floating" reltype="has_a" key="id" map="" class="cfg"/>
+ <link field="holds_count" reltype="might_have" key="id" map="" class="hasholdscount"/>
+ <link field="tags" reltype="has_many" key="copy" map="" class="acptcm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY">
+ <context link="call_number" field="owning_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_COPY">
+ <context link="call_number" field="owning_lib"/>
+ </update>
+ <delete permission="DELETE_COPY">
+ <context link="call_number" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="act" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_template" oils_persist:tablename="asset.copy_template" reporter:label="Asset Copy Template">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_template_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name" />
+ <field reporter:label="Owning Lib" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Edit Date" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Circ Lib" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Status" name="status" reporter:datatype="link"/>
+ <field reporter:label="Location" name="location" reporter:datatype="link"/>
+ <field reporter:label="Loan Duration" name="loan_duration" reporter:datatype="int"/>
+ <field reporter:label="Fine Level" name="fine_level" reporter:datatype="int"/>
+ <field reporter:label="Age Protect" name="age_protect" reporter:datatype="link"/>
+ <field reporter:label="Circulate?" name="circulate" reporter:datatype="bool"/>
+ <field reporter:label="Deposit?" name="deposit" reporter:datatype="bool"/>
+ <field reporter:label="Reference?" name="ref" reporter:datatype="bool"/>
+ <field reporter:label="Holdable?" name="holdable" reporter:datatype="bool"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="money"/>
+ <field reporter:label="Price" name="price" reporter:datatype="money"/>
+ <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="link"/>
+ <field reporter:label="Circ As Type" name="circ_as_type" reporter:datatype="link"/>
+ <field reporter:label="Alert Message" name="alert_message" reporter:datatype="text"/>
+ <field reporter:label="OPAC Visible?" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Floating Group" name="floating" reporter:datatype="link"/>
+ <field reporter:label="Mint Condition?" name="mint_condition" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="floating" reltype="has_a" key="id" map="" class="cfg"/>
+ <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+ <link field="circ_as_type" reltype="has_a" key="code" map="" class="citm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ASSET_COPY_TEMPLATE" global_required="true"/>
+ <retrieve />
+ <update permission="ADMIN_ASSET_COPY_TEMPLATE" global_required="true"/>
+ <delete permission="ADMIN_ASSET_COPY_TEMPLATE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="crahp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::age_hold_protect" oils_persist:tablename="config.rule_age_hold_protect" reporter:label="Age Hold Protection Rule" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.rule_age_hold_protect_id_seq">
+ <field reporter:label="Item Age" name="age" reporter:datatype="interval"/>
+ <field reporter:label="Rule ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Rule Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Allowed Proximity" name="prox" reporter:datatype="int" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
+ <delete permission="ADMIN_AGE_PROTECT_RULE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="crmf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::rules::max_fine" oils_persist:tablename="config.rule_max_fine" reporter:label="Max Fine Rule">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.rule_max_fine_id_seq">
+ <field reporter:label="Max Fine Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Rule ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Rule Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Is Percent" name="is_percent" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
+ <delete permission="ADMIN_MAX_FINE_RULE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="pgt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="permission::grp_tree" oils_persist:tablename="permission.grp_tree" reporter:label="Permission Group">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_tree_id_seq">
+ <field reporter:label="Child Groups" name="children" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Group ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Group Name" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Parent Group" name="parent" reporter:datatype="link"/>
+ <field reporter:label="User Expiration Interval" name="perm_interval" reporter:datatype="interval"/>
+ <field reporter:label="Required Permission" name="application_perm" reporter:datatype="text"/>
+ <field reporter:label="Is User Group" name="usergroup" reporter:datatype="bool"/>
+ <field reporter:label="Hold Priority" name="hold_priority" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="parent" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="children" reltype="has_many" key="parent" map="" class="pgt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PERM" global_required="true"/>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
+ <update permission="UPDATE_PERM" global_required="true"/>
+ <delete permission="DELETE_PERM" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="asva" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::survey_answer" oils_persist:tablename="action.survey_answer" reporter:label="Survey Answer">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.survey_answer_id_seq">
+ <field reporter:label="Responses using this Answer" name="responses" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Answer Text" name="answer" reporter:datatype="text"/>
+ <field reporter:label="Answer ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Question" name="question" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="question" reltype="has_a" key="id" map="" class="asvq"/>
+ <link field="responses" reltype="has_many" key="answer" map="" class="asvr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_SURVEY">
+ <context link="question" jump="survey" field="owner"/>
+ </create>
+ <retrieve/>
+ <update permission="ADMIN_SURVEY">
+ <context link="question" jump="survey" field="owner"/>
+ </update>
+ <delete permission="ADMIN_SURVEY">
+ <context link="question" jump="survey" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ancc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::non_cataloged_circulation" oils_persist:tablename="action.non_cataloged_circulation" reporter:core="true" reporter:label="Non-cataloged Circulation">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.non_cataloged_circulation_id_seq">
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulation Date/Time" name="circ_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Non-cat Circulation ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Non-cat Item Type" name="item_type" reporter:datatype="link"/>
+ <field reporter:label="Patron" name="patron" reporter:datatype="link"/>
+ <field reporter:label="Circulating Staff" name="staff" reporter:datatype="link"/>
+ <field reporter:label="Virtual Due Date/Time" name="duedate" reporter:datatype="timestamp" oils_persist:virtual="true"/>
+ </fields>
+ <links>
+ <link field="item_type" reltype="has_a" key="id" map="" class="cnct"/>
+ <link field="staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="patron" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_CIRCULATIONS" context_field="circ_lib" />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="moucs" controller="open-ils.cstore" oils_obj:fieldmapper="money::open_user_circulation_summary" oils_persist:tablename="money.open_usr_circulation_summary" reporter:label="Open User Circulation Summary">
+ <fields oils_persist:primary="usr" oils_persist:sequence="">
+ <field name="balance_owed" reporter:datatype="money" />
+ <field name="total_owed" reporter:datatype="money" />
+ <field name="total_paid" reporter:datatype="money" />
+ <field name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="aufh" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_list" oils_persist:tablename="action.unfulfilled_hold_list" reporter:label="Unfulfilled Hold Targets">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.unfulfilled_hold_list_id_seq">
+ <field reporter:label="Non-fulfilling Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Non-fulfilling Copy" name="current_copy" reporter:datatype="link"/>
+ <field reporter:label="Retargeting Date/Time" name="fail_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" />
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ <link field="current_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+ <class id="mife" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::identifier_field_entry" oils_persist:tablename="metabib.identifier_field_entry" reporter:label="Identifier Field Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.identifier_field_entry_id_seq">
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="mtfe" controller="open-ils.cstore" oils_obj:fieldmapper="metabib::title_field_entry" oils_persist:tablename="metabib.title_field_entry" reporter:label="Title Field Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="metabib.title_field_entry_id_seq">
+ <field name="field" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="source" reporter:datatype="link"/>
+ <field name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="source" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="field" reltype="has_a" key="id" map="" class="cmf"/>
+ </links>
+ </class>
+ <class id="actscecm" controller="open-ils.cstore" oils_obj:fieldmapper="actor::stat_cat_entry_user_map" oils_persist:tablename="actor.stat_cat_entry_usr_map" reporter:label="User Statistical Category Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="actor.stat_cat_entry_usr_map_id_seq">
+ <field reporter:label="Entry ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Statistical Category" name="stat_cat" reporter:datatype="link"/>
+ <field reporter:label="Entry Text" name="stat_cat_entry" reporter:datatype="text"/>
+ <field reporter:label="User" name="target_usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="target_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
+ </links>
+ </class>
+ <class id="pgpm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="permission::grp_perm_map" oils_persist:tablename="permission.grp_perm_map" reporter:label="Group Permission Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.grp_perm_map_id_seq">
+ <field name="depth" reporter:datatype="int" />
+ <field name="grantable" reporter:datatype="bool"/>
+ <field name="grp" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="perm" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ASSIGN_GROUP_PERM" global_required="true"/>
+ <retrieve permission="ASSIGN_GROUP_PERM UPDATE_GROUP_PERM REMOVE_GROUP_PERM" global_required="true"/>
+ <update permission="UPDATE_GROUP_PERM" global_required="true"/>
+ <delete permission="REMOVE_GROUP_PERM" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::copy_bucket" oils_persist:tablename="container.copy_bucket" reporter:label="Copy Bucket">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_id_seq">
+ <field name="items" oils_persist:virtual="true" />
+ <field name="btype" reporter:datatype="text"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="name" reporter:datatype="text"/>
+ <field name="description" reporter:datatype="text"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="pub" reporter:datatype="bool"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="owning_lib" reporter:datatype="org_unit" />
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="items" reltype="has_many" key="bucket" map="" class="ccbi"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY_BUCKET ADMIN_COPY_BUCKET" context="owning_lib" owning_user="owner"/>
+ <retrieve permission="CREATE_COPY_BUCKET ADMIN_COPY_BUCKET" context="owning_lib" owning_user="owner"/>
+ <update permission="CREATE_COPY_BUCKET ADMIN_COPY_BUCKET" context="owning_lib" owning_user="owner"/>
+ <delete permission="CREATE_COPY_BUCKET ADMIN_COPY_BUCKET" context="owning_lib" owning_user="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ccbn" controller="open-ils.cstore" oils_obj:fieldmapper="container::copy_bucket_note" oils_persist:tablename="container.copy_bucket_note" reporter:label="Copy Bucket Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.copy_bucket_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="bucket" reltype="has_a" key="id" map="" class="ccb"/>
+ </links>
+ </class>
+ <class id="puwoum" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_work_ou_map" oils_persist:tablename="permission.usr_work_ou_map" reporter:label="User Work Org Unit Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_work_ou_map_id_seq">
+ <field reporter:label="User/Working Location Map ID" name="id" reporter:datatype="int" />
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Working Location" name="work_ou" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="work_ou" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+ <class id="pupm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_perm_map" oils_persist:tablename="permission.usr_perm_map" reporter:label="User Permission Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_perm_map_id_seq">
+ <field name="depth" reporter:datatype="int"/>
+ <field name="grantable" reporter:datatype="bool"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="perm" reporter:datatype="link"/>
+ <field name="usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
+ </links>
+ </class>
+ <class id="puopm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_object_perm_map" oils_persist:tablename="permission.usr_object_perm_map" reporter:label="User Object Permission Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_object_perm_map_id_seq">
+ <field name="object_id" reporter:datatype="text"/>
+ <field name="grantable" reporter:datatype="bool"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="perm" reporter:datatype="link"/>
+ <field name="usr" reporter:datatype="link"/>
+ <field name="object_type" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="perm" reltype="has_a" key="id" map="" class="ppl"/>
+ </links>
+ </class>
+ <class id="mp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::payment" oils_persist:tablename="money.payment_view" reporter:core="true" reporter:label="Payments: All">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
+ <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
+ <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Check Payment Detail" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Account Adjustment Detail" name="account_adjustment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
+ <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
+ <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
+ <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
+ <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
+ <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
+ <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
+ <link field="account_adjustment" reltype="might_have" key="id" map="" class="maa"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mbp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::bnm_payment" oils_persist:tablename="money.bnm_payment_view" reporter:core="true" reporter:label="Payments: Brick-and-mortar">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
+ <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Accepting User" name="accepting_usr" reporter:datatype="link"/>
+ <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
+ <field reporter:label="Cash Payment Detail" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credit Card Payment Detail" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Check Payment Detail" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Account Adjustment Detail" name="account_adjustment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
+ <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
+ <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
+ <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
+ <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
+ <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
+ <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
+ <link field="account_adjustment" reltype="might_have" key="id" map="" class="maa"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mndp" controller="open-ils.reporter" oils_obj:fieldmapper="money::non_drawer_payment" oils_persist:tablename="money.non_drawer_payment_view" reporter:core="true" reporter:label="Payments: Non-drawer Staff">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
+ <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
+ <field reporter:label="Work Payment Detail" name="work_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Forgive Payment Detail" name="forgive_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Goods Payment Detail" name="goods_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credit Payment Detail" name="credit_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Account Adjustment Detail" name="account_adjustment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="work_payment" reltype="might_have" key="id" map="" class="mwp"/>
+ <link field="forgive_payment" reltype="might_have" key="id" map="" class="mfp"/>
+ <link field="goods_payment" reltype="might_have" key="id" map="" class="mgp"/>
+ <link field="credit_payment" reltype="might_have" key="id" map="" class="mcrp"/>
+ <link field="account_adjustment" reltype="might_have" key="id" map="" class="maa"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ </links>
+ </class>
+ <class id="mdp" controller="open-ils.cstore" oils_obj:fieldmapper="money::desk_payment" oils_persist:tablename="money.desk_payment_view" reporter:core="true" reporter:label="Payments: Desk">
+ <fields oils_persist:primary="id" oils_persist:sequence="">
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Payment ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Payment Date/Time" name="payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Payment Type" name="payment_type" reporter:datatype="text"/>
+ <field reporter:label="Billable Transaction" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Accepting User" name="accepting_usr" reporter:datatype="link"/>
+ <field reporter:label="Cash Drawer" name="cash_drawer" reporter:datatype="link"/>
+ <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
+ <field reporter:label="Cash Payment" name="cash_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credit Card Payment" name="credit_card_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Check Payment" name="check_payment" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="cash_payment" reltype="might_have" key="id" map="" class="mcp"/>
+ <link field="credit_card_payment" reltype="might_have" key="id" map="" class="mccp"/>
+ <link field="check_payment" reltype="might_have" key="id" map="" class="mckp"/>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ <link field="accepting_usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="cash_drawer" reltype="has_a" key="id" map="" class="aws"/>
+ </links>
+ </class>
+ <class id="cbrebi" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="container::biblio_record_entry_bucket_item" oils_persist:tablename="container.biblio_record_entry_bucket_item" reporter:label="Biblio Record Entry Bucket Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_id_seq">
+ <field name="bucket" reporter:datatype="link"/>
+ <field name="id" reporter:datatype="id" />
+ <field name="target_biblio_record_entry" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp" />
+ <field name="pos" reporter:datatype="int" />
+ <field name="notes" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="target_biblio_record_entry" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="bucket" reltype="has_a" key="id" map="" class="cbreb"/>
+ <link field="notes" reltype="has_many" map="" key="item" class="cbrebin"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_COPY_BUCKET">
+ <context link="bucket" owning_lib="owning_lib"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cbrebin" controller="open-ils.cstore" oils_obj:fieldmapper="container::biblio_record_entry_bucket_item_note" oils_persist:tablename="container.biblio_record_entry_bucket_item_note" reporter:label="Biblio Record Entry Bucket Item Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_note_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="item" reporter:datatype="link"/>
+ <field name="note" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="item" reltype="has_a" key="id" map="" class="cbrebi"/>
+ </links>
+ </class>
+ <class id="asce" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::stat_cat_entry" oils_persist:tablename="asset.stat_cat_entry" reporter:label="Item Stat Cat Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.stat_cat_entry_id_seq">
+ <field reporter:label="Entry ID" name="id" reporter:datatype="int" />
+ <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Stat Cat" name="stat_cat" reporter:datatype="link"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ascsf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::stat_cat_sip_fields" oils_persist:tablename="asset.stat_cat_sip_fields" reporter:label="SIP Statistical Category Field Identifier">
+ <fields oils_persist:primary="field">
+ <field reporter:label="Field Identifier" name="field" reporter:datatype="text" reporter:selector="name"/>
+ <field reporter:label="Field Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Exclusive?" name="one_only" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_COPY_STAT_CAT" global_required="true"/>
+ <retrieve />
+ <update permission="UPDATE_COPY_STAT_CAT" global_required="true"/>
+ <delete permission="DELETE_COPY_STAT_CAT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ahrcc" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="action::hold_request_cancel_cause" oils_persist:tablename="action.hold_request_cancel_cause" oils_persist:restrict_primary="100" reporter:label="Hold Request Cancel Cause">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.hold_request_cancel_cause_id_seq">
+ <field reporter:label="Cause ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Cause Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
+ <delete permission="ADMIN_HOLD_CANCEL_CAUSE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="artc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::reservation_transit_copy" oils_persist:tablename="action.reservation_transit_copy" reporter:core="true" reporter:label="Reservation Transit">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
+ <field reporter:label="Copy Status at Transit" name="copy_status" reporter:datatype="link"/>
+ <field reporter:label="Destination Library" name="dest" reporter:datatype="org_unit"/>
+ <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Reservation requiring Transit" name="reservation" reporter:datatype="link"/>
+ <field reporter:label="Transit ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Is Persistent?" name="persistant_transfer" reporter:datatype="bool"/>
+ <field reporter:label="Previous Stop" name="prev_hop" reporter:datatype="link"/>
+ <field reporter:label="Sending Library" name="source" reporter:datatype="org_unit"/>
+ <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Base Transit" name="transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Prev Destination Library" name="prev_dest" reporter:datatype="org_unit"/>
+ <field reporter:label="Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="transit_copy" reltype="might_have" key="id" map="" class="atc"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="brsrc"/>
+ <link field="source" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="prev_dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="reservation" reltype="has_a" key="id" map="" class="bresv"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="TRANSIT_COPY">
+ <context link="target_copy" field="owner"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_TRANSIT" context_field="dest source"/>
+ <delete permission="DELETE_TRANSIT" context_field="dest source"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ahtc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::hold_transit_copy" oils_persist:tablename="action.hold_transit_copy" reporter:core="true" reporter:label="Hold Transit">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
+ <field reporter:label="Copy Status at Transit" name="copy_status" reporter:datatype="link"/>
+ <field reporter:label="Destination Library" name="dest" reporter:datatype="org_unit"/>
+ <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Hold requiring Transit" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Transit ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Is Persistent?" name="persistant_transfer" reporter:datatype="bool"/>
+ <field reporter:label="Previous Stop" name="prev_hop" reporter:datatype="link"/>
+ <field reporter:label="Sending Library" name="source" reporter:datatype="org_unit"/>
+ <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Base Transit" name="transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Prev Destination Library" name="prev_dest" reporter:datatype="org_unit"/>
+ <field reporter:label="Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="transit_copy" reltype="might_have" key="id" map="" class="atc"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="source" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="prev_dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="TRANSIT_COPY" context_field="owner">
+ <context link="target_copy" field="circ_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_TRANSIT" context_field="dest source"/>
+ <delete permission="DELETE_TRANSIT" context_field="dest source"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="mb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="money::billing" oils_persist:tablename="money.billing" reporter:label="Billing Line Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billing_id_seq">
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Billing Timestamp" name="billing_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Legacy Billing Type" name="billing_type" reporter:datatype="text"/>
+ <field reporter:label="Billing ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Void Timestamp" name="void_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Voided?" name="voided" reporter:datatype="bool"/>
+ <field reporter:label="Voiding Staff Member" name="voider" reporter:datatype="link"/>
+ <field reporter:label="Transaction" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Type" name="btype" reporter:datatype="link"/>
+ <field reporter:label="Adjustments" name="adjustments" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="xact" reltype="has_a" key="id" map="" class="mbt"/>
+ <link field="voider" reltype="has_a" key="id" map="" class="au"/>
+ <link field="btype" reltype="has_a" key="id" map="" class="cbt"/>
+ <link field="adjustments" reltype="has_many" key="billing" map="" class="maa"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="VIEW_USER_TRANSACTIONS">
+ <context link="xact" jump="usr" field="home_ou"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="pugm" controller="open-ils.cstore" oils_obj:fieldmapper="permission::usr_grp_map" oils_persist:tablename="permission.usr_grp_map" reporter:label="User Group Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="permission.usr_grp_map_id_seq">
+ <field name="grp" />
+ <field name="id" reporter:datatype="id" />
+ <field name="usr" />
+ </fields>
+ <links>
+ <link field="grp" reltype="has_a" key="id" map="" class="pgt"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="i18n" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::i18n_core" oils_persist:tablename="config.i18n_core" oils_persist:field_safe="true" reporter:label="i18n Core">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.i18n_core_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="fq_field" reporter:datatype="text"/>
+ <field name="identity_value" reporter:datatype="text"/>
+ <field name="translation" reporter:datatype="text"/>
+ <field name="string" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="translation" reltype="has_a" key="code" map="" class="i18n_l"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_TRANSLATION" global_required="true"/>
+ <retrieve permission="CREATE_TRANSLATION UPDATE_TRANSLATION DELETE_TRANSLATION" global_required="true"/>
+ <update permission="UPDATE_TRANSLATION" global_required="true"/>
+ <delete permission="DELETE_TRANSLATION" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="fdoc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::idl_field_doc" oils_persist:tablename="config.idl_field_doc" oils_persist:field_safe="true" reporter:label="IDL Field Doc">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.idl_field_doc_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="fm_class" reporter:datatype="text"/>
+ <field name="field" reporter:datatype="text"/>
+ <field name="owner" reporter:datatype="org_unit"/>
+ <field name="string" reporter:datatype="text" oils_persist:i18n="true"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_FIELD_DOC" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_FIELD_DOC" context_field="owner"/>
+ <delete permission="ADMIN_FIELD_DOC" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="i18n_l" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::i18n_locale" oils_persist:tablename="config.i18n_locale" oils_persist:field_safe="true" reporter:label="Locale">
+ <fields oils_persist:primary="code">
+ <field name="code" reporter:datatype="id" />
+ <field name="marc_code" reporter:datatype="text"/>
+ <field name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field name="rtl" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_LOCALE" global_required="true"/>
+ <retrieve/>
+ <update permission="UPDATE_LOCALE" global_required="true"/>
+ <delete permission="DELETE_LOCALE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cbt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::billing_type" oils_persist:tablename="config.billing_type" oils_persist:restrict_primary="100" reporter:label="Billing Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.billing_type_id_seq">
+ <field name="id" reporter:datatype="id" reporter:label="ID" reporter:selector="name"/>
+ <field name="name" reporter:datatype="text" reporter:label="Name" oils_persist:i18n="true"/>
+ <field name="owner" reporter:datatype="org_unit" reporter:label="Org Unit" />
+ <field name="default_price" reporter:datatype="money" reporter:label="Default Price"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_BILLING_TYPE" context_field="owner"/>
+ <retrieve permission="VIEW_BILLING_TYPE CREATE_BILLING_TYPE UPDATE_BILLING_TYPE DELETE_BILLING_TYPE" context_field="owner"/>
+ <update permission="UPDATE_BILLING_TYPE" context_field="owner"/>
+ <delete permission="DELETE_BILLING_TYPE" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aurt" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::user_request_type" oils_persist:tablename="acq.user_request_type" reporter:label="User Purchase Request Type">
+ <fields oils_persist:primary="id">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector='label'/>
+ <field reporter:label="Type Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_USER_REQUEST_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_USER_REQUEST_TYPE" global_required="true"/>
+ <delete permission="ADMIN_USER_REQUEST_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aur" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::user_request" oils_persist:tablename="acq.user_request" reporter:label="User Purchase Request">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.user_request_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector='label'/>
+ <field reporter:label="User" name="usr" reporter:datatype="link" />
+ <field reporter:label="Request Type" name="request_type" oils_obj:required="true" reporter:datatype="link" />
+ <field reporter:label="Place Hold" name="hold" reporter:datatype="bool" />
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="link" />
+ <field reporter:label="Holdable Formats" name="holdable_formats" reporter:datatype="text" />
+ <field reporter:label="Phone Notify" name="phone_notify" reporter:datatype="text" />
+ <field reporter:label="Email Notify" name="email_notify" reporter:datatype="bool" />
+ <field reporter:label="PO Line Item" name="lineitem" reporter:datatype="link" />
+ <field reporter:label="Bib Record" name="eg_bib" reporter:datatype="link" />
+ <field reporter:label="Request Date/Time" name="request_date" reporter:datatype="timestamp" />
+ <field reporter:label="Need Before Date/Time" name="need_before" reporter:datatype="timestamp" />
+ <field reporter:label="Max Acceptable Fee" name="max_fee" reporter:datatype="text" />
+ <field reporter:label="ISxN" name="isxn" reporter:datatype="text" />
+ <field reporter:label="Title" name="title" reporter:datatype="text" />
+ <field reporter:label="Volume" name="volume" reporter:datatype="text" />
+ <field reporter:label="Author" name="author" reporter:datatype="text" />
+ <field reporter:label="Article Title" name="article_title" reporter:datatype="text" />
+ <field reporter:label="Article Pages" name="article_pages" reporter:datatype="text" />
+ <field reporter:label="Publisher" name="publisher" reporter:datatype="text" />
+ <field reporter:label="Publication Location" name="location" reporter:datatype="text" />
+ <field reporter:label="Publication Date" name="pubdate" reporter:datatype="text" />
+ <field reporter:label="Mentioned In" name="mentioned" reporter:datatype="text" />
+ <field reporter:label="Other Info" name="other_info" reporter:datatype="text" />
+ <field reporter:label="Cancel Reason" name="cancel_reason" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ <link field="eg_bib" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="request_type" reltype="has_a" key="id" map="" class="aurt"/>
+ <link field="cancel_reason" reltype="has_a" key="id" map="" class="acqcr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="user_request.create">
+ <context link="usr" field="home_ou"/>
+ </create>
+ <retrieve permission="user_request.view">
+ <context link="usr" field="home_ou"/>
+ </retrieve>
+ <update permission="user_request.update">
+ <context link="usr" field="home_ou"/>
+ </update>
+ <delete permission="user_request.delete">
+ <context link="usr" field="home_ou"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqct" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::currency_type" oils_persist:tablename="acq.currency_type" reporter:label="Currency Type">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Currency Code" name="code" reporter:datatype="text" reporter:selector='label'/>
+ <field reporter:label="Currency Label" name="label" reporter:datatype="text" oils_persist:i18n="true" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
+ <delete permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqexr" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::exchange_rate" oils_persist:tablename="acq.exchange_rate" reporter:label="Exchange Rate">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.exchange_rate_id_seq">
+ <field reporter:label="Exchange Rate ID" name="id" reporter:datatype="id" />
+ <field reporter:label="From Currency" name="from_currency" reporter:datatype="link" />
+ <field reporter:label="To Currency" name="to_currency" reporter:datatype="link" />
+ <field reporter:label="Ratio" name="ratio" />
+ </fields>
+ <links>
+ <link field="from_currency" reltype="has_a" key="code" map="" class="acqct"/>
+ <link field="to_currency" reltype="has_a" key="code" map="" class="acqct"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
+ <delete permission="ADMIN_CURRENCY_TYPE" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpro" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider" oils_persist:tablename="acq.provider" reporter:label="Provider">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_id_seq">
+ <field reporter:label="Provider ID" name="id" reporter:datatype="id" reporter:selector='code'/>
+ <field reporter:label="Provider Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" />
+ <field reporter:label="Currency" name="currency_type" oils_persist:primitive="string" reporter:datatype="link" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Holdings Tag" name="holding_tag" reporter:datatype="text" />
+ <field reporter:label="Addresses" name="addresses" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="SAN" name="san" reporter:datatype="text" />
+ <field reporter:label="EDI Default" name="edi_default" reporter:datatype="link" />
+ <field reporter:label="Active" name="active" reporter:datatype="bool" />
+ <field reporter:label="Prepayment Required" name="prepayment_required" reporter:datatype="bool" />
+ <field reporter:label="URL" name="url" reporter:datatype="text" />
+ <field reporter:label="Email" name="email" reporter:datatype="text" />
+ <field reporter:label="Phone" name="phone" reporter:datatype="text" />
+ <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text" />
+ <field reporter:label="Default Claim Policy" name="default_claim_policy" reporter:datatype="link" />
+ <field reporter:label="Default # Copies" name="default_copy_count" reporter:datatype="int" />
+ <field reporter:label="Notes" name="provider_notes" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="addresses" reltype="has_many" map="" key="provider" class="acqpa"/>
+ <link field="edi_default" reltype="has_a" map="" key="id" class="acqedi"/>
+ <link field="default_claim_policy" reltype="has_a" map="" key="id" class="acqclp"/>
+ <link field="provider_notes" reltype="has_many" map="" key="provider" class="acqpron"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER" context_field="owner"/>
+ <retrieve permission="ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER" context_field="owner"/>
+ <update permission="ADMIN_PROVIDER" context_field="owner"/>
+ <delete permission="ADMIN_PROVIDER" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpron" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::provider_note" oils_persist:tablename="acq.provider_note" reporter:label="Provider Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_note_id_seq">
+ <field reporter:label="PO Note ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Provider" name="provider" reporter:datatype="link" />
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" />
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ <field reporter:label="Note Value" name="value" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ </class>
+
+ <class id="acqipm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_payment_method" oils_persist:tablename="acq.invoice_payment_method" reporter:label="Invoice Payment Method">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INVOICE_PAYMENT_METHOD" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INVOICE_PAYMENT_METHOD" global_required="true"/>
+ <delete permission="ADMIN_INVOICE_PAYMENT_METHOD" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqinv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice" oils_persist:tablename="acq.invoice" reporter:label="Invoice">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.invoice_id_seq">
+ <field reporter:label="Internal Invoice ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Receiver" name="receiver" reporter:datatype="org_unit" />
+ <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
+ <field reporter:label="Shipper" name="shipper" reporter:datatype="link"/>
+ <field reporter:label="Invoice Date" name="recv_date" reporter:datatype="timestamp" />
+ <field reporter:label="Receive Method" name="recv_method" reporter:datatype="link" />
+ <field reporter:label="Invoice Type" name="inv_type" reporter:datatype="text" />
+ <field reporter:label="Vendor Invoice ID" name="inv_ident" reporter:datatype="text" />
+ <field reporter:label="Payment Auth" name="payment_auth" reporter:datatype="text" />
+ <field reporter:label="Payment Method" name="payment_method" reporter:datatype="link" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool" />
+ <field reporter:label="Invoice Entries" name="entries" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Invoice Items" name="items" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+ <links>
+ <link field="receiver" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="shipper" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="recv_method" reltype="has_a" key="code" map="" class="acqim"/>
+ <link field="payment_method" reltype="has_a" key="code" map="" class="acqipm"/>
+ <link field="entries" reltype="has_many" key="invoice" map="" class="acqie"/>
+ <link field="items" reltype="has_many" key="invoice" map="" class="acqii"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_INVOICE" context_field="receiver"/>
+ <retrieve permission="CREATE_INVOICE VIEW_INVOICE" context_field="receiver"/>
+ <update permission="CREATE_INVOICE" context_field="receiver"/>
+ <delete permission="CREATE_INVOICE" context_field="receiver"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqie" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_entry" oils_persist:tablename="acq.invoice_entry" reporter:label="Invoice Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.invoice_entry_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Invoice" name="invoice" reporter:datatype="link" />
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link"/>
+ <field reporter:label="PO Line Item" name="lineitem" reporter:datatype="link"/>
+ <field reporter:label="Invoice Item Count" name="inv_item_count" reporter:datatype="int" />
+ <field reporter:label="Physical Item Count" name="phys_item_count" reporter:datatype="int" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Billed Cost per Item" name="billed_per_item" reporter:datatype="bool" />
+ <field reporter:label="Cost Billed" name="cost_billed" reporter:datatype="money" />
+ <field reporter:label="Actual Cost" name="actual_cost" reporter:datatype="money" />
+ <field reporter:label="Amount Paid" name="amount_paid" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="invoice" reltype="has_a" key="id" map="" class="acqinv"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </create>
+ <retrieve permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </retrieve>
+ <update permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </update>
+ <delete permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqii" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::invoice_item" oils_persist:tablename="acq.invoice_item" reporter:label="Non-bibliographic Invoice Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.invoice_item_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Invoice" name="invoice" reporter:datatype="link" />
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link"/>
+ <field reporter:label="Fund Debit" name="fund_debit" reporter:datatype="link"/>
+ <field reporter:label="Invoice Item Type" name="inv_item_type" reporter:datatype="link" />
+ <field reporter:label="Title or Item Name" name="title" reporter:datatype="text" />
+ <field reporter:label="Author" name="author" reporter:datatype="text" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Cost Billed" name="cost_billed" reporter:datatype="money" />
+ <field reporter:label="Actual Cost" name="actual_cost" reporter:datatype="money" />
+ <field reporter:label="Fund" name="fund" reporter:datatype="link" />
+ <field reporter:label="Amount Paid" name="amount_paid" reporter:datatype="money" />
+ <field reporter:label="Purchase Order Item" name="po_item" reporter:datatype="link" />
+ <field reporter:label="Target" name="target" reporter:datatype="int" />
+ </fields>
+ <links>
+ <link field="invoice" reltype="has_a" key="id" map="" class="acqinv"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
+ <link field="inv_item_type" reltype="has_a" key="code" map="" class="aiit"/>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="po_item" reltype="has_a" key="id" map="" class="acqpoi"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </create>
+ <retrieve permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </retrieve>
+ <update permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </update>
+ <delete permission="ADMIN_INVOICE">
+ <context link="invoice" field="receiver"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_address" oils_persist:tablename="acq.provider_address" reporter:label="Provider Address">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_address_id_seq">
+ <field reporter:label="Address Type" name="address_type" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="Country" name="country" reporter:datatype="text"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
+ <field reporter:label="Post Code" name="post_code" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Street 1" name="street1" reporter:datatype="text"/>
+ <field reporter:label="Street 2" name="street2" reporter:datatype="text"/>
+ <field reporter:label="Is Valid?" name="valid" reporter:datatype="bool"/>
+ <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_contact" oils_persist:tablename="acq.provider_contact" reporter:label="Provider Contact">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_contact_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Role" name="role" reporter:datatype="text"/>
+ <field reporter:label="Email" name="email" reporter:datatype="text"/>
+ <field reporter:label="Phone" name="phone" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acqpca" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_contact_address" oils_persist:tablename="acq.provider_contact_address" reporter:label="Provider Contact Address">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_contact_address_id_seq">
+ <field reporter:label="Type" name="address_type" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="Country" name="country" reporter:datatype="text"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="Address ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
+ <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
+ <field reporter:label="Contact" name="contact" reporter:datatype="link"/>
+ <field reporter:label="Valid Address?" name="valid" reporter:datatype="bool"/>
+ <field reporter:label="Fax Phone" name="fax_phone" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="contact" reltype="has_a" key="id" map="" class="acqpc"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="contact" jump='provider' field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="contact" jump='provider' field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="contact" jump='provider' field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="contact" jump='provider' field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqftr" controller="open-ils.cstore" oils_obj:fieldmapper="acq::fund_transfer" oils_persist:tablename="acq.fund_transfer" reporter:label="Fund Transfer">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_transfer_id_seq">
+ <field reporter:label="Fund Transfer ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Source Fund" name="src_fund" reporter:datatype="link"/>
+ <field reporter:label="Source Amount" name="src_amount" reporter:datatype="money"/>
+ <field reporter:label="Destination Fund" name="dest_fund" reporter:datatype="link"/>
+ <field reporter:label="Destination Amount" name="dest_amount" reporter:datatype="money"/>
+ <field reporter:label="Transfer Time" name="transfer_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transfer User" name="transfer_user" reporter:datatype="link"/>
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Funding Source Credit ID" name="funding_source_credit" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="src_fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="dest_fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="transfer_user" reltype="has_a" key="id" map="" class="au"/>
+ <link field="funding_source_credit" reltype="has_a" key="id" map="" class="acqfscred"/>
+ </links>
+ </class>
+
+ <class id="acqfc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fiscal_calendar" oils_persist:tablename="acq.fiscal_calendar" reporter:label="Fiscal Calendar">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fiscal_calendar_id_seq">
+ <field reporter:label="Fiscal Calendar ID" name="id" reporter:datatype="id" reporter:selector='name'/>
+ <field reporter:label="Fiscal Calendar Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Years" name="years" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="years" reltype="has_many" map="" key="calendar" class="acqfy"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
+ <update permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ <delete permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfy" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fiscal_year" oils_persist:tablename="acq.fiscal_year" reporter:label="Fiscal Year">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fiscal_year_id_seq">
+ <field reporter:label="Fiscal Year ID" name="id" reporter:datatype="id" reporter:selector='year'/>
+ <field reporter:label="Calendar" name="calendar" reporter:datatype="link"/>
+ <field reporter:label="Fiscal Year" name="year" reporter:datatype="int"/>
+ <field reporter:label="Year Begin" name="year_begin" reporter:datatype="timestamp"/>
+ <field reporter:label="Year End" name="year_end" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="calendar" reltype="has_a" key="id" map="" class="acqfc"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ <retrieve permission="STAFF_LOGIN" global_required="true"/>
+ <update permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ <delete permission="ADMIN_ACQ_FISCAL_YEAR" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfs" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::funding_source" oils_persist:tablename="acq.funding_source" reporter:label="Funding Source">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.funding_source_id_seq">
+ <field reporter:label="Funding Source ID" name="id" reporter:datatype="id" reporter:selector='code'/>
+ <field reporter:label="Funding Source Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" />
+ <field reporter:label="Currency" name="currency_type" oils_persist:primitive="string" reporter:datatype="link" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Summary" name="summary" oils_persist:virtual="true"/>
+ <field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Credits" name="credits" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Fund Allocation Percentages" name="fund_alloc_pcts" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="allocations" reltype="has_many" map="" key="funding_source" class="acqfa"/>
+ <link field="credits" reltype="has_many" key="funding_source" map="" class="acqfscred"/>
+ <link field="fund_alloc_pcts" reltype="has_many" key="funding_source" map="" class="acqfap"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
+ <retrieve permission="ADMIN_FUNDING_SOURCE MANAGE_FUNDING_SOURCE VIEW_FUNDING_SOURCE" context_field="owner"/>
+ <update permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
+ <delete permission="ADMIN_FUNDING_SOURCE" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfscred" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::funding_source_credit" oils_persist:tablename="acq.funding_source_credit" reporter:label="Credit to Funding Source">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.funding_source_credit_id_seq">
+ <field reporter:label="Credit ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Funding Source ID" name="funding_source" reporter:datatype="link" />
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Deadline Date" name="deadline_date" reporter:datatype="timestamp" />
+ <field reporter:label="Effective Date" name="effective_date" reporter:datatype="timestamp" />
+ </fields>
+ <links>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_FUNDING_SOURCE">
+ <context link="funding_source" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_FUNDING_SOURCE">
+ <context link="funding_source" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_FUNDING_SOURCE">
+ <context link="funding_source" field="owner"/>
+ </update>
+ <delete permission="ADMIN_FUNDING_SOURCE">
+ <context link="funding_source" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqofscred" controller="open-ils.cstore" oils_obj:fieldmapper="acq::ordered_funding_source_credit" oils_persist:tablename="acq.ordered_funding_source_credit" reporter:label="Ordered Funding Source Credit">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Ordered Fund Src ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Sort Priority" name="sort_priority" reporter:datatype="int"/>
+ <field reporter:label="Sort Date" name="sort_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Funding Source ID" name="funding_source" reporter:datatype="link"/>
+ <field reporter:label="Amount" name="amount" reporter:datatype="money"/>
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ </class>
+
+ <class id="acqfdeb" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_debit" oils_persist:tablename="acq.fund_debit" reporter:label="Debit From Fund">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_debit_id_seq">
+ <field reporter:label="Debit ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Origin Amount" name="origin_amount" reporter:datatype="money" />
+ <field reporter:label="Origin Currency" name="origin_currency_type" reporter:datatype="link" />
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Encumbrance" name="encumbrance" reporter:datatype="bool" />
+ <field reporter:label="Debit Type" name="debit_type" reporter:datatype="text" />
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Invoice Entry" name="invoice_entry" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="origin_currency_type" reltype="has_a" key="code" map="" class="acqct"/>
+ <link field="invoice_entry" reltype="has_a" key="id" map="" class="acqie"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </create>
+ <retrieve permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </retrieve>
+ <update permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </update>
+ <delete permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund" oils_persist:tablename="acq.fund" reporter:label="Fund">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_id_seq">
+ <field reporter:label="Fund ID" name="id" reporter:datatype="id" reporter:selector='code'/>
+ <field reporter:label="Org Unit" name="org" reporter:datatype="org_unit" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" />
+ <field reporter:label="Year" name="year" reporter:datatype="int" />
+ <field reporter:label="Currency Type" name="currency_type" reporter:datatype="link" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Rollover" name="rollover" reporter:datatype="bool" />
+ <field reporter:label="Propagate" name="propagate" reporter:datatype="bool" />
+ <field reporter:label="Active" name="active" reporter:datatype="bool" />
+ <field reporter:label="Balance Warning Percent" name="balance_warning_percent" reporter:datatype="int" />
+ <field reporter:label="Balance Stop Percent" name="balance_stop_percent" reporter:datatype="int" />
+ <field reporter:label="Summary" name="summary" oils_persist:virtual="true"/>
+ <field reporter:label="Allocations" name="allocations" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Debits" name="debits" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Tags" name="tags" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Allocation Total" name="allocation_total" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Debit Total" name="debit_total" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Encumbrance Total" name="encumbrance_total" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Spent Total" name="spent_total" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Combined Balance" name="combined_balance" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Spent Balance" name="spent_balance" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="org" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
+ <link field="allocations" reltype="has_many" key="fund" map="" class="acqfa"/>
+ <link field="debits" reltype="has_many" key="fund" map="" class="acqfdeb"/>
+ <link field="tags" reltype="has_many" key="fund" map="" class="acqftm"/>
+ <link field="allocation_total" reltype="might_have" key="fund" map="" class="acqfat"/>
+ <link field="debit_total" reltype="might_have" key="fund" map="" class="acqfdt"/>
+ <link field="encumbrance_total" reltype="might_have" key="fund" map="" class="acqfet"/>
+ <link field="spent_total" reltype="might_have" key="fund" map="" class="acqfst"/>
+ <link field="combined_balance" reltype="might_have" key="fund" map="" class="acqfcb"/>
+ <link field="spent_balance" reltype="might_have" key="fund" map="" class="acqfsb"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1" ignore_object_perms="true">
+ <actions>
+ <create permission="ADMIN_ACQ_FUND" context_field="org"/>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="org"/>
+ <update permission="ADMIN_ACQ_FUND" context_field="org"/>
+ <delete permission="ADMIN_ACQ_FUND" context_field="org"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfat" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_allocation_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_allocation_total" reporter:label="Fund Allocation Total">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Allocation Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="fund" field="org" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfdt" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_debit_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_debit_total" reporter:label="Total Debit from Fund">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Debit Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="fund" field="org" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfet" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_encumbrance_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_encumbrance_total" reporter:label="Total Fund Encumbrance">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Encumbrance Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="fund" field="org" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfst" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_spent_total" oils_persist:readonly="true" oils_persist:tablename="acq.fund_spent_total" reporter:label="Total Spent from Fund">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Spent Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="fund" field="org" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfcb" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_combined_balance" oils_persist:readonly="true" oils_persist:tablename="acq.fund_combined_balance" reporter:label="Fund Combined Balance">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Balance after Spent and Encumbered" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="fund" field="org" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqafat" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::all_fund_allocation_total" oils_persist:readonly="true" oils_persist:tablename="acq.all_fund_allocation_total" reporter:label="All Fund Allocation Total">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Allocation Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ </class>
+
+ <class id="acqafet" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::all_fund_encumbrance_total" oils_persist:readonly="true" oils_persist:tablename="acq.all_fund_encumbrance_total" reporter:label="All Fund Encumbrance Total">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Encumbered Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ </class>
+
+ <class id="acqafst" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::all_fund_spent_total" oils_persist:readonly="true" oils_persist:tablename="acq.all_fund_spent_total" reporter:label="All Fund Spent Total">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Spent Amount" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ </class>
+
+ <class id="acqafsb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::all_fund_spent_balance" oils_persist:readonly="true" oils_persist:tablename="acq.all_fund_spent_balance" reporter:label="All Fund Spent Balance">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Spent Balance" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ </class>
+
+ <class id="acqafcb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::all_fund_combined_balance" oils_persist:readonly="true" oils_persist:tablename="acq.all_fund_combined_balance" reporter:label="All Fund Combined Total">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Total Combined Balance" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ </class>
+
+ <class id="acqfsrcct" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_credit_total" oils_persist:readonly="true" oils_persist:tablename="acq.funding_source_credit_total" reporter:label="Total Credit to Funding Source">
+ <fields oils_persist:primary="funding_source">
+ <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
+ <field reporter:label="Total Credits to Funding Source" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ </class>
+
+ <class id="acqfsrcat" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_allocation_total" oils_persist:readonly="true" oils_persist:tablename="acq.funding_source_allocation_total" reporter:label="Total Allocation to Funding Source">
+ <fields oils_persist:primary="funding_source">
+ <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
+ <field reporter:label="Total Allocated from Funding Source" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ </class>
+
+ <class id="acqfsrcb" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::funding_source_balance" oils_persist:readonly="true" oils_persist:tablename="acq.funding_source_balance" reporter:label="Funding Source Balance">
+ <fields oils_persist:primary="funding_source">
+ <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
+ <field reporter:label="Balance Remaining" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ </class>
+
+ <class id="acqfsb" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_spent_balance" oils_persist:readonly="true" oils_persist:tablename="acq.fund_spent_balance" reporter:label="Fund Spent Balance">
+ <fields oils_persist:primary="fund">
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link" />
+ <field reporter:label="Balance after Spent" name="amount" reporter:datatype="money" />
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="fund" field="org" />
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acqfsum" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="acq::fund_summary" reporter:label="Fund Summary" reporter:core="true" oils_persist:readonly="true">
+ <oils_persist:source_definition><![CDATA[
+ SELECT
+ acqf.*,
+ COALESCE(acqfat.amount, 0.00) AS allocated_total,
+ COALESCE(acqfst.amount, 0.00) AS spent_total,
+ COALESCE(acqfet.amount, 0.00) AS encumbrance_total,
+ COALESCE(acqfcb.amount, 0.00) AS combined_balance
+ FROM
+ acq.fund acqf
+ LEFT JOIN acq.fund_allocation_total acqfat ON (acqfat.fund = acqf.id)
+ LEFT JOIN acq.fund_spent_total acqfst ON (acqfst.fund = acqf.id)
+ LEFT JOIN acq.fund_encumbrance_total acqfet ON (acqfet.fund = acqf.id)
+ LEFT JOIN acq.fund_combined_balance acqfcb ON (acqfcb.fund = acqf.id)
+ ]]></oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_id_seq">
+ <field reporter:label="Fund ID" name="id" reporter:datatype="id" reporter:selector='code'/>
+ <field reporter:label="Org Unit" name="org" reporter:datatype="org_unit" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" />
+ <field reporter:label="Year" name="year" reporter:datatype="int" />
+ <field reporter:label="Currency Type" name="currency_type" reporter:datatype="link" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Rollover" name="rollover" reporter:datatype="bool" />
+ <field reporter:label="Propagate" name="propagate" reporter:datatype="bool" />
+ <field reporter:label="Active" name="active" reporter:datatype="bool" />
+ <field reporter:label="Balance Warning Percent" name="balance_warning_percent" reporter:datatype="int" />
+ <field reporter:label="Balance Stop Percent" name="balance_stop_percent" reporter:datatype="int" />
+
+ <!-- non fund-native fields -->
+ <field reporter:label="Total Allocated" name="allocated_total" reporter:datatype="money"/>
+ <field reporter:label="Total Spent" name="spent_total" reporter:datatype="money"/>
+ <field reporter:label="Total Encumbered" name="encumbrance_total" reporter:datatype="money"/>
+ <field reporter:label="Remaining Balance" name="combined_balance" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="org" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="currency_type" reltype="has_a" key="code" map="" class="acqct"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="org"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acqfa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_allocation" oils_persist:tablename="acq.fund_allocation" reporter:label="Fund Allocation">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_allocation_id_seq">
+ <field reporter:label="Allocation ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Fund" name="fund" reporter:datatype="link" />
+ <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
+ <field reporter:label="Amount" name="amount" reporter:datatype="money" />
+ <field reporter:label="Allocating User" name="allocator" reporter:datatype="link" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
+ </fields>
+ <links>
+ <link field="allocator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </create>
+ <retrieve permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </retrieve>
+ <update permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </update>
+ <delete permission="ADMIN_ACQ_FUND">
+ <context link="fund" field="org"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqfap" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_allocation_percent" oils_persist:tablename="acq.fund_allocation_percent" reporter:label="Fund Allocation Percent">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_allocation_percent_id_seq">
+ <field reporter:label="Allocation ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Funding Source" name="funding_source" reporter:datatype="link" />
+ <field reporter:label="Org Unit" name="org" reporter:datatype="org_unit" />
+ <field reporter:label="Fund Code" name="fund_code" reporter:datatype="text" />
+ <field reporter:label="Percent" name="percent" reporter:datatype="float" />
+ <field reporter:label="Allocating User" name="allocator" reporter:datatype="link" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp" />
+ </fields>
+ <links>
+ <link field="allocator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="org" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="funding_source" reltype="has_a" key="id" map="" class="acqfs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FUND_ALLOCATION_PERCENT" global_required="true"/>
+ <retrieve permission="VIEW_ACQ_FUND_ALLOCATION_PERCENT" global_required="true"/>
+ <update permission="ADMIN_ACQ_FUND_ALLOCATION_PERCENT" global_required="true"/>
+ <delete permission="ADMIN_ACQ_FUND_ALLOCATION_PERCENT" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::picklist" oils_persist:tablename="acq.picklist" reporter:label="Selection List">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.picklist_id_seq">
+ <field reporter:label="Selection List ID" name="id" reporter:datatype="id" reporter:selector='name' />
+ <field reporter:label="Owner" name="owner" reporter:datatype="link" />
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Entry Count" name="entry_count" oils_persist:virtual="true"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" />
+ <field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="entries" reltype="has_many" key="picklist" map="" class="jub"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="CREATE_PICKLIST VIEW_PICKLIST" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqcr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::cancel_reason" oils_persist:tablename="acq.cancel_reason" reporter:label="Cancel Reason">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.cancel_reason_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector='label'/>
+ <field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Keep Debits?" name="keep_debits" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_CANCEL_CAUSE" context_field="org_unit"/>
+ <retrieve permission="STAFF_LOGIN" context_field="org_unit"/>
+ <update permission="ADMIN_ACQ_CANCEL_CAUSE" context_field="org_unit"/>
+ <delete permission="ADMIN_ACQ_CANCEL_CAUSE" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpo" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::purchase_order" oils_persist:tablename="acq.purchase_order" reporter:label="Purchase Order">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.purchase_order_id_seq">
+ <field reporter:label="Purchase Order ID" name="id" reporter:datatype="id" reporter:selector='name'/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link" />
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="Provider" name="provider" reporter:datatype="link" />
+ <field reporter:label="State" name="state" reporter:datatype="text" />
+ <field reporter:label="Ordering Agency" name="ordering_agency" reporter:datatype="org_unit" />
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" />
+ <field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ <field reporter:label="Order Date" name="order_date" reporter:datatype="timestamp" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" />
+ <field reporter:label="Cancel Reason" name="cancel_reason" reporter:datatype="link" />
+ <field reporter:label="Prepayment Required" name="prepayment_required" reporter:datatype="bool" />
+ <field reporter:label="Line Items" name="lineitems" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Line Item Count" name="lineitem_count" oils_persist:virtual="true" reporter:datatype="int" />
+ <field reporter:label="Amount Encumbered" name="amount_encumbered" oils_persist:virtual="true" reporter:datatype="float" />
+ <field reporter:label="Amount Spent" name="amount_spent" oils_persist:virtual="true" reporter:datatype="float" />
+ <field reporter:label="Amount Estimated" name="amount_estimated" oils_persist:virtual="true" reporter:datatype="float" />
+ <field reporter:label="PO Items" name="po_items" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="default_fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="lineitems" reltype="has_many" key="purchase_order" map="" class="jub"/>
+ <link field="po_items" reltype="has_many" key="purchase_order" map="" class="acqpoi"/>
+ <link field="notes" reltype="has_many" key="purchase_order" map="" class="acqpon"/>
+ <link field="ordering_agency" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="cancel_reason" reltype="has_a" key="id" map="" class="acqcr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER" context_field="ordering_agency"/>
+ <update permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
+ <delete permission="CREATE_PURCHASE_ORDER" context_field="ordering_agency"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpoh" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::acq_purchase_order_history" oils_persist:tablename="acq.acq_purchase_order_history" reporter:label="Purchase Order History">
+ <fields oils_persist:primary="audit_id" oils_persist:sequence="acq.acq_purchase_order_pkey_seq">
+ <field reporter:label="Audit ID" name="audit_id" reporter:datatype="id"/>
+ <field reporter:label="Audit Time" name="audit_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Audit Action" name="audit_action" reporter:datatype="text"/>
+ <field reporter:label="Purchase Order ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Ordering Agency" name="ordering_agency" reporter:datatype="link"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Order Date" name="order_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Cancel Reason" name="cancel_reason" reporter:datatype="link"/>
+ <field reporter:label="Prepayment Required" name="prepayment_required" reporter:datatype="bool" />
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="ordering_agency" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="cancel_reason" reltype="has_a" key="id" map="" class="acqcr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER" context_field="ordering_agency"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpon" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::po_note" oils_persist:tablename="acq.po_note" reporter:label="PO Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.po_note_id_seq">
+ <field reporter:label="PO Note ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" />
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ <field reporter:label="Vote Value" name="value" reporter:datatype="text" />
+ <field reporter:label="Vendor Public" name="vendor_public" reporter:datatype="bool" />
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </create>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </retrieve>
+ <update permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </update>
+ <delete permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqpoi" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::po_item" oils_persist:tablename="acq.po_item" reporter:label="Purchase Order Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.po_item_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link"/>
+ <field reporter:label="Fund Debit" name="fund_debit" reporter:datatype="link"/>
+ <field reporter:label="Invoice Item Type" name="inv_item_type" reporter:datatype="link"/>
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Author" name="author" reporter:datatype="text"/>
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ <field reporter:label="Estimated Cost" name="estimated_cost" reporter:datatype="money"/>
+ <field reporter:label="Fund" name="fund" reporter:datatype="link"/>
+ <field reporter:label="Target" name="target" reporter:datatype="int" />
+ </fields>
+ <links>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
+ <link field="inv_item_type" reltype="has_a" key="code" map="" class="aiit"/>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </create>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </retrieve>
+ <update permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </update>
+ <delete permission="CREATE_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="jub" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem" oils_persist:tablename="acq.lineitem" reporter:label="Line Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_id_seq">
+ <field reporter:label="Lineitem ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Selecting User" name="selector" reporter:datatype="link" />
+ <field reporter:label="Selection List" name="picklist" reporter:datatype="link" />
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link" />
+ <field reporter:label="Provider" name="provider" reporter:datatype="link" />
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="MARC" name="marc" reporter:datatype="text" />
+ <field reporter:label="Evergreen Bib ID" name="eg_bib_id" reporter:datatype="link" />
+ <field reporter:label="Source Label" name="source_label" reporter:datatype="text" />
+ <field reporter:label="Expected Receive Date" name="expected_recv_time" reporter:datatype="timestamp" />
+ <field reporter:label="State" name="state" reporter:datatype="text" />
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" />
+ <field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ <field reporter:label="Claim Policy" name="claim_policy" reporter:datatype="link" />
+ <field reporter:label="Cancel Reason" name="cancel_reason" reporter:datatype="link" />
+ <field reporter:label="Estimated Unit Price" name="estimated_unit_price" reporter:datatype="money" />
+ <field reporter:label="Queued Vandelay Record" name="queued_record" reporter:datatype="link" />
+ <field reporter:label="Item Count" name="item_count" oils_persist:virtual="true" reporter:datatype="int" />
+ <field reporter:label="Descriptive Attributes" name="attributes" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Line Item Details" name="lineitem_details" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Line Item Notes" name="lineitem_notes" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Distribution Formulas" name="distribution_formulas" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Invoice Entries" name="invoice_entries" oils_persist:virtual="true" reporter:datatype="link" />
+ <field reporter:label="Order Summary" name="order_summary" oils_persist:virtual="true" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="selector" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="picklist" reltype="has_a" key="id" map="" class="acqpl"/>
+ <link field="eg_bib_id" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="attributes" reltype="has_many" key="lineitem" map="" class="acqlia"/>
+ <link field="lineitem_details" reltype="has_many" key="lineitem" map="" class="acqlid"/>
+ <link field="lineitem_notes" reltype="has_many" key="lineitem" map="" class="acqlin"/>
+ <link field="cancel_reason" reltype="has_a" key="id" map="" class="acqcr"/>
+ <link field="distribution_formulas" reltype="has_many" key="lineitem" map="" class="acqdfa"/>
+ <link field="claim_policy" reltype="has_a" key="id" map="" class="acqclp"/>
+ <link field="invoice_entries" reltype="has_many" key="lineitem" map="" class="acqie"/>
+ <link field="order_summary" reltype="might_have" key="lineitem" map="" class="acqlisum"/>
+ <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER CREATE_PICKLIST VIEW_PICKLIST">
+ <context link="purchase_order" field="ordering_agency"/>
+ <context link="picklist" field="org_unit"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqlih" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::acq_lineitem_history" oils_persist:tablename="acq.acq_lineitem_history" reporter:label="Line Item History">
+ <fields oils_persist:primary="audit_id" oils_persist:sequence="acq.acq_lineitem_pkey_seq">
+ <field reporter:label="Audit ID" name="audit_id" reporter:datatype="id"/>
+ <field reporter:label="Audit Time" name="audit_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Audit Action" name="audit_action" reporter:datatype="text"/>
+ <field reporter:label="Lineitem ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Editor" name="editor" reporter:datatype="link"/>
+ <field reporter:label="Selector" name="selector" reporter:datatype="link"/>
+ <field reporter:label="Provider" name="provider" reporter:datatype="link"/>
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link"/>
+ <field reporter:label="Selection List" name="picklist" reporter:datatype="link"/>
+ <field reporter:label="Expected Receive Time" name="expected_recv_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp"/>
+ <field reporter:label="MARC" name="marc" reporter:datatype="text"/>
+ <field reporter:label="Evergreen Bib ID" name="eg_bib_id" reporter:datatype="link"/>
+ <field reporter:label="Source Label" name="source_label" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Claim Policy" name="claim_policy" reporter:datatype="link"/>
+ <field reporter:label="Cancel Reason" name="cancel_reason" reporter:datatype="link"/>
+ <field reporter:label="Estimated Unit Price" name="estimated_unit_price" reporter:datatype="money" />
+ <field reporter:label="Queued Vandelay Record" name="queued_record" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="jub"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="selector" reltype="has_a" key="id" map="" class="au"/>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="picklist" reltype="has_a" key="id" map="" class="acqpl"/>
+ <link field="eg_bib_id" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="cancel_reason" reltype="has_a" key="id" map="" class="acqcr"/>
+ <link field="claim_policy" reltype="has_a" key="id" map="" class="acqclp"/>
+ <link field="queued_record" reltype="has_a" key="id" map="" class="vqbr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER">
+ <context link="purchase_order" field="ordering_agency"/>
+ <context link="picklist" field="org_unit"/>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqliat" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem_alert_text" oils_persist:tablename="acq.lineitem_alert_text" reporter:label="Line Item Alert Text">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_alert_text_id_seq">
+ <field reporter:label="Alert Text ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_LINEITEM_ALERT_TEXT" context_field="owning_lib"/>
+ <retrieve permission="STAFF_LOGIN" context_field="owning_lib"/>
+ <update permission="ADMIN_ACQ_LINEITEM_ALERT_TEXT" context_field="owning_lib"/>
+ <delete permission="ADMIN_ACQ_LINEITEM_ALERT_TEXT" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqlin" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_note" oils_persist:tablename="acq.lineitem_note" reporter:label="Line Item Note">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_note_id_seq">
+ <field reporter:label="PO Line Item Note ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Line Item" name="lineitem" reporter:datatype="link" />
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" />
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp" />
+ <field reporter:label="Edit Time" name="edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="Editor" name="editor" reporter:datatype="link" />
+ <field reporter:label="Note Value" name="value" reporter:datatype="text" />
+ <field reporter:label="Alert Text" name="alert_text" reporter:datatype="link" />
+ <field reporter:label="Vendor Public" name="vendor_public" reporter:datatype="bool" />
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="editor" reltype="has_a" key="id" map="" class="au"/>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ <link field="alert_text" reltype="has_a" key="id" map="" class="acqliat"/>
+ </links>
+ </class>
+
+ <class id="acqlia" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_attr" oils_persist:tablename="acq.lineitem_attr" reporter:label="Line Item Attribute">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_id_seq">
+ <field reporter:label="Attribute Value ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link" />
+ <field reporter:label="Type" name="attr_type" reporter:datatype="text" />
+ <field reporter:label="Name" name="attr_name" reporter:datatype="text" />
+ <field reporter:label="Value" name="attr_value" reporter:datatype="text" />
+ <field reporter:label="Definition" name="definition" reporter:datatype="text" />
+ <field reporter:label="Order Identifier" name="order_ident" reporter:datatype="bool" />
+ </fields>
+ <links>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ <link field="definition" reltype="has_a" key="id" map="" class="acqliad"/>
+ </links>
+ </class>
+
+ <class id="acqlid" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_detail" oils_persist:tablename="acq.lineitem_detail" reporter:label="Line Item Detail">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_detail_id_seq">
+ <field reporter:label="Item Detail ID" name="id" reporter:datatype="id" />
+ <field reporter:label="PO Line Item" name="lineitem" reporter:datatype="link" />
+ <field reporter:label="Evergreen Copy ID" name="eg_copy_id" reporter:datatype="link" />
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text" />
+ <field reporter:label="Call Number Label" name="cn_label" reporter:datatype="text" />
+ <field reporter:label="Actual Receive Date" name="recv_time" reporter:datatype="timestamp" />
+ <field reporter:label="Receiving User" name="receiver" reporter:datatype="link" />
+ <field reporter:label="Fund" name="fund" reporter:datatype="link" />
+ <field reporter:label="Fund Debit" name="fund_debit" reporter:datatype="link" />
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit" />
+ <field reporter:label="Copy Location" name="location" reporter:datatype="link" />
+ <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="link" />
+ <field reporter:label="Note" name="note" reporter:datatype="text" />
+ <field reporter:label="Collection Code" name="collection_code" reporter:datatype="text" />
+ <field reporter:label="Cancel Reason" name="cancel_reason" reporter:datatype="link" />
+ <field reporter:label="Claims" name="claims" reporter:datatype="link" oils_persist:virtual="true" />
+ </fields>
+ <links>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ <link field="eg_copy_id" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ <link field="cancel_reason" reltype="has_a" key="id" map="" class="acqcr"/>
+ <link field="claims" reltype="has_many" key="lineitem_detail" map="" class="acqcl"/>
+ <link field="receiver" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="acqliad" controller="open-ils.cstore open-ils.reporter-store open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem_attr_definition" oils_persist:tablename="acq.lineitem_attr_definition" reporter:label="Line Item Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqlimad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem_marc_attr_definition" oils_persist:tablename="acq.lineitem_marc_attr_definition" reporter:label="Line Item MARC Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
+ <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
+ <field reporter:label="Remove" name="remove" reporter:datatype="text" />
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_LINEITEM_MARC_ATTR_DEF" global_required="true"/>
+ <retrieve />
+ <update permission="ADMIN_LINEITEM_MARC_ATTR_DEF" global_required="true"/>
+ <delete permission="ADMIN_LINEITEM_MARC_ATTR_DEF" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqligad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_generated_attr_definition" oils_persist:tablename="acq.lineitem_generated_attr_definition" reporter:label="Line Item Generated Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
+ <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ </class>
+ <class id="acqliuad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_usr_attr_definition" oils_persist:tablename="acq.lineitem_usr_attr_definition" reporter:label="Line Item User Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="User" name="usr" reporter:datatype="link" />
+ <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="acqlipad" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::lineitem_provider_attr_definition" oils_persist:tablename="acq.lineitem_provider_attr_definition" reporter:label="Line Item Provider Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text" />
+ <field reporter:label="Provider" name="provider" reporter:datatype="link" />
+ <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
+ <field reporter:label="Remove" name="remove" reporter:datatype="text" />
+
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqphsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::provider_holding_subfield_map" oils_persist:tablename="acq.provider_holding_subfield_map" reporter:label="Provider Holding Subfield Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.provider_holding_subfield_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Provider" name="provider" reporter:datatype="link" />
+ <field reporter:label="Name" name="name" reporter:datatype="text" />
+ <field reporter:label="Subfield" name="subfield" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqlilad" controller="open-ils.cstore open-ils.reporter-store" oils_obj:fieldmapper="acq::lineitem_local_attr_definition" oils_persist:tablename="acq.lineitem_local_attr_definition" reporter:label="Line Item Local Attribute Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.lineitem_attr_definition_id_seq">
+ <field reporter:label="Definition ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Code" name="code" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" oils_persist:i18n="true" />
+ <field reporter:label="Is Identifier?" name="ident" reporter:datatype="bool"/>
+ </fields>
+ <links/>
+ </class>
+
+ <class id="acqedi" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::edi_account" oils_persist:tablename="acq.edi_account" reporter:label="EDI Account">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.remote_account_id_seq"><!-- edi_account inherits from config.remote_account, hence the seq -->
+ <field name="id" reporter:datatype="id" reporter:label="EDI Account ID" reporter:selector="label"/>
+ <field name="label" reporter:datatype="text" reporter:label="Label"/>
+ <field name="host" reporter:datatype="text" reporter:label="Host"/>
+ <field name="username" reporter:datatype="text" reporter:label="Username"/>
+ <field name="password" reporter:datatype="text" reporter:label="Password"/>
+ <field name="account" reporter:datatype="text" reporter:label="Account"/>
+ <field name="path" reporter:datatype="text" reporter:label="Path"/>
+ <field name="owner" reporter:datatype="link" reporter:label="Owner"/>
+ <field name="last_activity" reporter:datatype="timestamp" reporter:label="Last Activity"/>
+ <field name="provider" reporter:datatype="link" reporter:label="Provider"/>
+ <field name="in_dir" reporter:datatype="text" reporter:label="Incoming Directory"/>
+ <field name="vendacct" reporter:datatype="text" reporter:label="Vendor Account Number"/>
+ <field name="vendcode" reporter:datatype="text" reporter:label="Vendor Assigned Code"/>
+ <field name="attr_set" reporter:datatype="link" reporter:label="EDI Attribute Set"/>
+ <field name="use_attrs" reporter:datatype="bool" reporter:label="Use EDI Attributes"/>
+ </fields>
+ <links>
+ <link field="provider" reltype="has_a" key="id" map="" class="acqpro"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="attr_set" reltype="has_a" key="id" map="" class="aeas"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER">
+ <context link="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aea" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="acq::edi_attr"
+ oils_persist:tablename="acq.edi_attr" reporter:label="EDI Attribute">
+ <fields oils_persist:primary="key">
+ <field name="key" reporter:datatype="text" reporter:label="Key" reporter:selector="label"/>
+ <field name="label" reporter:datatype="text" reporter:label="Label"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_PROVIDER" global_required="true"/>
+ <delete permission="ADMIN_PROVIDER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aeas" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="acq::edi_attr_set"
+ oils_persist:tablename="acq.edi_attr_set" reporter:label="EDI Attribute Set">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.edi_attr_set_id_seq">
+ <field name="id" reporter:datatype="id" reporter:label="ID" reporter:selector="label"/>
+ <field name="label" reporter:datatype="text" reporter:label="Label"/>
+ <field name="attr_maps" reporter:datatype="link" oils_persist:virtual="true" reporter:label="Mapped EDI Attributes"/>
+ </fields>
+ <links>
+ <link field="attr_maps" reltype="has_many" key="attr_set" map="" class="aeasm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_PROVIDER" global_required="true"/>
+ <delete permission="ADMIN_PROVIDER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aeasm" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="acq::edi_attr_set_map"
+ oils_persist:tablename="acq.edi_attr_set_map" reporter:label="EDI Attribute Set Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.edi_attr_set_map_id_seq">
+ <field name="id" reporter:datatype="id" reporter:label="ID" reporter:selector="label"/>
+ <field name="attr_set" reporter:datatype="link" reporter:label="Attribute Set"/>
+ <field name="attr" reporter:datatype="link" reporter:label="Attribute"/>
+ </fields>
+ <links>
+ <link field="attr_set" reltype="has_a" key="id" map="" class="aeas"/>
+ <link field="attr" reltype="has_a" key="id" map="" class="aea"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_PROVIDER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_PROVIDER" global_required="true"/>
+ <delete permission="ADMIN_PROVIDER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="acqedim" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::edi_message" oils_persist:tablename="acq.edi_message" reporter:label="EDI Message">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.edi_message_id_seq">
+ <field name="id" reporter:datatype="id" reporter:label="EDI Message ID"/>
+ <field name="account" reporter:datatype="link" reporter:label="EDI Account"/>
+ <field name="remote_file" reporter:datatype="text" reporter:label="Filename"/>
+ <field name="create_time" reporter:datatype="timestamp" reporter:label="Time Created"/>
+ <field name="translate_time" reporter:datatype="timestamp" reporter:label="Time Translated"/>
+ <field name="process_time" reporter:datatype="timestamp" reporter:label="Time Processed"/>
+ <field name="error_time" reporter:datatype="timestamp" reporter:label="Time of Error"/>
+ <field name="status" reporter:datatype="text" reporter:label="Status"/>
+ <field name="edi" reporter:datatype="text" reporter:label="EDI Message Body"/>
+ <field name="jedi" reporter:datatype="text" reporter:label="JEDI Message Body"/>
+ <field name="error" reporter:datatype="text" reporter:label="Error"/>
+ <field name="purchase_order" reporter:datatype="link" reporter:label="Purchase Order"/>
+ <field name="message_type" reporter:datatype="text" reporter:label="Message Type"/>
+ </fields>
+ <links>
+ <link field="account" reltype="has_a" key="id" map="" class="acqedi"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER">
+ <context link="account" jump="provider" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER">
+ <context link="account" jump="provider" field="owner"/>
+ </update>
+ <delete permission="ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER">
+ <context link="account" jump="provider" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class id="rof" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::output_folder" oils_persist:tablename="reporter.output_folder" reporter:label="Output Folder">
+ <fields oils_persist:primary="id" oils_persist:sequence="reporter.output_folder_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="parent" reporter:datatype="link"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp"/>
+ <field name="name" reporter:datatype="text"/>
+ <field name="shared" reporter:datatype="bool"/>
+ <field name="share_with" reporter:datatype="link"/>
+ <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="outputs" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="parent" reltype="has_a" key="id" map="" class="rof"/>
+ <link field="children" reltype="has_many" key="parent" map="" class="rof"/>
+ <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="outputs" reltype="has_many" key="folder" map="" class="rs"/>
+ </links>
+ </class>
+ <class id="rtf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::template_folder" oils_persist:tablename="reporter.template_folder" reporter:label="Template Folder">
+ <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_folder_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="parent" reporter:datatype="link"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp"/>
+ <field name="name" reporter:datatype="text"/>
+ <field name="shared" reporter:datatype="bool"/>
+ <field name="share_with" reporter:datatype="link"/>
+ <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="templates" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="parent" reltype="has_a" key="id" map="" class="rtf"/>
+ <link field="children" reltype="has_many" key="parent" map="" class="rtf"/>
+ <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="templates" reltype="has_many" key="folder" map="" class="rt"/>
+ </links>
+ </class>
+ <class id="rrf" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report_folder" oils_persist:tablename="reporter.report_folder" reporter:label="Report Folder">
+ <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_folder_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="parent" reporter:datatype="link"/>
+ <field name="owner" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp"/>
+ <field name="name" reporter:datatype="text"/>
+ <field name="shared" reporter:datatype="bool"/>
+ <field name="share_with" reporter:datatype="link"/>
+ <field name="children" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field name="reports" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="parent" reltype="has_a" key="id" map="" class="rrf"/>
+ <link field="children" reltype="has_many" key="parent" map="" class="rrf"/>
+ <link field="share_with" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="reports" reltype="has_many" key="folder" map="" class="rr"/>
+ </links>
+ </class>
+ <class id="rt" controller="open-ils.reporter-store open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="reporter::template" oils_persist:tablename="reporter.template" reporter:label="Template">
+ <fields oils_persist:primary="id" oils_persist:sequence="reporter.template_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="owner" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp"/>
+ <field name="name" reporter:datatype="text"/>
+ <field name="data" reporter:datatype="text"/>
+ <field name="folder" reporter:datatype="link"/>
+ <field name="description" reporter:datatype="text"/>
+ <field name="reports" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="folder" reltype="has_a" key="id" map="" class="rtf"/>
+ <link field="reports" reltype="has_many" key="template" map="" class="rr"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="RUN_REPORTS" owning_user="owner" global_required="true"/>
+ <retrieve permission="RUN_REPORTS" owning_user="owner" global_required="true"/>
+ <update permission="RUN_REPORTS" owning_user="owner" global_required="true"/>
+ <delete permission="RUN_REPORTS" owning_user="owner" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="rr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::report" oils_persist:tablename="reporter.report" reporter:label="Report">
+ <fields oils_persist:primary="id" oils_persist:sequence="reporter.report_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="owner" reporter:datatype="link"/>
+ <field name="create_time" reporter:datatype="timestamp"/>
+ <field name="template" reporter:datatype="link"/>
+ <field name="data" reporter:datatype="text"/>
+ <field name="folder" reporter:datatype="link"/>
+ <field name="recur" reporter:datatype="bool"/>
+ <field name="recurrence" reporter:datatype="interval"/>
+ <field name="name" reporter:datatype="text"/>
+ <field name="description" reporter:datatype="text"/>
+ <field name="runs" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="template" reltype="has_a" key="id" map="" class="rt"/>
+ <link field="folder" reltype="has_a" key="id" map="" class="rrf"/>
+ <link field="runs" reltype="has_many" key="report" map="" class="rs"/>
+ </links>
+ </class>
+ <class id="rs" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::schedule" oils_persist:tablename="reporter.schedule" reporter:label="Schedule">
+ <fields oils_persist:primary="id" oils_persist:sequence="reporter.schedule_id_seq">
+ <field name="id" reporter:datatype="id" />
+ <field name="runner" reporter:datatype="link"/>
+ <field name="start_time" reporter:datatype="timestamp"/>
+ <field name="complete_time" reporter:datatype="timestamp"/>
+ <field name="run_time" reporter:datatype="timestamp"/>
+ <field name="email" reporter:datatype="text"/>
+ <field name="excel_format" reporter:datatype="bool"/>
+ <field name="csv_format" reporter:datatype="bool"/>
+ <field name="html_format" reporter:datatype="bool"/>
+ <field name="error_code" reporter:datatype="int"/>
+ <field name="error_text" reporter:datatype="text"/>
+ <field name="report" reporter:datatype="link"/>
+ <field name="folder" reporter:datatype="link"/>
+ <field name="chart_pie" reporter:datatype="bool"/>
+ <field name="chart_bar" reporter:datatype="bool"/>
+ <field name="chart_line" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="runner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="report" reltype="has_a" key="id" map="" class="rr"/>
+ <link field="folder" reltype="has_a" key="id" map="" class="rof"/>
+ </links>
+ </class>
+ <class id="rmsr" controller="open-ils.reporter-store open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="reporter::materialized_simple_record" oils_persist:tablename="reporter.materialized_simple_record" reporter:label="Fast Simple Record Extracts">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
+ <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
+ <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
+ <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
+ <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
+ <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
+ <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
+ <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
+ <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
+ <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
+ <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve />
+ </actions>
+ </permacrud>
+ </class>
+ <class id="rssr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::super_simple_record" oils_persist:tablename="reporter.super_simple_record" reporter:label="Simple Record Extracts">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Fingerprint" name="fingerprint" reporter:datatype="text"/>
+ <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
+ <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
+ <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
+ <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
+ <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
+ <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
+ <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
+ <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
+ <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
+ <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="rsr" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::simple_record" oils_persist:tablename="reporter.simple_record" reporter:label="Simple Record">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Metarecord" name="metarecord" reporter:datatype="link"/>
+ <field reporter:label="Fingerprint" name="fingerprint" />
+ <field reporter:label="Overall Record Quality" name="quality" reporter:datatype="int"/>
+ <field reporter:label="TCN Source" name="tcn_source" reporter:datatype="text"/>
+ <field reporter:label="TCN Value" name="tcn_value" reporter:datatype="text"/>
+ <field reporter:label="Title Proper (normalized)" name="title" reporter:datatype="text"/>
+ <field reporter:label="Uniform Title (normalized)" name="uniform_title" reporter:datatype="text"/>
+ <field reporter:label="Author (normalized)" name="author" reporter:datatype="text"/>
+ <field reporter:label="Publisher (normalized)" name="publisher" reporter:datatype="text"/>
+ <field reporter:label="Publication Year (normalized)" name="pubdate" reporter:datatype="int"/>
+ <field reporter:label="Series Title (normalized)" name="series_title" reporter:datatype="text"/>
+ <field reporter:label="Series Statement (normalized)" name="series_statement" reporter:datatype="text"/>
+ <field reporter:label="Summary (normalized)" name="summary" reporter:datatype="text"/>
+ <field reporter:label="ISBN" name="isbn" reporter:datatype="text"/>
+ <field reporter:label="ISSN" name="issn" reporter:datatype="text"/>
+ <field reporter:label="Topic Subjects (normalized)" name="topic_subject" reporter:datatype="text"/>
+ <field reporter:label="Geographic Subjects (normalized)" name="geographic_subject" reporter:datatype="text"/>
+ <field reporter:label="Genres (normalized)" name="genre" reporter:datatype="text"/>
+ <field reporter:label="Personal Name Subjects (normalized)" name="name_subject" reporter:datatype="text"/>
+ <field reporter:label="Corporate Name Subjects (normalized)" name="corporate_subject" reporter:datatype="text"/>
+ <field reporter:label="External URI List (normalized)" name="external_uri" reporter:datatype="text"/>
+ <field reporter:label="Full Bibliographic record" name="biblio_record" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="metarecord" reltype="has_a" key="id" map="" class="mmr"/>
+ <link field="biblio_record" reltype="might_have" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="rud" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::user_demographic" oils_persist:tablename="reporter.demographic" reporter:label="User Demographics">
+ <fields oils_persist:primary="id">
+ <field reporter:label="User ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Date of Birth" name="dob" reporter:datatype="timestamp"/>
+ <field reporter:label="General Demographic Division" name="general_division" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="id" reltype="might_have" key="id" map="" class="au"/>
+ </links>
+ </class>
+ <class id="rcirct" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::circulation_type" oils_persist:tablename="reporter.circ_type" reporter:label="Circulation Type">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Circulation ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Circulation Type" name="type" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="id" reltype="might_have" key="id" map="" class="circ"/>
+ </links>
+ </class>
+ <class id="rhrr" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::hold_request_record" oils_persist:tablename="reporter.hold_request_record" reporter:label="Hold Request Record">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Hold ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Hold Target" name="target" reporter:datatype="int" />
+ <field reporter:label="Hold Request Type" name="hold_type" reporter:datatype="text"/>
+ <field reporter:label="Target Bib Record" name="bib_record" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="id" reltype="might_have" key="id" map="" class="ahr"/>
+ <link field="bib_record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="rxbt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::xact_billing_totals" oils_persist:tablename="reporter.xact_billing_totals" reporter:label="Transaction Billing Totals">
+ <fields oils_persist:primary="xact">
+ <field reporter:label="Transaction ID" name="xact" reporter:datatype="int" />
+ <field reporter:label="Unvoided Billing Amount" name="unvoided" reporter:datatype="int" />
+ <field reporter:label="Voided Billing Amount" name="voided" reporter:datatype="money"/>
+ <field reporter:label="Total Billing Amount" name="total" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
+ </links>
+ </class>
+ <class id="rxpt" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::xact_paid_totals" oils_persist:tablename="reporter.xact_paid_totals" reporter:label="Transaction Paid Totals">
+ <fields oils_persist:primary="xact">
+ <field reporter:label="Transaction ID" name="xact" reporter:datatype="int" />
+ <field reporter:label="Unvoided Paid Amount" name="unvoided" reporter:datatype="int" />
+ <field reporter:label="Voided (Returned) Paid Amount" name="voided" reporter:datatype="money"/>
+ <field reporter:label="Total Paid Amount" name="total" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="xact" reltype="might_have" key="id" map="" class="mbt"/>
+ </links>
+ </class>
+ <class id="ergbhu" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::global_bibs_by_holding_update" oils_persist:tablename="extend_reporter.global_bibs_by_holding_update" reporter:label="Bib IDs by Holding Add/Delete Time (OCLC batch update)">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Bib ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Update Time" name="holding_update" reporter:datatype="timestamp" />
+ <field reporter:label="Update Type" name="update_type" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ </class>
+ <class id="erfcc" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::full_circ_count" oils_persist:tablename="extend_reporter.full_circ_count" reporter:label="Total Circulation Count, Including Legacy">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Copy ID" name="id" reporter:datatype="int" />
+ <field reporter:label="Total Circulation Count" name="circ_count" reporter:datatype="int" />
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ </class>
+ <class id="erccpo" controller="open-ils.reporter-store" oils_obj:fieldmapper="extend_reporter::copy_count_per_org" oils_persist:tablename="extend_reporter.copy_count_per_org" reporter:label="Library Holdings Count with Deleted">
+ <fields oils_persist:primary="bibid">
+ <field reporter:label="Bib Record" name="bibid" reporter:datatype="id" />
+ <field reporter:label="Circulation Library" name="circ_lib" reporter:datatype="link" />
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="link" />
+ <field reporter:label="Last Edit Date" name="last_edit_time" reporter:datatype="timestamp" />
+ <field reporter:label="Has Only Deleted Copies 0/1" name="has_only_deleted_copies" reporter:datatype="int" />
+ <field reporter:label="Total deleted copies" name="deleted_count" reporter:datatype="int" />
+ <field reporter:label="Total visible copies" name="visible_count" reporter:datatype="int" />
+ <field reporter:label="Total copies attached" name="total_count" reporter:datatype="int" />
+ </fields>
+ <links>
+ <link field="bibid" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+ <class id="acqdf" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::distribution_formula" oils_persist:tablename="acq.distribution_formula" reporter:label="Distribution Formula">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_id_seq">
+ <field reporter:label="Formula ID" name="id" reporter:datatype="id" reporter:selector="name" />
+ <field reporter:label="Formula Owner" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Formula Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Skip Count" name="skip_count" reporter:datatype="int"/>
+ <field reporter:label="Entries" name="entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Use Count" name="use_count" oils_persist:virtual="true" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="entries" reltype="has_many" key="formula" map="" class="acqdfe"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+ <retrieve permission="CREATE_PURCHASE_ORDER ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+ <update permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+ <delete permission="ADMIN_ACQ_DISTRIB_FORMULA" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acqdfe" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::distribution_formula_entry" oils_persist:tablename="acq.distribution_formula_entry" reporter:label="Distribution Formula Entry">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_entry_id_seq">
+ <field reporter:label="Entry ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Formula ID" name="formula" reporter:datatype="link"/>
+ <field reporter:label="Position" name="position" reporter:datatype="int"/>
+ <field reporter:label="Item Count" name="item_count" reporter:datatype="int"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Location" name="location" reporter:datatype="link"/>
+ <field reporter:label="Fund" name="fund" reporter:datatype="link"/>
+ <field reporter:label="Circulation Modifier" name="circ_modifier" reporter:datatype="link"/>
+ <field reporter:label="Collection Code" name="collection_code" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="formula" reltype="has_a" key="id" map="" class="acqdf"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="location" reltype="has_a" key="id" map="" class="acpl"/>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="circ_modifier" reltype="has_a" key="code" map="" class="ccm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_DISTRIB_FORMULA">
+ <context link="formula" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_ACQ_DISTRIB_FORMULA">
+ <context link="formula" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_ACQ_DISTRIB_FORMULA">
+ <context link="formula" field="owner"/>
+ </update>
+ <delete permission="ADMIN_ACQ_DISTRIB_FORMULA">
+ <context link="formula" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqdfa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::distribution_formula_application" oils_persist:tablename="acq.distribution_formula_application" reporter:label="Distribution Formula Application">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.distribution_formula_application_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Distribution Formula" name="formula" reporter:datatype="link"/>
+ <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="formula" reltype="has_a" key="id" map="" class="acqdf"/>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_PURCHASE_ORDER">
+ <context link="formula" field="owner"/>
+ </create>
+ <retrieve permission="CREATE_PURCHASE_ORDER">
+ <context link="formula" field="owner"/>
+ </retrieve>
+ <update permission="CREATE_PURCHASE_ORDER">
+ <context link="formula" field="owner"/>
+ </update>
+ <delete permission="CREATE_PURCHASE_ORDER">
+ <context link="formula" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqda" controller="open-ils.cstore" oils_obj:fieldmapper="acq::debit_attribution" oils_persist:tablename="acq.debit_attribution" reporter:label="Debit Attribution">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Debit Attribution ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Fund Debit" name="fund_debit" reporter:datatype="link"/>
+ <field reporter:label="Debit Amount" name="debit_amount" reporter:datatype="money"/>
+ <field reporter:label="Funding Source Credit" name="funding_source_credit" reporter:datatype="link"/>
+ <field reporter:label="Credit Amount" name="credit_amount" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="fund_debit" reltype="has_a" key="id" map="" class="acqfdeb"/>
+ <link field="funding_source_credit" reltype="has_a" key="id" map="" class="acqfscred"/>
+ </links>
+ </class>
+
+ <class id="acqclt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::claim_type" oils_persist:tablename="acq.claim_type" reporter:label="Claim Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.claim_type_id_seq">
+ <field reporter:label="Claim Type ID" name="id" reporter:datatype="id" reporter:selector="code" />
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_CLAIM_TYPE" context_field="org_unit"/>
+ <retrieve permission="ADMIN_ACQ_CLAIM_TYPE ADMIN_ACQ_CLAIM VIEW_CLAIM MANAGE_CLAIM" context_field="org_unit"/>
+ <update permission="ADMIN_ACQ_CLAIM_TYPE" context_field="org_unit"/>
+ <delete permission="ADMIN_ACQ_CLAIM_TYPE" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqclet" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::claim_event_type" oils_persist:tablename="acq.claim_event_type" reporter:label="Claim Event Type">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.claim_event_type_id_seq">
+ <field reporter:label="Claim Event Type ID" name="id" reporter:datatype="id" reporter:selector="code" />
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Code" name="code" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Library Initiated" name="library_initiated" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_CLAIM_EVENT_TYPE" context_field="org_unit"/>
+ <retrieve permission="ADMIN_ACQ_CLAIM_EVENT_TYPE ADMIN_ACQ_CLAIM VIEW_CLAIM MANAGE_CLAIM" context_field="org_unit"/>
+ <update permission="ADMIN_ACQ_CLAIM_EVENT_TYPE" context_field="org_unit"/>
+ <delete permission="ADMIN_ACQ_CLAIM_EVENT_TYPE" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqcl" controller="open-ils.cstore" oils_obj:fieldmapper="acq::claim" oils_persist:tablename="acq.claim" reporter:label="Claim">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.claim_id_seq">
+ <field reporter:label="Claim ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Claim Type" name="type" reporter:datatype="link"/>
+ <field reporter:label="Lineitem Detail" name="lineitem_detail" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="type" reltype="has_a" key="id" map="" class="acqclt"/>
+ <link field="lineitem_detail" reltype="has_a" key="id" map="" class="acqlid"/>
+ </links>
+ </class>
+
+ <class id="acqcle" controller="open-ils.cstore" oils_obj:fieldmapper="acq::claim_event" oils_persist:tablename="acq.claim_event" reporter:label="Claim Event">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.claim_event_id_seq">
+ <field reporter:label="Claim Event ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Claim Event Type" name="type" reporter:datatype="link"/>
+ <field reporter:label="Claim ID" name="claim" reporter:datatype="link"/>
+ <field reporter:label="Event Date" name="event_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="type" reltype="has_a" key="id" map="" class="acqclet"/>
+ <link field="claim" reltype="has_a" key="id" map="" class="acqcl"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="acqscl" controller="open-ils.cstore" oils_obj:fieldmapper="acq::serial_claim" oils_persist:tablename="acq.serial_claim" reporter:label="Serial Claim">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.serial_claim_id_seq">
+ <field reporter:label="Claim ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Claim Type" name="type" reporter:datatype="link"/>
+ <field reporter:label="Serial Item" name="item" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="type" reltype="has_a" key="id" map="" class="acqclt"/>
+ <link field="item" reltype="has_a" key="id" map="" class="sitem"/>
+ </links>
+ </class>
+
+ <class id="acqscle" controller="open-ils.cstore" oils_obj:fieldmapper="acq::serial_claim_event" oils_persist:tablename="acq.serial_claim_event" reporter:label="Serial Claim Event">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.serial_claim_event_id_seq">
+ <field reporter:label="Claim Event ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Claim Event Type" name="type" reporter:datatype="link"/>
+ <field reporter:label="Claim ID" name="claim" reporter:datatype="link"/>
+ <field reporter:label="Event Date" name="event_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Note" name="note" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="type" reltype="has_a" key="id" map="" class="acqclet"/>
+ <link field="claim" reltype="has_a" key="id" map="" class="acqscl"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="acqclp" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::claim_policy" oils_persist:tablename="acq.claim_policy" reporter:label="Claim Policy">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.claim_policy_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="name"/>
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Claim Policy Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CLAIM_POLICY" context_field="org_unit"/>
+ <retrieve permission="ADMIN_CLAIM_POLICY VIEW_PROVIDER" context_field="org_unit"/>
+ <update permission="ADMIN_CLAIM_POLICY" context_field="org_unit"/>
+ <delete permission="ADMIN_CLAIM_POLICY" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="acqclpa" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::claim_policy_action" oils_persist:tablename="acq.claim_policy_action" reporter:label="Claim Policy Action">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.claim_policy_action_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id" reporter:selector="action"/>
+ <field reporter:label="Claim Policy ID" name="claim_policy" reporter:datatype="link"/>
+ <field reporter:label="Action Interval" name="action_interval" reporter:datatype="interval"/>
+ <field reporter:label="Action (Event Type)" name="action" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="claim_policy" reltype="has_a" key="id" map="" class="acqclp"/>
+ <link field="action" reltype="has_a" key="id" map="" class="acqclet"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_CLAIM_POLICY">
+ <context link="claim_policy" field="org_unit"/>
+ </create>
+ <retrieve permission="ADMIN_CLAIM_POLICY VIEW_PROVIDER">
+ <context link="claim_policy" field="org_unit"/>
+ </retrieve>
+ <update permission="ADMIN_CLAIM_POLICY">
+ <context link="claim_policy" field="org_unit"/>
+ </update>
+ <delete permission="ADMIN_CLAIM_POLICY">
+ <context link="claim_policy" field="org_unit"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="stgu" controller="open-ils.cstore" oils_obj:fieldmapper="staging::user_stage" oils_persist:tablename="staging.user_stage" reporter:label="User Stage">
+ <fields oils_persist:primary="row_id" oils_persist:sequence="staging.user_stage_row_id_seq">
+ <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
+ <field reporter:label="Create Date" name="row_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="Main (Profile) Permission Group" name="profile" reporter:datatype="text"/>
+ <field reporter:label="Email Address" name="email" reporter:datatype="text"/>
+ <field reporter:label="Password" name="passwd" reporter:datatype="text"/>
+ <field reporter:label="Primary Identification Type" name="ident_type" reporter:datatype="int"/>
+ <field reporter:label="First Name" name="first_given_name" reporter:datatype="text"/>
+ <field reporter:label="Middle Name" name="second_given_name" reporter:datatype="text"/>
+ <field reporter:label="Last Name" name="family_name" reporter:datatype="text"/>
+ <field reporter:label="Daytime Phone" name="day_phone" reporter:datatype="text"/>
+ <field reporter:label="Evening Phone" name="evening_phone" reporter:datatype="text"/>
+ <field reporter:label="Home Library" name="home_ou" reporter:datatype="int"/>
+ <field reporter:label="Date of Birth" name="dob" reporter:datatype="text"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ <field reporter:label="Requesting User" name="requesting_usr" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="requesting_usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+ </class>
+
+ <class id="stgc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="staging::card_stage" oils_persist:tablename="staging.card_stage" reporter:label="Card Stage">
+ <fields oils_persist:primary="row_id" oils_persist:sequence="staging.card_stage_row_id_seq">
+ <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
+ <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ </fields>
+ </class>
+
+ <class id="stgma" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="staging::mailing_address_stage" oils_persist:tablename="staging.mailing_address_stage" reporter:label="Mailing Address Stage">
+ <fields oils_persist:primary="row_id" oils_persist:sequence="staging.mailing_address_stage_row_id_seq">
+ <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
+ <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
+ <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Country" name="country" reporter:datatype="text"/>
+ <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ </fields>
+ </class>
+
+ <class id="stgba" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="staging::billing_address_stage" oils_persist:tablename="staging.billing_address_stage" reporter:label="Billing Address Stage">
+ <fields oils_persist:primary="row_id" oils_persist:sequence="staging.mailing_address_stage_row_id_seq">
+ <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
+ <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="Street (1)" name="street1" reporter:datatype="text"/>
+ <field reporter:label="Street (2)" name="street2" reporter:datatype="text"/>
+ <field reporter:label="City" name="city" reporter:datatype="text"/>
+ <field reporter:label="County" name="county" reporter:datatype="text"/>
+ <field reporter:label="State" name="state" reporter:datatype="text"/>
+ <field reporter:label="Country" name="country" reporter:datatype="text"/>
+ <field reporter:label="Postal Code" name="post_code" reporter:datatype="text"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ </fields>
+ </class>
+
+ <class id="stgsc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="staging::statcat_stage" oils_persist:tablename="staging.statcat_stage" reporter:label="Statistical Category Stage">
+ <fields oils_persist:primary="row_id" oils_persist:sequence="staging.statcat_stage_row_id_seq">
+ <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
+ <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="Stat Cat ID" name="statcat" reporter:datatype="text"/>
+ <field reporter:label="Stat Cat Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ </fields>
+ </class>
+
+ <class id="stgs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="staging::setting_stage" oils_persist:tablename="staging.setting_stage" reporter:label="User Setting Stage">
+ <fields oils_persist:primary="row_id" oils_persist:sequence="staging.setting_stage_row_id_seq">
+ <field reporter:label="Row ID" name="row_id" reporter:datatype="id"/>
+ <field reporter:label="Row Date" name="row_date" reporter:datatype="timestamp"/>
+ <field reporter:label="User Name" name="usrname" reporter:datatype="text"/>
+ <field reporter:label="User Setting Code" name="setting" reporter:datatype="text"/>
+ <field reporter:label="User Setting Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Complete" name="complete" reporter:datatype="bool"/>
+ </fields>
+ </class>
+
+ <class id="afsg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::fieldset_group" oils_persist:tablename="action.fieldset_group" reporter:label="Fieldset Group">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.fieldset_group_id_seq">
+ <field reporter:label="Fieldset Group ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Fieldset Group Name" name="name" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Creation Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Complete Time" name="complete_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Container ID" name="container" reporter:datatype="int" oils_obj:required="true"/> <!-- not an fkey because could be on multiple tables -->
+ <field reporter:label="Container Type" name="container_type" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Rollback Group" name="rollback_group" reporter:datatype="link"/>
+ <field reporter:label="Rollback Time" name="rollback_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ </fields>
+ <links>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="rollback_group" reltype="has_a" key="id" map="" class="afsg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP" context_field="owning_lib" owning_user="creator"/>
+ <retrieve permission="RETRIEVE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP" context_field="owning_lib" owning_user="creator"/>
+ <update permission="UPDATE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP" context_field="owning_lib" owning_user="creator"/>
+ <delete permission="DELETE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP" context_field="owning_lib" owning_user="creator"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="afs" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::fieldset" oils_persist:tablename="action.fieldset" reporter:label="Fieldset">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.fieldset_id_seq">
+ <field reporter:label="Fieldset ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="link"/>
+ <field reporter:label="Status" name="status" reporter:datatype="text"/>
+ <field reporter:label="Creation Time" name="creation_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Scheduled Time" name="scheduled_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Applied Time" name="applied_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Class Name" name="classname" reporter:datatype="text"/>
+ <field reporter:label="Fieldset Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Stored Query" name="stored_query" reporter:datatype="link"/>
+ <field reporter:label="Primary Key Value" name="pkey_value" reporter:datatype="text"/>
+ <field reporter:label="Fieldset Group" name="fieldset_group" reporter:datatype="link"/>
+ <field reporter:label="Error Message" name="error_msg" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="au"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="stored_query" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="fieldset_group" reltype="has_a" key="id" map="" class="afsg"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_FIELDSET ADMIN_FIELDSET" context_field="owning_lib" owning_user="owner"/>
+ <retrieve permission="RETRIEVE_FIELDSET ADMIN_FIELDSET" context_field="owning_lib" owning_user="owner"/>
+ <update permission="UPDATE_FIELDSET ADMIN_FIELDSET" context_field="owning_lib" owning_user="owner"/>
+ <delete permission="DELETE_FIELDSET ADMIN_FIELDSET" context_field="owning_lib" owning_user="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="afscv" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::fieldset_col_val" oils_persist:tablename="action.fieldset_col_val" reporter:label="Fieldset Column Value">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.fieldset_col_val_id_seq">
+ <field reporter:label="Column Value ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Fieldset ID" name="fieldset" reporter:datatype="link"/>
+ <field reporter:label="Column Name" name="col" reporter:datatype="text"/>
+ <field reporter:label="Column Value" name="val" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="fieldset" reltype="has_a" key="id" map="" class="afs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1"> <!-- NOTE: foreign context does not support owning_user today -->
+ <actions>
+ <create permission="CREATE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY">
+ <context link="fieldset" field="owning_lib"/>
+ </create>
+ <retrieve permission="RETRIEVE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY">
+ <context link="fieldset" field="owning_lib"/>
+ </retrieve>
+ <update permission="UPDATE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY">
+ <context link="fieldset" field="owning_lib"/>
+ </update>
+ <delete permission="DELETE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY">
+ <context link="fieldset" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="aufhl" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_loops" oils_persist:tablename="action.unfulfilled_hold_loops" oils_persist:readonly="true">
+ <fields>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="link"/>
+ <field reporter:label="Loop Count" name="count" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="aufhml" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_min_loop" oils_persist:tablename="action.unfulfilled_hold_min_loop" oils_persist:readonly="true">
+ <fields>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Min Loop" name="min" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ </links>
+ </class>
+
+ <class id="aufhil" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_innermost_loop" oils_persist:tablename="action.unfulfilled_hold_innermost_loop" oils_persist:readonly="true">
+ <fields>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="link"/>
+ <field reporter:label="Loop Count" name="count" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="aufhmxl" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_max_loop" oils_persist:tablename="action.unfulfilled_hold_max_loop" oils_persist:readonly="true">
+ <fields>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Max Loop" name="max" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ </links>
+ </class>
+
+ <class id="aufhol" controller="open-ils.cstore" oils_obj:fieldmapper="action::unfulfilled_hold_outermost_loop" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+
+ SELECT DISTINCT l.*
+ FROM action.unfulfilled_hold_loops l
+ JOIN action.unfulfilled_hold_max_loop m USING (hold)
+ WHERE l.count = m.max
+
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label="Hold ID" name="hold" reporter:datatype="link"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="link"/>
+ <field reporter:label="Loop Count" name="count" reporter:datatype="int"/>
+ </fields>
+ <links>
+ <link field="hold" reltype="has_a" key="id" map="" class="ahr"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="qsq" controller="open-ils.cstore" oils_obj:fieldmapper="query::stored_query" oils_persist:tablename="query.stored_query" reporter:label="Stored Query">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.stored_query_id_seq">
+ <field reporter:label="Query ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Query type" name="type" reporter:datatype="text"/>
+ <field reporter:label="Use ALL" name="use_all" reporter:datatype="bool"/>
+ <field reporter:label="Use DISTINCT" name="use_distinct" reporter:datatype="bool"/>
+ <field reporter:label="FROM Clause" name="from_clause" reporter:datatype="link"/>
+ <field reporter:label="WHERE Clause" name="where_clause" reporter:datatype="link"/>
+ <field reporter:label="HAVING Clause" name="having_clause" reporter:datatype="link"/>
+ <field reporter:label="LIMIT count" name="limit_count" reporter:datatype="link"/>
+ <field reporter:label="OFFSET count" name="offset_count" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="from_clause" reltype="has_a" key="id" map="" class="qfr"/>
+ <link field="having_clause" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="where_clause" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="limit_count" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="offset_count" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="qseq" controller="open-ils.cstore" oils_obj:fieldmapper="query::query_sequence" oils_persist:tablename="query.query_sequence" reporter:label="Query Sequence">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.query_sequence_id_seq">
+ <field reporter:label="Query Seq ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Parent Query" name="parent_query" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Child Query" name="child_query" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="parent_query" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="child_query" reltype="has_a" key="id" map="" class="qsq"/>
+ </links>
+ </class>
+
+ <class id="qdt" controller="open-ils.cstore" oils_obj:fieldmapper="query::datatype" oils_persist:tablename="query.datatype" reporter:label="Datatype">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.datatype_id_seq">
+ <field reporter:label="Datatype ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Datatype Name" name="datatype_name" reporter:datatype="text"/>
+ <field reporter:label="Is Numeric" name="is_numeric" reporter:datatype="bool"/>
+ <field reporter:label="Is Composite" name="is_composite" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ </links>
+ </class>
+
+ <class id="qsf" controller="open-ils.cstore" oils_obj:fieldmapper="query::subfield" oils_persist:tablename="query.subfield" reporter:label="Subfield">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.subfield_id_seq">
+ <field reporter:label="Subfield ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Composite Type" name="composite_type" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Subfield Type" name="subfield_type" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="composite_type" reltype="has_a" key="id" map="" class="qdt"/>
+ <link field="subfield_type" reltype="has_a" key="id" map="" class="qdt"/>
+ </links>
+ </class>
+
+ <class id="qfs" controller="open-ils.cstore" oils_obj:fieldmapper="query::function_sig" oils_persist:tablename="query.function_sig" reporter:label="Function Signature">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.function_sig_id_seq">
+ <field reporter:label="Function Signature ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Function Name" name="function_name" reporter:datatype="text"/>
+ <field reporter:label="Return Type" name="return_type" reporter:datatype="link"/>
+ <field reporter:label="Is Aggregate" name="is_aggregate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="return_type" reltype="has_a" key="id" map="" class="qdt"/>
+ </links>
+ </class>
+
+ <class id="qfpd" controller="open-ils.cstore" oils_obj:fieldmapper="query::function_param_def" oils_persist:tablename="query.function_param_def" reporter:label="Function Parameter Definition">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.function_param_def_id_seq">
+ <field reporter:label="Function Param Def ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Function ID" name="function_id" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Datatype" name="datatype" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="function_id" reltype="has_a" key="id" map="" class="qfs"/>
+ <link field="datatype" reltype="has_a" key="id" map="" class="qdt"/>
+ </links>
+ </class>
+
+ <class id="qbv" controller="open-ils.cstore" oils_obj:fieldmapper="query::bind_variable" oils_persist:tablename="query.bind_variable" reporter:label="Bind Variable">
+ <fields oils_persist:primary="name">
+ <field reporter:label="Name" name="name" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Type" name="type" reporter:datatype="text"/>
+ <field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Default Value" name="default_value" reporter:datatype="text"/>
+ <field reporter:label="Actual Value" name="actual_value" oils_persist:virtual="true" reporter:datatype="text"/>
+ </fields>
+ <links>
+ </links>
+ </class>
+
+ <class id="qxp" controller="open-ils.cstore" oils_obj:fieldmapper="query::expression" oils_persist:tablename="query.expression" reporter:label="Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Expression Type" name="type" reporter:datatype="text"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Literal" name="literal" reporter:datatype="text"/>
+ <field reporter:label="Table Alias" name="table_alias" reporter:datatype="text"/>
+ <field reporter:label="Column Name" name="column_name" reporter:datatype="text"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Operator" name="operator" reporter:datatype="text"/>
+ <field reporter:label="Right Operand" name="right_operand" reporter:datatype="link"/>
+ <field reporter:label="Function ID" name="function_id" reporter:datatype="link"/>
+ <field reporter:label="Subquery" name="subquery" reporter:datatype="link"/>
+ <field reporter:label="Cast Type" name="cast_type" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ <field reporter:label="Bind Variable" name="bind_variable" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="right_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="function_id" reltype="has_a" key="id" map="" class="qfs"/>
+ <link field="subquery" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="cast_type" reltype="has_a" key="id" map="" class="qdt"/>
+ <link field="bind_variable" reltype="has_a" key="name" map="" class="qbv"/>
+ </links>
+ </class>
+
+ <class id="qcb" controller="open-ils.cstore" oils_obj:fieldmapper="query::case_branch" oils_persist:tablename="query.case_branch" reporter:label="Case Branch">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.case_branch_id_seq">
+ <field reporter:label="Case Branch ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Condition" name="condition" reporter:datatype="link"/>
+ <field reporter:label="Result" name="result" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="condition" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="result" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="qfr" controller="open-ils.cstore" oils_obj:fieldmapper="query::from_relation" oils_persist:tablename="query.from_relation" reporter:label="From Relation">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.from_relation_id_seq">
+ <field reporter:label="From Relation ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="From Relation Type" name="type" reporter:datatype="text"/>
+ <field reporter:label="Table Name" name="table_name" reporter:datatype="text"/>
+ <field reporter:label="Class Name" name="class_name" reporter:datatype="text"/>
+ <field reporter:label="Subquery ID" name="subquery" reporter:datatype="link"/>
+ <field reporter:label="Function Call ID" name="function_call" reporter:datatype="link"/>
+ <field reporter:label="Table Alias" name="table_alias" reporter:datatype="text"/>
+ <field reporter:label="Parent Relation ID" name="parent_relation" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Join Type" name="join_type" reporter:datatype="text"/>
+ <field reporter:label="On Clause ID" name="on_clause" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="subquery" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="function_call" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="parent_relation" reltype="has_a" key="id" map="" class="qfr"/>
+ <link field="on_clause" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="qrc" controller="open-ils.cstore" oils_obj:fieldmapper="query::record_column" oils_persist:tablename="query.record_column" reporter:label="Record Column">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.record_column_id_seq">
+ <field reporter:label="Record Column ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="From Relation ID" name="from_relation" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Column Name" name="column_name" reporter:datatype="text"/>
+ <field reporter:label="Column Type" name="column_type" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="from_relation" reltype="has_a" key="id" map="" class="qfr"/>
+ <link field="column_type" reltype="has_a" key="id" map="" class="qdt"/>
+ </links>
+ </class>
+
+ <class id="qsi" controller="open-ils.cstore" oils_obj:fieldmapper="query::select_item" oils_persist:tablename="query.select_item" reporter:label="Select Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.select_item_id_seq">
+ <field reporter:label="Select Item ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Stored Query ID" name="stored_query" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Expression" name="expression" reporter:datatype="link"/>
+ <field reporter:label="Column Alias" name="column_alias" reporter:datatype="text"/>
+ <field reporter:label="Is Grouped By" name="grouped_by" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="stored_query" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="expression" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="qobi" controller="open-ils.cstore" oils_obj:fieldmapper="query::order_by_item" oils_persist:tablename="query.order_by_item" reporter:label="Order By Item">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.order_by_item_id_seq">
+ <field reporter:label="Order By Item ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Stored Query ID" name="stored_query" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Expression" name="expression" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="stored_query" reltype="has_a" key="id" map="" class="qsq"/>
+ <link field="expression" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xbet" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xbet" oils_persist:tablename="query.expr_xbet" reporter:label="Between Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xbind" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xbind" oils_persist:tablename="query.expr_xbind" reporter:label="Bind Variable Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Bind Variable" name="bind_variable" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="bind_variable" reltype="has_a" key="name" map="" class="qbv"/>
+ </links>
+ </class>
+
+ <class id="xbool" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xbool" oils_persist:tablename="query.expr_xbool" reporter:label="Boolean Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Literal" name="literal" reporter:datatype="text"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xcase" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xcase" oils_persist:tablename="query.expr_xcase" reporter:label="Case Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xcast" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xcast" oils_persist:tablename="query.expr_xcast" reporter:label="Cast Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Cast Type" name="cast_type" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="cast_type" reltype="has_a" key="id" map="" class="qdt"/>
+ </links>
+ </class>
+
+ <class id="xcol" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xcol" oils_persist:tablename="query.expr_xcol" reporter:label="Column Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Table Alias" name="table_alias" reporter:datatype="text"/>
+ <field reporter:label="Column Name" name="column_name" reporter:datatype="text"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xex" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xex" oils_persist:tablename="query.expr_xex" reporter:label="Exists Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Subquery" name="subquery" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="subquery" reltype="has_a" key="id" map="" class="qsq"/>
+ </links>
+ </class>
+
+ <class id="xfunc" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xfunc" oils_persist:tablename="query.expr_xfunc" reporter:label="Function Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Column Name" name="column_name" reporter:datatype="text"/>
+ <field reporter:label="Function ID" name="function_id" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="function_id" reltype="has_a" key="id" map="" class="qfs"/>
+ </links>
+ </class>
+
+ <class id="xin" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xin" oils_persist:tablename="query.expr_xin" reporter:label="In Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Subquery" name="subquery" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="subquery" reltype="has_a" key="id" map="" class="qsq"/>
+ </links>
+ </class>
+
+ <class id="xisnull" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xisnull" oils_persist:tablename="query.expr_xisnull" reporter:label="IS NULL Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xnull" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xnull" oils_persist:tablename="query.expr_xnull" reporter:label="Null Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xnum" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xnum" oils_persist:tablename="query.expr_xnum" reporter:label="Number Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Literal" name="literal" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xop" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xop" oils_persist:tablename="query.expr_xop" reporter:label="Operator Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Left Operand" name="left_operand" reporter:datatype="link"/>
+ <field reporter:label="Operator" name="operator" reporter:datatype="text"/>
+ <field reporter:label="Right Operand" name="right_operand" reporter:datatype="link"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="left_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="right_operand" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xser" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xser" oils_persist:tablename="query.expr_xser" reporter:label="Operator Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Operator" name="operator" reporter:datatype="text"/>
+ <field reporter:label="Negate?" name="negate" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xstr" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xstr" oils_persist:tablename="query.expr_xstr" reporter:label="String Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Literal" name="literal" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ </links>
+ </class>
+
+ <class id="xsubq" controller="open-ils.cstore" oils_obj:fieldmapper="query::expr_xsubq" oils_persist:tablename="query.expr_xsubq" reporter:label="Subquery Expression">
+ <fields oils_persist:primary="id" oils_persist:sequence="query.expression_id_seq">
+ <field reporter:label="Expression ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Parenthesized" name="parenthesize" reporter:datatype="bool"/>
+ <field reporter:label="Parent Expression" name="parent_expr" reporter:datatype="link"/>
+ <field reporter:label="Sequence Number" name="seq_no" reporter:datatype="int"/>
+ <field reporter:label="Subquery" name="subquery" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="parent_expr" reltype="has_a" key="id" map="" class="qxp"/>
+ <link field="subquery" reltype="has_a" key="id" map="" class="qsq"/>
+ </links>
+ </class>
+
+ <class id="bmpc" controller="open-ils.cstore" oils_obj:fieldmapper="biblio::marc21_physical_characteristics" oils_persist:tablename="biblio.marc21_physical_characteristics" reporter:label="MARC21 Physical Characteristics" oils_persist:field_safe="true" oils_persist:readonly="true">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Temp ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Type" name="ptype" reporter:datatype="link"/>
+ <field reporter:label="Subfield" name="subfield" reporter:datatype="link"/>
+ <field reporter:label="Value" name="value" reporter:datatype="link"/>
+ <field reporter:label="Record" name="record" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="ptype" reltype="has_a" key="id" map="" class="cmpctm"/>
+ <link field="subfield" reltype="has_a" key="id" map="" class="cmpcsm"/>
+ <link field="value" reltype="has_a" key="id" map="" class="cmpcvm"/>
+ <link field="record" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ </class>
+
+ <class id="cmfpm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_ff_pos_map" oils_persist:tablename="config.marc21_ff_pos_map" reporter:label="MARC21 Fixed Field Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.marc21_ff_pos_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Fixed Field" name="fixed_field" reporter:datatype="text"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="Record Type" name="rec_type" reporter:datatype="text"/>
+ <field reporter:label="Start Postion" name="start_pos" reporter:datatype="int"/>
+ <field reporter:label="Length" name="length" reporter:datatype="int"/>
+ <field reporter:label="Default Value" name="default_val" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmpctm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_physical_characteristic_type_map" oils_persist:tablename="config.marc21_physical_characteristic_type_map" reporter:label="MARC21 Physical Characteristic Type Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="ptype_key">
+ <field reporter:label="Type Key" name="ptype_key" reporter:datatype="id"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmpcsm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_physical_characteristic_subfield_map" oils_persist:tablename="config.marc21_physical_characteristic_subfield_map" reporter:label="MARC21 Physical Characteristic Subfield Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.marc21_physical_characteristic_subfield_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Type Key" name="ptype_key" reporter:datatype="link"/>
+ <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
+ <field reporter:label="Start Postion" name="start_pos" reporter:datatype="int"/>
+ <field reporter:label="Length" name="length" reporter:datatype="int"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="ptype_key" reltype="has_a" key="id" map="" class="cmpctm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmpcvm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_physical_characteristic_value_map" oils_persist:tablename="config.marc21_physical_characteristic_value_map" reporter:label="MARC21 Physical Characteristic Value Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.marc21_physical_characteristic_value_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Subfield" name="ptype_subfield" reporter:datatype="link"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="ptype_subfield" reltype="has_a" key="id" map="" class="cmpcsm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class
+ id="uvs"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="url_verify::session"
+ oils_persist:tablename="url_verify.session"
+ reporter:label="URL Verification Session"
+ >
+ <fields oils_persist:primary="id" oils_persist:sequence="url_verify.session_id_seq">
+ <field reporter:label="Session ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit" oils_obj:required="true"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="Record Container" name="container" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Search Constraints" name="search" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="URL Selectors" name="selectors" reporter:datatype="link" oils_persist:virtual="true"/>
+ <field reporter:label="Verification Attempts" name="attempts" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="container" reltype="has_a" key="id" map="" class="cbreb"/>
+ <link field="selectors" reltype="has_many" key="session" map="" class="uvus"/>
+ <link field="attempts" reltype="has_many" key="session" map="" class="uvva"/>
+ </links>
+
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="URL_VERIFY" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class id="uvsbrem" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="url_verify::session_biblio_record_entry_map" oils_persist:readonly="true" reporter:label="URL Verify Session Biblio Record Entry Map">
+ <oils_persist:source_definition>
+ SELECT
+ cbrebi.id AS id, -- so we can have a pkey in our view
+ uvs.id AS session,
+ uvs.owning_lib,
+ cbrebi.target_biblio_record_entry
+ FROM url_verify.session uvs
+ JOIN container.biblio_record_entry_bucket cbreb
+ ON (uvs.container = cbreb.id)
+ JOIN container.biblio_record_entry_bucket_item cbrebi
+ ON (cbrebi.bucket = cbreb.id)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="container.biblio_record_entry_bucket_item_id_seq">
+ <field reporter:label="Bucket Item ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Session" name="session" reporter:datatype="link" />
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit" />
+ <field reporter:label="Target Biblio Record Entry" name="target_biblio_record_entry" reporter:datatype="link" />
+ </fields>
+ <links>
+ <link field="target_biblio_record_entry" reltype="has_a" key="id" map="" class="bre" />
+ <link field="session" reltype="has_a" key="id" map="" class="uvs" />
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve permission="URL_VERIFY" context_field="owning_lib" />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class
+ id="uvus"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="url_verify::url_selector"
+ oils_persist:tablename="url_verify.url_selector"
+ reporter:label="URL Verification URL Selector"
+ >
+ <fields oils_persist:primary="id" oils_persist:sequence="url_verify.url_selector_id_seq">
+ <field reporter:label="URL Selector ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="XPath" name="xpath" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Session" name="session" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="URLs" name="urls" reporter:datatype="link" oils_persist:virtual="true"/>
+ </fields>
+
+ <links>
+ <link field="session" reltype="has_a" key="id" map="" class="uvs"/>
+ <link field="urls" reltype="has_many" key="id" map="" class="uvu"/>
+ </links>
+
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </create>
+ <retrieve permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </retrieve>
+ <update permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </update>
+ <delete permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class
+ id="uvu"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="url_verify::url"
+ oils_persist:tablename="url_verify.url"
+ reporter:label="URL Verification URL"
+ >
+ <fields oils_persist:primary="id" oils_persist:sequence="url_verify.url_id_seq">
+ <field reporter:label="URL ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Redirected From" name="redirect_from" reporter:datatype="link"/>
+ <field reporter:label="Container Item" name="item" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="Session" name="session" reporter:datatype="link" oils_obj:required="true"/>
+ <field reporter:label="URL Selector" name="url_selector" reporter:datatype="link"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="text"/>
+ <field reporter:label="Subfield" name="subfield" reporter:datatype="text"/>
+ <field reporter:label="Ordinal Position" name="ord" reporter:datatype="int"/>
+ <field reporter:label="URL" name="full_url" reporter:datatype="text"/>
+ <field reporter:label="Scheme" name="scheme" reporter:datatype="text"/>
+ <field reporter:label="Host" name="host" reporter:datatype="text"/>
+ <field reporter:label="Domain" name="domain" reporter:datatype="text"/>
+ <field reporter:label="TLD" name="tld" reporter:datatype="text"/>
+ <field reporter:label="Path" name="path" reporter:datatype="text"/>
+ <field reporter:label="Page" name="page" reporter:datatype="text"/>
+ <field reporter:label="Query" name="query" reporter:datatype="text"/>
+ <field reporter:label="Fragment" name="fragment" reporter:datatype="text"/>
+ <field reporter:label="Verifications" name="verifications" reporter:datatype="link" oils_persist:virtual="true" />
+ </fields>
+
+ <links>
+ <link field="redirect_from" reltype="has_a" key="id" map="" class="uvu"/>
+ <link field="item" reltype="has_a" key="id" map="" class="uvsbrem" />
+ <link field="session" reltype="has_a" key="id" map="" class="uvs"/>
+ <link field="url_selector" reltype="has_a" key="id" map="" class="uvus"/>
+ <link field="verifications" reltype="has_many" key="url" map="" class="uvuv"/>
+ </links>
+
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </create>
+ <retrieve permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </retrieve>
+ <update permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </update>
+ <delete permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class
+ id="uvva"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="url_verify::verification_attempt"
+ oils_persist:tablename="url_verify.verification_attempt"
+ reporter:label="URL Verification Attempt"
+ >
+ <fields oils_persist:primary="id" oils_persist:sequence="url_verify.verification_attempt_id_seq">
+ <field reporter:label="Attempt ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="User" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Session" name="session" reporter:datatype="link"/>
+ <field reporter:label="Start Time" name="start_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Finish Time" name="finish_time" reporter:datatype="timestamp"/>
+ </fields>
+
+ <links>
+ <link field="session" reltype="has_a" key="id" map="" class="uvs"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ </links>
+
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </create>
+ <retrieve permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </retrieve>
+ <update permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </update>
+ <delete permission="URL_VERIFY">
+ <context link="session" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class
+ id="uvuv"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="url_verify::url_verification"
+ oils_persist:tablename="url_verify.url_verification"
+ reporter:label="URL Verification"
+ >
+ <fields oils_persist:primary="id" oils_persist:sequence="url_verify.url_verification_id_seq">
+ <field reporter:label="Verification ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="URL" name="url" reporter:datatype="link"/>
+ <field reporter:label="Attempt" name="attempt" reporter:datatype="link"/>
+ <field reporter:label="Request Time" name="req_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Result Time" name="res_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Result Code" name="res_code" reporter:datatype="int"/>
+ <field reporter:label="Result Text" name="res_text" reporter:datatype="text"/>
+ <field reporter:label="Redirected To" name="redirect_to" reporter:datatype="link"/>
+ </fields>
+
+ <links>
+ <link field="url" reltype="has_a" key="id" map="" class="uvu"/>
+ <link field="attempt" reltype="has_a" key="id" map="" class="uvva"/>
+ <link field="redirect_to" reltype="has_a" key="id" map="" class="uvu"/>
+ </links>
+
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="URL_VERIFY">
+ <context link="attempt" jump="session" field="owning_lib"/>
+ </create>
+ <retrieve permission="URL_VERIFY">
+ <context link="attempt" jump="session" field="owning_lib"/>
+ </retrieve>
+ <update permission="URL_VERIFY">
+ <context link="attempt" jump="session" field="owning_lib"/>
+ </update>
+ <delete permission="URL_VERIFY">
+ <context link="attempt" jump="session" field="owning_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class
+ id="cfdi"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="config::filter_dialog_interface"
+ oils_persist:tablename="config.filter_dialog_interface"
+ reporter:label="FilterDialog Interface">
+ <fields oils_persist:primary="key" oils_persist:sequence="config.filter_dialog_interface_pkey">
+ <field reporter:label="Interface Key" name="key" reporter:datatype="text" />
+ <field reporter:label="Description" name="description" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="filter_sets" reltype="has_many" key="interface" map="" class="cfdfs"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve />
+ </actions>
+ </permacrud>
+ </class>
+
+ <class
+ id="cfdfs"
+ controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="config::filter_dialog_filter_set"
+ oils_persist:tablename="config.filter_dialog_filter_set"
+ reporter:label="FilterDialog Filter Set">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.filter_dialog_filter_set_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Interface" name="interface" reporter:datatype="link"/>
+ <field reporter:label="Create Time" name="create_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Filters" name="filters" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="interface" reltype="has_a" key="key" map="" class="cfdi"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="SAVED_FILTER_DIALOG_FILTERS" context_field="owning_lib"/>
+ <retrieve permission="SAVED_FILTER_DIALOG_FILTERS" context_field="owning_lib"/>
+ <update permission="SAVED_FILTER_DIALOG_FILTERS" context_field="owning_lib"/>
+ <delete permission="SAVED_FILTER_DIALOG_FILTERS" context_field="owning_lib"/>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class id="cmrtm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::marc21_rec_type_map" oils_persist:tablename="config.marc21_rec_type_map" reporter:label="MARC21 Record Type Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:datatype="id"/>
+ <field reporter:label="Type Value" name="type_val" reporter:datatype="text"/>
+ <field reporter:label="BLvl Value" name="blvl_val" reporter:datatype="text"/>
+ </fields>
+ <links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rlcd" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="reporter::last_copy_deleted" oils_persist:readonly="true" reporter:core="true" reporter:label="Last Copy Delete Time">
+ <oils_persist:source_definition>
+
+ SELECT b.id,
+ MAX(dcp.edit_date) AS last_delete_date
+ FROM biblio.record_entry b
+ JOIN asset.call_number cn ON (cn.record = b.id)
+ JOIN asset.copy dcp ON (cn.id = dcp.call_number)
+ WHERE NOT b.deleted
+ GROUP BY b.id
+ HAVING SUM( CASE WHEN NOT dcp.deleted THEN 1 ELSE 0 END) = 0
+
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Delete Date/Time" name="last_delete_date" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rhcrpb" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="reporter::hold_copy_ratio_per_bib" oils_persist:readonly="true" reporter:core="true" reporter:label="Hold/Copy Ratio per Bib">
+ <oils_persist:source_definition>
+
+ -- -- If we uncomment the RIGHT JOIN against biblio.record_entry, then we'll get a row for every non-deleted bib, whether it has active holds or not.
+ -- -- If we expect to use pcrud to query against specific bibs, we probably want to do this. However, if we're using this to populate a report, we
+ -- -- may not.
+ -- SELECT
+ -- bre.id AS bib_id,
+ -- COALESCE( z.copy_count, 0 ) AS copy_count,
+ -- COALESCE( z.hold_count, 0 ) AS hold_count,
+ -- COALESCE( z.copy_hold_ratio, 0 ) AS hold_copy_ratio
+ -- FROM (
+ SELECT
+ y.bre AS id,
+ COALESCE( x.copy_count, 0 ) AS copy_count,
+ y.hold_count AS hold_count,
+ (y.hold_count::REAL / (CASE WHEN x.copy_count = 0 OR x.copy_count IS NULL THEN 0.1 ELSE x.copy_count::REAL END)) AS hold_copy_ratio
+ FROM (
+ SELECT
+ (SELECT bib_record FROM reporter.hold_request_record r WHERE r.id = h.id LIMIT 1) AS bre,
+ COUNT(*) AS hold_count
+ FROM action.hold_request h
+ WHERE
+ cancel_time IS NULL
+ AND fulfillment_time IS NULL
+ -- AND NOT frozen -- a frozen hold is still a desired hold, eh?
+ GROUP BY 1
+ )y LEFT JOIN (
+ SELECT
+ (SELECT id
+ FROM biblio.record_entry
+ WHERE id = (SELECT record FROM asset.call_number WHERE id = call_number and deleted is false)
+ ) AS bre,
+ COUNT(*) AS copy_count
+ FROM asset.copy
+ JOIN asset.copy_location loc ON (copy.location = loc.id AND loc.holdable)
+ WHERE copy.holdable
+ AND NOT copy.deleted
+ AND copy.status IN ( SELECT id FROM config.copy_status WHERE holdable )
+ GROUP BY 1
+ )x ON x.bre = y.bre
+ -- )z RIGHT JOIN (
+ -- SELECT id
+ -- FROM biblio.record_entry
+ -- WHERE NOT deleted
+ -- )bre ON (z.bib_id = bre.id)
+
+
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry">
+ <field reporter:label="Record ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Holdable Copy Count" name="copy_count" reporter:datatype="int"/>
+ <field reporter:label="Active Holds" name="hold_count" reporter:datatype="int"/>
+ <field reporter:label="Hold/Copy Ratio" name="hold_copy_ratio" reporter:datatype="float"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rhcrpbap" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="reporter::hold_copy_ratio_per_bib_and_pickup" oils_persist:readonly="true" reporter:label="Hold/Copy Ratio per Bib and Pickup Library">
+ <oils_persist:source_definition>
+ SELECT *,
+ CASE WHEN copy_count_at_pickup_library = 0 THEN 'Infinity'::FLOAT ELSE holds_at_pickup_library::FLOAT/copy_count_at_pickup_library END AS pickup_library_ratio,
+ CASE WHEN copy_count_everywhere = 0 THEN 'Infinity'::FLOAT ELSE holds_everywhere::FLOAT/copy_count_everywhere END AS everywhere_ratio
+ FROM
+ (SELECT bib_record as id, pickup_lib, count(DISTINCT ahr.id) AS holds_at_pickup_library, COALESCE(count(DISTINCT ac.id),0) as copy_count_at_pickup_library
+ FROM
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ LEFT JOIN asset.copy ac ON (ahcm.target_copy = ac.id AND ahr.pickup_lib = ac.circ_lib)
+ WHERE
+ ahr.cancel_time IS NULL
+ AND ahr.fulfillment_time IS NULL
+ GROUP BY bib_record, pickup_lib
+ )x
+ JOIN
+ (SELECT bib_record as id, count(DISTINCT ahr.id) AS holds_everywhere, COALESCE(count(DISTINCT target_copy),0) as copy_count_everywhere
+ FROM
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ WHERE
+ ahr.cancel_time IS NULL
+ AND ahr.fulfillment_time IS NULL
+ GROUP BY bib_record
+ )y
+ USING (id)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry">
+ <field reporter:label="Record ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Pickup Library" name="pickup_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Active Holds at Pickup Library" name="holds_at_pickup_library" reporter:datatype="int"/>
+ <field reporter:label="Holdable Copy Count at Pickup Library" name="copy_count_at_pickup_library" reporter:datatype="int"/>
+ <field reporter:label="Active Holds Everywhere" name="holds_everywhere" reporter:datatype="int"/>
+ <field reporter:label="Holdable Copy Count Everywhere" name="copy_count_everywhere" reporter:datatype="int"/>
+ <field reporter:label="Hold/Copy Ratio at Pickup Library" name="pickup_library_ratio" reporter:datatype="float"/>
+ <field reporter:label="Hold/Copy Ratio Everywhere" name="everywhere_ratio" reporter:datatype="float"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="pickup_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rhcrpbapd" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="reporter::hold_copy_ratio_per_bib_and_pickup_desc" oils_persist:readonly="true" reporter:label="Hold/Copy Ratio per Bib and Pickup Library (and Descendants) ">
+ <oils_persist:source_definition>
+ WITH counts_at_ou AS (
+ SELECT rhrr.bib_record AS id,
+ aou.id AS pickup_lib_or_desc,
+ COUNT(DISTINCT ahr.id) AS holds_at_or_below,
+ COALESCE(COUNT(DISTINCT ac.id),0) AS copy_count_at_or_below
+ FROM actor.org_unit aou
+ JOIN actor.org_unit_type aout ON (aou.ou_type = aout.id),
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ LEFT JOIN asset.copy ac ON (ahcm.target_copy = ac.id)
+ WHERE ahr.cancel_time IS NULL AND ahr.fulfillment_time IS NULL
+ AND ac.circ_lib IN (SELECT id FROM actor.org_unit_descendants(aou.id))
+ AND (actor.org_unit_ancestor_at_depth(ahr.pickup_lib,aout.depth)).id = (actor.org_unit_ancestor_at_depth(ac.circ_lib,aout.depth)).id
+ GROUP BY 1, 2
+ )
+ SELECT x.id, x.pickup_lib_or_desc, x.holds_at_or_below, x.copy_count_at_or_below,
+ y.holds_everywhere, y.copy_count_everywhere,
+ CASE WHEN copy_count_at_or_below = 0 THEN 'Infinity'::FLOAT ELSE x.holds_at_or_below::FLOAT/x.copy_count_at_or_below END AS hold_copy_ratio_at_or_below_ou,
+ CASE WHEN copy_count_everywhere = 0 THEN 'Infinity'::FLOAT ELSE y.holds_everywhere::FLOAT/y.copy_count_everywhere END AS everywhere_ratio
+ FROM counts_at_ou x
+ JOIN (SELECT bib_record AS id, count(DISTINCT ahr.id) AS holds_everywhere, COALESCE(count(DISTINCT target_copy),0) as copy_count_everywhere
+ FROM
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ WHERE
+ ahr.cancel_time IS NULL
+ AND ahr.fulfillment_time IS NULL
+ GROUP BY bib_record
+ )y
+ USING (id)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry">
+ <field reporter:label="Record ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Pickup Library" name="pickup_lib_or_desc" reporter:datatype="org_unit"/>
+ <field reporter:label="Active Holds at Pickup Library and its Descendants" name="holds_at_or_below" reporter:datatype="int"/>
+ <field reporter:label="Holdable Copy Count at Pickup Library and its Descendants" name="copy_count_at_or_below" reporter:datatype="int"/>
+ <field reporter:label="Active Holds Everywhere" name="holds_everywhere" reporter:datatype="int"/>
+ <field reporter:label="Holdable Copy Count Everywhere" name="copy_count_everywhere" reporter:datatype="int"/>
+ <field reporter:label="Hold/Copy Ratio at Pickup Library and its Descendants" name="hold_copy_ratio_at_or_below_ou" reporter:datatype="float"/>
+ <field reporter:label="Hold/Copy Ratio Everywhere" name="everywhere_ratio" reporter:datatype="float"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="bre"/>
+ <link field="pickup_lib_or_desc" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rlc" controller="open-ils.cstore open-ils.pcrud open-ils.reporter-store" oils_obj:fieldmapper="reporter::last_circ_date" oils_persist:readonly="true" reporter:label="Last Circulation or Creation Date">
+ <oils_persist:source_definition>
+ SELECT
+ ac.id,
+ COALESCE(MAX(actac.xact_start), ac.create_date) AS last_circ_or_create,
+ MAX(actac.xact_start) AS last_circ
+ FROM asset.copy ac
+ LEFT JOIN action.all_circulation actac ON ac.id = actac.target_copy
+ GROUP BY ac.id
+
+ -- Alternate version, say if you have migrated last checkout information in extend_reporter.legacy_circ_timestamp:
+ --SELECT
+ -- ac.id,
+ -- GREATEST(MAX(actac.xact_start), erlct.last_cko_ts, ac.create_date) AS last_circ_or_create,
+ -- GREATEST(MAX(actac.xact_start), erlct.last_cko_ts) AS last_circ
+ --FROM asset.copy ac
+ -- LEFT JOIN action.all_circulation actac ON ac.id = actac.target_copy
+ -- LEFT JOIN extend_reporter.legacy_circ_timestamp erlct ON ac.id = erlct.id
+ --GROUP BY ac.id, ac.create_date, erlct.last_cko_ts
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="biblio.record_entry">
+ <field reporter:label="Copy ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Last Circulation or Creation Date" name="last_circ_or_create" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Circulation Date" name="last_circ" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ctcl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::ts_config_list" oils_persist:tablename="config.ts_config_list" reporter:label="Text Search Configs">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Text Search Config" reporter:selector="name" reporter:datatype="text" name="id"/>
+ <field reporter:label="Text Search Config Name" reporter:datatype="text" name="name"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmcts" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_class_ts_map" oils_persist:tablename="config.metabib_class_ts_map" reporter:label="Metabib Class TS Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_class_ts_map_id_seq">
+ <field reporter:label="Map ID" reporter:datatype="id" name="id"/>
+ <field reporter:label="Metabib Class" reporter:datatype="text" name="field_class"/>
+ <field reporter:label="Text Search Config" reporter:datatype="text" name="ts_config"/>
+ <field reporter:label="Active?" reporter:datatype="bool" name="active"/>
+ <field reporter:label="Index Weight" reporter:datatype="text" name="index_weight"/>
+ <field reporter:label="Index Language" reporter:datatype="text" name="index_lang"/>
+ <field reporter:label="Search Language" reporter:datatype="text" name="search_lang"/>
+ <field reporter:label="Always Apply?" reporter:datatype="bool" name="always"/>
+ </fields>
+ <links>
+ <link field="field_class" reltype="has_a" key="name" map="" class="cmc"/>
+ <link field="ts_config" reltype="has_a" key="id" map="" class="ctcl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="cmfts" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::metabib_field_ts_map" oils_persist:tablename="config.metabib_field_ts_map" reporter:label="Metabib Field TS Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.metabib_field_ts_map_id_seq">
+ <field reporter:label="Map ID" reporter:datatype="id" name="id"/>
+ <field reporter:label="Metabib Field" reporter:datatype="text" name="metabib_field"/>
+ <field reporter:label="Text Search Config" reporter:datatype="text" name="ts_config"/>
+ <field reporter:label="Active?" reporter:datatype="bool" name="active"/>
+ <field reporter:label="Index Weight" reporter:datatype="text" name="index_weight"/>
+ <field reporter:label="Index Language" reporter:datatype="text" name="index_lang"/>
+ <field reporter:label="Search Language" reporter:datatype="text" name="search_lang"/>
+ </fields>
+ <links>
+ <link field="metabib_field" reltype="has_a" key="id" map="" class="cmf"/>
+ <link field="ts_config" reltype="has_a" key="id" map="" class="ctcl"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ <delete permission="ADMIN_INDEX_NORMALIZER" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <!-- ********************************************************************************************************************* -->
+ <!-- What follows is a set of example extensions that are useful for PINES. Comment out or remove if you don't want them. -->
+ <!-- ********************************************************************************************************************* -->
+ <class id="rccc" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::classic_current_circ" oils_persist:tablename="reporter.classic_current_circ" reporter:core="true" reporter:label="Classic Circulation View">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Circulation" name="id" reporter:datatype="id" />
+ <field reporter:label="Library Circulation Location Short (Policy) Name" name="circ_lib" reporter:datatype="text"/>
+ <field reporter:label="Library Circulation Location Link" name="circ_lib_id" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulation Date/Time" name="xact_start" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulation Type" name="circ_type" reporter:datatype="text"/>
+ <field reporter:label="Copy Link" name="copy_id" reporter:datatype="link"/>
+ <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
+ <field reporter:label="Owning Library Short (Policy) Name" name="owning_lib_name" reporter:datatype="text"/>
+ <field reporter:label="Item Language" name="language" reporter:datatype="text"/>
+ <field reporter:label="Literary Form" name="lit_form" reporter:datatype="text"/>
+ <field reporter:label="MARC Form" name="item_form" reporter:datatype="text"/>
+ <field reporter:label="MARC Type" name="item_type" reporter:datatype="text"/>
+ <field reporter:label="Shelving Location" name="shelving_location" reporter:datatype="text"/>
+ <field reporter:label="Patron Profile Group" name="profile_group" reporter:datatype="text"/>
+ <field reporter:label="Patron Age Demographic" name="demographic_general_division" reporter:datatype="text"/>
+ <field reporter:label="Call Number Link" name="call_number" reporter:datatype="link"/>
+ <field reporter:label="Call Number Label" name="call_number_label" reporter:datatype="text"/>
+ <field reporter:label="Call Number Dewey/Prefix" name="dewey" reporter:datatype="text"/>
+ <field reporter:label="Patron Link" name="patron_id" reporter:datatype="link"/>
+ <field reporter:label="Patron Home Library Link" name="patron_home_lib" reporter:datatype="link"/>
+ <field reporter:label="Patron Home Library Short (Policy) Name" name="patron_home_lib_shortname" reporter:datatype="text"/>
+ <field reporter:label="Patron County" name="patron_county" reporter:datatype="text"/>
+ <field reporter:label="Patron City" name="patron_city" reporter:datatype="text"/>
+ <field reporter:label="Patron ZIP Code" name="patron_zip" reporter:datatype="text"/>
+ <field reporter:label="Legacy CAT1 Link" name="stat_cat_1" reporter:datatype="link"/>
+ <field reporter:label="Legacy CAT2 Link" name="stat_cat_2" reporter:datatype="link"/>
+ <field reporter:label="Dewey Range - Tens" name="dewey_range_tens" reporter:datatype="text"/>
+ <field reporter:label="Dewey Range - Hundreds" name="dewey_range_hundreds" reporter:datatype="text"/>
+ <field reporter:label="Dewey Block - Tens" name="dewey_block_tens" reporter:datatype="text"/>
+ <field reporter:label="Dewey Block - Hundreds" name="dewey_block_hundreds" reporter:datatype="text"/>
+ <field reporter:label="Legacy CAT1 Value" name="stat_cat_1_value" reporter:datatype="text"/>
+ <field reporter:label="Legacy CAT2 Value" name="stat_cat_2_value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="circ"/>
+ <link field="copy_id" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="patron_id" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib_id" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="call_number" reltype="has_a" key="id" map="" class="acn"/>
+ <link field="patron_home_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="stat_cat_1" reltype="has_a" key="id" map="" class="rsce1"/>
+ <link field="stat_cat_2" reltype="has_a" key="id" map="" class="rsce2"/>
+ </links>
+ </class>
+
+ <class id="rsce1" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::legacy_cat1" oils_persist:tablename="reporter.legacy_cat1" reporter:label="CAT1 Entry">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Entry ID" name="id" reporter:selector="value" reporter:datatype="id" />
+ <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rsce2" controller="open-ils.reporter-store open-ils.cstore" oils_obj:fieldmapper="reporter::legacy_cat2" oils_persist:tablename="reporter.legacy_cat2" reporter:label="CAT2 Entry">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Entry ID" name="id" reporter:selector="value" reporter:datatype="id" />
+ <field reporter:label="Entry Owner" name="owner" reporter:datatype="link"/>
+ <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rccbs" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::classic_current_billing_summary" oils_persist:tablename="reporter.classic_current_billing_summary" reporter:core="true" reporter:label="Classic Open Transaction Summary">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Transaction ID" name="id" reporter:datatype="id" />
+
+ <field reporter:label="Billing Location Short (Policy) Name" name="billing_location_shortname" reporter:datatype="text"/>
+ <field reporter:label="Billing Location Name" name="billing_location_name" reporter:datatype="text"/>
+ <field reporter:label="Billing Location Link" name="billing_location" reporter:datatype="org_unit"/>
+
+ <field reporter:label="User Home Library Short (Policy) Name" name="usr_home_ou_shortname" reporter:datatype="text"/>
+ <field reporter:label="User Home Library Name" name="usr_home_ou_name" reporter:datatype="text"/>
+ <field reporter:label="User Home Library Link" name="usr_home_ou" reporter:datatype="org_unit"/>
+
+ <field reporter:label="User Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="User Link" name="usr" reporter:datatype="link"/>
+
+ <field reporter:label="Transaction Start Date/Time" name="xact_start" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction End Date/Time" name="xact_finish" reporter:datatype="timestamp"/>
+ <field reporter:label="Transaction Type" name="xact_type" reporter:datatype="text"/>
+
+ <field reporter:label="Total Paid" name="total_paid" reporter:datatype="money"/>
+ <field reporter:label="Total Billed" name="total_owed" reporter:datatype="money"/>
+
+ <field reporter:label="Last Payment Date/Time" name="last_payment_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Payment Note" name="last_payment_note" reporter:datatype="text"/>
+ <field reporter:label="Last Payment Type" name="last_payment_type" reporter:datatype="text"/>
+
+ <field reporter:label="Last Billing Date/Time" name="last_billing_ts" reporter:datatype="timestamp"/>
+ <field reporter:label="Last Billing Note" name="last_billing_note" reporter:datatype="text"/>
+ <field reporter:label="Last Billing Type" name="last_billing_type" reporter:datatype="text"/>
+
+ <field reporter:label="User Age Demographic" name="demographic_general_division" reporter:datatype="text"/>
+ <field reporter:label="User County" name="patron_county" reporter:datatype="text"/>
+ <field reporter:label="User City" name="patron_city" reporter:datatype="text"/>
+ <field reporter:label="User ZIP Code" name="patron_zip" reporter:datatype="text"/>
+
+ <field reporter:label="Balance Owed" name="balance_owed" reporter:datatype="money"/>
+ <field reporter:label="User Profile Group" name="profile_group" reporter:datatype="text"/>
+
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="mbt"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="billing_location" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="usr_home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="acrlid" controller="open-ils.cstore" oils_obj:fieldmapper="acq::claim_ready_lineitem_detail" oils_persist:readonly="true" reporter:label="Claim Ready Lineitem Details">
+ <oils_persist:source_definition>
+
+ SELECT
+ po.ordering_agency AS ordering_agency,
+ po.id AS purchase_order,
+ li.id AS lineitem,
+ lid.id AS lineitem_detail,
+ cpa.id AS claim_policy_action
+ FROM
+ acq.lineitem_detail lid
+ JOIN acq.lineitem li ON (li.id = lid.lineitem)
+ JOIN acq.purchase_order po ON (po.id = li.purchase_order)
+ JOIN acq.claim_policy cp ON (li.claim_policy = cp.id)
+ JOIN acq.claim_policy_action cpa ON (
+ cpa.claim_policy = cp.id
+
+ -- we only care about claim policy actions whose claim
+ -- interval we'd reached or exceeded
+ AND (NOW() - cpa.action_interval) > po.order_date
+
+ -- filter out all claim policy actions where claim events
+ -- have occurred on or after the action's action_interval
+ AND NOT EXISTS (
+ SELECT 1
+ FROM
+ acq.claim_event evt
+ JOIN acq.claim claim ON (
+ claim.id = evt.claim
+ AND claim.lineitem_detail = lid.id
+ )
+ WHERE
+ evt.event_date >= (po.order_date + cpa.action_interval)
+ )
+ )
+ WHERE
+ lid.cancel_reason IS NULL
+ AND li.cancel_reason IS NULL -- belt/suspenders
+ AND po.cancel_reason IS NULL -- belt/suspenders
+ AND lid.recv_time IS NULL
+ AND po.state = 'on-order'
+ ORDER BY 1, 2, 3, 4, 5
+
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label="Ordering Agency" name="ordering_agency" reporter:datatype="link"/>
+ <field reporter:label="Purchase Order" name="purchase_order" reporter:datatype="link"/>
+ <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link"/>
+ <field reporter:label="Lineitem Detail" name="lineitem_detail" reporter:datatype="link"/>
+ <field reporter:label="Claim Policy Action" name="claim_policy_action" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="ordering_agency" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo"/>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ <link field="lineitem_detail" reltype="has_a" key="id" map="" class="acqlid"/>
+ <link field="claim_policy_action" reltype="has_a" key="id" map="" class="acqclpa"/>
+ </links>
+ </class>
+ <class id="acqlisum" controller="open-ils.cstore" oils_obj:fieldmapper="acq::lineitem_summary" oils_persist:readonly="true" reporter:label="Lineitem Summary" oils_persist:tablename="acq.lineitem_summary">
+ <fields oils_persist:primary="lineitem" oils_persist:sequence="acq.lineitem_id_seq">
+ <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link"/>
+ <field reporter:label="Item Count" name="item_count" reporter:datatype="int"/>
+ <field reporter:label="Receive Count" name="recv_count" reporter:datatype="int"/>
+ <field reporter:label="Cancel Count" name="cancel_count" reporter:datatype="int"/>
+ <field reporter:label="Delay Count" name="delay_count" reporter:datatype="int"/>
+ <field reporter:label="Invoice Count" name="invoice_count" reporter:datatype="int"/>
+ <field reporter:label="Claim Count" name="claim_count" reporter:datatype="int"/>
+ <field reporter:label="Estimated Amount" name="estimated_amount" reporter:datatype="money"/>
+ <field reporter:label="Encumbrance Amount" name="encumbrance_amount" reporter:datatype="money"/>
+ <field reporter:label="Paid Amount" name="paid_amount" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ </links>
+ </class>
+ <class id="acqlisumi" controller="open-ils.cstore" oils_obj:fieldmapper="acq::lineitem_summary_invoiceable" oils_persist:readonly="true" reporter:label="Invoiceable Lineitem Summary">
+ <oils_persist:source_definition>
+ SELECT * FROM acq.lineitem_summary
+ WHERE item_count > (invoice_count + cancel_count)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="lineitem" oils_persist:sequence="acq.lineitem_id_seq">
+ <field reporter:label="Lineitem" name="lineitem" reporter:datatype="link"/>
+ <field reporter:label="Item Count" name="item_count" reporter:datatype="int"/>
+ <field reporter:label="Receive Count" name="recv_count" reporter:datatype="int"/>
+ <field reporter:label="Cancel Count" name="cancel_count" reporter:datatype="int"/>
+ <field reporter:label="Delay Count" name="delay_count" reporter:datatype="int"/>
+ <field reporter:label="Invoice Count" name="invoice_count" reporter:datatype="int"/>
+ <field reporter:label="Claim Count" name="claim_count" reporter:datatype="int"/>
+ <field reporter:label="Estimated Amount" name="estimated_amount" reporter:datatype="money"/>
+ <field reporter:label="Encumbrance Amount" name="encumbrance_amount" reporter:datatype="money"/>
+ <field reporter:label="Paid Amount" name="paid_amount" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub"/>
+ </links>
+ </class>
+ <class id="iatc" controller="open-ils.reporter-store" oils_obj:fieldmapper="action::intersystem_transit_copy" oils_persist:readonly="true" reporter:core="true" reporter:label="Inter-system Copy Transit">
+ <oils_persist:source_definition>
+
+ SELECT t.*
+ FROM action.transit_copy t
+ JOIN actor.org_unit AS s ON (t.source = s.id)
+ JOIN actor.org_unit AS d ON (t.dest = d.id)
+ WHERE s.parent_ou <> d.parent_ou
+
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id" oils_persist:sequence="action.transit_copy_id_seq">
+ <field reporter:label="Pretransit Copy Status" name="copy_status" reporter:datatype="link"/>
+ <field reporter:label="Destination" name="dest" reporter:datatype="link"/>
+ <field reporter:label="Receive Date/Time" name="dest_recv_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transit ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Is Persistent? (unused)" name="persistant_transfer" reporter:datatype="bool"/>
+ <field reporter:label="Previous Hop (unused)" name="prev_hop" reporter:datatype="link"/>
+ <field reporter:label="Source" name="source" reporter:datatype="link"/>
+ <field reporter:label="Send Date/Time" name="source_send_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Transited Copy" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Hold Transit" name="hold_transit_copy" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Cancel Date/Time" name="cancel_time" reporter:datatype="timestamp"/>
+ </fields>
+ <links>
+ <link field="hold_transit_copy" reltype="might_have" key="id" map="" class="ahtc"/>
+ <link field="source" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="copy_status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="dest" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="prev_hop" reltype="has_a" key="id" map="" class="atc"/>
+ </links>
+ </class>
+
+ <class id="circbyyr" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::circ_counts_by_year" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+
+ SELECT copy, SUM(count) AS count, year, is_renewal FROM (
+ SELECT
+ cp.id as copy,
+ COUNT(circ.id),
+ EXTRACT(YEAR FROM circ.xact_start) AS year,
+ (phone_renewal OR desk_renewal OR opac_renewal) as is_renewal
+ FROM
+ asset.copy cp
+ JOIN action.circulation circ ON (cp.id = circ.target_copy)
+ GROUP BY 1, 3, 4
+ UNION ALL
+ SELECT
+ cp.id as copy,
+ COUNT(circ.id),
+ EXTRACT(YEAR FROM circ.xact_start) AS year,
+ (phone_renewal OR desk_renewal OR opac_renewal) as is_renewal
+ FROM
+ asset.copy cp
+ JOIN action.aged_circulation circ ON (cp.id = circ.target_copy)
+ GROUP BY 1, 3, 4
+ UNION ALL
+ SELECT
+ id as copy,
+ circ_count,
+ -1 AS year,
+ false as is_renewal
+ FROM
+ extend_reporter.legacy_circ_count
+ )x GROUP BY 1, 3, 4
+
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label="Copy ID" name="copy" reporter:datatype="link"/>
+ <field reporter:label="Count" name="count" reporter:datatype="int"/>
+ <field reporter:label="Year" name="year" reporter:datatype="int"/>
+ <field reporter:label="Renewal" name="is_renewal" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="copy" reltype="has_a" key="id" map="" class="acp"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="rodcirc" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::overdue_circs" oils_persist:tablename="reporter.overdue_circs" reporter:core="true" reporter:label="Overdue Circulation">
+ <fields oils_persist:primary="id" oils_persist:sequence="money.billable_xact_id_seq">
+ <field reporter:label="Check In Library" name="checkin_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Check In Staff" name="checkin_staff" reporter:datatype="link"/>
+ <field reporter:label="Check In Date/Time" name="checkin_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Circulating Staff" name="circ_staff" reporter:datatype="link"/>
+ <field reporter:label="Desk Renewal" name="desk_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Due Date/Time" name="due_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulation Duration" name="duration" reporter:datatype="interval"/>
+ <field reporter:label="Circ Duration Rule" name="duration_rule" reporter:datatype="link"/>
+ <field reporter:label="Fine Interval" name="fine_interval" reporter:datatype="interval"/>
+ <field reporter:label="Circ ID" name="id" reporter:datatype="id" />
+ <field reporter:label="Max Fine Amount" name="max_fine" reporter:datatype="money" />
+ <field reporter:label="Max Fine Rule" name="max_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="OPAC Renewal" name="opac_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Phone Renewal" name="phone_renewal" reporter:datatype="bool"/>
+ <field reporter:label="Recurring Fine Amount" name="recurring_fine" reporter:datatype="money" />
+ <field reporter:label="Recurring Fine Rule" name="recurring_fine_rule" reporter:datatype="link"/>
+ <field reporter:label="Remaining Renewals" name="renewal_remaining" reporter:datatype="int" />
+ <field reporter:label="Fine Stop Reason" name="stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Fine Stop Date/Time" name="stop_fines_time" reporter:datatype="timestamp"/>
+ <field reporter:label="Circulating Item" name="target_copy" reporter:datatype="link"/>
+ <field reporter:label="Patron" name="usr" reporter:datatype="link"/>
+ <field reporter:label="Transaction Finish Date/Time" name="xact_finish" reporter:datatype="timestamp" />
+ <field reporter:label="Checkout Date/Time" name="xact_start" reporter:datatype="timestamp" />
+ <field reporter:label="Transaction Billings" name="billings" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Transaction Payments" name="payments" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Base Transaction" name="billable_transaction" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Circulation Type" name="circ_type" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Billing Totals" name="billing_total" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Payment Totals" name="payment_total" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="billable_transaction" reltype="might_have" key="id" map="" class="mbt"/>
+ <link field="circ_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="checkin_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="target_copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="checkin_staff" reltype="has_a" key="id" map="" class="au"/>
+ <link field="usr" reltype="has_a" key="id" map="" class="au"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="payments" reltype="has_many" key="xact" map="" class="mp"/>
+ <link field="billings" reltype="has_many" key="xact" map="" class="mb"/>
+ <link field="duration_rule" reltype="has_a" key="name" map="" class="crcd"/>
+ <link field="max_fine_rule" reltype="has_a" key="name" map="" class="crmf"/>
+ <link field="recurring_fine_rule" reltype="has_a" key="name" map="" class="crrf"/>
+ <link field="circ_type" reltype="might_have" key="id" map="" class="rcirct"/>
+ <link field="billing_total" reltype="might_have" key="xact" map="" class="rxbt"/>
+ <link field="payment_total" reltype="might_have" key="xact" map="" class="rxpt"/>
+ </links>
+ </class>
+
+ <class id="rocit" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::classic_item_list" oils_persist:tablename="reporter.classic_item_list" reporter:core="true" reporter:label="Classic Item List">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Title" name="title" reporter:datatype="text"/>
+ <field reporter:label="Author" name="author" reporter:datatype="text"/>
+ <field reporter:label="Pubdate" name="pubdate" reporter:datatype="text"/>
+ <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Price" name="price" reporter:datatype="money"/>
+ <field reporter:label="Barcode" name="barcode" reporter:datatype="text"/>
+ <field reporter:label="Callnumber Label" name="call_number_label" reporter:datatype="text"/>
+ <field reporter:label="Dewy Tens" name="dewey_block_tens" reporter:datatype="text"/>
+ <field reporter:label="Dewy Hundreds" name="dewey_block_hundreds" reporter:datatype="text"/>
+ <field reporter:label="Use Count" name="use_count" reporter:datatype="int"/>
+ <field reporter:label="Circ Modifier" name="circ_modifier" reporter:datatype="text"/>
+ <field reporter:label="Shelving Location Name" name="shelving_location" reporter:datatype="text"/>
+ <field reporter:label="Legacy Stat Cat 1" name="stat_cat_1" reporter:datatype="link"/>
+ <field reporter:label="Legacy Stat Cat 2" name="stat_cat_2" reporter:datatype="link"/>
+ <field reporter:label="Legacy Stat Cat 1 Value" name="stat_cat_1_value" reporter:datatype="text"/>
+ <field reporter:label="Legacy Stat Cat 2 Value" name="stat_cat_2_value" reporter:datatype="text"/>
+ <field reporter:label="Edit Date" name="edit_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Create Date" name="create_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Owning Lib Name" name="owning_lib_name" reporter:datatype="text"/>
+ <field reporter:label="Circ Lib Name" name="circ_lib_name" reporter:datatype="text"/>
+ <field reporter:label="Owning Lib" name="owning_lib" reporter:datatype="link"/>
+ <field reporter:label="Circ Lib" name="circ_lib" reporter:datatype="link"/>
+ <field reporter:label="Creator" name="creator" reporter:datatype="link"/>
+ <field reporter:label="Age Protection" name="age_protect" reporter:datatype="link"/>
+ <field reporter:label="OPAC Visible" name="opac_visible" reporter:datatype="bool"/>
+ <field reporter:label="Reference" name="ref" reporter:datatype="bool"/>
+ <field reporter:label="Deposit Amount" name="deposit_amount" reporter:datatype="text"/>
+ <field reporter:label="Deleted" name="deleted" reporter:datatype="bool"/>
+ <field reporter:label="TCN" name="tcn_value" reporter:datatype="text"/>
+ <field reporter:label="Status" name="status" reporter:datatype="link"/>
+ <field reporter:label="Stop Fines Reason" name="stop_fines" reporter:datatype="text"/>
+ <field reporter:label="Due Date" name="due_date" reporter:datatype="timestamp"/>
+ <field reporter:label="Patron Barcode" name="patron_barcode" reporter:datatype="text"/>
+ <field reporter:label="Patron Name" name="patron_name" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="id" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="creator" reltype="has_a" key="id" map="" class="au"/>
+ <link field="age_protect" reltype="has_a" key="id" map="" class="crahp"/>
+ <link field="status" reltype="has_a" key="id" map="" class="ccs"/>
+ <link field="stat_cat_1" reltype="might_have" key="id" map="" class="rsce1"/>
+ <link field="stat_cat_2" reltype="might_have" key="id" map="" class="rsce2"/>
+ </links>
+ </class>
+
+ <class id="rmocbbol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_circ_balance_by_owning_lib" oils_persist:tablename="money.open_circ_balance_by_owning_lib" reporter:core="true" reporter:label="Open Circulation Billing by Owning Library">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
+ <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="circ"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rmobbol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_balance_by_owning_lib" oils_persist:tablename="money.open_balance_by_owning_lib" reporter:core="true" reporter:label="Open Circulation Balance by Owning Library">
+ <fields oils_persist:primary="owning_lib">
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
+ <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rmocbbcol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_circ_balance_by_circ_and_owning_lib" oils_persist:tablename="money.open_circ_balance_by_circ_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Billing by Circulating Library and Owning Library">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
+ <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="circ"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rmobbcol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_balance_by_circ_and_owning_lib" oils_persist:tablename="money.open_balance_by_circ_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Balance by Circulating Library and Owning Library">
+ <fields oils_persist:primary="circ_lib">
+ <field reporter:label="Circulating Library" name="circ_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
+ <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="circ_lib" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rmocbbhol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_circ_balance_by_usr_home_and_owning_lib" oils_persist:tablename="money.open_circ_balance_by_usr_home_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Billing by User Home Library and Owning Library">
+ <fields oils_persist:primary="id">
+ <field reporter:label="Circulation ID" name="id" reporter:datatype="link"/>
+ <field reporter:label="User Home Library" name="home_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Type" name="billing_type" reporter:datatype="text"/>
+ <field reporter:label="Total Billed" name="billed" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="id" reltype="has_a" key="id" map="" class="circ"/>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+
+ <class id="rmobbhol" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::money::open_balance_by_usr_home_and_owning_lib" oils_persist:tablename="money.open_balance_by_usr_home_and_owning_lib" reporter:core="true" reporter:label="Open Circulation Balance by User Home Library and Owning Library">
+ <fields oils_persist:primary="home_ou">
+ <field reporter:label="User Home Library" name="home_ou" reporter:datatype="org_unit"/>
+ <field reporter:label="Owning Library" name="owning_lib" reporter:datatype="org_unit"/>
+ <field reporter:label="Billing Types" name="billing_types" reporter:datatype="text"/>
+ <field reporter:label="Balance" name="balance" reporter:datatype="money"/>
+ </fields>
+ <links>
+ <link field="owning_lib" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ </class>
+ <class id="acqft" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_tag" oils_persist:tablename="acq.fund_tag" reporter:label="Fund Tag">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_tag_id_seq">
+ <field reporter:label="Fund Tag ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Fund Tag Owner" name="owner" reporter:datatype="org_unit"/>
+ <field reporter:label="Fund Tag Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Map Entries" name="map_entries" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ <link field="map_entries" reltype="has_many" key="fund" map="" class="acqftm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
+ <retrieve permission="ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND" context_field="owner"/>
+ <update permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
+ <delete permission="ADMIN_ACQ_FUND_TAG" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acqftm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="acq::fund_tag_map" oils_persist:tablename="acq.fund_tag_map" reporter:label="Fund Tag Map">
+ <fields oils_persist:primary="id" oils_persist:sequence="acq.fund_tag_map_id_seq">
+ <field reporter:label="Map Entry ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Fund ID" name="fund" reporter:datatype="link"/>
+ <field reporter:label="Tag ID" name="tag" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="fund" reltype="has_a" key="id" map="" class="acqf"/>
+ <link field="tag" reltype="has_a" key="id" map="" class="acqft"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ACQ_FUND_TAG">
+ <context link="tag" field="owner"/>
+ </create>
+ <retrieve permission="ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND">
+ <context link="tag" field="owner"/>
+ </retrieve>
+ <update permission="ADMIN_ACQ_FUND_TAG">
+ <context link="tag" field="owner"/>
+ </update>
+ <delete permission="ADMIN_ACQ_FUND_TAG">
+ <context link="tag" field="owner"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acqmapinv" controller="open-ils.cstore" oils_obj:fieldmapper="acq::map_to_invoice" reporter:label="Acq Map to Invoice View" oils_persist:readonly="true">
+ <oils_persist:source_definition><![CDATA[
+ SELECT
+ poi.purchase_order AS purchase_order,
+ ii.invoice AS invoice,
+ NULL AS lineitem,
+ poi.id AS po_item,
+ NULL AS picklist
+ FROM
+ acq.po_item poi
+ JOIN acq.invoice_item ii ON (ii.po_item = poi.id)
+ UNION SELECT
+ jub.purchase_order AS purchase_order,
+ ie.invoice AS invoice,
+ jub.id AS lineitem,
+ NULL AS po_item,
+ jub.picklist AS picklist
+ FROM
+ acq.lineitem jub
+ JOIN acq.invoice_entry ie ON (ie.lineitem = jub.id)
+ UNION SELECT
+ ii.purchase_order AS purchase_order,
+ ii.invoice AS invoice,
+ NULL AS lineitem,
+ NULL AS po_item,
+ NULL AS picklist
+ FROM
+ acq.invoice_item ii
+ WHERE ii.po_item IS NULL
+ UNION SELECT
+ ie.purchase_order AS purchase_order,
+ ie.invoice AS invoice,
+ NULL AS lineitem,
+ NULL AS po_item,
+ NULL AS picklist
+ FROM
+ acq.invoice_entry ie
+ WHERE ie.lineitem IS NULL
+ UNION SELECT
+ NULL AS purchase_order,
+ NULL AS invoice,
+ jub.id AS lineitem,
+ NULL AS po_item,
+ jub.picklist AS picklist
+ FROM
+ acq.lineitem jub
+ WHERE jub.purchase_order IS NULL
+ ]]></oils_persist:source_definition>
+ <fields>
+ <field reporter:label="Purchase Order ID" name="purchase_order" reporter:datatype="link"/>
+ <field reporter:label="Lineitem ID" name="lineitem" reporter:datatype="link"/>
+ <field reporter:label="Invoice ID" name="invoice" reporter:datatype="link"/>
+ <field reporter:label="Purchase Order Item ID" name="po_item" reporter:datatype="link"/>
+ <field reporter:label="Picklist ID" name="picklist" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="purchase_order" reltype="has_a" key="id" map="" class="acqpo" />
+ <link field="lineitem" reltype="has_a" key="id" map="" class="jub" />
+ <link field="invoice" reltype="has_a" key="id" map="" class="acqinv" />
+ <link field="po_item" reltype="has_a" key="id" map="" class="acqpoi" />
+ <link field="picklist" reltype="has_a" key="id" map="" class="acqpl" />
+ </links>
+ </class>
+ <class id="cbc" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::barcode_completion" oils_persist:tablename="config.barcode_completion" reporter:label="Barcode Completions">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.barcode_completion_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Active" name="active" reporter:datatype="bool"/>
+ <field reporter:label="Owner" name="org_unit" reporter:datatype="org_unit"/>
+ <field reporter:label="Prefix" name="prefix" reporter:datatype="text"/>
+ <field reporter:label="Suffix" name="suffix" reporter:datatype="text"/>
+ <field reporter:label="Length" name="length" reporter:datatype="int"/>
+ <field reporter:label="Padding" name="padding" reporter:datatype="text"/>
+ <field reporter:label="Padding At End" name="padding_end" reporter:datatype="bool"/>
+ <field reporter:label="Applies to Items" name="asset" reporter:datatype="bool"/>
+ <field reporter:label="Applies to Users" name="actor" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_ORG_UNIT_SETTING_ALL" context_field="org_unit"/>
+ <retrieve/>
+ <update permission="UPDATE_ORG_UNIT_SETTING_ALL" context_field="org_unit"/>
+ <delete permission="UPDATE_ORG_UNIT_SETTING_ALL" context_field="org_unit"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="coustl" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::org_unit_setting_type_log" oils_persist:tablename="config.org_unit_setting_type_log" reporter:label="Organizational Unit Setting Type Log">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.org_unit_setting_type_log_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field name="date_applied" reporter:datatype="timestamp"/>
+ <field name="org" reporter:datatype="org_unit"/>
+ <field name="original_value" reporter:datatype="text"/>
+ <field name="new_value" reporter:datatype="text"/>
+ <field name="field_name" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="field_name" reltype="has_a" key="name" map="" class="coust"/>
+ <link field="org" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_ORG_UNIT_SETTING_TYPE" context_field="org"/>
+ <retrieve permission="STAFF_LOGIN" context_field="org"/>
+ <update permission="ADMIN_ORG_UNIT_SETTING_TYPE_LOG" context_field="org"/>
+ <delete permission="ADMIN_ORG_UNIT_SETTING_TYPE_LOG" context_field="org"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="aaactsc" controller="open-ils.reporter-store" oils_obj:fieldmapper="action::archive_actor_stat_cat" oils_persist:tablename="action.archive_actor_stat_cat" reporter:label="Circ-Archived Patron Statistical Category Entries">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.archive_actor_stat_cat_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Circ" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Statistical Category" name="stat_cat" reporter:datatype="link"/>
+ <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="xact" reltype="has_a" key="id" map="" class="combcirc"/>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="actsc"/>
+ </links>
+ </class>
+ <class id="aaasc" controller="open-ils.reporter-store" oils_obj:fieldmapper="action::archive_asset_stat_cat" oils_persist:tablename="action.archive_asset_stat_cat" reporter:label="Circ-Archived Copy Statistical Category Entries">
+ <fields oils_persist:primary="id" oils_persist:sequence="action.archive_actor_stat_cat_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Circ" name="xact" reporter:datatype="link"/>
+ <field reporter:label="Statistical Category" name="stat_cat" reporter:datatype="link"/>
+ <field reporter:label="Entry Value" name="value" reporter:datatype="text"/>
+ </fields>
+ <links>
+ <link field="xact" reltype="has_a" key="id" map="" class="combcirc"/>
+ <link field="stat_cat" reltype="has_a" key="id" map="" class="asc"/>
+ </links>
+ </class>
+ <class id="cfg" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::floating_group" oils_persist:tablename="config.floating_group" reporter:label="Floating Group">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.floating_group_id_seq">
+ <field reporter:label="ID" name="id" reporter:selector="name" reporter:datatype="id"/>
+ <field reporter:label="Name" name="name" reporter:datatype="text"/>
+ <field reporter:label="Manual" name="manual" reporter:datatype="bool"/>
+ <field reporter:label="Group Members" name="members" oils_persist:virtual="true" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="members" reltype="has_many" key="floating_group" class="cfgm"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_FLOAT_GROUPS" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_FLOAT_GROUPS" global_required="true"/>
+ <delete permission="ADMIN_FLOAT_GROUPS" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cfgm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::floating_group_member" oils_persist:tablename="config.floating_group_member" reporter:label="Floating Group Members">
+ <fields oils_persist:primary="id" oils_persist:sequence="config.floating_group_member_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Floating Group" name="floating_group" reporter:datatype="link"/>
+ <field reporter:label="Org Unit" name="org_unit" reporter:datatype="link"/>
+ <field reporter:label="Stop Depth" name="stop_depth" reporter:datatype="int"/>
+ <field reporter:label="Max Depth" name="max_depth" reporter:datatype="int"/>
+ <field reporter:label="Exclude" name="exclude" reporter:datatype="bool"/>
+ </fields>
+ <links>
+ <link field="floating_group" reltype="has_a" key="id" class="cfg"/>
+ <link field="org_unit" reltype="has_a" key="id" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_FLOAT_GROUPS" global_required="true"/>
+ <retrieve/>
+ <update permission="ADMIN_FLOAT_GROUPS" global_required="true"/>
+ <delete permission="ADMIN_FLOAT_GROUPS" global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="cctt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="config::copy_tag_type" oils_persist:tablename="config.copy_tag_type" reporter:label="Copy Tag Types" oils_persist:field_safe="true">
+ <fields oils_persist:primary="code">
+ <field reporter:label="Code" name="code" reporter:selector="label" reporter:datatype="id" oils_obj:required="true"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text" oils_obj:required="true"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_COPY_TAG_TYPES" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_COPY_TAG_TYPES" context_field="owner"/>
+ <delete permission="ADMIN_COPY_TAG_TYPES" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acpt" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_tag" oils_persist:tablename="asset.copy_tag" reporter:label="Copy Tags" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_tag_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Copy Tag Type" name="tag_type" reporter:datatype="link"/>
+ <field reporter:label="Label" name="label" reporter:datatype="text"/>
+ <field reporter:label="Value" name="value" reporter:datatype="text"/>
+ <field reporter:label="Staff Note" name="staff_note" reporter:datatype="text"/>
+ <field reporter:label="Is OPAC Visible?" name="pub" reporter:datatype="bool"/>
+ <field reporter:label="Owner" name="owner" reporter:datatype="org_unit" oils_obj:required="true"/>
+ </fields>
+ <links>
+ <link field="tag_type" reltype="has_a" key="code" map="" class="cctt"/>
+ <link field="owner" reltype="has_a" key="id" map="" class="aou"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="ADMIN_COPY_TAG" context_field="owner"/>
+ <retrieve/>
+ <update permission="ADMIN_COPY_TAG" context_field="owner"/>
+ <delete permission="ADMIN_COPY_TAG" context_field="owner"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="acptcm" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="asset::copy_tag_copy_map" oils_persist:tablename="asset.copy_tag_copy_map" reporter:label="Copy Tag Copy Map" oils_persist:field_safe="true">
+ <fields oils_persist:primary="id" oils_persist:sequence="asset.copy_tag_copy_map_id_seq">
+ <field reporter:label="ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Copy" name="copy" reporter:datatype="link"/>
+ <field reporter:label="Tag" name="tag" reporter:datatype="link"/>
+ </fields>
+ <links>
+ <link field="copy" reltype="has_a" key="id" map="" class="acp"/>
+ <link field="tag" reltype="has_a" key="id" map="" class="acpt"/>
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="UPDATE_COPY">
+ <context link="copy" field="circ_lib"/>
+ </create>
+ <retrieve/>
+ <update permission="UPDATE_COPY">
+ <context link="copy" field="circ_lib"/>
+ </update>
+ <delete permission="UPDATE_COPY">
+ <context link="copy" field="circ_lib"/>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="hasholdscount" controller="open-ils.cstore open-ils.pcrud" oils_obj:fieldmapper="action::has_holds_count" reporter:label="Copy Has Holds Count" oils_persist:readonly="true">
+ <oils_persist:source_definition>
+ SELECT ahcm.target_copy AS id,count(*) AS count
+ FROM
+ action.hold_request ahr,
+ action.hold_copy_map ahcm
+ WHERE
+ ahr.cancel_time IS NULL AND
+ ahr.fulfillment_time IS NULL AND
+ ahr.capture_time IS NULL AND
+ ahr.id = ahcm.hold
+ GROUP BY ahcm.target_copy
+ </oils_persist:source_definition>
+ <fields oils_persist:primary="id">
+ <field reporter:label="Copy ID" name="id" reporter:datatype="id"/>
+ <field reporter:label="Holds Count" name="count" reporter:datatype="text"/>
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <retrieve/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rds" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="rbdigital::digital_services"
+ oils_persist:tablename="rbdigital.digital_services"
+ reporter:label="RBDigital Digital Services">
+ <fields oils_persist:sequence="rbdigital.digital_services_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label='Name' name="name" reporter:datatype="text" />
+ <field reporter:label='Search URI' name="search_uri" reporter:datatype="text" />
+ <field reporter:label='Vendor Key' name="vendor_key" reporter:datatype="text" />
+ <field reporter:label='Is Enabled' name="is_enabled" reporter:datatype="bool" />
+ <field reporter:label='Display Order' name="display_order" reporter:datatype="id" />
+
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ <links>
+ <link field="id" reltype="might_have" key="digital_services_id" map="" class="ebook_rdsa"/>
+ </links>
+ </class>
+ <class id="ebook_rl" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="rbdigital::library"
+ oils_persist:tablename="rbdigital.library"
+ reporter:label="RBDigital Library">
+ <fields oils_persist:sequence="rbdigital.library_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label="Home Library ID" name="home_ou" reporter:datatype="link" />
+ <field reporter:label="Home Library URL" name="home_library_url" reporter:datatype="text" />
+ <field reporter:label="Created Timestamp" name="created_timestamp" reporter:datatype="timestamp" />
+ <field reporter:label="Updated Timestamp" name="updated_timestamp" reporter:datatype="timestamp" />
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ <links>
+ <link field="home_ou" reltype="has_a" class="au" key="home_ou" map="" />
+ </links>
+ </class>
+ <class id="ebook_rdsa" controller="open-ils.cstore open-ils.pcrud"
+ oils_persist:tablename="rbdigital.digital_services_authorized"
+ oils_obj:fieldmapper="rbdigital::digital_services_authorized"
+ reporter:label="RBDigital Digital Services Authorized">
+ <fields oils_persist:sequence="rbdigital.digital_services_authorized_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label="Library Id" name="library_id" reporter:datatype="link" />
+ <field reporter:label="Home Library ID" name="home_ou" reporter:datatype="link" />
+ <field reporter:label="DS Id" name="digital_services_id" reporter:datatype="link" />
+ <field reporter:label="DS Library Id" name="digital_services_library_id" reporter:datatype="id" />
+ <field reporter:label="DS Library Token" name="digital_services_library_token" reporter:datatype="text" />
+ <field reporter:label="DS Library URL" name="digital_services_library_url" reporter:datatype="text" />
+ <field reporter:label="DS Name" name="digital_services_name" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="digital_services_id" reltype="has_a" class="ebook_rds" key="id" map="" />
+ <link field="library_id" reltype="has_a" class="ebook_rl" key="id" map="" />
+ <link field="home_ou" reltype="has_a" class="au" key="home_ou" map="" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rsf" controller="open-ils.pcrud"
+ oils_obj:fieldmapper="rbdigital::search_fields"
+ oils_persist:tablename="rbdigital.search_fields"
+ reporter:label="RBDigital Search Fields">
+ <fields oils_persist:sequence="rbdigital.search_fields_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label='Digital Services ID' name="digital_services_id" reporter:datatype="link" />
+ <field reporter:label='Evergreen Field Name' name="evergreen_field" reporter:datatype="text" />
+ <field reporter:label='Digital Services Field Name' name="digital_services_field" reporter:datatype="text" />
+ <field reporter:label='Field Type' name="field_type" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="digital_services_id" reltype="has_a" class="ebook_rds" key="id" map="" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rsfm" controller="open-ils.pcrud"
+ oils_obj:fieldmapper="rbdigital::search_field_mappings"
+ oils_persist:tablename="rbdigital.search_field_mappings"
+ reporter:label="RBDigital Search Field Mappings">
+ <fields oils_persist:sequence="rbdigital.search_field_mappings_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label='Search Fields ID' name="search_fields_id" reporter:datatype="link" />
+ <field reporter:label='Evergreen Field Code' name="evergreen_field_code" reporter:datatype="text" />
+ <field reporter:label='Evergreen Field Value' name="evergreen_field_value" reporter:datatype="text" />
+ <field reporter:label='Digital Services Field Code' name="digital_services_field_code" reporter:datatype="text" />
+ <field reporter:label='Digital Services Field Value' name="digital_services_field_value" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="search_fields_id" reltype="has_a" class="ebook_rsf" key="id" map="" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <!-- ********************************************************************************************************************* -->
+
+</IDL>
+
+<!--
+ vim:noet:ts=4:sw=4:
+-->
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE fieldmapper [
+ <!--#include virtual="/opac/locale/${locale}/fm_IDL.dtd"-->
+]>
+<IDL xmlns:idl='http://opensrf.org/spec/IDL/base/v1' xmlns='http://opensrf.org/spec/IDL/base/v1' xmlns:permacrud='http://open-ils.org/spec/opensrf/IDL/permacrud/v1' xmlns:reporter='http://open-ils.org/spec/opensrf/IDL/reporter/v1' xmlns:oils_obj='http://open-ils.org/spec/opensrf/IDL/objects/v1' xmlns:oils_persist='http://open-ils.org/spec/opensrf/IDL/persistence/v1'>
+
+
+ <class oils_obj:fieldmapper='money::user_payment_summary' reporter:label='&class.mups.label;' controller='open-ils.cstore' id='mups' oils_persist:virtual='true'>
+ <fields>
+ <field name='usr' oils_persist:virtual='true' />
+ <field name='forgive_payment' oils_persist:virtual='true' />
+ <field name='work_payment' oils_persist:virtual='true' />
+ <field name='credit_payment' oils_persist:virtual='true' />
+ <field name='goods_payment' oils_persist:virtual='true' />
+ <field name='account_adjustment' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='money::workstation_payment_summary' reporter:label='&class.mwps.label;' controller='open-ils.cstore' id='mwps' oils_persist:virtual='true'>
+ <fields>
+ <field name='workstation' oils_persist:virtual='true' />
+ <field name='cash_payment' oils_persist:virtual='true' />
+ <field name='check_payment' oils_persist:virtual='true' />
+ <field name='credit_card_payment' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='workstation' reltype='has_a' class='aws' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='biblio::record_node' reporter:label='&class.brn.label;' controller='open-ils.cstore' id='brn' oils_persist:virtual='true'>
+ <fields>
+ <field name='id' oils_persist:virtual='true' />
+ <field name='children' oils_persist:virtual='true' />
+ <field name='owner_doc' oils_persist:virtual='true' />
+ <field name='intra_doc_id' oils_persist:virtual='true' />
+ <field name='parent_node' oils_persist:virtual='true' />
+ <field name='node_type' oils_persist:virtual='true' />
+ <field name='namespace_uri' oils_persist:virtual='true' />
+ <field name='name' oils_persist:virtual='true' />
+ <field name='value' oils_persist:virtual='true' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='metabib::virtual_record' reporter:label='&class.mvr.label;' controller='open-ils.cstore' id='mvr' oils_persist:virtual='true'>
+ <fields>
+ <field name='title' oils_persist:virtual='true' />
+ <field name='author' oils_persist:virtual='true' />
+ <field name='doc_id' oils_persist:virtual='true' />
+ <field name='doc_type' oils_persist:virtual='true' />
+ <field name='pubdate' oils_persist:virtual='true' />
+ <field name='isbn' oils_persist:virtual='true' />
+ <field name='publisher' oils_persist:virtual='true' />
+ <field name='tcn' oils_persist:virtual='true' />
+ <field name='subject' oils_persist:virtual='true' />
+ <field name='types_of_resource' oils_persist:virtual='true' />
+ <field name='call_numbers' oils_persist:virtual='true' />
+ <field name='edition' oils_persist:virtual='true' />
+ <field name='online_loc' oils_persist:virtual='true' />
+ <field name='synopsis' oils_persist:virtual='true' />
+ <field name='physical_description' oils_persist:virtual='true' />
+ <field name='toc' oils_persist:virtual='true' />
+ <field name='copy_count' oils_persist:virtual='true' />
+ <field name='series' oils_persist:virtual='true' />
+ <field name='serials' oils_persist:virtual='true' />
+ <field name='foreign_copy_maps' oils_persist:virtual='true' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='ex' controller='open-ils.cstore' id='ex' oils_persist:virtual='true'>
+ <fields>
+ <field name='err_msg' oils_persist:virtual='true' />
+ <field name='type' oils_persist:virtual='true' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='perm_ex' controller='open-ils.cstore' id='perm_ex' oils_persist:virtual='true'>
+ <fields>
+ <field name='err_msg' oils_persist:virtual='true' />
+ <field name='type' oils_persist:virtual='true' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='action::matrix_test_result' reporter:label='&class.amtr.label;' controller='open-ils.cstore' id='amtr' oils_persist:virtual='true'>
+ <fields oils_persist:primary='matchpoint'>
+ <field reporter:label='&field.amtr.matchpoint.label;' name='matchpoint' reporter:datatype='id' />
+ <field reporter:label='&field.amtr.success.label;' name='success' reporter:datatype='bool' />
+ <field reporter:label='&field.amtr.fail_part.label;' name='fail_part' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='matchpoint' reltype='has_a' class='ccmm' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::circ_chain_summary' reporter:label='&class.accs.label;' controller='open-ils.cstore' id='accs' oils_persist:virtual='true'>
+
+ <fields>
+ <field reporter:label='&field.accs.num_circs.label;' name='num_circs' reporter:datatype='int' />
+ <field reporter:label='&field.accs.start_time.label;' name='start_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.accs.checkout_workstation.label;' name='checkout_workstation' reporter:datatype='text' />
+ <field reporter:label='&field.accs.last_renewal_time.label;' name='last_renewal_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.accs.last_stop_fines.label;' name='last_stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.accs.last_stop_fines_time.label;' name='last_stop_fines_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.accs.last_renewal_workstation.label;' name='last_renewal_workstation' reporter:datatype='text' />
+ <field reporter:label='&field.accs.last_checkin_workstation.label;' name='last_checkin_workstation' reporter:datatype='text' />
+ <field reporter:label='&field.accs.last_checkin_time.label;' name='last_checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.accs.last_checkin_scan_time.label;' name='last_checkin_scan_time' reporter:datatype='timestamp' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='resolver::holdings_record' id='rhr' oils_persist:virtual='true'>
+ <fields>
+ <field name='public_name' oils_persist:virtual='true' />
+ <field name='target_url' oils_persist:virtual='true' />
+ <field name='target_coverage' oils_persist:virtual='true' />
+ <field name='target_embargo' oils_persist:virtual='true' />
+ </fields>
+ </class>
+
+
+ <class oils_obj:fieldmapper='vandelay::merge_profile' reporter:label='&class.vmp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.merge_profile' id='vmp'>
+ <fields oils_persist:sequence='vandelay.merge_profile_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vmp.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.vmp.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.vmp.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.vmp.add_spec.label;' name='add_spec' reporter:datatype='text' />
+ <field reporter:label='&field.vmp.replace_spec.label;' name='replace_spec' reporter:datatype='text' />
+ <field reporter:label='&field.vmp.strip_spec.label;' name='strip_spec' reporter:datatype='text' />
+ <field reporter:label='&field.vmp.preserve_spec.label;' name='preserve_spec' reporter:datatype='text' />
+ <field reporter:label='&field.vmp.lwm_ratio.label;' name='lwm_ratio' reporter:datatype='float' />
+ <field reporter:label='&field.vmp.update_bib_source.label;' name='update_bib_source' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_MERGE_PROFILE CREATE_MERGE_PROFILE'></create>
+ <retrieve context_field='owner' permission='ADMIN_MERGE_PROFILE CREATE_MERGE_PROFILE UPDATE_MERGE_PROFILE DELETE_MERGE_PROFILE VIEW_MERGE_PROFILE'></retrieve>
+ <update context_field='owner' permission='ADMIN_MERGE_PROFILE UPDATE_MERGE_PROFILE'></update>
+ <delete context_field='owner' permission='ADMIN_MERGE_PROFILE DELETE_MERGE_PROFILE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::import_bib_trash_fields' reporter:label='&class.vibtf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.import_bib_trash_fields' id='vibtf'>
+ <fields oils_persist:sequence='vandelay.import_bib_trash_fields_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vibtf.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vibtf.grp.label;' name='grp' reporter:datatype='link' />
+ <field reporter:label='&field.vibtf.field.label;' name='field' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='grp' reltype='has_a' class='vibtg' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_IMPORT_TRASH_FIELD'>
+ <context field='owner' link='grp'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='UPDATE_IMPORT_TRASH_FIELD'>
+ <context field='owner' link='grp'></context>
+ </update>
+ <delete permission='DELETE_IMPORT_TRASH_FIELD'>
+ <context field='owner' link='grp'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='rating::record_badge_score' reporter:label='&class.rrbs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='rating.record_badge_score' id='rrbs'>
+ <fields oils_persist:sequence='rating.record_badge_score_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.rrbs.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.rrbs.badge.label;' name='badge' reporter:datatype='link' />
+ <field reporter:label='&field.rrbs.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.rrbs.score.label;' name='score' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='badge' reltype='has_a' class='rb' key='id' map='' />
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='rating::popularity_parameter' reporter:label='&class.rp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='rating.popularity_parameter' id='rp'>
+ <fields oils_persist:sequence='rating.popularity_parameter_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.rp.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.rp.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.rp.description.label;' name='description' reporter:datatype='text' />
+ <field reporter:label='&field.rp.func.label;' name='func' reporter:datatype='text' />
+ <field reporter:label='&field.rp.require_horizon.label;' name='require_horizon' reporter:datatype='bool' />
+ <field reporter:label='&field.rp.require_percentile.label;' name='require_percentile' reporter:datatype='bool' />
+ <field reporter:label='&field.rp.require_importance.label;' name='require_importance' reporter:datatype='bool' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_POP_PARAMETER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_POP_PARAMETER'></update>
+ <delete global_required='true' permission='DELETE_POP_PARAMETER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='rating::badge' reporter:label='&class.rb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='rating.badge' id='rb'>
+ <fields oils_persist:sequence='rating.badge_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.rb.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.rb.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.rb.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.rb.scope.label;' name='scope' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rb.weight.label;' name='weight' reporter:datatype='int' />
+ <field reporter:label='&field.rb.horizon_age.label;' name='horizon_age' reporter:datatype='text' />
+ <field reporter:label='&field.rb.importance_age.label;' name='importance_age' reporter:datatype='text' />
+ <field reporter:label='&field.rb.importance_interval.label;' name='importance_interval' reporter:datatype='text' />
+ <field reporter:label='&field.rb.importance_scale.label;' name='importance_scale' reporter:datatype='text' />
+ <field reporter:label='&field.rb.percentile.label;' name='percentile' reporter:datatype='float' />
+ <field reporter:label='&field.rb.attr_filter.label;' name='attr_filter' reporter:datatype='text' />
+ <field reporter:label='&field.rb.circ_mod_filter.label;' name='circ_mod_filter' reporter:datatype='link' />
+ <field reporter:label='&field.rb.src_filter.label;' name='src_filter' reporter:datatype='link' />
+ <field reporter:label='&field.rb.loc_grp_filter.label;' name='loc_grp_filter' reporter:datatype='link' />
+ <field reporter:label='&field.rb.recalc_interval.label;' name='recalc_interval' reporter:datatype='text' />
+ <field reporter:label='&field.rb.fixed_rating.label;' name='fixed_rating' reporter:datatype='int' />
+ <field reporter:label='&field.rb.discard.label;' name='discard' reporter:datatype='int' />
+ <field reporter:label='&field.rb.last_calc.label;' name='last_calc' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rb.popularity_parameter.label;' name='popularity_parameter' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='scope' reltype='has_a' class='aou' key='id' map='' />
+ <link field='popularity_parameter' reltype='has_a' class='rp' key='id' map='' />
+ <link field='src_filter' reltype='has_a' class='cbs' key='id' map='' />
+ <link field='circ_mod_filter' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='loc_grp_filter' reltype='has_a' class='acplg' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_POP_BADGE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_POP_BADGE'></update>
+ <delete global_required='true' permission='DELETE_POP_BADGE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::import_bib_trash_group' reporter:label='&class.vibtg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.import_bib_trash_group' id='vibtg'>
+ <fields oils_persist:sequence='vandelay.import_bib_trash_group_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vibtg.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.vibtg.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.vibtg.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.vibtg.always_apply.label;' name='always_apply' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='CREATE_IMPORT_TRASH_FIELD'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='UPDATE_IMPORT_TRASH_FIELD'></update>
+ <delete context_field='owner' permission='DELETE_IMPORT_TRASH_FIELD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class oils_obj:fieldmapper='vandelay::import_item' reporter:label='&class.vii.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.import_item' id='vii'>
+ <fields oils_persist:sequence='vandelay.import_item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vii.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vii.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.vii.definition.label;' name='definition' reporter:datatype='link' />
+ <field reporter:label='&field.vii.import_error.label;' name='import_error' reporter:datatype='link' />
+ <field reporter:label='&field.vii.error_detail.label;' name='error_detail' reporter:datatype='text' />
+ <field reporter:label='&field.vii.imported_as.label;' name='imported_as' reporter:datatype='link' />
+ <field reporter:label='&field.vii.import_time.label;' name='import_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.vii.owning_lib.label;' name='owning_lib' reporter:datatype='int' />
+ <field reporter:label='&field.vii.circ_lib.label;' name='circ_lib' reporter:datatype='int' />
+ <field reporter:label='&field.vii.call_number.label;' name='call_number' reporter:datatype='text' />
+ <field reporter:label='&field.vii.copy_number.label;' name='copy_number' reporter:datatype='int' />
+ <field reporter:label='&field.vii.status.label;' name='status' reporter:datatype='int' />
+ <field reporter:label='&field.vii.location.label;' name='location' reporter:datatype='int' />
+ <field reporter:label='&field.vii.circulate.label;' name='circulate' reporter:datatype='bool' />
+ <field reporter:label='&field.vii.deposit.label;' name='deposit' reporter:datatype='bool' />
+ <field reporter:label='&field.vii.deposit_amount.label;' name='deposit_amount' reporter:datatype='money' />
+ <field reporter:label='&field.vii.ref.label;' name='ref' reporter:datatype='bool' />
+ <field reporter:label='&field.vii.holdable.label;' name='holdable' reporter:datatype='bool' />
+ <field reporter:label='&field.vii.price.label;' name='price' reporter:datatype='money' />
+ <field reporter:label='&field.vii.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.vii.circ_modifier.label;' name='circ_modifier' reporter:datatype='text' />
+ <field reporter:label='&field.vii.circ_as_type.label;' name='circ_as_type' reporter:datatype='text' />
+ <field reporter:label='&field.vii.alert_message.label;' name='alert_message' reporter:datatype='text' />
+ <field reporter:label='&field.vii.pub_note.label;' name='pub_note' reporter:datatype='text' />
+ <field reporter:label='&field.vii.priv_note.label;' name='priv_note' reporter:datatype='text' />
+ <field reporter:label='&field.vii.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.vii.internal_id.label;' name='internal_id' reporter:datatype='int' />
+ <field reporter:label='&field.vii.stat_cat_data.label;' name='stat_cat_data' reporter:datatype='text' />
+ <field reporter:label='&field.vii.parts_data.label;' name='parts_data' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='import_error' reltype='has_a' class='vie' key='code' map='' />
+ <link field='record' reltype='has_a' class='vqbr' key='id' map='' />
+ <link field='definition' reltype='has_a' class='viiad' key='id' map='' />
+ <link field='imported_as' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_IMPORT_ITEM'>
+ <context field='owner' link='definition'></context>
+ </create>
+ <retrieve permission='CREATE_IMPORT_ITEM UPDATE_IMPORT_ITEM DELETE_IMPORT_ITEM'>
+ <context field='owner' link='definition'></context>
+ </retrieve>
+ <update permission='UPDATE_IMPORT_ITEM'>
+ <context field='owner' link='definition'></context>
+ </update>
+ <delete permission='DELETE_IMPORT_ITEM'>
+ <context field='owner' link='definition'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::import_item_attr_definition' reporter:label='&class.viiad.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.import_item_attr_definition' id='viiad'>
+ <fields oils_persist:sequence='vandelay.import_item_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.viiad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.viiad.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.viiad.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.viiad.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.owning_lib.label;' name='owning_lib' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.circ_lib.label;' name='circ_lib' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.call_number.label;' name='call_number' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.status.label;' name='status' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.location.label;' name='location' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.circulate.label;' name='circulate' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.deposit.label;' name='deposit' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.deposit_amount.label;' name='deposit_amount' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.ref.label;' name='ref' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.holdable.label;' name='holdable' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.price.label;' name='price' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.circ_modifier.label;' name='circ_modifier' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.circ_as_type.label;' name='circ_as_type' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.alert_message.label;' name='alert_message' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.pub_note.label;' name='pub_note' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.priv_note.label;' name='priv_note' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.opac_visible.label;' name='opac_visible' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.copy_number.label;' name='copy_number' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.internal_id.label;' name='internal_id' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.stat_cat_data.label;' name='stat_cat_data' reporter:datatype='text' />
+ <field reporter:label='&field.viiad.parts_data.label;' name='parts_data' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='CREATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF'></create>
+ <retrieve context_field='owner' permission='CREATE_IMPORT_ITEM_ATTR_DEF UPDATE_IMPORT_ITEM_ATTR_DEF DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF'></retrieve>
+ <update context_field='owner' permission='UPDATE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF'></update>
+ <delete context_field='owner' permission='DELETE_IMPORT_ITEM_ATTR_DEF ADMIN_IMPORT_ITEM_ATTR_DEF'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::bib_queue' reporter:label='&class.vbq.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.bib_queue' id='vbq'>
+ <fields oils_persist:sequence='vandelay.queue_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vbq.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.vbq.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.vbq.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.vbq.complete.label;' name='complete' reporter:datatype='bool' />
+ <field reporter:label='&field.vbq.queue_type.label;' name='queue_type' reporter:datatype='text' />
+ <field reporter:label='&field.vbq.match_set.label;' name='match_set' reporter:datatype='link' />
+ <field reporter:label='&field.vbq.item_attr_def.label;' name='item_attr_def' reporter:datatype='link' />
+ <field reporter:label='&field.vbq.match_bucket.label;' name='match_bucket' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='item_attr_def' reltype='has_a' class='viiad' key='id' map='' />
+ <link field='match_set' reltype='has_a' class='vms' key='id' map='' />
+ <link field='match_bucket' reltype='has_a' class='cbreb' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_BIB_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::import_error' reporter:label='&class.vie.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.import_error' id='vie'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.vie.code.label;' name='code' reporter:datatype='id' reporter:selector='description' />
+ <field reporter:label='&field.vie.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='item_attr_def' reltype='has_a' class='viiad' key='id' map='' />
+ <link field='match_set' reltype='has_a' class='vms' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::queued_bib_record' reporter:label='&class.vqbr.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.queued_bib_record' id='vqbr'>
+ <fields oils_persist:sequence='vandelay.queued_record_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vqbr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vqbr.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.vqbr.import_time.label;' name='import_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.vqbr.marc.label;' name='marc' reporter:datatype='text' />
+ <field reporter:label='&field.vqbr.queue.label;' name='queue' reporter:datatype='link' />
+ <field reporter:label='&field.vqbr.bib_source.label;' name='bib_source' reporter:datatype='link' />
+ <field reporter:label='&field.vqbr.imported_as.label;' name='imported_as' reporter:datatype='link' />
+ <field reporter:label='&field.vqbr.import_error.label;' name='import_error' reporter:datatype='link' />
+ <field reporter:label='&field.vqbr.error_detail.label;' name='error_detail' reporter:datatype='text' />
+ <field reporter:label='&field.vqbr.purpose.label;' name='purpose' reporter:datatype='text' />
+ <field reporter:label='&field.vqbr.attributes.label;' name='attributes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.vqbr.matches.label;' name='matches' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.vqbr.import_items.label;' name='import_items' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.vqbr.quality.label;' name='quality' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='import_error' reltype='has_a' class='vie' key='code' map='' />
+ <link field='queue' reltype='has_a' class='vbq' key='id' map='' />
+ <link field='bib_source' reltype='has_a' class='cbs' key='id' map='' />
+ <link field='imported_as' reltype='has_a' class='bre' key='id' map='' />
+ <link field='attributes' reltype='has_many' class='vqbra' key='record' map='' />
+ <link field='matches' reltype='has_many' class='vbm' key='queued_record' map='' />
+ <link field='import_items' reltype='has_many' class='vii' key='record' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_BIB_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::bib_attr_definition' reporter:label='&class.vqbrad.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.bib_attr_definition' id='vqbrad'>
+ <fields oils_persist:sequence='vandelay.bib_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vqbrad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vqbrad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.vqbrad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.vqbrad.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.vqbrad.remove.label;' name='remove' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_IMPORT_FIELD_DEF'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_IMPORT_IMPORT_FIELD_DEF'></update>
+ <delete global_required='true' permission='DELETE_BIB_IMPORT_IMPORT_FIELD_DEF'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::queued_bib_record_attr' reporter:label='&class.vqbra.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.queued_bib_record_attr' id='vqbra'>
+ <fields oils_persist:sequence='vandelay.queued_bib_record_attr_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vqbra.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vqbra.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.vqbra.field.label;' name='field' reporter:datatype='link' />
+ <field reporter:label='&field.vqbra.attr_value.label;' name='attr_value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='vqbr' key='id' map='' />
+ <link field='field' reltype='has_a' class='vqbrad' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_BIB_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::bib_match' reporter:label='&class.vbm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.bib_match' id='vbm'>
+ <fields oils_persist:sequence='vandelay.bib_match_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vbm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vbm.queued_record.label;' name='queued_record' reporter:datatype='link' />
+ <field reporter:label='&field.vbm.eg_record.label;' name='eg_record' reporter:datatype='link' />
+ <field reporter:label='&field.vbm.quality.label;' name='quality' reporter:datatype='text' />
+ <field reporter:label='&field.vbm.match_score.label;' name='match_score' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='queued_record' reltype='has_a' class='vqbr' key='id' map='' />
+ <link field='eg_record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_BIB_IMPORT_QUEUE UPDATE_BIB_IMPORT_QUEUE DELETE_BIB_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_BIB_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::authority_queue' reporter:label='&class.vaq.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.authority_queue' id='vaq'>
+ <fields oils_persist:sequence='vandelay.queue_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vaq.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.vaq.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.vaq.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.vaq.complete.label;' name='complete' reporter:datatype='bool' />
+ <field reporter:label='&field.vaq.queue_type.label;' name='queue_type' reporter:datatype='text' />
+ <field reporter:label='&field.vaq.match_set.label;' name='match_set' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='match_set' reltype='has_a' class='vms' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::queued_authority_record' reporter:label='&class.vqar.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.queued_authority_record' id='vqar'>
+ <fields oils_persist:sequence='vandelay.queued_record_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vqar.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vqar.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.vqar.import_time.label;' name='import_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.vqar.marc.label;' name='marc' reporter:datatype='text' />
+ <field reporter:label='&field.vqar.queue.label;' name='queue' reporter:datatype='link' />
+ <field reporter:label='&field.vqar.imported_as.label;' name='imported_as' reporter:datatype='link' />
+ <field reporter:label='&field.vqar.import_error.label;' name='import_error' reporter:datatype='link' />
+ <field reporter:label='&field.vqar.error_detail.label;' name='error_detail' reporter:datatype='text' />
+ <field reporter:label='&field.vqar.purpose.label;' name='purpose' reporter:datatype='text' />
+ <field reporter:label='&field.vqar.attributes.label;' name='attributes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.vqar.matches.label;' name='matches' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.vqar.quality.label;' name='quality' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='import_error' reltype='has_a' class='vie' key='code' map='' />
+ <link field='queue' reltype='has_a' class='vaq' key='id' map='' />
+ <link field='imported_as' reltype='has_a' class='are' key='id' map='' />
+ <link field='attributes' reltype='has_many' class='vqara' key='record' map='' />
+ <link field='matches' reltype='has_many' class='vam' key='queued_record' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::authority_attr_definition' reporter:label='&class.vqarad.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.authority_attr_definition' id='vqarad'>
+ <fields oils_persist:sequence='vandelay.authority_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vqarad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vqarad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.vqarad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.vqarad.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.vqarad.remove.label;' name='remove' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_IMPORT_IMPORT_FIELD_DEF'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::queued_authority_record_attr' reporter:label='&class.vqara.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.queued_authority_record_attr' id='vqara'>
+ <fields oils_persist:sequence='vandelay.queued_authority_record_attr_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vqara.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vqara.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.vqara.field.label;' name='field' reporter:datatype='link' />
+ <field reporter:label='&field.vqara.attr_value.label;' name='attr_value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='vqar' key='id' map='' />
+ <link field='field' reltype='has_a' class='vqarad' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::authority_match' reporter:label='&class.vam.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.authority_match' id='vam'>
+ <fields oils_persist:sequence='vandelay.authority_match_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vam.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vam.queued_record.label;' name='queued_record' reporter:datatype='link' />
+ <field reporter:label='&field.vam.eg_record.label;' name='eg_record' reporter:datatype='link' />
+ <field reporter:label='&field.vam.quality.label;' name='quality' reporter:datatype='int' />
+ <field reporter:label='&field.vam.match_score.label;' name='match_score' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='queued_record' reltype='has_a' class='vqar' key='id' map='' />
+ <link field='eg_record' reltype='has_a' class='are' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE'></create>
+ <retrieve global_required='true' permission='CREATE_AUTHORITY_IMPORT_QUEUE UPDATE_AUTHORITY_IMPORT_QUEUE DELETE_AUTHORITY_IMPORT_QUEUE'></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_IMPORT_QUEUE'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_IMPORT_QUEUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::match_set' reporter:label='&class.vms.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.match_set' id='vms'>
+ <fields oils_persist:sequence='vandelay.match_set_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vms.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.vms.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.vms.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.vms.mtype.label;' name='mtype' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_IMPORT_MATCH_SET'></create>
+ <retrieve context_field='owner' permission='ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET'></retrieve>
+ <update context_field='owner' permission='ADMIN_IMPORT_MATCH_SET'></update>
+ <delete context_field='owner' permission='ADMIN_IMPORT_MATCH_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::match_set_point' reporter:label='&class.vmsp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.match_set_point' id='vmsp'>
+ <fields oils_persist:sequence='vandelay.match_set_point_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vmsp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vmsp.parent.label;' name='parent' reporter:datatype='link' />
+ <field reporter:label='&field.vmsp.match_set.label;' name='match_set' reporter:datatype='link' />
+ <field reporter:label='&field.vmsp.bool_op.label;' name='bool_op' reporter:datatype='text' />
+ <field reporter:label='&field.vmsp.svf.label;' name='svf' reporter:datatype='link' />
+ <field reporter:label='&field.vmsp.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.vmsp.subfield.label;' name='subfield' reporter:datatype='text' />
+ <field reporter:label='&field.vmsp.negate.label;' name='negate' reporter:datatype='bool' />
+ <field reporter:label='&field.vmsp.quality.label;' name='quality' reporter:datatype='int' />
+ <field reporter:label='&field.vmsp.children.label;' name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.vmsp.heading.label;' name='heading' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent' reltype='has_a' class='vmsp' key='id' map='' />
+ <link field='match_set' reltype='has_a' class='vms' key='id' map='' />
+ <link field='svf' reltype='has_a' class='crad' key='id' map='' />
+ <link field='children' reltype='has_many' class='vmsp' key='parent' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </create>
+ <retrieve permission='ADMIN_IMPORT_MATCH_SET VIEW_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </retrieve>
+ <update permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </update>
+ <delete permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='vandelay::match_set_quality' reporter:label='&class.vmsq.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='vandelay.match_set_quality' id='vmsq'>
+ <fields oils_persist:sequence='vandelay.match_set_quality_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.vmsq.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.vmsq.match_set.label;' name='match_set' reporter:datatype='link' />
+ <field reporter:label='&field.vmsq.svf.label;' name='svf' reporter:datatype='text' />
+ <field reporter:label='&field.vmsq.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.vmsq.subfield.label;' name='subfield' reporter:datatype='text' />
+ <field reporter:label='&field.vmsq.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.vmsq.quality.label;' name='quality' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='match_set' reltype='has_a' class='vms' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </create>
+ <retrieve permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </retrieve>
+ <update permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </update>
+ <delete permission='ADMIN_IMPORT_MATCH_SET'>
+ <context field='owner' link='match_set'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='actor::usr_org_unit_opt_in' reporter:label='&class.auoi.label;' controller='open-ils.cstore' oils_persist:tablename='actor.usr_org_unit_opt_in' id='auoi'>
+ <fields oils_persist:sequence='actor.usr_org_unit_opt_in_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auoi.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.auoi.opt_in_ws.label;' name='opt_in_ws' reporter:datatype='link' />
+ <field reporter:label='&field.auoi.staff.label;' name='staff' reporter:datatype='link' />
+ <field reporter:label='&field.auoi.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.auoi.org_unit.label;' name='org_unit' reporter:datatype='link' />
+ <field reporter:label='&field.auoi.opt_in_ts.label;' name='opt_in_ts' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='opt_in_ws' reltype='has_a' class='aws' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.cgf.label;' oils_persist:tablename='config.global_flag' oils_obj:fieldmapper='config::global_flag' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cgf'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.cgf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cgf.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cgf.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.cgf.enabled.label;' name='enabled' reporter:datatype='bool' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_GLOBAL_FLAG'></create>
+ <retrieve global_required='true' permission='ADMIN_GLOBAL_FLAG'></retrieve>
+ <update global_required='true' permission='ADMIN_GLOBAL_FLAG'></update>
+ <delete global_required='true' permission='ADMIN_GLOBAL_FLAG'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cin.label;' oils_persist:tablename='config.index_normalizer' oils_obj:fieldmapper='config::index_normalizer' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cin'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.cin.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cin.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cin.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cin.func.label;' name='func' reporter:datatype='text' />
+ <field reporter:label='&field.cin.param_count.label;' name='param_count' reporter:datatype='int' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INDEX_NORMALIZER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INDEX_NORMALIZER'></update>
+ <delete global_required='true' permission='ADMIN_INDEX_NORMALIZER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmfinm.label;' oils_persist:tablename='config.metabib_field_index_norm_map' oils_obj:fieldmapper='config::metabib_field_index_norm_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmfinm'>
+ <fields oils_persist:sequence='config.metabib_field_index_norm_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmfinm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmfinm.field.label;' name='field' reporter:datatype='link' />
+ <field reporter:label='&field.cmfinm.norm.label;' name='norm' reporter:datatype='link' />
+ <field reporter:label='&field.cmfinm.params.label;' name='params' reporter:datatype='text' />
+ <field reporter:label='&field.cmfinm.pos.label;' name='pos' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ <link field='norm' reltype='has_a' class='cin' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INDEX_NORMALIZER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INDEX_NORMALIZER'></update>
+ <delete global_required='true' permission='ADMIN_INDEX_NORMALIZER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmrcfmt.label;' oils_persist:tablename='config.marc_format' oils_obj:fieldmapper='config::marc_format' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmrcfmt'>
+ <fields oils_persist:sequence='config.marc_format_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmrcfmt.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cmrcfmt.code.label;' name='code' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcfmt.name.label;' oils_obj:required='true' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_TAG_TABLE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_TAG_TABLE'></update>
+ <delete global_required='true' permission='ADMIN_TAG_TABLE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmrcfld.label;' oils_persist:tablename='config.marc_field' oils_obj:fieldmapper='config::marc_field' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmrcfld'>
+ <fields oils_persist:sequence='config.marc_field_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmrcfld.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmrcfld.marc_format.label;' name='marc_format' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcfld.marc_record_type.label;' name='marc_record_type' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcfld.tag.label;' name='tag' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcfld.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cmrcfld.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cmrcfld.fixed_field.label;' name='fixed_field' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcfld.repeatable.label;' name='repeatable' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcfld.mandatory.label;' name='mandatory' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcfld.hidden.label;' name='hidden' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcfld.owner.label;' name='owner' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='marc_format' reltype='has_a' class='cmrcfmt' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_TAG_TABLE'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_TAG_TABLE'></update>
+ <delete context_field='owner' permission='ADMIN_TAG_TABLE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmrcsubfld.label;' oils_persist:tablename='config.marc_subfield' oils_obj:fieldmapper='config::marc_subfield' controller='open-ils.cstore open-ils.pcrud' oils_persist:subfield_safe='true' id='cmrcsubfld'>
+ <fields oils_persist:sequence='config.marc_subfield_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmrcsubfld.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmrcsubfld.marc_format.label;' name='marc_format' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcsubfld.marc_record_type.label;' name='marc_record_type' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcsubfld.tag.label;' name='tag' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcsubfld.code.label;' name='code' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cmrcsubfld.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cmrcsubfld.repeatable.label;' name='repeatable' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcsubfld.mandatory.label;' name='mandatory' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcsubfld.hidden.label;' name='hidden' reporter:datatype='bool' />
+ <field reporter:label='&field.cmrcsubfld.owner.label;' name='owner' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='marc_format' reltype='has_a' class='cmrcfmt' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_TAG_TABLE'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_TAG_TABLE'></update>
+ <delete context_field='owner' permission='ADMIN_TAG_TABLE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.crad.label;' oils_persist:tablename='config.record_attr_definition' oils_obj:fieldmapper='config::record_attr_definition' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='crad'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.crad.name.label;' oils_obj:required='true' name='name' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.crad.label.label;' oils_persist:i18n='true' name='label' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.crad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.crad.multi.label;' name='multi' reporter:datatype='bool' />
+ <field reporter:label='&field.crad.filter.label;' name='filter' reporter:datatype='bool' />
+ <field reporter:label='&field.crad.sorter.label;' name='sorter' reporter:datatype='bool' />
+ <field reporter:label='&field.crad.composite.label;' name='composite' reporter:datatype='bool' />
+ <field reporter:label='&field.crad.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.crad.sf_list.label;' name='sf_list' reporter:datatype='text' />
+ <field reporter:label='&field.crad.joiner.label;' name='joiner' reporter:datatype='text' />
+ <field reporter:label='&field.crad.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.crad.format.label;' name='format' reporter:datatype='link' />
+ <field reporter:label='&field.crad.start_pos.label;' name='start_pos' reporter:datatype='int' />
+ <field reporter:label='&field.crad.string_len.label;' name='string_len' reporter:datatype='int' />
+ <field reporter:label='&field.crad.fixed_field.label;' name='fixed_field' reporter:datatype='text' />
+ <field reporter:label='&field.crad.phys_char_sf.label;' name='phys_char_sf' reporter:datatype='text' />
+ <field reporter:label='&field.crad.vocabulary.label;' name='vocabulary' reporter:datatype='text' />
+ <field reporter:label='&field.crad.normalizers.label;' name='normalizers' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='format' reltype='has_a' class='cxt' key='name' map='' />
+ <link field='normalizers' reltype='has_many' class='crainm' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_SVF'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_SVF'></update>
+ <delete global_required='true' permission='ADMIN_SVF'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.csc.label;' oils_persist:tablename='config.sms_carrier' oils_obj:fieldmapper='config::sms_carrier' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='csc'>
+ <fields oils_persist:sequence='config.sms_carrier_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.csc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.csc.region.label;' name='region' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.csc.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.csc.active.label;' name='active' reporter:datatype='bool' oils_persist:i18n='true' />
+ <field reporter:label='&field.csc.email_gateway.label;' name='email_gateway' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_SMS_CARRIER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_SMS_CARRIER'></update>
+ <delete global_required='true' permission='ADMIN_SMS_CARRIER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.ccraed.label;' oils_persist:tablename='config.composite_attr_entry_definition' oils_obj:fieldmapper='config::composite_attr_entry_definition' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='ccraed'>
+ <fields oils_persist:primary='coded_value'>
+ <field reporter:label='&field.ccraed.coded_value.label;' name='coded_value' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.ccraed.definition.label;' name='definition' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='coded_value' reltype='has_a' class='ccvm' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CODED_VALUE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CODED_VALUE'></update>
+ <delete global_required='true' permission='ADMIN_CODED_VALUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.murav.label;' oils_persist:tablename='metabib.uncontrolled_record_attr_value' oils_obj:fieldmapper='metabib::uncontrolled_record_attr_value' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='murav'>
+ <fields oils_persist:sequence='metabib.uncontrolled_record_attr_value_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.murav.id.label;' name='id' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.murav.attr.label;' name='attr' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.murav.value.label;' name='value' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='attr' reltype='has_a' class='crad' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class reporter:label='&class.mrs.label;' oils_persist:tablename='metabib.record_sorter' oils_obj:fieldmapper='metabib::record_sorter' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mrs'>
+ <fields oils_persist:sequence='metabib.record_sorter_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mrs.id.label;' name='id' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.mrs.source.label;' name='source' reporter:datatype='int' oils_obj:required='true' />
+ <field reporter:label='&field.mrs.attr.label;' name='attr' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.mrs.value.label;' name='value' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='attr' reltype='has_a' class='crad' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class reporter:label='&class.mravl.label;' oils_persist:tablename='metabib.record_attr_vector_list' oils_obj:fieldmapper='metabib::record_attr_vector_list' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mravl'>
+ <fields oils_persist:primary='source'>
+ <field reporter:label='&field.mravl.source.label;' name='source' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.mravl.vlist.label;' name='vlist' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.mraf.label;' oils_persist:tablename='metabib.record_attr_flat' oils_obj:fieldmapper='metabib::record_attr_flat' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mraf'>
+ <fields>
+ <field reporter:label='&field.mraf.id.label;' name='id' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.mraf.attr.label;' name='attr' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.mraf.value.label;' name='value' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.mra.label;' oils_persist:tablename='metabib.record_attr' oils_obj:fieldmapper='metabib::record_attr' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mra' oils_persist:readonly='true'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.mra.id.label;' name='id' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.mra.attrs.label;' name='attrs' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.crainm.label;' oils_persist:tablename='config.record_attr_index_norm_map' oils_obj:fieldmapper='config::record_attr_index_norm_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='crainm'>
+ <fields oils_persist:sequence='config.record_attr_index_norm_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.crainm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.crainm.attr.label;' name='attr' reporter:datatype='link' />
+ <field reporter:label='&field.crainm.norm.label;' name='norm' reporter:datatype='link' />
+ <field reporter:label='&field.crainm.params.label;' name='params' reporter:datatype='text' />
+ <field reporter:label='&field.crainm.pos.label;' name='pos' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='attr' reltype='has_a' class='crad' key='name' map='' />
+ <link field='norm' reltype='has_a' class='cin' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INDEX_NORMALIZER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INDEX_NORMALIZER'></update>
+ <delete global_required='true' permission='ADMIN_INDEX_NORMALIZER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.ccvm.label;' oils_persist:tablename='config.coded_value_map' oils_obj:fieldmapper='config::coded_value_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='ccvm'>
+ <fields oils_persist:sequence='config.coded_value_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ccvm.id.label;' reporter:selector='value' name='id' reporter:datatype='id' oils_obj:required='true' />
+ <field reporter:label='&field.ccvm.ctype.label;' name='ctype' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.ccvm.code.label;' name='code' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.ccvm.value.label;' oils_persist:i18n='true' name='value' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.ccvm.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.ccvm.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.ccvm.search_label.label;' name='search_label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.ccvm.is_simple.label;' name='is_simple' reporter:datatype='bool' />
+ <field reporter:label='&field.ccvm.concept_uri.label;' name='concept_uri' reporter:datatype='text' />
+ <field reporter:label='&field.ccvm.composite_def.label;' name='composite_def' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='ctype' reltype='has_a' class='crad' key='name' map='' />
+ <link field='composite_def' reltype='might_have' class='ccraed' key='coded_value' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CODED_VALUE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CODED_VALUE'></update>
+ <delete global_required='true' permission='ADMIN_CODED_VALUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::remote_account' reporter:label='&class.cracct.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.remote_account' id='cracct'>
+ <fields oils_persist:sequence='config.remote_account_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cracct.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cracct.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.cracct.host.label;' name='host' reporter:datatype='text' />
+ <field reporter:label='&field.cracct.username.label;' name='username' reporter:datatype='text' />
+ <field reporter:label='&field.cracct.password.label;' name='password' reporter:datatype='text' />
+ <field reporter:label='&field.cracct.account.label;' name='account' reporter:datatype='text' />
+ <field reporter:label='&field.cracct.path.label;' name='path' reporter:datatype='text' />
+ <field reporter:label='&field.cracct.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.cracct.last_activity.label;' name='last_activity' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_CONFIG_REMOTE_ACCOUNT'></create>
+ <retrieve context_field='owner' permission='ADMIN_CONFIG_REMOTE_ACCOUNT'></retrieve>
+ <update context_field='owner' permission='ADMIN_CONFIG_REMOTE_ACCOUNT'></update>
+ <delete context_field='owner' permission='ADMIN_CONFIG_REMOTE_ACCOUNT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::z3950_source' reporter:label='&class.czs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.z3950_source' id='czs'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.czs.name.label;' name='name' reporter:datatype='id' />
+ <field reporter:label='&field.czs.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.czs.host.label;' name='host' reporter:datatype='text' />
+ <field reporter:label='&field.czs.port.label;' name='port' reporter:datatype='int' />
+ <field reporter:label='&field.czs.db.label;' name='db' reporter:datatype='text' />
+ <field reporter:label='&field.czs.record_format.label;' name='record_format' reporter:datatype='text' />
+ <field reporter:label='&field.czs.transmission_format.label;' name='transmission_format' reporter:datatype='text' />
+ <field reporter:label='&field.czs.auth.label;' name='auth' reporter:datatype='bool' />
+ <field reporter:label='&field.czs.attrs.label;' name='attrs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.czs.use_perm.label;' name='use_perm' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='attrs' reltype='has_many' class='cza' key='source' map='' />
+ <link field='use_perm' reltype='has_a' class='ppl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_Z3950_SOURCE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_Z3950_SOURCE'></update>
+ <delete global_required='true' permission='ADMIN_Z3950_SOURCE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::z3950_attr' reporter:label='&class.cza.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.z3950_attr' id='cza'>
+ <fields oils_persist:sequence='config.z3950_attr_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cza.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.cza.source.label;' name='source' reporter:datatype='link' />
+ <field reporter:label='&field.cza.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cza.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cza.code.label;' name='code' reporter:datatype='int' />
+ <field reporter:label='&field.cza.format.label;' name='format' reporter:datatype='int' />
+ <field reporter:label='&field.cza.truncation.label;' name='truncation' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='czs' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_Z3950_SOURCE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_Z3950_SOURCE'></update>
+ <delete global_required='true' permission='ADMIN_Z3950_SOURCE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::z3950_index_field_map' reporter:label='&class.czifm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.z3950_index_field_map' id='czifm'>
+ <fields oils_persist:sequence='config.z3950_index_field_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.czifm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.czifm.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.czifm.metabib_field.label;' name='metabib_field' reporter:datatype='link' />
+ <field reporter:label='&field.czifm.record_attr.label;' name='record_attr' reporter:datatype='link' />
+ <field reporter:label='&field.czifm.z3950_attr.label;' name='z3950_attr' reporter:datatype='link' />
+ <field reporter:label='&field.czifm.z3950_attr_type.label;' name='z3950_attr_type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='metabib_field' reltype='has_a' class='cmf' key='id' map='' />
+ <link field='record_attr' reltype='has_a' class='crad' key='name' map='' />
+ <link field='z3950_attr' reltype='has_a' class='cza' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_Z3950_SOURCE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_Z3950_SOURCE'></update>
+ <delete global_required='true' permission='ADMIN_Z3950_SOURCE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class oils_obj:fieldmapper='action_trigger::event_output' reporter:label='&class.ateo.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.event_output' id='ateo'>
+ <fields oils_persist:sequence='action_trigger.event_output_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ateo.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ateo.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ateo.data.label;' name='data' reporter:datatype='text' />
+ <field reporter:label='&field.ateo.is_error.label;' name='is_error' reporter:datatype='bool' />
+ <field reporter:label='&field.ateo.events.label;' name='events' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ateo.error_events.label;' name='error_events' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='events' reltype='has_many' class='atev' key='template_output' map='' />
+ <link field='error_events' reltype='has_many' class='atev' key='error_output' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ <delete global_required='true' permission='ADMIN_TRIGGER_TEMPLATE_OUTPUT DELETE_TRIGGER_TEMPLATE_OUTPUT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::hook' reporter:label='&class.ath.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.hook' id='ath'>
+ <fields oils_persist:primary='key'>
+ <field reporter:label='&field.ath.key.label;' name='key' reporter:datatype='text' />
+ <field reporter:label='&field.ath.core_type.label;' name='core_type' reporter:datatype='text' />
+ <field reporter:label='&field.ath.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.ath.passive.label;' name='passive' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_TRIGGER_HOOK CREATE_TRIGGER_HOOK'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_TRIGGER_HOOK UPDATE_TRIGGER_HOOK'></update>
+ <delete global_required='true' permission='ADMIN_TRIGGER_HOOK DELETE_TRIGGER_HOOK'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::collector' reporter:label='&class.atcol.label;' controller='open-ils.cstore' oils_persist:tablename='action_trigger.collector' id='atcol'>
+ <fields oils_persist:primary='module'>
+ <field reporter:label='&field.atcol.module.label;' name='module' reporter:datatype='text' />
+ <field reporter:label='&field.atcol.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::validator' reporter:label='&class.atval.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.validator' id='atval'>
+ <fields oils_persist:primary='module'>
+ <field reporter:label='&field.atval.module.label;' name='module' reporter:datatype='text' />
+ <field reporter:label='&field.atval.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_TRIGGER_VALIDATOR CREATE_TRIGGER_VALIDATOR'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_TRIGGER_VALIDATOR UPDATE_TRIGGER_VALIDATOR'></update>
+ <delete global_required='true' permission='ADMIN_TRIGGER_VALIDATOR DELETE_TRIGGER_VALIDATOR'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::reactor' reporter:label='&class.atreact.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.reactor' id='atreact'>
+ <fields oils_persist:primary='module'>
+ <field reporter:label='&field.atreact.module.label;' name='module' reporter:datatype='text' />
+ <field reporter:label='&field.atreact.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_TRIGGER_REACTOR CREATE_TRIGGER_REACTOR'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_TRIGGER_REACTOR UPDATE_TRIGGER_REACTOR'></update>
+ <delete global_required='true' permission='ADMIN_TRIGGER_REACTOR DELETE_TRIGGER_REACTOR'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::cleanup' reporter:label='&class.atclean.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.cleanup' id='atclean'>
+ <fields oils_persist:primary='module'>
+ <field reporter:label='&field.atclean.module.label;' name='module' reporter:datatype='text' />
+ <field reporter:label='&field.atclean.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_TRIGGER_CLEANUP CREATE_TRIGGER_CLEANUP'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_TRIGGER_CLEANUP UPDATE_TRIGGER_CLEANUP'></update>
+ <delete global_required='true' permission='ADMIN_TRIGGER_CLEANUP DELETE_TRIGGER_CLEANUP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::environment' reporter:label='&class.atenv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.environment' id='atenv'>
+ <fields oils_persist:sequence='action_trigger.environment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.atenv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atenv.event_def.label;' name='event_def' reporter:datatype='link' />
+ <field reporter:label='&field.atenv.path.label;' name='path' reporter:datatype='text' />
+ <field reporter:label='&field.atenv.collector.label;' name='collector' reporter:datatype='link' />
+ <field reporter:label='&field.atenv.label.label;' name='label' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='event_def' reltype='has_a' class='atevdef' key='id' map='' />
+ <link field='collector' reltype='has_a' class='atcol' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </create>
+ <retrieve permission='ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </retrieve>
+ <update permission='ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </update>
+ <delete permission='ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::event_definition' reporter:label='&class.atevdef.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.event_definition' id='atevdef'>
+ <fields oils_persist:sequence='action_trigger.event_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.atevdef.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atevdef.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.atevdef.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.atevdef.hook.label;' name='hook' reporter:datatype='link' />
+ <field reporter:label='&field.atevdef.validator.label;' name='validator' reporter:datatype='link' />
+ <field reporter:label='&field.atevdef.reactor.label;' name='reactor' reporter:datatype='link' />
+ <field reporter:label='&field.atevdef.cleanup_success.label;' name='cleanup_success' reporter:datatype='link' />
+ <field reporter:label='&field.atevdef.cleanup_failure.label;' name='cleanup_failure' reporter:datatype='link' />
+ <field reporter:label='&field.atevdef.delay.label;' name='delay' reporter:datatype='interval' />
+ <field reporter:label='&field.atevdef.max_delay.label;' name='max_delay' reporter:datatype='interval' />
+ <field reporter:label='&field.atevdef.delay_field.label;' name='delay_field' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.group_field.label;' name='group_field' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.template.label;' name='template' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.granularity.label;' name='granularity' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.usr_field.label;' name='usr_field' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.opt_in_setting.label;' name='opt_in_setting' reporter:datatype='link' />
+ <field reporter:label='&field.atevdef.repeat_delay.label;' name='repeat_delay' reporter:datatype='interval' />
+ <field reporter:label='&field.atevdef.message_template.label;' name='message_template' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.message_title.label;' name='message_title' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.message_usr_path.label;' name='message_usr_path' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.message_library_path.label;' name='message_library_path' reporter:datatype='text' />
+ <field reporter:label='&field.atevdef.env.label;' name='env' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.atevdef.params.label;' name='params' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.atevdef.retention_interval.label;' name='retention_interval' reporter:datatype='interval' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='hook' reltype='has_a' class='ath' key='key' map='' />
+ <link field='validator' reltype='has_a' class='atval' key='module' map='' />
+ <link field='reactor' reltype='has_a' class='atreact' key='module' map='' />
+ <link field='cleanup_success' reltype='has_a' class='atclean' key='module' map='' />
+ <link field='cleanup_failure' reltype='has_a' class='atclean' key='module' map='' />
+ <link field='env' reltype='has_many' class='atenv' key='event_def' map='' />
+ <link field='params' reltype='has_many' class='atevparam' key='event_def' map='' />
+ <link field='opt_in_setting' reltype='has_a' class='cust' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF'></create>
+ <retrieve context_field='owner' permission='ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF'></retrieve>
+ <update context_field='owner' permission='ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF'></update>
+ <delete context_field='owner' permission='ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::event' reporter:label='&class.atev.label;' controller='open-ils.cstore' oils_persist:tablename='action_trigger.event' id='atev'>
+ <fields oils_persist:sequence='action_trigger.event_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.atev.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atev.target.label;' name='target' reporter:datatype='int' />
+ <field reporter:label='&field.atev.event_def.label;' name='event_def' reporter:datatype='link' />
+ <field reporter:label='&field.atev.add_time.label;' name='add_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atev.run_time.label;' name='run_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atev.start_time.label;' name='start_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atev.update_time.label;' name='update_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atev.complete_time.label;' name='complete_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atev.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.atev.user_data.label;' name='user_data' reporter:datatype='text' />
+ <field reporter:label='&field.atev.template_output.label;' name='template_output' reporter:datatype='link' />
+ <field reporter:label='&field.atev.error_output.label;' name='error_output' reporter:datatype='text' />
+ <field reporter:label='&field.atev.async_output.label;' name='async_output' reporter:datatype='link' />
+ <field reporter:label='&field.atev.update_process.label;' name='update_process' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='event_def' reltype='has_a' class='atevdef' key='id' map='' />
+ <link field='template_output' reltype='has_a' class='ateo' key='id' map='' />
+ <link field='error_output' reltype='has_a' class='ateo' key='id' map='' />
+ <link field='async_output' reltype='has_a' class='ateo' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::event_param' reporter:label='&class.atevparam.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action_trigger.event_params' id='atevparam'>
+ <fields oils_persist:sequence='action_trigger.event_params_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.atevparam.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atevparam.event_def.label;' name='event_def' reporter:datatype='link' />
+ <field reporter:label='&field.atevparam.param.label;' name='param' reporter:datatype='text' />
+ <field reporter:label='&field.atevparam.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='event_def' reltype='has_a' class='atevdef' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_TRIGGER_EVENT_DEF CREATE_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </create>
+ <retrieve permission='ADMIN_TRIGGER_EVENT_DEF VIEW_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </retrieve>
+ <update permission='ADMIN_TRIGGER_EVENT_DEF UPDATE_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </update>
+ <delete permission='ADMIN_TRIGGER_EVENT_DEF DELETE_TRIGGER_EVENT_DEF'>
+ <context field='owner' link='event_def'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action_trigger::user_log' reporter:label='&class.atul.label;' controller='open-ils.cstore open-ils.pcrud' id='atul' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT atevdef.hook,
+ atevdef.name,
+ atevdef.reactor,
+ atev.id,
+ atev.event_def,
+ atev.add_time,
+ atev.run_time,
+ atev.start_time,
+ atev.update_time,
+ atev.complete_time,
+ atev.update_process,
+ atev.state,
+ atev.user_data,
+ atev.template_output,
+ atev.error_output,
+ atev.async_output,
+ targ_circ.id AS target_circ,
+ targ_ahr.id AS target_hold,
+ COALESCE(
+ targ_circ.circ_lib,
+ targ_ahr.pickup_lib
+ ) AS perm_lib
+ FROM action_trigger.event atev
+ JOIN action_trigger.event_definition atevdef ON
+ (atevdef.id = atev.event_def)
+ JOIN action_trigger.hook ath ON
+ (ath.key = atevdef.hook)
+ LEFT JOIN action.circulation targ_circ ON
+ (ath.core_type = 'circ' AND targ_circ.id = atev.target)
+ LEFT JOIN action.hold_request targ_ahr ON
+ (ath.core_type = 'ahr' AND targ_ahr.id = atev.target)
+ WHERE atev.add_time > NOW() - (SELECT MAX(value) FROM (
+ SELECT value::INTERVAL FROM actor.org_unit_ancestor_setting(
+ 'circ.staff.max_visible_event_age',
+ COALESCE(targ_circ.circ_lib, targ_ahr.pickup_lib)
+ ) UNION
+ SELECT '1000 YEARS'::INTERVAL AS value
+ ) ous)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.atul.hook.label;' name='hook' reporter:datatype='link' />
+ <field reporter:label='&field.atul.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.atul.reactor.label;' name='reactor' reporter:datatype='text' />
+ <field reporter:label='&field.atul.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atul.event_def.label;' name='event_def' reporter:datatype='int' />
+ <field reporter:label='&field.atul.add_time.label;' name='add_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atul.run_time.label;' name='run_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atul.start_time.label;' name='start_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atul.update_time.label;' name='update_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atul.complete_time.label;' name='complete_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atul.update_process.label;' name='update_process' reporter:datatype='int' />
+ <field reporter:label='&field.atul.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.atul.user_data.label;' name='user_data' reporter:datatype='text' />
+ <field reporter:label='&field.atul.template_output.label;' name='template_output' reporter:datatype='link' />
+ <field reporter:label='&field.atul.error_output.label;' name='error_output' reporter:datatype='link' />
+ <field reporter:label='&field.atul.async_output.label;' name='async_output' reporter:datatype='link' />
+ <field reporter:label='&field.atul.target_circ.label;' name='target_circ' reporter:datatype='link' />
+ <field reporter:label='&field.atul.target_hold.label;' name='target_hold' reporter:datatype='link' />
+ <field reporter:label='&field.atul.perm_lib.label;' name='perm_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='hook' reltype='has_a' class='ath' key='key' map='' />
+ <link field='template_output' reltype='has_a' class='ateo' key='id' map='' />
+ <link field='error_output' reltype='has_a' class='ateo' key='id' map='' />
+ <link field='async_output' reltype='has_a' class='ateo' key='id' map='' />
+ <link field='target_circ' reltype='has_a' class='circ' key='id' map='' />
+ <link field='target_hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='perm_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='perm_lib' permission='VIEW_TRIGGER_EVENT'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='actor::workstation' reporter:label='&class.aws.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.workstation' id='aws'>
+ <fields oils_persist:sequence='actor.workstation_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aws.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aws.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.aws.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aws.toolbars.label;' name='toolbars' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aws.circulations.label;' name='circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='toolbars' reltype='has_many' class='atb' key='ws' map='' />
+ <link field='circulations' reltype='has_many' class='circ' key='workstation' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='owning_lib' permission='STAFF_LOGIN'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_modifier' reporter:label='&class.ccm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_modifier' id='ccm'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.ccm.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.ccm.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.ccm.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.ccm.sip2_media_type.label;' name='sip2_media_type' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.ccm.magnetic_media.label;' name='magnetic_media' reporter:datatype='bool' />
+ <field reporter:label='&field.ccm.avg_wait_time.label;' name='avg_wait_time' reporter:datatype='interval' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CIRC_MOD'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CIRC_MOD'></update>
+ <delete global_required='true' permission='ADMIN_CIRC_MOD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.aiit.label;' oils_persist:tablename='acq.invoice_item_type' oils_obj:fieldmapper='acq::invoice_item_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='aiit'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.aiit.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.aiit.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.aiit.prorate.label;' name='prorate' reporter:datatype='bool' />
+ <field reporter:label='&field.aiit.blanket.label;' name='blanket' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_INVOICE_ITEM_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_INVOICE_ITEM_TYPE'></update>
+ <delete global_required='true' permission='DELETE_INVOICE_ITEM_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqim.label;' oils_persist:tablename='acq.invoice_method' oils_obj:fieldmapper='acq::invoice_method' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acqim'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.acqim.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqim.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INVOICE_METHOD CREATE_INVOICE_METHOD'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INVOICE_METHOD UPDATE_INVOICE_METHOD'></update>
+ <delete global_required='true' permission='ADMIN_INVOICE_METHOD DELETE_INVOICE_METHOD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.ccpbt.label;' oils_persist:tablename='container.copy_bucket_type' oils_obj:fieldmapper='container::copy_bucket_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='ccpbt'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.ccpbt.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.ccpbt.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_COPY_BTYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_COPY_BTYPE'></update>
+ <delete global_required='true' permission='DELETE_COPY_BTYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.ccnbt.label;' oils_persist:tablename='container.call_number_bucket_type' oils_obj:fieldmapper='container::call_number_bucket_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='ccnbt'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.ccnbt.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.ccnbt.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_CN_BTYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_CN_BTYPE'></update>
+ <delete global_required='true' permission='DELETE_CN_BTYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.bpt.label;' oils_persist:tablename='biblio.peer_type' oils_obj:fieldmapper='biblio::peer_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='bpt'>
+ <fields oils_persist:sequence='biblio.peer_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bpt.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.bpt.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_PTYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_PTYPE'></update>
+ <delete global_required='true' permission='DELETE_BIB_PTYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='biblio::peer_bib_copy_map' reporter:label='&class.bpbcm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='biblio.peer_bib_copy_map' id='bpbcm'>
+ <fields oils_persist:sequence='biblio.peer_bib_copy_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bpbcm.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.bpbcm.peer_type.label;' name='peer_type' reporter:datatype='link' />
+ <field reporter:label='&field.bpbcm.peer_record.label;' name='peer_record' reporter:datatype='link' />
+ <field reporter:label='&field.bpbcm.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='peer_type' reltype='has_a' class='bpt' key='id' map='' />
+ <link field='peer_record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='UPDATE_COPY'>
+ <context field='circ_lib' link='target_copy'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='UPDATE_COPY'>
+ <context field='circ_lib' link='target_copy'></context>
+ </update>
+ <delete permission='UPDATE_COPY'>
+ <context field='circ_lib' link='target_copy'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cbrebt.label;' oils_persist:tablename='container.biblio_record_entry_bucket_type' oils_obj:fieldmapper='container::biblio_record_entry_bucket_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cbrebt'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.cbrebt.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cbrebt.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_BTYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_BTYPE'></update>
+ <delete global_required='true' permission='DELETE_BIB_BTYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cubt.label;' oils_persist:tablename='container.user_bucket_type' oils_obj:fieldmapper='container::user_bucket_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cubt'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.cubt.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cubt.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_USER_BTYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_USER_BTYPE'></update>
+ <delete global_required='true' permission='DELETE_USER_BTYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cvrfm.label;' oils_persist:tablename='config.videorecording_format_map' oils_obj:fieldmapper='config::videorecording_format_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cvrfm'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.cvrfm.code.label;' name='code' reporter:datatype='id' reporter:selector='value' />
+ <field reporter:label='&field.cvrfm.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_MARC_CODE'></update>
+ <delete global_required='true' permission='ADMIN_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::hold_matrix_weights' reporter:label='&class.chmw.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.hold_matrix_weights' id='chmw'>
+ <fields oils_persist:sequence='config.hold_matrix_weights_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.chmw.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.chmw.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.chmw.user_home_ou.label;' name='user_home_ou' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.request_ou.label;' name='request_ou' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.pickup_ou.label;' name='pickup_ou' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.item_owning_ou.label;' name='item_owning_ou' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.item_circ_ou.label;' name='item_circ_ou' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.usr_grp.label;' name='usr_grp' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.requestor_grp.label;' name='requestor_grp' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.circ_modifier.label;' name='circ_modifier' reporter:datatype='float' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmw.marc_type.label;' name='marc_type' reporter:datatype='float' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmw.marc_form.label;' name='marc_form' reporter:datatype='float' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmw.marc_bib_level.label;' name='marc_bib_level' reporter:datatype='float' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmw.marc_vr_format.label;' name='marc_vr_format' reporter:datatype='float' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmw.juvenile_flag.label;' name='juvenile_flag' reporter:datatype='float' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmw.ref_flag.label;' name='ref_flag' reporter:datatype='float' />
+ <field reporter:label='&field.chmw.item_age.label;' name='item_age' reporter:datatype='float' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT'></update>
+ <delete global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_matrix_weights' reporter:label='&class.ccmw.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_matrix_weights' id='ccmw'>
+ <fields oils_persist:sequence='config.circ_matrix_weights_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ccmw.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.ccmw.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.ccmw.is_renewal.label;' name='is_renewal' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.org_unit.label;' name='org_unit' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.copy_circ_lib.label;' name='copy_circ_lib' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.copy_owning_lib.label;' name='copy_owning_lib' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.user_home_ou.label;' name='user_home_ou' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.grp.label;' name='grp' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.circ_modifier.label;' name='circ_modifier' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.copy_location.label;' name='copy_location' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.marc_type.label;' name='marc_type' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.marc_form.label;' name='marc_form' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.marc_bib_level.label;' name='marc_bib_level' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.marc_vr_format.label;' name='marc_vr_format' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.ref_flag.label;' name='ref_flag' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.juvenile_flag.label;' name='juvenile_flag' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.usr_age_lower_bound.label;' name='usr_age_lower_bound' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.usr_age_upper_bound.label;' name='usr_age_upper_bound' reporter:datatype='float' />
+ <field reporter:label='&field.ccmw.item_age.label;' name='item_age' reporter:datatype='float' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></update>
+ <delete global_required='true' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::weight_assoc' reporter:label='&class.cwa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.weight_assoc' id='cwa'>
+ <fields oils_persist:sequence='config.weight_assoc_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cwa.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cwa.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.cwa.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.cwa.circ_weights.label;' name='circ_weights' reporter:datatype='link' />
+ <field reporter:label='&field.cwa.hold_weights.label;' name='hold_weights' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='circ_weights' reltype='has_a' class='ccmw' key='id' map='' />
+ <link field='hold_weights' reltype='has_a' class='chmw' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT'></create>
+ <retrieve context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT'></update>
+ <delete context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT ADMIN_HOLD_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::hold_matrix_matchpoint' reporter:label='&class.chmm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.hold_matrix_matchpoint' id='chmm'>
+ <fields oils_persist:sequence='config.hold_matrix_matchpoint_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.chmm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.chmm.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.chmm.strict_ou_match.label;' name='strict_ou_match' reporter:datatype='bool' />
+ <field reporter:label='&field.chmm.user_home_ou.label;' name='user_home_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.chmm.request_ou.label;' name='request_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.chmm.pickup_ou.label;' name='pickup_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.chmm.item_owning_ou.label;' name='item_owning_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.chmm.item_circ_ou.label;' name='item_circ_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.chmm.usr_grp.label;' name='usr_grp' reporter:datatype='link' />
+ <field reporter:label='&field.chmm.requestor_grp.label;' name='requestor_grp' reporter:datatype='link' />
+ <field reporter:label='&field.chmm.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmm.marc_type.label;' name='marc_type' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmm.marc_form.label;' name='marc_form' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmm.marc_bib_level.label;' name='marc_bib_level' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmm.marc_vr_format.label;' name='marc_vr_format' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.chmm.ref_flag.label;' name='ref_flag' reporter:datatype='bool' />
+ <field reporter:label='&field.chmm.item_age.label;' name='item_age' reporter:datatype='text' />
+ <field reporter:label='&field.chmm.holdable.label;' name='holdable' reporter:datatype='bool' />
+ <field reporter:label='&field.chmm.distance_is_from_owner.label;' name='distance_is_from_owner' reporter:datatype='bool' />
+ <field reporter:label='&field.chmm.transit_range.label;' name='transit_range' reporter:datatype='link' />
+ <field reporter:label='&field.chmm.max_holds.label;' name='max_holds' reporter:datatype='int' />
+ <field reporter:label='&field.chmm.include_frozen_holds.label;' name='include_frozen_holds' reporter:datatype='bool' />
+ <field reporter:label='&field.chmm.age_hold_protect_rule.label;' name='age_hold_protect_rule' reporter:datatype='link' />
+ <field reporter:label='&field.chmm.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='user_home_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='request_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='pickup_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='item_owning_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='item_circ_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_grp' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='requestor_grp' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='marc_type' reltype='has_a' class='citm' key='code' map='' />
+ <link field='marc_form' reltype='has_a' class='cifm' key='code' map='' />
+ <link field='marc_bib_level' reltype='has_a' class='cblvl' key='code' map='' />
+ <link field='marc_vr_format' reltype='has_a' class='cvrfm' key='code' map='' />
+ <link field='age_hold_protect_rule' reltype='has_a' class='crahp' key='id' map='' />
+ <link field='transit_range' reltype='has_a' class='aout' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT'></create>
+ <retrieve global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT VIEW_HOLD_MATRIX_MATCHPOINT'></retrieve>
+ <update global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT'></update>
+ <delete global_required='true' permission='ADMIN_HOLD_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_matrix_matchpoint' reporter:label='&class.ccmm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_matrix_matchpoint' id='ccmm'>
+ <fields oils_persist:sequence='config.circ_matrix_matchpoint_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ccmm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ccmm.is_renewal.label;' name='is_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.ccmm.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.ccmm.org_unit.label;' name='org_unit' reporter:datatype='org_unit' oils_obj:required='true' />
+ <field reporter:label='&field.ccmm.copy_circ_lib.label;' name='copy_circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ccmm.copy_owning_lib.label;' name='copy_owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ccmm.user_home_ou.label;' name='user_home_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ccmm.grp.label;' name='grp' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.ccmm.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.ccmm.copy_location.label;' name='copy_location' reporter:datatype='link' />
+ <field reporter:label='&field.ccmm.marc_type.label;' name='marc_type' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.ccmm.marc_form.label;' name='marc_form' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.ccmm.marc_bib_level.label;' name='marc_bib_level' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.ccmm.marc_vr_format.label;' name='marc_vr_format' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.ccmm.ref_flag.label;' name='ref_flag' reporter:datatype='bool' />
+ <field reporter:label='&field.ccmm.juvenile_flag.label;' name='juvenile_flag' reporter:datatype='bool' />
+ <field reporter:label='&field.ccmm.usr_age_lower_bound.label;' name='usr_age_lower_bound' reporter:datatype='text' />
+ <field reporter:label='&field.ccmm.usr_age_upper_bound.label;' name='usr_age_upper_bound' reporter:datatype='text' />
+ <field reporter:label='&field.ccmm.item_age.label;' name='item_age' reporter:datatype='text' />
+ <field reporter:label='&field.ccmm.circulate.label;' name='circulate' reporter:datatype='bool' />
+ <field reporter:label='&field.ccmm.duration_rule.label;' name='duration_rule' reporter:datatype='link' />
+ <field reporter:label='&field.ccmm.recurring_fine_rule.label;' name='recurring_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.ccmm.max_fine_rule.label;' name='max_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.ccmm.hard_due_date.label;' name='hard_due_date' reporter:datatype='link' />
+ <field reporter:label='&field.ccmm.renewals.label;' name='renewals' reporter:datatype='int' />
+ <field reporter:label='&field.ccmm.grace_period.label;' name='grace_period' reporter:datatype='interval' />
+ <field reporter:label='&field.ccmm.script_test.label;' name='script_test' reporter:datatype='text' />
+ <field reporter:label='&field.ccmm.total_copy_hold_ratio.label;' name='total_copy_hold_ratio' reporter:datatype='float' />
+ <field reporter:label='&field.ccmm.available_copy_hold_ratio.label;' name='available_copy_hold_ratio' reporter:datatype='float' />
+ <field reporter:label='&field.ccmm.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='user_home_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='grp' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='copy_location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='marc_type' reltype='has_a' class='citm' key='code' map='' />
+ <link field='marc_form' reltype='has_a' class='cifm' key='code' map='' />
+ <link field='marc_bib_level' reltype='has_a' class='cblvl' key='code' map='' />
+ <link field='marc_vr_format' reltype='has_a' class='cvrfm' key='code' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='id' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='id' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='id' map='' />
+ <link field='hard_due_date' reltype='has_a' class='chdd' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></create>
+ <retrieve context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT VIEW_CIRC_MATRIX_MATCHPOINT'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></update>
+ <delete context_field='org_unit' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_limit_group' reporter:label='&class.cclg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_limit_group' id='cclg'>
+ <fields oils_persist:sequence='config.circ_limit_group_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cclg.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cclg.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cclg.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></update>
+ <delete global_required='true' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_limit_set' reporter:label='&class.ccls.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_limit_set' id='ccls'>
+ <fields oils_persist:sequence='config.circ_limit_set_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ccls.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.ccls.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.ccls.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ccls.items_out.label;' name='items_out' reporter:datatype='int' />
+ <field reporter:label='&field.ccls.depth.label;' name='depth' reporter:datatype='int' />
+ <field reporter:label='&field.ccls.global.label;' name='global' reporter:datatype='bool' />
+ <field reporter:label='&field.ccls.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></update>
+ <delete context_field='owning_lib' permission='ADMIN_CIRC_MATRIX_MATCHPOINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_matrix_limit_set_map' reporter:label='&class.ccmlsm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_matrix_limit_set_map' id='ccmlsm'>
+ <fields oils_persist:sequence='config.circ_matrix_limit_set_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ccmlsm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ccmlsm.matchpoint.label;' name='matchpoint' reporter:datatype='link' />
+ <field reporter:label='&field.ccmlsm.limit_set.label;' name='limit_set' reporter:datatype='link' />
+ <field reporter:label='&field.ccmlsm.fallthrough.label;' name='fallthrough' reporter:datatype='bool' />
+ <field reporter:label='&field.ccmlsm.active.label;' name='active' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='matchpoint' reltype='has_a' class='ccmm' key='id' map='' />
+ <link field='limit_set' reltype='has_a' class='ccls' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='org_unit' link='matchpoint'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='org_unit' link='matchpoint'></context>
+ </update>
+ <delete permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='org_unit' link='matchpoint'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_limit_set_circ_mod_map' reporter:label='&class.cclscmm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_limit_set_circ_mod_map' id='cclscmm'>
+ <fields oils_persist:sequence='config.circ_limit_set_circ_mod_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cclscmm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cclscmm.limit_set.label;' name='limit_set' reporter:datatype='link' />
+ <field reporter:label='&field.cclscmm.circ_mod.label;' name='circ_mod' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='limit_set' reltype='has_a' class='ccls' key='id' map='' />
+ <link field='circ_mod' reltype='has_a' class='ccm' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </update>
+ <delete permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::circ_limit_set_copy_loc_map' reporter:label='&class.cclsacpl.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_limit_set_copy_loc_map' id='cclsacpl'>
+ <fields oils_persist:sequence='config.circ_limit_set_copy_loc_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cclsacpl.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cclsacpl.limit_set.label;' name='limit_set' reporter:datatype='link' />
+ <field reporter:label='&field.cclsacpl.copy_loc.label;' name='copy_loc' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='limit_set' reltype='has_a' class='ccls' key='id' map='' />
+ <link field='copy_loc' reltype='has_a' class='acpl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </update>
+ <delete permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::circ_limit_set_group_map' reporter:label='&class.cclsgm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.circ_limit_set_group_map' id='cclsgm'>
+ <fields oils_persist:sequence='config.circ_limit_set_group_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cclsgm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cclsgm.limit_set.label;' name='limit_set' reporter:datatype='link' />
+ <field reporter:label='&field.cclsgm.limit_group.label;' name='limit_group' reporter:datatype='link' />
+ <field reporter:label='&field.cclsgm.check_only.label;' name='check_only' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='limit_set' reltype='has_a' class='ccls' key='id' map='' />
+ <link field='limit_group' reltype='has_a' class='cclg' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </update>
+ <delete permission='ADMIN_CIRC_MATRIX_MATCHPOINT'>
+ <context field='owning_lib' link='limit_set'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::identification_type' reporter:label='&class.cit.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.identification_type' id='cit'>
+ <fields oils_persist:sequence='config.identification_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cit.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cit.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_IDENT_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_IDENT_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_IDENT_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action::survey_question' reporter:label='&class.asvq.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.survey_question' id='asvq'>
+ <fields oils_persist:sequence='action.survey_question_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.asvq.answers.label;' name='answers' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.asvq.responses.label;' name='responses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.asvq.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.asvq.question.label;' name='question' reporter:datatype='text' />
+ <field reporter:label='&field.asvq.survey.label;' name='survey' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='survey' reltype='has_a' class='asv' key='id' map='' />
+ <link field='responses' reltype='has_many' class='asvr' key='question' map='' />
+ <link field='answers' reltype='has_many' class='asva' key='question' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SURVEY'>
+ <context field='owner' link='survey'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SURVEY'>
+ <context field='owner' link='survey'></context>
+ </update>
+ <delete permission='ADMIN_SURVEY'>
+ <context field='owner' link='survey'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mbts.label;' oils_persist:tablename='money.materialized_billable_xact_summary' oils_obj:fieldmapper='money::billable_transaction_summary' controller='open-ils.cstore open-ils.pcrud' id='mbts' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field reporter:label='&field.mbts.balance_owed.label;' name='balance_owed' reporter:datatype='money' />
+ <field reporter:label='&field.mbts.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mbts.last_billing_note.label;' name='last_billing_note' reporter:datatype='text' />
+ <field reporter:label='&field.mbts.last_billing_ts.label;' name='last_billing_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbts.last_billing_type.label;' name='last_billing_type' reporter:datatype='text' />
+ <field reporter:label='&field.mbts.last_payment_note.label;' name='last_payment_note' reporter:datatype='text' />
+ <field reporter:label='&field.mbts.last_payment_ts.label;' name='last_payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbts.last_payment_type.label;' name='last_payment_type' reporter:datatype='text' />
+ <field reporter:label='&field.mbts.total_owed.label;' name='total_owed' reporter:datatype='money' />
+ <field reporter:label='&field.mbts.total_paid.label;' name='total_paid' reporter:datatype='money' />
+ <field reporter:label='&field.mbts.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.mbts.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbts.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbts.xact_type.label;' name='xact_type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mbtslv.label;' oils_persist:tablename='money.billable_xact_summary_location_view' reporter:core='true' oils_obj:fieldmapper='money::billable_transaction_summary_location_view' controller='open-ils.cstore' id='mbtslv' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field reporter:label='&field.mbtslv.balance_owed.label;' name='balance_owed' reporter:datatype='money' />
+ <field reporter:label='&field.mbtslv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mbtslv.last_billing_note.label;' name='last_billing_note' reporter:datatype='text' />
+ <field reporter:label='&field.mbtslv.last_billing_ts.label;' name='last_billing_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbtslv.last_billing_type.label;' name='last_billing_type' reporter:datatype='text' />
+ <field reporter:label='&field.mbtslv.last_payment_note.label;' name='last_payment_note' reporter:datatype='text' />
+ <field reporter:label='&field.mbtslv.last_payment_ts.label;' name='last_payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbtslv.last_payment_type.label;' name='last_payment_type' reporter:datatype='text' />
+ <field reporter:label='&field.mbtslv.total_owed.label;' name='total_owed' reporter:datatype='money' />
+ <field reporter:label='&field.mbtslv.total_paid.label;' name='total_paid' reporter:datatype='money' />
+ <field reporter:label='&field.mbtslv.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.mbtslv.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbtslv.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbtslv.xact_type.label;' name='xact_type' reporter:datatype='text' />
+ <field reporter:label='&field.mbtslv.billing_location.label;' name='billing_location' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='billing_location' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='actor::usr_message' reporter:label='&class.aum.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.usr_message' id='aum'>
+ <fields oils_persist:sequence='actor.usr_message_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aum.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aum.read_date.label;' name='read_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aum.sending_lib.label;' name='sending_lib' reporter:datatype='link' />
+ <field reporter:label='&field.aum.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aum.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.aum.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.aum.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aum.message.label;' name='message' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='sending_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='sending_lib' permission='VIEW_USER'></retrieve>
+ <update context_field='sending_lib' permission='UPDATE_USER'></update>
+ <delete context_field='sending_lib' permission='UPDATE_USER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::usr_message_limited' reporter:label='&class.auml.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.usr_message_limited' id='auml'>
+ <fields oils_persist:sequence='actor.usr_message_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auml.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.auml.read_date.label;' name='read_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.auml.sending_lib.label;' name='sending_lib' reporter:datatype='link' />
+ <field reporter:label='&field.auml.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.auml.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.auml.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.auml.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.auml.message.label;' name='message' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='sending_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve owning_user='usr' context_field='sending_lib' permission='UPDATE_USER'></retrieve>
+ <update owning_user='usr' context_field='sending_lib' permission='UPDATE_USER'></update>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::usr_note' reporter:label='&class.aun.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.usr_note' id='aun'>
+ <fields oils_persist:sequence='actor.usr_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aun.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aun.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.aun.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aun.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.aun.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.aun.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aun.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='UPDATE_USER'>
+ <context field='home_ou' link='usr'></context>
+ </create>
+
+ <retrieve permission='UPDATE_USER'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ <update permission='UPDATE_USER'>
+ <context field='home_ou' link='usr'></context>
+ </update>
+ <delete permission='UPDATE_USER'>
+ <context field='home_ou' link='usr'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::usr_password_reset' reporter:label='&class.aupr.label;' controller='open-ils.cstore' oils_persist:tablename='actor.usr_password_reset' id='aupr'>
+ <fields oils_persist:sequence='actor.usr_password_reset_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aupr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aupr.uuid.label;' name='uuid' reporter:datatype='text' />
+ <field reporter:label='&field.aupr.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aupr.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aupr.has_been_reset.label;' name='has_been_reset' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='actor::user_setting' reporter:label='&class.aus.label;' controller='open-ils.cstore' oils_persist:tablename='actor.usr_setting' id='aus'>
+ <fields oils_persist:sequence='actor.usr_setting_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aus.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aus.name.label;' name='name' reporter:datatype='link' />
+ <field reporter:label='&field.aus.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aus.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='name' reltype='has_a' class='cust' key='name' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::author_field_entry' reporter:label='&class.mafe.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.author_field_entry' id='mafe'>
+ <fields oils_persist:sequence='metabib.author_field_entry_id_seq' oils_persist:primary='id'>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.aihu.label;' oils_persist:tablename='action.in_house_use' reporter:core='true' oils_obj:fieldmapper='action::in_house_use' controller='open-ils.cstore open-ils.pcrud' id='aihu'>
+ <fields oils_persist:sequence='action.in_house_use_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aihu.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aihu.item.label;' name='item' reporter:datatype='int' />
+ <field reporter:label='&field.aihu.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aihu.staff.label;' name='staff' reporter:datatype='link' />
+ <field reporter:label='&field.aihu.use_time.label;' name='use_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='item' reltype='has_a' class='acp' key='id' map='' />
+ <link field='staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.ancihu.label;' oils_persist:tablename='action.non_cat_in_house_use' reporter:core='true' oils_obj:fieldmapper='action::non_cat_in_house_use' controller='open-ils.cstore open-ils.pcrud' id='ancihu'>
+ <fields oils_persist:sequence='action.non_cat_in_house_use_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ancihu.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ancihu.item_type.label;' name='item_type' reporter:datatype='link' />
+ <field reporter:label='&field.ancihu.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ancihu.staff.label;' name='staff' reporter:datatype='link' />
+ <field reporter:label='&field.ancihu.use_time.label;' name='use_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='item_type' reltype='has_a' class='cnct' key='id' map='' />
+ <link field='staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.atc.label;' oils_persist:tablename='action.transit_copy' reporter:core='true' oils_obj:fieldmapper='action::transit_copy' controller='open-ils.cstore open-ils.pcrud' id='atc'>
+ <fields oils_persist:sequence='action.transit_copy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.atc.copy_status.label;' name='copy_status' reporter:datatype='bool' />
+ <field reporter:label='&field.atc.dest.label;' name='dest' reporter:datatype='link' />
+ <field reporter:label='&field.atc.dest_recv_time.label;' name='dest_recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atc.persistant_transfer.label;' name='persistant_transfer' reporter:datatype='bool' />
+ <field reporter:label='&field.atc.prev_hop.label;' name='prev_hop' reporter:datatype='link' />
+ <field reporter:label='&field.atc.source.label;' name='source' reporter:datatype='link' />
+ <field reporter:label='&field.atc.prev_dest.label;' name='prev_dest' reporter:datatype='org_unit' />
+ <field reporter:label='&field.atc.source_send_time.label;' name='source_send_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.atc.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.atc.hold_transit_copy.label;' name='hold_transit_copy' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='hold_transit_copy' reltype='might_have' class='ahtc' key='id' map='' />
+ <link field='source' reltype='has_a' class='aou' key='id' map='' />
+ <link field='prev_dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='TRANSIT_COPY'>
+ <context field='circ_lib' link='target_copy'></context>
+ </create>
+ <retrieve></retrieve>
+ <update context_field='dest source' permission='UPDATE_TRANSIT'></update>
+ <delete context_field='dest source' permission='DELETE_TRANSIT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::survey_response' reporter:label='&class.asvr.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.survey_response' id='asvr'>
+ <fields oils_persist:sequence='action.survey_response_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.asvr.answer.label;' name='answer' reporter:datatype='link' />
+ <field reporter:label='&field.asvr.answer_date.label;' name='answer_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.asvr.effective_date.label;' name='effective_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.asvr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.asvr.question.label;' name='question' reporter:datatype='link' />
+ <field reporter:label='&field.asvr.response_group_id.label;' name='response_group_id' reporter:datatype='int' />
+ <field reporter:label='&field.asvr.survey.label;' name='survey' reporter:datatype='link' />
+ <field reporter:label='&field.asvr.usr.label;' name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='question' reltype='has_a' class='asvq' key='id' map='' />
+ <link field='survey' reltype='has_a' class='asv' key='id' map='' />
+ <link field='answer' reltype='has_a' class='asva' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SURVEY'>
+ <context field='owner' link='survey'></context>
+ </create>
+ <retrieve permission='VIEW_USER'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ <update permission='ADMIN_SURVEY'>
+ <context field='owner' link='survey'></context>
+ </update>
+ <delete permission='ADMIN_SURVEY'>
+ <context field='owner' link='survey'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::copy_bucket_item' reporter:label='&class.ccbi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.copy_bucket_item' id='ccbi'>
+ <fields oils_persist:sequence='container.copy_bucket_item_id_seq' oils_persist:primary='id'>
+ <field name='bucket' />
+ <field name='id' reporter:datatype='id' />
+ <field name='target_copy' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='pos' reporter:datatype='int' />
+ <field name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='bucket' reltype='has_a' class='ccb' key='id' map='' />
+ <link field='notes' reltype='has_many' class='ccbin' key='item' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_COPY_BUCKET'>
+ <context link='bucket' owning_lib='owning_lib'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::copy_bucket_item_note' reporter:label='&class.ccbin.label;' controller='open-ils.cstore' oils_persist:tablename='container.copy_bucket_item_note' id='ccbin'>
+ <fields oils_persist:sequence='container.copy_bucket_item_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='item' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='item' reltype='has_a' class='ccbi' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acs.label;' oils_persist:tablename='authority.control_set' oils_obj:fieldmapper='authority::control_set' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acs'>
+ <fields oils_persist:sequence='authority.control_set_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acs.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acs.name.label;' oils_obj:required='true' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acs.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acs.authority_fields.label;' name='authority_fields' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acs.thesauri.label;' name='thesauri' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='authority_fields' reltype='has_many' class='acsaf' key='control_set' map='' />
+ <link field='thesauri' reltype='has_many' class='at' key='control_set' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acsaf.label;' oils_persist:tablename='authority.control_set_authority_field' oils_obj:fieldmapper='authority::control_set_authority_field' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acsaf'>
+ <fields oils_persist:sequence='authority.control_set_authority_field_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acsaf.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acsaf.main_entry.label;' name='main_entry' reporter:datatype='link' />
+ <field reporter:label='&field.acsaf.control_set.label;' name='control_set' reporter:datatype='link' />
+ <field reporter:label='&field.acsaf.tag.label;' oils_obj:validate='^.{3}$' name='tag' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.acsaf.sf_list.label;' name='sf_list' reporter:datatype='text' />
+ <field reporter:label='&field.acsaf.display_sf_list.label;' name='display_sf_list' reporter:datatype='text' />
+ <field reporter:label='&field.acsaf.nfi.label;' name='nfi' reporter:datatype='text' />
+ <field reporter:label='&field.acsaf.name.label;' oils_obj:required='true' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acsaf.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acsaf.linking_subfield.label;' name='linking_subfield' reporter:datatype='text' />
+ <field reporter:label='&field.acsaf.sub_entries.label;' name='sub_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acsaf.bib_fields.label;' name='bib_fields' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acsaf.thesauri.label;' name='thesauri' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acsaf.axis_maps.label;' name='axis_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acsaf.joiner.label;' name='joiner' reporter:datatype='text' />
+ <field reporter:label='&field.acsaf.heading_field.label;' name='heading_field' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='axis_maps' reltype='has_many' class='abaafm' key='field' map='' />
+ <link field='control_set' reltype='has_a' class='acs' key='id' map='' />
+ <link field='bib_fields' reltype='has_many' class='acsbf' key='authority_field' map='' />
+ <link field='thesauri' reltype='has_many' class='at' key='control_set' map='' />
+ <link field='main_entry' reltype='has_a' class='acsaf' key='id' map='' />
+ <link field='sub_entries' reltype='has_many' class='acsaf' key='main_entry' map='' />
+ <link field='heading' reltype='has_a' class='ahf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acsbf.label;' oils_persist:tablename='authority.control_set_bib_field' oils_obj:fieldmapper='authority::control_set_bib_field' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acsbf'>
+ <fields oils_persist:sequence='authority.control_set_bib_field_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acsbf.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acsbf.authority_field.label;' name='authority_field' reporter:datatype='link' />
+ <field reporter:label='&field.acsbf.tag.label;' oils_obj:validate='^.{3}$' name='tag' reporter:datatype='text' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='authority_field' reltype='has_a' class='acsaf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acsbfmfm.label;' oils_persist:tablename='authority.control_set_bib_field_metabib_field_map' oils_obj:fieldmapper='authority::control_set_bib_field_metabib_field_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acsbfmfm'>
+ <fields oils_persist:sequence='authority.control_set_bib_field_metabib_field_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acsbfmfm.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acsbfmfm.bib_field.label;' name='bib_field' reporter:datatype='link' />
+ <field reporter:label='&field.acsbfmfm.metabib_field.label;' name='metabib_field' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='bib_field' reltype='has_a' class='acsbf' key='id' map='' />
+ <link field='metabib_field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.at.label;' oils_persist:tablename='authority.thesaurus' oils_obj:fieldmapper='authority::thesaurus' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='at'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.at.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.at.control_set.label;' name='control_set' reporter:datatype='link' />
+ <field reporter:label='&field.at.name.label;' oils_obj:required='true' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.at.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.at.short_code.label;' name='short_code' reporter:datatype='text' />
+ <field reporter:label='&field.at.uri.label;' name='uri' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='control_set' reltype='has_a' class='acs' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.aba.label;' oils_persist:tablename='authority.browse_axis' oils_obj:fieldmapper='authority::browse_axis' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='aba'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.aba.code.label;' oils_obj:validate='^\S+$' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.aba.name.label;' oils_obj:required='true' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.aba.sorter.label;' name='sorter' reporter:datatype='link' />
+ <field reporter:label='&field.aba.description.label;' name='description' reporter:datatype='text' />
+ <field reporter:label='&field.aba.fields.label;' name='fields' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aba.maps.label;' name='maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='sorter' reltype='has_a' class='crad' key='name' map='' />
+ <link field='fields' reltype='has_many' class='abaafm' key='axis' map='field' />
+ <link field='maps' reltype='has_many' class='abaafm' key='axis' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.abaafm.label;' oils_persist:tablename='authority.browse_axis_authority_field_map' oils_obj:fieldmapper='authority::browse_axis_authority_field_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='abaafm'>
+ <fields oils_persist:sequence='authority.browse_axis_authority_field_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.abaafm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.abaafm.field.label;' name='field' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.abaafm.axis.label;' name='axis' reporter:datatype='link' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='field' reltype='has_a' class='acsaf' key='id' map='' />
+ <link field='axis' reltype='has_a' class='aba' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='authority::record_entry' reporter:label='&class.are.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='authority.record_entry' id='are'>
+ <fields oils_persist:sequence='authority.record_entry_id_seq' oils_persist:primary='id'>
+ <field name='active' reporter:datatype='bool' />
+ <field name='create_date' reporter:datatype='timestamp' />
+ <field name='creator' />
+ <field name='deleted' reporter:datatype='bool' />
+ <field name='edit_date' reporter:datatype='timestamp' />
+ <field name='editor' />
+ <field name='id' reporter:datatype='id' />
+ <field name='last_xact_id' />
+ <field name='marc' />
+ <field name='source' />
+ <field reporter:label='&field.are.control_set.label;' name='control_set' reporter:datatype='link' />
+ <field reporter:label='&field.are.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field name='heading' />
+ <field name='simple_heading' />
+ <field name='fixed_fields' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='bib_links' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='control_set' reltype='has_a' class='acs' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='notes' reltype='has_many' class='arn' key='record' map='' />
+ <link field='bib_links' reltype='has_many' class='abl' key='authority' map='' />
+ <link field='fixed_fields' reltype='might_have' class='ard' key='record' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_RECORD IMPORT_MARC'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_RECORD'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_RECORD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='authority::record_descriptor' reporter:label='&class.ard.label;' controller='open-ils.cstore' oils_persist:tablename='authority.rec_descriptor' id='ard'>
+ <fields oils_persist:sequence='authority.rec_descriptor_id_seq' oils_persist:primary='id'>
+ <field name='char_encoding' />
+ <field name='id' />
+ <field name='record' />
+ <field name='record_status' />
+ <field name='thesaurus' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='are' key='id' map='' />
+ <link field='thesaurus' reltype='might_have' class='at' key='code' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='authority::bib_linking' reporter:label='&class.abl.label;' controller='open-ils.cstore' oils_persist:tablename='authority.bib_linking' id='abl'>
+ <fields oils_persist:sequence='authority.bib_linking_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='bib' reporter:datatype='link' />
+ <field name='authority' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='bib' reltype='has_a' class='bre' key='id' map='' />
+ <link field='authority' reltype='has_a' class='are' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='authority::simple_heading' reporter:label='&class.ash.label;' controller='open-ils.cstore' oils_persist:tablename='authority.simple_heading' id='ash'>
+ <fields oils_persist:sequence='authority.simple_heading_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='record' reporter:datatype='link' />
+ <field name='atag' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='are' key='id' map='' />
+ <link field='atag' reltype='has_a' class='acsaf' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='authority::heading_field' reporter:label='&class.ahf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='authority.heading_field' id='ahf'>
+ <fields oils_persist:sequence='authority.heading_fields_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahf.heading_type.label;' name='heading_type' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.heading_purpose.label;' name='heading_purpose' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.format.label;' name='format' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.heading_xpath.label;' name='heading_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.component_xpath.label;' name='component_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.type_xpath.label;' name='type_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.thesaurus_xpath.label;' name='thesaurus_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.thesaurus_override_xpath.label;' name='thesaurus_override_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.ahf.joiner.label;' name='joiner' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_CONTROL_SET'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></update>
+ <delete global_required='true' permission='UPDATE_AUTHORITY_CONTROL_SET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.clm.label;' oils_persist:tablename='config.language_map' oils_obj:fieldmapper='config::language_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='clm'>
+ <fields oils_persist:sequence='' oils_persist:primary='code'>
+ <field reporter:label='&field.clm.code.label;' name='code' reporter:datatype='text' reporter:selector='value' />
+ <field reporter:label='&field.clm.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_MARC_CODE'></update>
+ <delete global_required='true' permission='DELETE_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::credit_card_payment' reporter:label='&class.mccp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.credit_card_payment' id='mccp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field name='accepting_usr' />
+ <field name='amount' reporter:datatype='money' />
+ <field name='amount_collected' reporter:datatype='money' />
+ <field name='approval_code' reporter:datatype='text' />
+ <field name='cash_drawer' reporter:datatype='link' />
+ <field name='cc_number' reporter:datatype='text' />
+ <field name='cc_order_number' reporter:datatype='text' />
+ <field name='cc_processor' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='note' reporter:datatype='text' />
+ <field name='payment_ts' reporter:datatype='timestamp' />
+ <field name='xact' reporter:datatype='link' />
+ <field name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='cash_drawer' reltype='has_a' class='aws' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::xml_transform' reporter:label='&class.cxt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.xml_transform' id='cxt'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.cxt.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cxt.namespace_uri.label;' name='namespace_uri' reporter:datatype='text' />
+ <field reporter:label='&field.cxt.prefix.label;' name='prefix' reporter:datatype='text' />
+ <field reporter:label='&field.cxt.xslt.label;' name='xslt' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_XML_TRANSFORM'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_XML_TRANSFORM'></update>
+ <delete global_required='true' permission='DELETE_XML_TRANSFORM'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmsa.label;' oils_persist:tablename='config.metabib_search_alias' oils_obj:fieldmapper='config::metabib_search_alias' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmsa'>
+ <fields oils_persist:primary='alias'>
+ <field reporter:label='&field.cmsa.alias.label;' name='alias' reporter:datatype='text' />
+ <field reporter:label='&field.cmsa.field_class.label;' name='field_class' reporter:datatype='link' />
+ <field reporter:label='&field.cmsa.field.label;' name='field' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='field_class' reltype='has_a' class='cmc' key='name' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_METABIB_SEARCH_ALIAS'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_METABIB_SEARCH_ALIAS'></update>
+ <delete global_required='true' permission='DELETE_METABIB_SEARCH_ALIAS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmc.label;' oils_persist:tablename='config.metabib_class' oils_obj:fieldmapper='config::metabib_class' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmc'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.cmc.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cmc.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cmc.buoyant.label;' name='buoyant' reporter:datatype='bool' />
+ <field reporter:label='&field.cmc.restrict.label;' name='restrict' reporter:datatype='bool' />
+ <field reporter:label='&field.cmc.combined.label;' name='combined' reporter:datatype='bool' />
+ <field reporter:label='&field.cmc.a_weight.label;' name='a_weight' reporter:datatype='float' />
+ <field reporter:label='&field.cmc.b_weight.label;' name='b_weight' reporter:datatype='float' />
+ <field reporter:label='&field.cmc.c_weight.label;' name='c_weight' reporter:datatype='float' />
+ <field reporter:label='&field.cmc.d_weight.label;' name='d_weight' reporter:datatype='float' />
+ <field reporter:label='&field.cmc.fields.label;' name='fields' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='fields' reltype='has_many' class='cmf' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_METABIB_CLASS'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_METABIB_CLASS'></update>
+ <delete global_required='true' permission='DELETE_METABIB_CLASS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmf.label;' oils_persist:tablename='config.metabib_field' oils_obj:fieldmapper='config::metabib_field' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmf'>
+ <fields oils_persist:sequence='config.metabib_field_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmf.field_class.label;' name='field_class' reporter:datatype='link' />
+ <field reporter:label='&field.cmf.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.cmf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cmf.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cmf.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.cmf.weight.label;' name='weight' reporter:datatype='int' />
+ <field reporter:label='&field.cmf.format.label;' name='format' reporter:datatype='link' />
+ <field reporter:label='&field.cmf.search_field.label;' name='search_field' reporter:datatype='bool' />
+ <field reporter:label='&field.cmf.facet_field.label;' name='facet_field' reporter:datatype='bool' />
+ <field reporter:label='&field.cmf.facet_xpath.label;' name='facet_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.cmf.display_xpath.label;' name='display_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.cmf.browse_field.label;' name='browse_field' reporter:datatype='bool' />
+ <field reporter:label='&field.cmf.browse_xpath.label;' name='browse_xpath' reporter:datatype='text' />
+ <field reporter:label='&field.cmf.restrict.label;' name='restrict' reporter:datatype='bool' />
+ <field reporter:label='&field.cmf.display_field.label;' name='display_field' reporter:datatype='bool' />
+ <field reporter:label='&field.cmf.display_field_map.label;' name='display_field_map' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='field_class' reltype='has_a' class='cmc' key='name' map='' />
+ <link field='display_field_map' reltype='might_have' class='cdfm' key='field' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_METABIB_FIELD'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_METABIB_FIELD'></update>
+ <delete global_required='true' permission='DELETE_METABIB_FIELD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::best_hold_order' reporter:label='&class.cbho.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.best_hold_order' id='cbho'>
+ <fields oils_persist:sequence='config.best_hold_order_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cbho.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cbho.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cbho.pprox.label;' name='pprox' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.hprox.label;' name='hprox' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.aprox.label;' name='aprox' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.approx.label;' name='approx' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.priority.label;' name='priority' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.cut.label;' name='cut' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.depth.label;' name='depth' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.htime.label;' name='htime' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.rtime.label;' name='rtime' reporter:datatype='int' />
+ <field reporter:label='&field.cbho.shtime.label;' name='shtime' reporter:datatype='int' />
+ </fields>
+ <links>
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_HOLD_CAPTURE_SORT'></create>
+ <retrieve global_required='true' permission='ADMIN_HOLD_CAPTURE_SORT'></retrieve>
+ <update global_required='true' permission='ADMIN_HOLD_CAPTURE_SORT'></update>
+ <delete global_required='true' permission='ADMIN_HOLD_CAPTURE_SORT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::biblio_fingerprint' reporter:label='&class.cbfp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.biblio_fingerprint' id='cbfp'>
+ <fields oils_persist:sequence='config.biblio_fingerprint_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='xpath' reporter:datatype='text' />
+ <field name='format' reporter:datatype='link' />
+ <field name='first_word' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIBLIO_FINGERPRINT'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_BIBLIO_FINGERPRINT'></update>
+ <delete global_required='true' permission='DELETE_BIBLIO_FINGERPRINT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.cam.label;' oils_persist:tablename='config.audience_map' oils_obj:fieldmapper='config::audience_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cam'>
+ <fields oils_persist:sequence='' oils_persist:primary='code'>
+ <field reporter:label='&field.cam.code.label;' name='code' reporter:datatype='text' reporter:selector='value' />
+ <field reporter:label='&field.cam.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cam.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_MARC_CODE'></update>
+ <delete global_required='true' permission='DELETE_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.cifm.label;' oils_persist:tablename='config.item_form_map' oils_obj:fieldmapper='config::item_form_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cifm'>
+ <fields oils_persist:sequence='' oils_persist:primary='code'>
+ <field reporter:label='&field.cifm.code.label;' name='code' reporter:datatype='text' reporter:selector='value' />
+ <field reporter:label='&field.cifm.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_MARC_CODE'></update>
+ <delete global_required='true' permission='ADMIN_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::call_number_class' reporter:label='&class.acnc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.call_number_class' id='acnc'>
+ <fields oils_persist:sequence='asset.call_number_class_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acnc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acnc.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acnc.normalizer.label;' name='normalizer' reporter:datatype='text' />
+ <field reporter:label='&field.acnc.field.label;' name='field' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::call_number_suffix' reporter:label='&class.acns.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.call_number_suffix' id='acns'>
+ <fields oils_persist:sequence='asset.call_number_suffix_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acns.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acns.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.acns.label_sortkey.label;' name='label_sortkey' reporter:datatype='text' />
+ <field reporter:label='&field.acns.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='CREATE_VOLUME_SUFFIX'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='UPDATE_VOLUME_SUFFIX'></update>
+ <delete context_field='owning_lib' permission='DELETE_VOLUME_SUFFIX'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::call_number_prefix' reporter:label='&class.acnp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.call_number_prefix' id='acnp'>
+ <fields oils_persist:sequence='asset.call_number_prefix_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acnp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acnp.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.acnp.label_sortkey.label;' name='label_sortkey' reporter:datatype='text' />
+ <field reporter:label='&field.acnp.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='CREATE_VOLUME_PREFIX'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='UPDATE_VOLUME_PREFIX'></update>
+ <delete context_field='owning_lib' permission='DELETE_VOLUME_PREFIX'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::call_number' reporter:label='&class.acn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.call_number' id='acn'>
+ <fields oils_persist:sequence='asset.call_number_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acn.copies.label;' name='copies' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acn.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acn.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acn.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.acn.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acn.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acn.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.acn.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acn.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.acn.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acn.uri_maps.label;' name='uri_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acn.uris.label;' name='uris' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acn.label_sortkey.label;' name='label_sortkey' reporter:datatype='text' />
+ <field reporter:label='&field.acn.label_class.label;' name='label_class' reporter:datatype='link' />
+ <field reporter:label='&field.acn.prefix.label;' name='prefix' reporter:datatype='link' />
+ <field reporter:label='&field.acn.suffix.label;' name='suffix' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='notes' reltype='has_many' class='acnn' key='call_number' map='' />
+ <link field='copies' reltype='has_many' class='acp' key='call_number' map='' />
+ <link field='uris' reltype='has_many' class='auricnm' key='call_number' map='uri' />
+ <link field='uri_maps' reltype='has_many' class='auricnm' key='call_number' map='' />
+ <link field='label_class' reltype='has_a' class='acnc' key='id' map='' />
+ <link field='prefix' reltype='has_a' class='acnp' key='id' map='' />
+ <link field='suffix' reltype='has_a' class='acns' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='CREATE_VOLUME'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='UPDATE_VOLUME'></update>
+ <delete context_field='owning_lib' permission='DELETE_VOLUME'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::uri' reporter:label='&class.auri.label;' controller='open-ils.cstore' oils_persist:tablename='asset.uri' id='auri'>
+ <fields oils_persist:sequence='asset.uri_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auri.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.auri.href.label;' name='href' reporter:datatype='text' />
+ <field reporter:label='&field.auri.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.auri.use_restriction.label;' name='use_restriction' reporter:datatype='text' />
+ <field reporter:label='&field.auri.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.auri.call_number_maps.label;' name='call_number_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.auri.call_numbers.label;' name='call_numbers' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='call_numbers' reltype='has_many' class='auricnm' key='uri' map='call_number' />
+ <link field='call_number_maps' reltype='has_many' class='auricnm' key='uri' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='asset::uri_call_number_map' reporter:label='&class.auricnm.label;' controller='open-ils.cstore' oils_persist:tablename='asset.uri_call_number_map' id='auricnm'>
+ <fields oils_persist:sequence='asset.uri_call_number_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auricnm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.auricnm.uri.label;' name='uri' reporter:datatype='int' />
+ <field reporter:label='&field.auricnm.call_number.label;' name='call_number' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='uri' reltype='has_a' class='auri' key='id' map='' />
+ <link field='call_number' reltype='has_a' class='acn' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='config::standing' reporter:label='&class.cst.label;' controller='open-ils.cstore' oils_persist:tablename='config.standing' id='cst'>
+ <fields oils_persist:sequence='config.standing_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='value' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ </class>
+ <class oils_obj:fieldmapper='money::open_user_summary' reporter:label='&class.mous.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.open_usr_summary' id='mous'>
+ <fields oils_persist:sequence='' oils_persist:primary='usr'>
+ <field name='balance_owed' reporter:datatype='money' />
+ <field name='total_owed' reporter:datatype='money' />
+ <field name='total_paid' reporter:datatype='money' />
+ <field name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::collections_tracker' reporter:label='&class.mct.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.collections_tracker' id='mct'>
+ <fields oils_persist:sequence='money.collections_tracker_id_seq' oils_persist:primary='id'>
+ <field name='collector' />
+ <field name='enter_time' reporter:datatype='timestamp' />
+ <field name='id' reporter:datatype='id' />
+ <field name='location' reporter:datatype='link' />
+ <field name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='collector' reltype='has_a' class='au' key='id' map='' />
+ <link field='location' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='location' permission='money.collections_tracker.create'></create>
+ <retrieve context_field='location' permission='money.collections_tracker.create'></retrieve>
+ <delete context_field='location' permission='money.collections_tracker.create'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.bre.label;' oils_persist:tablename='biblio.record_entry' reporter:core='true' oils_obj:fieldmapper='biblio::record_entry' controller='open-ils.cstore open-ils.pcrud' id='bre'>
+ <fields oils_persist:sequence='biblio.record_entry_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bre.call_numbers.label;' name='call_numbers' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.fixed_fields.label;' name='fixed_fields' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.bre.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bre.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.bre.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.bre.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bre.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.bre.fingerprint.label;' name='fingerprint' reporter:datatype='text' />
+ <field reporter:label='&field.bre.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.bre.last_xact_id.label;' name='last_xact_id' reporter:datatype='text' />
+ <field reporter:label='&field.bre.marc.label;' name='marc' reporter:datatype='text' />
+ <field reporter:label='&field.bre.quality.label;' name='quality' reporter:datatype='int' />
+ <field reporter:label='&field.bre.source.label;' name='source' reporter:datatype='link' />
+ <field reporter:label='&field.bre.tcn_source.label;' name='tcn_source' reporter:datatype='text' />
+ <field reporter:label='&field.bre.tcn_value.label;' name='tcn_value' reporter:datatype='text' />
+ <field reporter:label='&field.bre.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.bre.share_depth.label;' name='share_depth' reporter:datatype='int' />
+ <field reporter:label='&field.bre.metarecord.label;' name='metarecord' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.language.label;' name='language' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.keyword_field_entries.label;' name='keyword_field_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.subject_field_entries.label;' name='subject_field_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.title_field_entries.label;' name='title_field_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.identifier_field_entries.label;' name='identifier_field_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.author_field_entries.label;' name='author_field_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.series_field_entries.label;' name='series_field_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.full_record_entries.label;' name='full_record_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.simple_record.label;' name='simple_record' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.authority_links.label;' name='authority_links' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.subscriptions.label;' name='subscriptions' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.attrs.label;' name='attrs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.mattrs.label;' name='mattrs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.display_entries.label;' name='display_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.flat_display_entries.label;' name='flat_display_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.compressed_display_entries.label;' name='compressed_display_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bre.wide_display_entry.label;' name='wide_display_entry' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='simple_record' reltype='might_have' class='rmsr' key='id' map='' />
+ <link field='metarecord' reltype='might_have' class='mmrsm' key='source' map='metarecord' />
+ <link field='call_numbers' reltype='has_many' class='acn' key='record' map='' />
+ <link field='keyword_field_entries' reltype='has_many' class='mkfe' key='source' map='' />
+ <link field='fixed_fields' reltype='might_have' class='mrd' key='record' map='' />
+ <link field='language' reltype='might_have' class='mrd' key='record' map='item_lang' />
+ <link field='subject_field_entries' reltype='has_many' class='msfe' key='source' map='' />
+ <link field='title_field_entries' reltype='has_many' class='mtfe' key='source' map='' />
+ <link field='identifier_field_entries' reltype='has_many' class='mife' key='source' map='' />
+ <link field='notes' reltype='has_many' class='bren' key='record' map='' />
+ <link field='author_field_entries' reltype='has_many' class='mafe' key='source' map='' />
+ <link field='series_field_entries' reltype='has_many' class='msefe' key='source' map='' />
+ <link field='full_record_entries' reltype='has_many' class='mfr' key='record' map='' />
+ <link field='authority_links' reltype='has_many' class='abl' key='bib' map='' />
+ <link field='subscriptions' reltype='has_many' class='ssub' key='record_entry' map='' />
+ <link field='attrs' reltype='might_have' class='mra' key='id' map='' />
+ <link field='mattrs' reltype='might_have' class='mraf' key='id' map='' />
+ <link field='source' reltype='has_a' class='cbs' key='id' map='' />
+ <link field='display_entries' reltype='has_many' class='mde' key='source' map='' />
+ <link field='flat_display_entries' reltype='has_many' class='mfde' key='source' map='' />
+ <link field='compressed_display_entries' reltype='has_many' class='mcde' key='source' map='' />
+ <link field='wide_display_entry' reltype='might_have' class='mwde' key='source' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_MARC IMPORT_MARC'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_MARC'></update>
+
+ <delete global_required='true' permission='DELETE_RECORD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit::hours_of_operation' reporter:label='&class.aouhoo.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.hours_of_operation' id='aouhoo'>
+ <fields oils_persist:primary='id'>
+ <field name='dow_0_close' />
+ <field name='dow_0_open' />
+ <field name='dow_1_close' />
+ <field name='dow_1_open' />
+ <field name='dow_2_close' />
+ <field name='dow_2_open' />
+ <field name='dow_3_close' />
+ <field name='dow_3_open' />
+ <field name='dow_4_close' />
+ <field name='dow_4_open' />
+ <field name='dow_5_close' />
+ <field name='dow_5_open' />
+ <field name='dow_6_close' />
+ <field name='dow_6_open' />
+ <field name='id' reporter:datatype='id' />
+ <field name='org_unit' reporter:datatype='org_unit' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='id' reltype='might_have' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='id' permission='CREATE_HOURS_OF_OPERATION'></create>
+ <retrieve></retrieve>
+ <update context_field='id' permission='UPDATE_HOURS_OF_OPERATION'></update>
+ <delete context_field='id' permission='DELETE_HOURS_OF_OPERATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.bmp.label;' oils_persist:tablename='biblio.monograph_part' oils_obj:fieldmapper='biblio::monograph_part' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='bmp'>
+ <fields oils_persist:sequence='biblio.monograph_part_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='record' reporter:datatype='link' />
+ <field name='label' reporter:datatype='text' />
+ <field name='label_sortkey' reporter:datatype='text' />
+ <field name='deleted' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_MONOGRAPH_PART'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_MONOGRAPH_PART'></update>
+ <delete global_required='true' permission='DELETE_MONOGRAPH_PART'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::copy_part_map' reporter:label='&class.acpm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.copy_part_map' id='acpm'>
+ <fields oils_persist:sequence='asset.copy_part_map_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='target_copy' reporter:datatype='link' />
+ <field name='part' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='part' reltype='has_a' class='bmp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='MAP_MONOGRAPH_PART'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='MAP_MONOGRAPH_PART'></update>
+ <delete global_required='true' permission='MAP_MONOGRAPH_PART'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit::closed_date' reporter:label='&class.aoucd.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_unit_closed' id='aoucd'>
+ <fields oils_persist:sequence='actor.org_unit_closed_id_seq' oils_persist:primary='id'>
+ <field name='close_end' reporter:datatype='timestamp' />
+ <field name='close_start' reporter:datatype='timestamp' />
+ <field name='id' reporter:datatype='id' />
+ <field name='org_unit' reporter:datatype='org_unit' />
+ <field name='reason' reporter:datatype='text' />
+ <field name='full_day' reporter:datatype='bool' />
+ <field name='multi_day' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='CREATE_ORG_UNIT_CLOSING'></create>
+ <retrieve></retrieve>
+ <update context_field='org_unit' permission='UPDATE_ORG_UNIT_CLOSING'></update>
+ <delete context_field='org_unit' permission='DELETE_ORG_UNIT_CLOSING'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::rules::circ_duration' reporter:label='&class.crcd.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.rule_circ_duration' id='crcd'>
+ <fields oils_persist:sequence='config.rule_circ_duration_id_seq' oils_persist:primary='id'>
+ <field name='extended' reporter:datatype='interval' />
+ <field name='id' reporter:datatype='id' reporter:selector='name' />
+ <field name='max_renewals' reporter:datatype='int' />
+ <field name='name' reporter:datatype='text' />
+ <field name='normal' reporter:datatype='interval' />
+ <field name='shrt' reporter:datatype='interval' />
+ </fields>
+ <links>
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_CIRC_DURATION'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_CIRC_DURATION'></update>
+ <delete global_required='true' permission='DELETE_CIRC_DURATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::hard_due_date' reporter:label='&class.chdd.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.hard_due_date' id='chdd'>
+ <fields oils_persist:sequence='config.hard_due_date_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.chdd.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.chdd.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.chdd.forceto.label;' name='forceto' reporter:datatype='bool' />
+ <field reporter:label='&field.chdd.ceiling_date.label;' name='ceiling_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.chdd.owner.label;' name='owner' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_CIRC_DURATION'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_CIRC_DURATION'></update>
+ <delete global_required='true' permission='DELETE_CIRC_DURATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::hard_due_date_values' reporter:label='&class.chddv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.hard_due_date_values' id='chddv'>
+ <fields oils_persist:sequence='config.hard_due_date_values_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.chddv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.chddv.hard_due_date.label;' name='hard_due_date' reporter:datatype='link' />
+ <field reporter:label='&field.chddv.ceiling_date.label;' name='ceiling_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.chddv.active_date.label;' name='active_date' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='hard_due_date' reltype='has_a' class='chdd' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_CIRC_DURATION'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_CIRC_DURATION'></update>
+ <delete global_required='true' permission='DELETE_CIRC_DURATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='money::open_billable_transaction_summary' reporter:label='&class.mobts.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.open_billable_xact_summary' id='mobts'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field name='balance_owed' reporter:datatype='money' />
+ <field name='id' reporter:datatype='id' />
+ <field name='last_billing_note' reporter:datatype='text' />
+ <field name='last_billing_ts' reporter:datatype='timestamp' />
+ <field name='last_billing_type' reporter:datatype='text' />
+ <field name='last_payment_note' reporter:datatype='text' />
+ <field name='last_payment_ts' reporter:datatype='timestamp' />
+ <field name='last_payment_type' reporter:datatype='text' />
+ <field name='total_owed' reporter:datatype='money' />
+ <field name='total_paid' reporter:datatype='money' />
+ <field name='usr' reporter:datatype='link' />
+ <field name='xact_finish' reporter:datatype='timestamp' />
+ <field name='xact_start' reporter:datatype='timestamp' />
+ <field name='xact_type' reporter:datatype='text' />
+ <field name='xact' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='grocery' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='circulation' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='reservation' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='billing_location' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='xact' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='circulation' reltype='might_have' class='circ' key='id' map='' />
+ <link field='grocery' reltype='might_have' class='mg' key='id' map='' />
+ <link field='reservation' reltype='might_have' class='bresv' key='id' map='' />
+ <link field='billing_location' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.au.label;' oils_persist:tablename='actor.usr' reporter:core='true' oils_obj:fieldmapper='actor::user' controller='open-ils.cstore open-ils.pcrud' id='au'>
+ <fields oils_persist:sequence='actor.usr_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.au.addresses.label;' name='addresses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.cards.label;' name='cards' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.checkouts.label;' name='checkouts' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.hold_requests.label;' name='hold_requests' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.permissions.label;' name='permissions' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.settings.label;' name='settings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.standing_penalties.label;' name='standing_penalties' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.stat_cat_entries.label;' name='stat_cat_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.survey_responses.label;' name='survey_responses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.ws_ou.label;' name='ws_ou' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.wsid.label;' name='wsid' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.au.alert_message.label;' name='alert_message' reporter:datatype='text' />
+ <field reporter:label='&field.au.barred.label;' name='barred' reporter:datatype='bool' />
+ <field reporter:label='&field.au.billing_address.label;' name='billing_address' reporter:datatype='link' />
+ <field reporter:label='&field.au.card.label;' name='card' reporter:datatype='link' />
+ <field reporter:label='&field.au.claims_returned_count.label;' name='claims_returned_count' reporter:datatype='int' />
+ <field reporter:label='&field.au.claims_never_checked_out_count.label;' name='claims_never_checked_out_count' reporter:datatype='int' />
+ <field reporter:label='&field.au.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.au.credit_forward_balance.label;' name='credit_forward_balance' reporter:datatype='money' />
+ <field reporter:label='&field.au.day_phone.label;' name='day_phone' reporter:datatype='text' />
+ <field reporter:label='&field.au.dob.label;' name='dob' reporter:datatype='timestamp' />
+ <field reporter:label='&field.au.email.label;' name='email' reporter:datatype='text' />
+ <field reporter:label='&field.au.evening_phone.label;' name='evening_phone' reporter:datatype='text' />
+ <field reporter:label='&field.au.expire_date.label;' name='expire_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.au.family_name.label;' name='family_name' reporter:datatype='text' />
+ <field reporter:label='&field.au.first_given_name.label;' name='first_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.au.home_ou.label;' name='home_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.au.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.au.ident_type.label;' name='ident_type' reporter:datatype='link' />
+ <field reporter:label='&field.au.ident_type2.label;' name='ident_type2' reporter:datatype='link' />
+ <field reporter:label='&field.au.ident_value.label;' name='ident_value' reporter:datatype='text' />
+ <field reporter:label='&field.au.ident_value2.label;' name='ident_value2' reporter:datatype='text' />
+ <field reporter:label='&field.au.last_xact_id.label;' name='last_xact_id' reporter:datatype='text' />
+ <field reporter:label='&field.au.mailing_address.label;' name='mailing_address' reporter:datatype='link' />
+ <field reporter:label='&field.au.master_account.label;' name='master_account' reporter:datatype='bool' />
+ <field reporter:label='&field.au.net_access_level.label;' name='net_access_level' reporter:datatype='link' />
+ <field reporter:label='&field.au.other_phone.label;' name='other_phone' reporter:datatype='text' />
+ <field reporter:label='&field.au.passwd.label;' name='passwd' reporter:datatype='text' suppress_controller='open-ils.pcrud open-ils.reporter-store' />
+ <field reporter:label='&field.au.photo_url.label;' name='photo_url' reporter:datatype='text' />
+ <field reporter:label='&field.au.prefix.label;' name='prefix' reporter:datatype='text' />
+ <field reporter:label='&field.au.profile.label;' name='profile' reporter:datatype='link' />
+ <field reporter:label='&field.au.second_given_name.label;' name='second_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.au.standing.label;' name='standing' reporter:datatype='link' />
+ <field reporter:label='&field.au.suffix.label;' name='suffix' reporter:datatype='text' />
+ <field reporter:label='&field.au.super_user.label;' name='super_user' reporter:datatype='bool' />
+ <field reporter:label='&field.au.usrgroup.label;' name='usrgroup' reporter:datatype='int' />
+ <field reporter:label='&field.au.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.au.alias.label;' name='alias' reporter:datatype='text' />
+ <field reporter:label='&field.au.juvenile.label;' name='juvenile' reporter:datatype='bool' />
+ <field reporter:label='&field.au.last_update_time.label;' name='last_update_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.au.groups.label;' name='groups' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.au.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.demographic.label;' name='demographic' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.billable_transactions.label;' name='billable_transactions' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.money_summary.label;' name='money_summary' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.open_billable_transactions_summary.label;' name='open_billable_transactions_summary' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.checkins.label;' name='checkins' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.performed_circulations.label;' name='performed_circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.fund_alloc_pcts.label;' name='fund_alloc_pcts' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.reservations.label;' name='reservations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.usr_activity.label;' name='usr_activity' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.au.usr_work_ou_map.label;' name='usr_work_ou_map' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='demographic' reltype='might_have' class='rud' key='id' map='' />
+ <link field='net_access_level' reltype='has_a' class='cnal' key='id' map='' />
+ <link field='profile' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='ident_type' reltype='has_a' class='cit' key='id' map='' />
+ <link field='billing_address' reltype='has_a' class='aua' key='id' map='' />
+ <link field='mailing_address' reltype='has_a' class='aua' key='id' map='' />
+ <link field='home_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='standing' reltype='has_a' class='cst' key='id' map='' />
+ <link field='card' reltype='has_a' class='ac' key='id' map='' />
+ <link field='ident_type2' reltype='has_a' class='cit' key='id' map='' />
+ <link field='stat_cat_entries' reltype='has_many' class='actscecm' key='target_usr' map='' />
+ <link field='groups' reltype='has_many' class='pugm' key='usr' map='grp' />
+ <link field='usrgroup' reltype='has_many' class='au' key='usrgroup' map='' />
+ <link field='checkouts' reltype='has_many' class='circ' key='usr' map='' />
+ <link field='hold_requests' reltype='has_many' class='ahr' key='usr' map='' />
+ <link field='permissions' reltype='has_many' class='pupm' key='usr' map='perm' />
+ <link field='settings' reltype='has_many' class='aus' key='usr' map='' />
+ <link field='billable_transactions' reltype='has_many' class='mbt' key='usr' map='' />
+ <link field='open_billable_transactions_summary' reltype='has_many' class='mobts' key='usr' map='' />
+ <link field='money_summary' reltype='might_have' class='mus' key='usr' map='' />
+ <link field='standing_penalties' reltype='has_many' class='ausp' key='usr' map='' />
+ <link field='addresses' reltype='has_many' class='aua' key='usr' map='' />
+ <link field='survey_responses' reltype='has_many' class='asvr' key='usr' map='' />
+ <link field='notes' reltype='has_many' class='aun' key='usr' map='' />
+ <link field='checkins' reltype='has_many' class='circ' key='checkin_staff' map='' />
+ <link field='cards' reltype='has_many' class='ac' key='usr' map='' />
+ <link field='performed_circulations' reltype='has_many' class='circ' key='circ_staff' map='' />
+ <link field='fund_alloc_pcts' reltype='has_many' class='acqfap' key='allocator' map='' />
+ <link field='reservations' reltype='has_many' class='bresv' key='usr' map='' />
+ <link field='usr_activity' reltype='has_many' class='auact' key='usr' map='' />
+ <link field='usr_work_ou_map' reltype='has_many' class='puwoum' key='usr' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='home_ou' permission='VIEW_USER'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::usr_activity_type' reporter:label='&class.cuat.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.usr_activity_type' id='cuat'>
+ <fields oils_persist:sequence='config.usr_activity_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cuat.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cuat.ewho.label;' name='ewho' reporter:datatype='text' />
+ <field reporter:label='&field.cuat.ewhat.label;' name='ewhat' reporter:datatype='text' />
+ <field reporter:label='&field.cuat.ehow.label;' name='ehow' reporter:datatype='text' />
+ <field reporter:label='&field.cuat.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.cuat.egroup.label;' name='egroup' reporter:datatype='text' />
+ <field reporter:label='&field.cuat.enabled.label;' name='enabled' reporter:datatype='bool' />
+ <field reporter:label='&field.cuat.transient.label;' name='transient' reporter:datatype='bool' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_USER_ACTIVITY_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_USER_ACTIVITY_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_USER_ACTIVITY_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::usr_activity' reporter:label='&class.auact.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.usr_activity' id='auact'>
+ <fields oils_persist:sequence='actor.usr_activity_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auact.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.auact.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.auact.etype.label;' name='etype' reporter:datatype='link' />
+ <field reporter:label='&field.auact.event_time.label;' name='event_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='etype' reltype='has_a' class='cuat' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='RUN_REPORTS'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::toolbar' reporter:label='&class.atb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.toolbar' id='atb'>
+ <fields oils_persist:sequence='actor.toolbar_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.atb.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.atb.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.atb.org.label;' name='org' reporter:datatype='link' />
+ <field reporter:label='&field.atb.ws.label;' name='ws' reporter:datatype='link' />
+ <field reporter:label='&field.atb.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.atb.layout.label;' name='layout' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='might_have' class='au' key='id' map='' />
+ <link field='org' reltype='might_have' class='aou' key='id' map='' />
+ <link field='ws' reltype='might_have' class='aws' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='org' permission='ADMIN_TOOLBAR STAFF_LOGIN'>
+ <context field='home_ou' link='usr'></context>
+ <context field='owning_lib' link='ws'></context>
+ </retrieve>
+ <create context_field='org' permission='ADMIN_TOOLBAR'>
+ <context field='home_ou' link='usr'></context>
+ <context field='owning_lib' link='ws'></context>
+ </create>
+ <update context_field='org' permission='ADMIN_TOOLBAR'>
+ <context field='home_ou' link='usr'></context>
+ <context field='owning_lib' link='ws'></context>
+ </update>
+ <delete context_field='org' permission='ADMIN_TOOLBAR'>
+ <context field='home_ou' link='usr'></context>
+ <context field='owning_lib' link='ws'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::settings_group' reporter:label='&class.csg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.settings_group' id='csg'>
+ <fields oils_persist:primary='name'>
+ <field name='name' reporter:datatype='text' />
+ <field name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_USER_SETTING_GROUP'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_USER_SETTING_GROUP'></update>
+ <delete global_required='true' permission='ADMIN_USER_SETTING_GROUP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::usr_setting_type' reporter:label='&class.cust.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.usr_setting_type' id='cust'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.cust.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cust.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cust.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cust.datatype.label;' name='datatype' reporter:datatype='text' />
+ <field reporter:label='&field.cust.fm_class.label;' name='fm_class' reporter:datatype='text' />
+ <field reporter:label='&field.cust.grp.label;' name='grp' reporter:datatype='link' />
+ <field reporter:label='&field.cust.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.cust.reg_default.label;' name='reg_default' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='name' reltype='has_many' class='aus' key='name' map='' />
+ <link field='grp' reltype='has_a' class='csg' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_USER_SETTING_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_USER_SETTING_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_USER_SETTING_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::org_unit_setting_type' reporter:label='&class.coust.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.org_unit_setting_type' id='coust'>
+ <fields oils_persist:primary='name'>
+ <field name='name' reporter:datatype='text' />
+ <field name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='datatype' reporter:datatype='text' />
+ <field name='view_perm' reporter:datatype='link' />
+ <field name='update_perm' reporter:datatype='link' />
+ <field name='fm_class' reporter:datatype='text' />
+ <field name='grp' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='name' reltype='has_many' class='aous' key='name' map='' />
+ <link field='view_perm' reltype='has_a' class='ppl' key='id' map='' />
+ <link field='update_perm' reltype='has_a' class='ppl' key='id' map='' />
+ <link field='grp' reltype='has_a' class='csg' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ORG_UNIT_SETTING_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_ORG_UNIT_SETTING_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_ORG_UNIT_SETTING_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit_setting' reporter:label='&class.aous.label;' controller='open-ils.cstore' oils_persist:tablename='actor.org_unit_setting' id='aous'>
+ <fields oils_persist:sequence='actor.org_unit_setting_id_seq' oils_persist:primary='id'>
+ <field name='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='org_unit' reporter:datatype='org_unit' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='name' reltype='has_a' class='coust' key='name' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='asset::copy_note' reporter:label='&class.acpn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.copy_note' id='acpn'>
+ <fields oils_persist:sequence='asset.copy_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acpn.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acpn.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acpn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acpn.owning_copy.label;' name='owning_copy' reporter:datatype='link' />
+ <field reporter:label='&field.acpn.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.acpn.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.acpn.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owning_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_COPY_NOTE'>
+ <context field='circ_lib' link='owning_copy'></context>
+ </create>
+ <retrieve permission='VIEW_COPY_NOTES'>
+ <context field='circ_lib' link='owning_copy'></context>
+ </retrieve>
+ <update permission='UPDATE_COPY_NOTE'>
+ <context field='circ_lib' link='owning_copy'></context>
+ </update>
+ <delete permission='DELETE_COPY_NOTE'>
+ <context field='circ_lib' link='owning_copy'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='metabib::full_rec' reporter:label='&class.mfr.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.full_rec' id='mfr'>
+ <fields oils_persist:sequence='metabib.full_rec_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mfr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mfr.ind1.label;' name='ind1' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mfr.ind2.label;' name='ind2' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mfr.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.mfr.subfield.label;' name='subfield' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mfr.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.mfr.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::metarecord' reporter:label='&class.mmr.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.metarecord' id='mmr'>
+ <fields oils_persist:sequence='metabib.metarecord_id_seq' oils_persist:primary='id'>
+ <field name='fingerprint' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='master_record' reporter:datatype='link' />
+ <field name='mods' reporter:datatype='text' />
+ <field name='source_records' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='master_record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='source_records' reltype='has_many' class='mmrsm' key='metarecord' map='source' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='config::net_access_level' reporter:label='&class.cnal.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.net_access_level' id='cnal'>
+ <fields oils_persist:sequence='config.net_access_level_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' reporter:selector='name' />
+ <field name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_NET_ACCESS_LEVEL'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_NET_ACCESS_LEVEL'></update>
+ <delete global_required='true' permission='DELETE_NET_ACCESS_LEVEL'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='permission::perm_list' reporter:label='&class.ppl.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='permission.perm_list' id='ppl'>
+ <fields oils_persist:sequence='permission.perm_list_id_seq' oils_persist:primary='id'>
+ <field name='code' reporter:datatype='text' />
+ <field name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='id' reporter:datatype='id' reporter:selector='code' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_PERM'></create>
+ <retrieve global_required='true' permission='CREATE_PERM UPDATE_PERM DELETE_PERM'></retrieve>
+ <update global_required='true' permission='UPDATE_PERM'></update>
+ <delete global_required='true' permission='DELETE_PERM'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mmrsm.label;' oils_persist:tablename='metabib.metarecord_source_map' oils_obj:fieldmapper='metabib::metarecord_source_map' controller='open-ils.cstore' oils_persist:field_safe='true' id='mmrsm'>
+ <fields oils_persist:sequence='metabib.metarecord_source_map_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='metarecord' reporter:datatype='link' />
+ <field name='source' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='metarecord' reltype='has_a' class='mmr' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.mde.label;' oils_persist:tablename='metabib.display_entry' oils_obj:fieldmapper='metabib::display_entry' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mde' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='metabib.display_entry_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='field' reporter:datatype='link' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mfde.label;' oils_persist:tablename='metabib.flat_display_entry' oils_obj:fieldmapper='metabib::flat_display_entry' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mfde' oils_persist:readonly='true'>
+ <fields>
+ <field name='source' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='multi' reporter:datatype='bool' />
+ <field name='label' reporter:datatype='text' />
+ <field name='field' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ <link field='name' reltype='has_a' class='cdfm' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mcde.label;' oils_persist:tablename='metabib.compressed_display_entry' oils_obj:fieldmapper='metabib::compressed_display_entry' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mcde' oils_persist:readonly='true'>
+ <fields>
+ <field name='source' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='multi' reporter:datatype='bool' />
+ <field name='label' reporter:datatype='text' />
+ <field name='field' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ <link field='name' reltype='has_a' class='cdfm' key='name' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mwde.label;' oils_persist:tablename='metabib.wide_display_entry' oils_obj:fieldmapper='metabib::wide_display_entry' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='mwde' oils_persist:readonly='true'>
+ <fields oils_persist:primary='source'>
+ <field reporter:label='&field.mwde.source.label;' name='source' reporter:datatype='id' />
+ <field reporter:label='&field.mwde.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.mwde.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.mwde.subject.label;' name='subject' reporter:datatype='text' />
+ <field reporter:label='&field.mwde.creators.label;' name='creators' reporter:datatype='text' />
+ <field reporter:label='&field.mwde.isbn.label;' name='isbn' reporter:datatype='text' />
+
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cdfm.label;' oils_persist:tablename='config.display_field_map' oils_obj:fieldmapper='config::display_field_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cdfm' oils_persist:readonly='true'>
+ <fields oils_persist:primary='name'>
+ <field name='name' reporter:datatype='text' />
+ <field name='field' reporter:datatype='link' />
+ <field name='multi' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ <create global_required='true' permission='CREATE_METABIB_FIELD'></create>
+ <update global_required='true' permission='UPDATE_METABIB_FIELD'></update>
+ <delete global_required='true' permission='DELETE_METABIB_FIELD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.mfae.label;' oils_persist:tablename='metabib.facet_entry' oils_obj:fieldmapper='metabib::facet_entry' controller='open-ils.cstore open-ils.pcrud' id='mfae' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='metabib.facet_entry_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='field' reporter:datatype='link' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.mbe.label;' oils_persist:tablename='metabib.browse_entry' oils_obj:fieldmapper='metabib::browse_entry' controller='open-ils.cstore open-ils.pcrud' id='mbe' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='metabib.browse_entry_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='value' reporter:datatype='text' />
+ <field name='def_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='def_maps' reltype='has_many' class='mbedm' key='entry' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.mbedm.label;' oils_persist:tablename='metabib.browse_entry_def_map' oils_obj:fieldmapper='metabib::browse_entry_def_map' controller='open-ils.cstore open-ils.pcrud' id='mbedm' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='metabib.browse_entry_def_map_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='entry' reporter:datatype='link' />
+ <field name='def' reporter:datatype='link' />
+ <field name='source' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='entry' reltype='has_a' class='mbe' key='id' map='' />
+ <link field='def' reltype='has_a' class='cmf' key='id' map='' />
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.mbeshm.label;' oils_persist:tablename='metabib.browse_entry_simple_heading_map' oils_obj:fieldmapper='metabib::browse_entry_simple_heading_map' controller='open-ils.cstore open-ils.pcrud' id='mbeshm' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='metabib.browse_entry_simple_heading_map_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='entry' reporter:datatype='link' />
+ <field name='simple_heading' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='entry' reltype='has_a' class='mbe' key='id' map='' />
+ <link field='simple_heading' reltype='has_a' class='ash' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::field_entry' reporter:label='&class.mfe.label;' controller='open-ils.cstore open-ils.pcrud' id='mfe' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT * FROM metabib.author_field_entry
+ UNION ALL
+ SELECT * FROM metabib.keyword_field_entry
+ UNION ALL
+ SELECT * FROM metabib.identifier_field_entry
+ UNION ALL
+ SELECT * FROM metabib.title_field_entry
+ UNION ALL
+ SELECT * FROM metabib.subject_field_entry
+ UNION ALL
+ SELECT * FROM metabib.series_field_entry
+ </oils_persist:source_definition>
+ <fields>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::keyword_field_entry' reporter:label='&class.mkfe.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.keyword_field_entry' id='mkfe'>
+ <fields oils_persist:sequence='metabib.keyword_field_entry_id_seq' oils_persist:primary='id'>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='money::cash_payment' reporter:label='&class.mcp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.cash_payment' id='mcp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field name='accepting_usr' reporter:datatype='link' />
+ <field name='amount' reporter:datatype='money' />
+ <field name='amount_collected' reporter:datatype='money' />
+ <field name='cash_drawer' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='note' reporter:datatype='text' />
+ <field name='payment_ts' reporter:datatype='timestamp' />
+ <field name='xact' reporter:datatype='link' />
+ <field name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='cash_drawer' reltype='has_a' class='aws' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::forgive_payment' reporter:label='&class.mfp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.forgive_payment' id='mfp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field name='accepting_usr' reporter:datatype='link' />
+ <field name='amount' reporter:datatype='money' />
+ <field name='amount_collected' reporter:datatype='money' />
+ <field name='id' reporter:datatype='id' />
+ <field name='note' reporter:datatype='text' />
+ <field name='payment_ts' reporter:datatype='timestamp' />
+ <field name='xact' reporter:datatype='link' />
+ <field name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::account_adjustment' reporter:label='&class.maa.label;' controller='open-ils.cstore' oils_persist:tablename='money.account_adjustment' id='maa'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field name='accepting_usr' reporter:datatype='link' />
+ <field name='amount' reporter:datatype='money' />
+ <field name='amount_collected' reporter:datatype='money' />
+ <field name='id' reporter:datatype='id' />
+ <field name='note' reporter:datatype='text' />
+ <field name='payment_ts' reporter:datatype='timestamp' />
+ <field name='xact' reporter:datatype='link' />
+ <field name='billing' reporter:datatype='link' />
+ <field name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ <link field='billing' reltype='might_have' class='mb' key='id' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::record_descriptor' reporter:label='&class.mrd.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.rec_descriptor' id='mrd'>
+ <fields oils_persist:sequence='metabib.rec_descriptor_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mrd.audience.label;' name='audience' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.bib_level.label;' name='bib_level' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.cat_form.label;' name='cat_form' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.char_encoding.label;' name='char_encoding' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.control_type.label;' name='control_type' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.enc_level.label;' name='enc_level' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mrd.item_form.label;' name='item_form' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.item_lang.label;' name='item_lang' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.item_type.label;' name='item_type' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.lit_form.label;' name='lit_form' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.pub_status.label;' name='pub_status' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.mrd.type_mat.label;' name='type_mat' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.vr_format.label;' name='vr_format' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.date1.label;' name='date1' reporter:datatype='text' oils_persist:primitive='string' />
+ <field reporter:label='&field.mrd.date2.label;' name='date2' reporter:datatype='text' oils_persist:primitive='string' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='item_lang' reltype='has_a' class='clm' key='code' map='' />
+ <link field='item_type' reltype='has_a' class='citm' key='code' map='' />
+ <link field='bib_level' reltype='has_a' class='cblvl' key='code' map='' />
+ <link field='item_form' reltype='has_a' class='cifm' key='code' map='' />
+ <link field='audience' reltype='has_a' class='cam' key='code' map='' />
+ <link field='lit_form' reltype='has_a' class='clfm' key='code' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='config::standing_penalty' reporter:label='&class.csp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.standing_penalty' id='csp'>
+ <fields oils_persist:sequence='config.standing_penalty_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.csp.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.csp.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.csp.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.csp.block_list.label;' name='block_list' reporter:datatype='text' />
+ <field reporter:label='&field.csp.staff_alert.label;' name='staff_alert' reporter:datatype='bool' />
+ <field reporter:label='&field.csp.org_depth.label;' name='org_depth' reporter:datatype='int' />
+ <field reporter:label='&field.csp.ignore_proximity.label;' name='ignore_proximity' reporter:datatype='int' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_STANDING_PENALTY'></create>
+ <retrieve global_required='true' permission='ADMIN_STANDING_PENALTY VIEW_STANDING_PENALTY'></retrieve>
+ <update global_required='true' permission='ADMIN_STANDING_PENALTY'></update>
+ <delete global_required='true' permission='ADMIN_STANDING_PENALTY'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='permission::grp_penalty_threshold' reporter:label='&class.pgpt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='permission.grp_penalty_threshold' id='pgpt'>
+ <fields oils_persist:sequence='permission.grp_penalty_threshold_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.pgpt.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.pgpt.grp.label;' name='grp' reporter:datatype='link' />
+ <field reporter:label='&field.pgpt.penalty.label;' name='penalty' reporter:datatype='link' />
+ <field reporter:label='&field.pgpt.threshold.label;' name='threshold' reporter:datatype='float' />
+ <field reporter:label='&field.pgpt.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='penalty' reltype='has_a' class='csp' key='id' map='' />
+ <link field='grp' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_GROUP_PENALTY_THRESHOLD'></create>
+ <retrieve context_field='org_unit' permission='VIEW_GROUP_PENALTY_THRESHOLD ADMIN_GROUP_PENALTY_THRESHOLD'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_GROUP_PENALTY_THRESHOLD'></update>
+ <delete context_field='org_unit' permission='ADMIN_GROUP_PENALTY_THRESHOLD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.ccs.label;' oils_persist:tablename='config.copy_status' oils_obj:fieldmapper='config::copy_status' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='ccs' oils_persist:restrict_primary='100'>
+ <fields oils_persist:sequence='config.copy_status_id_seq' oils_persist:primary='id'>
+ <field name='holdable' reporter:datatype='bool' />
+ <field name='id' reporter:datatype='id' reporter:selector='name' />
+ <field name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='opac_visible' reporter:datatype='bool' />
+ <field name='copy_active' reporter:datatype='bool' />
+ <field name='restrict_copy_delete' reporter:datatype='bool' />
+ <field name='is_available' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_COPY_STATUS'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_COPY_STATUS'></update>
+ <delete global_required='true' permission='DELETE_COPY_STATUS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.ausp.label;' oils_persist:tablename='actor.usr_standing_penalty' oils_obj:fieldmapper='actor::user_standing_penalty' controller='open-ils.cstore open-ils.pcrud' id='ausp' oils_persist:restrict_primary='100'>
+ <fields oils_persist:sequence='actor.usr_standing_penalty_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ausp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ausp.set_date.label;' name='set_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ausp.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.ausp.staff.label;' name='staff' reporter:datatype='link' />
+ <field reporter:label='&field.ausp.standing_penalty.label;' name='standing_penalty' reporter:datatype='link' />
+ <field reporter:label='&field.ausp.org_unit.label;' name='org_unit' reporter:datatype='link' />
+ <field reporter:label='&field.ausp.stop_date.label;' name='stop_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ausp.note.label;' name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='standing_penalty' reltype='has_a' class='csp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='UPDATE_USER'><context field='home_ou' link='usr'></context></create>
+ <retrieve permission='VIEW_USER'><context field='home_ou' link='usr'></context></retrieve>
+ <update permission='UPDATE_USER'><context field='home_ou' link='usr'></context></update>
+ <delete permission='UPDATE_USER'><context field='home_ou' link='usr'></context></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::user_address' reporter:label='&class.aua.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.usr_address' id='aua'>
+ <fields oils_persist:sequence='actor.usr_address_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aua.address_type.label;' name='address_type' reporter:datatype='text' />
+ <field reporter:label='&field.aua.city.label;' name='city' reporter:datatype='text' />
+ <field reporter:label='&field.aua.country.label;' name='country' reporter:datatype='text' />
+ <field reporter:label='&field.aua.county.label;' name='county' reporter:datatype='text' />
+ <field reporter:label='&field.aua.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aua.post_code.label;' name='post_code' reporter:datatype='text' />
+ <field reporter:label='&field.aua.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.aua.street1.label;' name='street1' reporter:datatype='text' />
+ <field reporter:label='&field.aua.street2.label;' name='street2' reporter:datatype='text' />
+ <field reporter:label='&field.aua.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aua.valid.label;' name='valid' reporter:datatype='bool' />
+ <field reporter:label='&field.aua.within_city_limits.label;' name='within_city_limits' reporter:datatype='bool' />
+ <field reporter:label='&field.aua.replaces.label;' name='replaces' reporter:datatype='link' />
+ <field reporter:label='&field.aua.pending.label;' name='pending' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='replaces' reltype='has_a' class='aua' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='UPDATE_USER'><context field='home_ou' link='usr'></context></create>
+ <retrieve permission='VIEW_USER'><context field='home_ou' link='usr'></context></retrieve>
+ <update permission='UPDATE_USER'><context field='home_ou' link='usr'></context></update>
+ <delete permission='UPDATE_USER'><context field='home_ou' link='usr'></context></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::address_alert' reporter:label='&class.aal.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.address_alert' id='aal'>
+ <fields oils_persist:sequence='actor.address_alert_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aal.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aal.owner.label;' name='owner' reporter:datatype='org_unit' oils_obj:required='true' />
+ <field reporter:label='&field.aal.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.aal.match_all.label;' name='match_all' reporter:datatype='bool' />
+ <field reporter:label='&field.aal.alert_message.label;' name='alert_message' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.aal.street1.label;' name='street1' reporter:datatype='text' />
+ <field reporter:label='&field.aal.street2.label;' name='street2' reporter:datatype='text' />
+ <field reporter:label='&field.aal.city.label;' name='city' reporter:datatype='text' />
+ <field reporter:label='&field.aal.county.label;' name='county' reporter:datatype='text' />
+ <field reporter:label='&field.aal.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.aal.country.label;' name='country' reporter:datatype='text' />
+ <field reporter:label='&field.aal.post_code.label;' name='post_code' reporter:datatype='text' />
+ <field reporter:label='&field.aal.mailing_address.label;' name='mailing_address' reporter:datatype='bool' />
+ <field reporter:label='&field.aal.billing_address.label;' name='billing_address' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_ADDRESS_ALERT'></create>
+ <retrieve context_field='owner' permission='ADMIN_ADDRESS_ALERT VIEW_ADDRESS_ALERT CREATE_USER'></retrieve>
+ <update context_field='owner' permission='ADMIN_ADDRESS_ALERT'></update>
+ <delete context_field='owner' permission='ADMIN_ADDRESS_ALERT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class oils_obj:fieldmapper='actor::usr_saved_search' reporter:label='&class.auss.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.usr_saved_search' id='auss'>
+ <fields oils_persist:sequence='actor.usr_saved_search_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auss.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.auss.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.auss.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.auss.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.auss.query_text.label;' name='query_text' reporter:datatype='text' />
+ <field reporter:label='&field.auss.query_type.label;' name='query_type' reporter:datatype='text' />
+ <field reporter:label='&field.auss.target.label;' name='target' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='asset::call_number_note' reporter:label='&class.acnn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.call_number_note' id='acnn'>
+ <fields oils_persist:sequence='asset.call_number_note_id_seq' oils_persist:primary='id'>
+ <field name='call_number' />
+ <field name='create_date' reporter:datatype='timestamp' />
+ <field name='creator' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='pub' reporter:datatype='bool' />
+ <field name='title' reporter:datatype='text' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='call_number' reltype='has_a' class='acn' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_VOLUME_NOTE'>
+ <context field='owning_lib' link='call_number'></context>
+ </create>
+ <retrieve permission='VIEW_VOLUME_NOTES'>
+ <context field='owning_lib' link='call_number'></context>
+ </retrieve>
+ <update permission='UPDATE_VOLUME_NOTE'>
+ <context field='owning_lib' link='call_number'></context>
+ </update>
+ <delete permission='DELETE_VOLUME_NOTE'>
+ <context field='owning_lib' link='call_number'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='authority::record_note' reporter:label='&class.arn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='authority.record_note' id='arn'>
+ <fields oils_persist:sequence='authority.record_note_id_seq' oils_persist:primary='id'>
+ <field name='create_date' reporter:datatype='timestamp' />
+ <field name='creator' reporter:datatype='link' />
+ <field name='edit_date' reporter:datatype='timestamp' />
+ <field name='editor' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='record' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='are' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_AUTHORITY_RECORD_NOTE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_AUTHORITY_RECORD_NOTE'></update>
+ <delete global_required='true' permission='DELETE_AUTHORITY_RECORD_NOTE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::open_circ_count' reporter:label='&class.ocirccount.label;' controller='open-ils.cstore' id='ocirccount' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+SELECT usr,
+ SUM(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date >= 'today') OR (fine_interval < '1 day' AND due_date > 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN 1
+ ELSE 0
+ END
+ ) AS out,
+
+ SUM(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date < 'today') OR (fine_interval < '1 day' AND due_date < 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN 1
+ ELSE 0
+ END
+ ) AS overdue,
+
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LOST') THEN 1 ELSE 0 END) AS lost,
+ SUM( CASE WHEN stop_fines = 'CLAIMSRETURNED' THEN 1 ELSE 0 END) AS claims_returned,
+ SUM( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LONGOVERDUE') THEN 1 ELSE 0 END) AS long_overdue
+ FROM action.circulation
+ WHERE checkin_time IS NULL
+ GROUP BY 1
+ </oils_persist:source_definition>
+ <fields oils_persist:primary='usr'>
+ <field reporter:label='&field.ocirccount.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.ocirccount.out.label;' name='out' reporter:datatype='text' />
+ <field reporter:label='&field.ocirccount.overdue.label;' name='overdue' reporter:datatype='text' />
+ <field reporter:label='&field.ocirccount.lost.label;' name='lost' reporter:datatype='text' />
+ <field reporter:label='&field.ocirccount.claims_returned.label;' name='claims_returned' reporter:datatype='text' />
+ <field reporter:label='&field.ocirccount.long_overdue.label;' name='long_overdue' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='action::open_circ_list' reporter:label='&class.ocirclist.label;' controller='open-ils.cstore' id='ocirclist' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+SELECT usr,
+ STRING_AGG(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date >= 'today') OR (fine_interval < '1 day' AND due_date > 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN id::TEXT
+ ELSE '0'
+ END
+ ,',') AS out,
+
+ STRING_AGG(
+ CASE
+ WHEN (
+ ((fine_interval >= '1 day' AND due_date < 'today') OR (fine_interval < '1 day' AND due_date < 'now'))
+ AND (stop_fines IS NULL OR stop_fines NOT IN ('LOST','CLAIMSRETURNED','LONGOVERDUE'))
+ ) THEN id::TEXT
+ ELSE '0'
+ END
+ ,',') AS overdue,
+
+ STRING_AGG( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LOST') THEN id::TEXT ELSE '0' END,',') AS lost,
+ STRING_AGG( CASE WHEN stop_fines = 'CLAIMSRETURNED' THEN id::TEXT ELSE '0' END,',') AS claims_returned,
+ STRING_AGG( CASE WHEN (xact_finish IS NULL AND stop_fines = 'LONGOVERDUE') THEN id::TEXT ELSE '0' END,',') AS long_overdue
+ FROM action.circulation
+ WHERE checkin_time IS NULL
+ GROUP BY 1
+ </oils_persist:source_definition>
+ <fields oils_persist:primary='usr'>
+ <field reporter:label='&field.ocirclist.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.ocirclist.out.label;' name='out' reporter:datatype='text' />
+ <field reporter:label='&field.ocirclist.overdue.label;' name='overdue' reporter:datatype='text' />
+ <field reporter:label='&field.ocirclist.lost.label;' name='lost' reporter:datatype='text' />
+ <field reporter:label='&field.ocirclist.claims_returned.label;' name='claims_returned' reporter:datatype='text' />
+ <field reporter:label='&field.ocirclist.long_overdue.label;' name='long_overdue' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.circ.label;' oils_persist:tablename='action.circulation' reporter:core='true' oils_obj:fieldmapper='action::circulation' controller='open-ils.cstore open-ils.pcrud' id='circ'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.circ.checkin_lib.label;' name='checkin_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.circ.checkin_staff.label;' name='checkin_staff' reporter:datatype='link' />
+ <field reporter:label='&field.circ.checkin_time.label;' name='checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.circ.circ_staff.label;' name='circ_staff' reporter:datatype='link' />
+ <field reporter:label='&field.circ.desk_renewal.label;' name='desk_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.circ.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.duration.label;' name='duration' reporter:datatype='interval' />
+ <field reporter:label='&field.circ.duration_rule.label;' name='duration_rule' reporter:datatype='link' />
+ <field reporter:label='&field.circ.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.circ.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.circ.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.circ.max_fine_rule.label;' name='max_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.circ.opac_renewal.label;' name='opac_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.circ.phone_renewal.label;' name='phone_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.circ.recurring_fine.label;' name='recurring_fine' reporter:datatype='money' />
+ <field reporter:label='&field.circ.recurring_fine_rule.label;' name='recurring_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.circ.renewal_remaining.label;' name='renewal_remaining' reporter:datatype='int' />
+ <field reporter:label='&field.circ.grace_period.label;' name='grace_period' reporter:datatype='interval' />
+ <field reporter:label='&field.circ.stop_fines.label;' name='stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.circ.stop_fines_time.label;' name='stop_fines_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.circ.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.circ.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.workstation.label;' name='workstation' reporter:datatype='link' />
+ <field reporter:label='&field.circ.checkin_workstation.label;' name='checkin_workstation' reporter:datatype='link' />
+ <field reporter:label='&field.circ.checkin_scan_time.label;' name='checkin_scan_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.circ.parent_circ.label;' name='parent_circ' reporter:datatype='link' />
+ <field reporter:label='&field.circ.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.billable_transaction.label;' name='billable_transaction' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.circ_type.label;' name='circ_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.unrecovered.label;' name='unrecovered' reporter:datatype='bool' />
+ <field reporter:label='&field.circ.copy_location.label;' name='copy_location' reporter:datatype='link' />
+ <field reporter:label='&field.circ.aaactsc_entries.label;' name='aaactsc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.circ.aaasc_entries.label;' name='aaasc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='billable_transaction' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='circ_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='checkin_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='checkin_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+ <link field='circ_type' reltype='might_have' class='rcirct' key='id' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ <link field='workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='checkin_workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='parent_circ' reltype='has_a' class='circ' key='id' map='' />
+ <link field='renewals' reltype='has_many' class='circ' key='parent_circ' map='' />
+ <link field='copy_location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='aaactsc_entries' reltype='has_many' class='aaactsc' key='xact' map='' />
+ <link field='aaasc_entries' reltype='has_many' class='aaasc' key='xact' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='circ_lib' permission='VIEW_CIRCULATIONS'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.aacct.label;' oils_persist:tablename='action.all_circulation_combined_types' reporter:core='true' oils_obj:fieldmapper='action::all_circulation_combined_types' controller='open-ils.cstore open-ils.pcrud' id='aacct' oils_persist:readonly='true'>
+ <fields>
+ <field reporter:label='&field.aacct.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aacct.circ_staff.label;' name='circ_staff' reporter:datatype='link' />
+ <field reporter:label='&field.aacct.id.label;' name='id' reporter:datatype='int' />
+ <field reporter:label='&field.aacct.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacct.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacct.circ_type.label;' name='circ_type' reporter:datatype='text' />
+ <field reporter:label='&field.aacct.item_type.label;' name='item_type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='circ_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='circ_lib' permission='VIEW_CIRCULATIONS'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.aacs.label;' oils_persist:tablename='action.all_circulation_slim' reporter:core='true' oils_obj:fieldmapper='action::all_circulation_slim' controller='open-ils.cstore open-ils.pcrud' id='aacs' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aacs.checkin_lib.label;' name='checkin_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aacs.checkin_staff.label;' name='checkin_staff' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.checkin_time.label;' name='checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aacs.circ_staff.label;' name='circ_staff' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.desk_renewal.label;' name='desk_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.aacs.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.duration.label;' name='duration' reporter:datatype='interval' />
+ <field reporter:label='&field.aacs.duration_rule.label;' name='duration_rule' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.aacs.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aacs.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.aacs.max_fine_rule.label;' name='max_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.opac_renewal.label;' name='opac_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.aacs.phone_renewal.label;' name='phone_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.aacs.recurring_fine.label;' name='recurring_fine' reporter:datatype='money' />
+ <field reporter:label='&field.aacs.recurring_fine_rule.label;' name='recurring_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.renewal_remaining.label;' name='renewal_remaining' reporter:datatype='int' />
+ <field reporter:label='&field.aacs.grace_period.label;' name='grace_period' reporter:datatype='interval' />
+ <field reporter:label='&field.aacs.stop_fines.label;' name='stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.aacs.stop_fines_time.label;' name='stop_fines_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.parent_circ.label;' name='parent_circ' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.checkin_scan_time.label;' name='checkin_scan_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aacs.checkin_workstation.label;' name='checkin_workstation' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.billable_transaction.label;' name='billable_transaction' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.workstation.label;' name='workstation' reporter:datatype='link' />
+ <field reporter:label='&field.aacs.circ_type.label;' name='circ_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.aaactsc_entries.label;' name='aaactsc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.aaasc_entries.label;' name='aaasc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.active_circ.label;' name='active_circ' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aacs.aged_circ.label;' name='aged_circ' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='billable_transaction' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='circ_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='checkin_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='checkin_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+ <link field='circ_type' reltype='might_have' class='rcirct' key='id' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ <link field='workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='checkin_workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='aaactsc_entries' reltype='has_many' class='aaactsc' key='xact' map='' />
+ <link field='aaasc_entries' reltype='has_many' class='aaasc' key='xact' map='' />
+ <link field='active_circ' reltype='might_have' class='circ' key='id' map='' />
+ <link field='aged_circ' reltype='might_have' class='acirc' key='id' map='' />
+ <link field='parent_circ' reltype='might_have' class='acirc' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='circ_lib' permission='VIEW_CIRCULATIONS'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.combcirc.label;' oils_persist:tablename='action.all_circulation' reporter:core='true' oils_obj:fieldmapper='action::all_circulation' controller='open-ils.cstore open-ils.pcrud' id='combcirc' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.combcirc.checkin_lib.label;' name='checkin_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combcirc.checkin_staff.label;' name='checkin_staff' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.checkin_time.label;' name='checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combcirc.circ_staff.label;' name='circ_staff' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.desk_renewal.label;' name='desk_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.combcirc.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.duration.label;' name='duration' reporter:datatype='interval' />
+ <field reporter:label='&field.combcirc.duration_rule.label;' name='duration_rule' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.combcirc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.combcirc.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.combcirc.max_fine_rule.label;' name='max_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.opac_renewal.label;' name='opac_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.combcirc.phone_renewal.label;' name='phone_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.combcirc.recurring_fine.label;' name='recurring_fine' reporter:datatype='money' />
+ <field reporter:label='&field.combcirc.recurring_fine_rule.label;' name='recurring_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.renewal_remaining.label;' name='renewal_remaining' reporter:datatype='int' />
+ <field reporter:label='&field.combcirc.grace_period.label;' name='grace_period' reporter:datatype='interval' />
+ <field reporter:label='&field.combcirc.stop_fines.label;' name='stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.combcirc.stop_fines_time.label;' name='stop_fines_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.usr_post_code.label;' name='usr_post_code' reporter:datatype='text' />
+ <field reporter:label='&field.combcirc.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.parent_circ.label;' name='parent_circ' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.checkin_scan_time.label;' name='checkin_scan_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combcirc.checkin_workstation.label;' name='checkin_workstation' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.billable_transaction.label;' name='billable_transaction' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.workstation.label;' name='workstation' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.circ_type.label;' name='circ_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.usr_home_ou.label;' name='usr_home_ou' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.usr_profile.label;' name='usr_profile' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.usr_birth_year.label;' name='usr_birth_year' reporter:datatype='int' />
+ <field reporter:label='&field.combcirc.copy_call_number.label;' name='copy_call_number' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.copy_location.label;' name='copy_location' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.copy_owning_lib.label;' name='copy_owning_lib' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.copy_circ_lib.label;' name='copy_circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.copy_bib_record.label;' name='copy_bib_record' reporter:datatype='link' />
+ <field reporter:label='&field.combcirc.aaactsc_entries.label;' name='aaactsc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.aaasc_entries.label;' name='aaasc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.active_circ.label;' name='active_circ' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combcirc.aged_circ.label;' name='aged_circ' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='billable_transaction' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='circ_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='checkin_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='checkin_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+ <link field='circ_type' reltype='might_have' class='rcirct' key='id' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ <link field='copy_call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='copy_location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='copy_owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='checkin_workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='copy_bib_record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='aaactsc_entries' reltype='has_many' class='aaactsc' key='xact' map='' />
+ <link field='aaasc_entries' reltype='has_many' class='aaasc' key='xact' map='' />
+ <link field='usr_home_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_profile' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='active_circ' reltype='might_have' class='circ' key='id' map='' />
+ <link field='aged_circ' reltype='might_have' class='acirc' key='id' map='' />
+ <link field='parent_circ' reltype='might_have' class='acirc' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='circ_lib' permission='VIEW_CIRCULATIONS'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.acirc.label;' oils_persist:tablename='action.aged_circulation' reporter:core='true' oils_obj:fieldmapper='action::aged_circulation' controller='open-ils.cstore' id='acirc'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acirc.checkin_lib.label;' name='checkin_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acirc.checkin_staff.label;' name='checkin_staff' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.checkin_time.label;' name='checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acirc.circ_staff.label;' name='circ_staff' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.desk_renewal.label;' name='desk_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.acirc.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.duration.label;' name='duration' reporter:datatype='interval' />
+ <field reporter:label='&field.acirc.duration_rule.label;' name='duration_rule' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.acirc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acirc.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.acirc.max_fine_rule.label;' name='max_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.opac_renewal.label;' name='opac_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.acirc.phone_renewal.label;' name='phone_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.acirc.recurring_fine.label;' name='recurring_fine' reporter:datatype='money' />
+ <field reporter:label='&field.acirc.recurring_fine_rule.label;' name='recurring_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.renewal_remaining.label;' name='renewal_remaining' reporter:datatype='int' />
+ <field reporter:label='&field.acirc.grace_period.label;' name='grace_period' reporter:datatype='interval' />
+ <field reporter:label='&field.acirc.stop_fines.label;' name='stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.acirc.stop_fines_time.label;' name='stop_fines_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.usr_post_code.label;' name='usr_post_code' reporter:datatype='text' />
+ <field reporter:label='&field.acirc.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.workstation.label;' name='workstation' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.checkin_workstation.label;' name='checkin_workstation' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.checkin_scan_time.label;' name='checkin_scan_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acirc.parent_circ.label;' name='parent_circ' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.billable_transaction.label;' name='billable_transaction' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.circ_type.label;' name='circ_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.usr_home_ou.label;' name='usr_home_ou' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.usr_profile.label;' name='usr_profile' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.usr_birth_year.label;' name='usr_birth_year' reporter:datatype='int' />
+ <field reporter:label='&field.acirc.copy_call_number.label;' name='copy_call_number' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.copy_location.label;' name='copy_location' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.copy_owning_lib.label;' name='copy_owning_lib' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.copy_circ_lib.label;' name='copy_circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.copy_bib_record.label;' name='copy_bib_record' reporter:datatype='link' />
+ <field reporter:label='&field.acirc.aaactsc_entries.label;' name='aaactsc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acirc.aaasc_entries.label;' name='aaasc_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='billable_transaction' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='circ_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='checkin_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='checkin_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+ <link field='circ_type' reltype='might_have' class='rcirct' key='id' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ <link field='copy_call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='copy_location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='copy_owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_bib_record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='checkin_workstation' reltype='has_a' class='aws' key='id' map='' />
+ <link field='parent_circ' reltype='might_have' class='circ' key='id' map='' />
+ <link field='renewals' reltype='has_many' class='circ' key='parent_circ' map='' />
+ <link field='aaactsc_entries' reltype='has_many' class='aaactsc' key='xact' map='' />
+ <link field='aaasc_entries' reltype='has_many' class='aaasc' key='xact' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='action::user_circ_history' reporter:label='&class.auch.label;' controller='open-ils.cstore' oils_persist:tablename='action.usr_circ_history' id='auch'>
+ <fields oils_persist:sequence='action.usr_circ_history_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.auch.id.label;' name='id' reporter:datatype='id' />
+
+ <field reporter:label='&field.auch.usr.label;' name='usr' reporter:datatype='link' suppress_controller='open-ils.reporter-store' />
+ <field reporter:label='&field.auch.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.auch.checkin_time.label;' name='checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.auch.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.auch.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.auch.source_circ.label;' name='source_circ' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='source_circ' reltype='has_a' class='circ' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='booking::resource_type' reporter:label='&class.brt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.resource_type' id='brt'>
+ <fields oils_persist:sequence='booking.resource_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.brt.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.brt.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.brt.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.brt.fine_amount.label;' name='fine_amount' reporter:datatype='money' />
+ <field reporter:label='&field.brt.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.brt.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.brt.catalog_item.label;' name='catalog_item' reporter:datatype='bool' />
+ <field reporter:label='&field.brt.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.brt.transferable.label;' name='transferable' reporter:datatype='bool' />
+ <field reporter:label='&field.brt.elbow_room.label;' name='elbow_room' reporter:datatype='interval' />
+ <field reporter:label='&field.brt.resources.label;' name='resources' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.brt.resource_attrs.label;' name='resource_attrs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.brt.tgt_rsrc_types.label;' name='tgt_rsrc_types' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='resources' reltype='has_many' class='brsrc' key='type' map='' />
+ <link field='resource_attrs' reltype='has_many' class='bra' key='type' map='' />
+ <link field='tgt_rsrc_types' reltype='has_many' class='bresv' key='type' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_BOOKING_RESOURCE_TYPE'></create>
+ <retrieve context_field='owner' permission='ADMIN_BOOKING_RESOURCE_TYPE'></retrieve>
+ <update context_field='owner' permission='ADMIN_BOOKING_RESOURCE_TYPE'></update>
+ <delete context_field='owner' permission='ADMIN_BOOKING_RESOURCE_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='booking::resource' reporter:label='&class.brsrc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.resource' id='brsrc'>
+ <fields oils_persist:sequence='booking.resource_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.brsrc.id.label;' name='id' reporter:datatype='id' reporter:selector='barcode' />
+ <field reporter:label='&field.brsrc.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.brsrc.type.label;' name='type' reporter:datatype='link' />
+ <field reporter:label='&field.brsrc.overbook.label;' name='overbook' reporter:datatype='bool' />
+ <field reporter:label='&field.brsrc.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.brsrc.deposit.label;' name='deposit' reporter:datatype='bool' />
+ <field reporter:label='&field.brsrc.deposit_amount.label;' name='deposit_amount' reporter:datatype='money' />
+ <field reporter:label='&field.brsrc.user_fee.label;' name='user_fee' reporter:datatype='money' />
+ <field reporter:label='&field.brsrc.attr_maps.label;' name='attr_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.brsrc.tgt_rsrcs.label;' name='tgt_rsrcs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.brsrc.curr_rsrcs.label;' name='curr_rsrcs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.brsrc.catalog_item.label;' name='catalog_item' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='type' reltype='has_a' class='brt' key='id' map='' />
+ <link field='attr_maps' reltype='has_many' class='bram' key='resource' map='' />
+ <link field='tgt_rsrcs' reltype='has_many' class='bresv' key='targeted_resource' map='' />
+ <link field='curr_rsrcs' reltype='has_many' class='bresv' key='current_resource' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_BOOKING_RESOURCE'></create>
+ <retrieve context_field='owner' permission='ADMIN_BOOKING_RESOURCE'></retrieve>
+ <update context_field='owner' permission='ADMIN_BOOKING_RESOURCE'></update>
+ <delete context_field='owner' permission='ADMIN_BOOKING_RESOURCE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='booking::resource_attr' reporter:label='&class.bra.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.resource_attr' id='bra'>
+ <fields oils_persist:sequence='booking.resource_attr_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bra.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.bra.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.bra.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.bra.resource_type.label;' name='resource_type' reporter:datatype='link' />
+ <field reporter:label='&field.bra.required.label;' name='required' reporter:datatype='bool' />
+ <field reporter:label='&field.bra.valid_values.label;' name='valid_values' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bra.attr_maps.label;' name='attr_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='resource_type' reltype='has_a' class='brt' key='id' map='' />
+ <link field='valid_values' reltype='has_many' class='brav' key='attr' map='' />
+ <link field='attr_maps' reltype='has_many' class='bram' key='attr' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR'></create>
+ <retrieve context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR'></retrieve>
+ <update context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR'></update>
+ <delete context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='booking::resource_attr_value' reporter:label='&class.brav.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.resource_attr_value' id='brav'>
+ <fields oils_persist:sequence='booking.resource_attr_value_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.brav.id.label;' name='id' reporter:datatype='id' reporter:selector='valid_value' />
+ <field reporter:label='&field.brav.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.brav.attr.label;' name='attr' reporter:datatype='link' />
+ <field reporter:label='&field.brav.valid_value.label;' name='valid_value' reporter:datatype='text' />
+ <field reporter:label='&field.brav.attr_maps.label;' name='attr_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.brav.attr_val_maps.label;' name='attr_val_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='attr' reltype='has_a' class='bra' key='id' map='' />
+ <link field='attr_maps' reltype='has_many' class='bram' key='id' map='' />
+ <link field='attr_val_maps' reltype='has_many' class='bravm' key='attr_value' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR_VALUE'></create>
+ <retrieve context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR_VALUE'></retrieve>
+ <update context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR_VALUE'></update>
+ <delete context_field='owner' permission='ADMIN_BOOKING_RESOURCE_ATTR_VALUE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='booking::resource_attr_map' reporter:label='&class.bram.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.resource_attr_map' id='bram'>
+ <fields oils_persist:sequence='booking.resource_attr_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bram.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.bram.resource.label;' name='resource' reporter:datatype='link' />
+ <field reporter:label='&field.bram.resource_attr.label;' name='resource_attr' reporter:datatype='link' />
+ <field reporter:label='&field.bram.value.label;' name='value' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='resource' reltype='has_a' class='brsrc' key='id' map='' />
+ <link field='resource_attr' reltype='has_a' class='bra' key='id' map='' />
+ <link field='value' reltype='has_a' class='brav' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_BOOKING_RESOURCE_ATTR_MAP'>
+ <context field='owner' link='resource'></context>
+ </create>
+ <retrieve permission='ADMIN_BOOKING_RESOURCE_ATTR_MAP'>
+ <context field='owner' link='resource'></context>
+ </retrieve>
+ <update permission='ADMIN_BOOKING_RESOURCE_ATTR_MAP'>
+ <context field='owner' link='resource'></context>
+ </update>
+ <delete permission='ADMIN_BOOKING_RESOURCE_ATTR_MAP'>
+ <context field='owner' link='resource'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='booking::reservation' reporter:label='&class.bresv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.reservation' id='bresv'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bresv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.bresv.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.unrecovered.label;' name='unrecovered' reporter:datatype='bool' />
+ <field reporter:label='&field.bresv.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bresv.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bresv.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.bresv.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.bresv.summary.label;' name='summary' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.bresv.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.start_time.label;' name='start_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.end_time.label;' name='end_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.capture_time.label;' name='capture_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.pickup_time.label;' name='pickup_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.return_time.label;' name='return_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.bresv.booking_interval.label;' name='booking_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.bresv.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.bresv.fine_amount.label;' name='fine_amount' reporter:datatype='money' />
+ <field reporter:label='&field.bresv.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.bresv.target_resource_type.label;' name='target_resource_type' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.target_resource.label;' name='target_resource' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.current_resource.label;' name='current_resource' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.request_lib.label;' name='request_lib' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.pickup_lib.label;' name='pickup_lib' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.capture_staff.label;' name='capture_staff' reporter:datatype='link' />
+ <field reporter:label='&field.bresv.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.bresv.attr_val_maps.label;' name='attr_val_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ <link field='summary' reltype='might_have' class='mbts' key='id' map='' />
+ <link field='target_resource_type' reltype='has_a' class='brt' key='id' map='' />
+ <link field='target_resource' reltype='has_a' class='brsrc' key='id' map='' />
+ <link field='current_resource' reltype='has_a' class='brsrc' key='id' map='' />
+ <link field='request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='pickup_lib' reltype='might_have' class='aou' key='id' map='' />
+ <link field='capture_staff' reltype='might_have' class='au' key='id' map='' />
+ <link field='attr_val_maps' reltype='has_many' class='bravm' key='reservation' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_BOOKING_RESERVATION'></create>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ <update global_required='true' permission='ADMIN_BOOKING_RESERVATION'></update>
+ <delete global_required='true' permission='ADMIN_BOOKING_RESERVATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='booking::reservation_attr_value_map' reporter:label='&class.bravm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='booking.reservation_attr_value_map' id='bravm'>
+ <fields oils_persist:sequence='booking.reservation_attr_value_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.bravm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.bravm.reservation.label;' name='reservation' reporter:datatype='link' />
+ <field reporter:label='&field.bravm.attr_value.label;' name='attr_value' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='reservation' reltype='has_a' class='bresv' key='id' map='' />
+ <link field='attr_value' reltype='has_a' class='brav' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_BOOKING_RESERVATION_ATTR_MAP'></create>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ <update global_required='true' permission='ADMIN_BOOKING_RESERVATION_ATTR_MAP'></update>
+ <delete global_required='true' permission='ADMIN_BOOKING_RESERVATION_ATTR_MAP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='container::call_number_bucket_item' reporter:label='&class.ccnbi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.call_number_bucket_item' id='ccnbi'>
+ <fields oils_persist:sequence='container.call_number_bucket_item_id_seq' oils_persist:primary='id'>
+ <field name='bucket' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='target_call_number' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='pos' reporter:datatype='int' />
+ <field name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='target_call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='bucket' reltype='has_a' class='ccnb' key='id' map='' />
+ <link field='notes' reltype='has_many' class='ccnbin' key='item' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_CALLNUMBER_BUCKET'>
+ <context link='bucket' owning_lib='owning_lib'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::call_number_bucket_item_note' reporter:label='&class.ccnbin.label;' controller='open-ils.cstore' oils_persist:tablename='container.call_number_bucket_item_note' id='ccnbin'>
+ <fields oils_persist:sequence='container.call_number_bucket_item_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='item' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='item' reltype='has_a' class='ccnbi' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='container::biblio_record_entry_bucket' reporter:label='&class.cbreb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.biblio_record_entry_bucket' id='cbreb'>
+ <fields oils_persist:sequence='container.biblio_record_entry_bucket_id_seq' oils_persist:primary='id'>
+ <field name='items' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='btype' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='description' reporter:datatype='text' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='pub' reporter:datatype='bool' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='items' reltype='has_many' class='cbrebi' key='bucket' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create owning_user='owner' context='owning_lib' permission='CREATE_BIB_BUCKET ADMIN_BIB_BUCKET'></create>
+ <retrieve owning_user='owner' context='owning_lib' permission='CREATE_BIB_BUCKET ADMIN_BIB_BUCKET'></retrieve>
+ <update owning_user='owner' context='owning_lib' permission='CREATE_BIB_BUCKET ADMIN_BIB_BUCKET'></update>
+ <delete owning_user='owner' context='owning_lib' permission='CREATE_BIB_BUCKET ADMIN_BIB_BUCKET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::biblio_record_entry_bucket_note' reporter:label='&class.cbrebn.label;' controller='open-ils.cstore' oils_persist:tablename='container.biblio_record_entry_bucket_note' id='cbrebn'>
+ <fields oils_persist:sequence='container.biblio_record_entry_bucket_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='bucket' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='bucket' reltype='has_a' class='cbreb' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='action::hold_copy_map' reporter:label='&class.ahcm.label;' controller='open-ils.cstore' oils_persist:tablename='action.hold_copy_map' id='ahcm'>
+ <fields oils_persist:sequence='action.hold_copy_map_id_seq' oils_persist:primary='id'>
+ <field name='hold' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='target_copy' reporter:datatype='link' />
+ <field name='proximity' reporter:datatype='number' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='action::hold_notification' reporter:label='&class.ahn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.hold_notification' id='ahn'>
+ <fields oils_persist:sequence='action.hold_notification_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ahn.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.ahn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahn.method.label;' name='method' reporter:datatype='text' />
+ <field reporter:label='&field.ahn.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.ahn.notify_staff.label;' name='notify_staff' reporter:datatype='link' />
+ <field reporter:label='&field.ahn.notify_time.label;' name='notify_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='notify_staff' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_HOLD_NOTIFICATION'>
+ <context jump='usr' field='home_ou' link='hold'></context>
+ </create>
+ <retrieve permission='VIEW_HOLD_NOTIFICATION'>
+ <context jump='usr' field='home_ou' link='hold'></context>
+ </retrieve>
+ <update permission='CREATE_HOLD_NOTIFICATION'>
+ <context jump='usr' field='home_ou' link='hold'></context>
+ </update>
+ <delete permission='CREATE_HOLD_NOTIFICATION'>
+ <context jump='usr' field='home_ou' link='hold'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.acpl.label;' oils_persist:tablename='asset.copy_location' oils_obj:fieldmapper='asset::copy_location' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acpl'>
+ <fields oils_persist:sequence='asset.copy_location_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acpl.circulate.label;' name='circulate' reporter:datatype='bool' />
+ <field reporter:label='&field.acpl.holdable.label;' name='holdable' reporter:datatype='bool' />
+ <field reporter:label='&field.acpl.hold_verify.label;' name='hold_verify' reporter:datatype='bool' />
+ <field reporter:label='&field.acpl.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acpl.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acpl.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.acpl.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acpl.orders.label;' name='orders' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acpl.copies.label;' name='copies' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acpl.label_prefix.label;' name='label_prefix' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acpl.label_suffix.label;' name='label_suffix' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acpl.checkin_alert.label;' name='checkin_alert' reporter:datatype='bool' />
+ <field reporter:label='&field.acpl.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.acpl.url.label;' name='url' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='distribution_formula_entries' reltype='has_many' class='acqdfe' key='location' map='' />
+ <link field='orders' reltype='has_many' class='acplo' key='location' map='' />
+ <link field='copies' reltype='has_many' class='acp' key='location' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='CREATE_COPY_LOCATION'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='UPDATE_COPY_LOCATION'></update>
+ <delete context_field='owning_lib' permission='DELETE_COPY_LOCATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::copy_location_group' reporter:label='&class.acplg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.copy_location_group' id='acplg'>
+ <fields oils_persist:sequence='asset.copy_location_group_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acplg.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acplg.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acplg.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.acplg.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acplg.pos.label;' name='pos' reporter:datatype='int' />
+ <field reporter:label='&field.acplg.top.label;' name='top' reporter:datatype='bool' />
+ <field reporter:label='&field.acplg.location_maps.label;' name='location_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='location_maps' reltype='has_many' class='acplgm' key='lgroup' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_COPY_LOCATION_GROUP'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_COPY_LOCATION_GROUP'></update>
+ <delete context_field='owner' permission='ADMIN_COPY_LOCATION_GROUP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::copy_location_group_map' reporter:label='&class.acplgm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.copy_location_group_map' id='acplgm'>
+ <fields oils_persist:sequence='asset.copy_location_group_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acplgm.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acplgm.lgroup.label;' name='lgroup' reporter:datatype='link' />
+ <field reporter:label='&field.acplgm.location.label;' name='location' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='lgroup' reltype='has_a' class='acplg' key='id' map='' />
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_COPY_LOCATION_GROUP'>
+ <context field='owner' link='lgroup'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_COPY_LOCATION_GROUP'>
+ <context field='owner' link='lgroup'></context>
+ </update>
+ <delete permission='ADMIN_COPY_LOCATION_GROUP'>
+ <context field='owner' link='lgroup'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='asset::copy_location_order' reporter:label='&class.acplo.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.copy_location_order' id='acplo'>
+ <fields oils_persist:sequence='asset.copy_location_order_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acplo.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acplo.location.label;' name='location' reporter:datatype='link' />
+ <field reporter:label='&field.acplo.org.label;' name='org' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acplo.position.label;' name='position' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='org' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org' permission='ADMIN_COPY_LOCATION_ORDER'></create>
+ <retrieve></retrieve>
+ <update context_field='org' permission='ADMIN_COPY_LOCATION_ORDER'></update>
+ <delete context_field='org' permission='ADMIN_COPY_LOCATION_ORDER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::virtual_record' reporter:label='&class.svr.label;' controller='open-ils.cstore' id='svr' oils_persist:virtual='true'>
+ <fields>
+ <field name='sre_id' oils_persist:virtual='true' />
+ <field name='location' oils_persist:virtual='true' />
+ <field name='owning_lib' oils_persist:virtual='true' />
+ <field name='basic_holdings' oils_persist:virtual='true' />
+ <field name='basic_holdings_add' oils_persist:virtual='true' />
+ <field name='supplement_holdings' oils_persist:virtual='true' />
+ <field name='supplement_holdings_add' oils_persist:virtual='true' />
+ <field name='index_holdings' oils_persist:virtual='true' />
+ <field name='index_holdings_add' oils_persist:virtual='true' />
+ <field name='online' oils_persist:virtual='true' />
+ <field name='missing' oils_persist:virtual='true' />
+ <field name='incomplete' oils_persist:virtual='true' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::record_entry' reporter:label='&class.sre.label;' controller='open-ils.pcrud open-ils.cstore' oils_persist:tablename='serial.record_entry' id='sre'>
+ <fields oils_persist:sequence='serial.record_entry_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sre.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.sre.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.sre.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sre.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.sre.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.sre.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sre.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.sre.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sre.last_xact_id.label;' name='last_xact_id' reporter:datatype='text' />
+ <field reporter:label='&field.sre.marc.label;' name='marc' reporter:datatype='text' />
+ <field reporter:label='&field.sre.source.label;' name='source' reporter:datatype='int' />
+ <field reporter:label='&field.sre.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='CREATE_MFHD_RECORD'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='UPDATE_MFHD_RECORD'></update>
+ <delete context_field='owning_lib' permission='DELETE_MFHD_RECORD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::caption_and_pattern' reporter:label='&class.scap.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.caption_and_pattern' id='scap'>
+ <fields oils_persist:sequence='serial.caption_and_pattern_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.scap.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.scap.subscription.label;' name='subscription' reporter:datatype='link' />
+ <field reporter:label='&field.scap.type.label;' name='type' reporter:datatype='text' />
+ <field reporter:label='&field.scap.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.scap.start_date.label;' name='start_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.scap.end_date.label;' name='end_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.scap.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.scap.pattern_code.label;' name='pattern_code' reporter:datatype='text' />
+ <field reporter:label='&field.scap.enum_1.label;' name='enum_1' reporter:datatype='text' />
+ <field reporter:label='&field.scap.enum_2.label;' name='enum_2' reporter:datatype='text' />
+ <field reporter:label='&field.scap.enum_3.label;' name='enum_3' reporter:datatype='text' />
+ <field reporter:label='&field.scap.enum_4.label;' name='enum_4' reporter:datatype='text' />
+ <field reporter:label='&field.scap.enum_5.label;' name='enum_5' reporter:datatype='text' />
+ <field reporter:label='&field.scap.enum_6.label;' name='enum_6' reporter:datatype='text' />
+ <field reporter:label='&field.scap.chron_1.label;' name='chron_1' reporter:datatype='text' />
+ <field reporter:label='&field.scap.chron_2.label;' name='chron_2' reporter:datatype='text' />
+ <field reporter:label='&field.scap.chron_3.label;' name='chron_3' reporter:datatype='text' />
+ <field reporter:label='&field.scap.chron_4.label;' name='chron_4' reporter:datatype='text' />
+ <field reporter:label='&field.scap.chron_5.label;' name='chron_5' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='subscription' reltype='has_a' class='ssub' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_CAPTION_PATTERN'>
+ <context field='owning_lib' link='subscription'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SERIAL_CAPTION_PATTERN'>
+ <context field='owning_lib' link='subscription'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_CAPTION_PATTERN'>
+ <context field='owning_lib' link='subscription'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::subscription' reporter:label='&class.ssub.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.subscription' id='ssub'>
+ <fields oils_persist:sequence='serial.subscription_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ssub.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ssub.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ssub.start_date.label;' name='start_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ssub.end_date.label;' name='end_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ssub.record_entry.label;' name='record_entry' reporter:datatype='link' />
+ <field reporter:label='&field.ssub.expected_date_offset.label;' name='expected_date_offset' reporter:datatype='interval' />
+ <field reporter:label='&field.ssub.distributions.label;' name='distributions' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ssub.issuances.label;' name='issuances' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ssub.scaps.label;' name='scaps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ssub.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='record_entry' reltype='has_a' class='bre' key='id' map='' />
+ <link field='distributions' reltype='has_many' class='sdist' key='subscription' map='' />
+ <link field='issuances' reltype='has_many' class='siss' key='subscription' map='' />
+ <link field='scaps' reltype='has_many' class='scap' key='subscription' map='' />
+ <link field='notes' reltype='has_many' class='ssubn' key='subscription' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='ADMIN_SERIAL_SUBSCRIPTION'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='ADMIN_SERIAL_SUBSCRIPTION'></update>
+ <delete context_field='owning_lib' permission='ADMIN_SERIAL_SUBSCRIPTION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::subscription_note' reporter:label='&class.ssubn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.subscription_note' id='ssubn'>
+ <fields oils_persist:sequence='serial.subscription_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ssubn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ssubn.subscription.label;' name='subscription' reporter:datatype='link' />
+ <field reporter:label='&field.ssubn.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.ssubn.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ssubn.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.ssubn.alert.label;' name='alert' reporter:datatype='bool' />
+ <field reporter:label='&field.ssubn.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.ssubn.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='subscription' reltype='has_a' class='ssub' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='ADMIN_SERIAL_SUBSCRIPTION'>
+ <context field='owning_lib' link='subscription'></context>
+ </create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='ADMIN_SERIAL_SUBSCRIPTION'>
+ <context field='owning_lib' link='subscription'></context>
+ </update>
+ <delete context_field='owning_lib' permission='ADMIN_SERIAL_SUBSCRIPTION'>
+ <context field='owning_lib' link='subscription'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::distribution' reporter:label='&class.sdist.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.distribution' id='sdist'>
+ <fields oils_persist:sequence='serial.distribution_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sdist.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sdist.record_entry.label;' name='record_entry' reporter:datatype='link' />
+ <field reporter:label='&field.sdist.summary_method.label;' name='summary_method' reporter:datatype='text' />
+ <field reporter:label='&field.sdist.subscription.label;' name='subscription' reporter:datatype='link' />
+ <field reporter:label='&field.sdist.holding_lib.label;' name='holding_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.sdist.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.sdist.receive_call_number.label;' name='receive_call_number' reporter:datatype='link' />
+ <field reporter:label='&field.sdist.receive_unit_template.label;' name='receive_unit_template' reporter:datatype='link' />
+ <field reporter:label='&field.sdist.bind_call_number.label;' name='bind_call_number' reporter:datatype='link' />
+ <field reporter:label='&field.sdist.bind_unit_template.label;' name='bind_unit_template' reporter:datatype='link' />
+ <field reporter:label='&field.sdist.unit_label_prefix.label;' name='unit_label_prefix' reporter:datatype='text' />
+ <field reporter:label='&field.sdist.unit_label_suffix.label;' name='unit_label_suffix' reporter:datatype='text' />
+ <field reporter:label='&field.sdist.display_grouping.label;' name='display_grouping' reporter:datatype='text' />
+ <field reporter:label='&field.sdist.streams.label;' name='streams' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sdist.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sdist.basic_summary.label;' name='basic_summary' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sdist.supplement_summary.label;' name='supplement_summary' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sdist.index_summary.label;' name='index_summary' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='record_entry' reltype='has_a' class='sre' key='id' map='' />
+ <link field='subscription' reltype='has_a' class='ssub' key='id' map='' />
+ <link field='holding_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='receive_call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='receive_unit_template' reltype='has_a' class='act' key='id' map='' />
+ <link field='bind_call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='bind_unit_template' reltype='has_a' class='act' key='id' map='' />
+ <link field='streams' reltype='has_many' class='sstr' key='distribution' map='' />
+ <link field='notes' reltype='has_many' class='sdistn' key='distribution' map='' />
+ <link field='basic_summary' reltype='might_have' class='sbsum' key='distribution' map='' />
+ <link field='supplement_summary' reltype='might_have' class='sssum' key='distribution' map='' />
+ <link field='index_summary' reltype='might_have' class='sisum' key='distribution' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='holding_lib' permission='ADMIN_SERIAL_DISTRIBUTION'></create>
+ <retrieve></retrieve>
+ <update context_field='holding_lib' permission='ADMIN_SERIAL_DISTRIBUTION'></update>
+ <delete context_field='holding_lib' permission='ADMIN_SERIAL_DISTRIBUTION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::distribution_note' reporter:label='&class.sdistn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.distribution_note' id='sdistn'>
+ <fields oils_persist:sequence='serial.distribution_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sdistn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sdistn.distribution.label;' name='distribution' reporter:datatype='link' />
+ <field reporter:label='&field.sdistn.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.sdistn.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sdistn.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.sdistn.alert.label;' name='alert' reporter:datatype='bool' />
+ <field reporter:label='&field.sdistn.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.sdistn.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='distribution' reltype='has_a' class='sdist' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </create>
+ <retrieve permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </retrieve>
+ <update permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::stream' reporter:label='&class.sstr.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.stream' id='sstr'>
+ <fields oils_persist:sequence='serial.stream_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sstr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sstr.distribution.label;' name='distribution' reporter:datatype='link' />
+ <field reporter:label='&field.sstr.routing_label.label;' name='routing_label' reporter:datatype='text' />
+ <field reporter:label='&field.sstr.items.label;' name='items' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sstr.routing_list_users.label;' name='routing_list_users' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='distribution' reltype='has_a' class='sdist' key='id' map='' />
+ <link field='items' reltype='has_many' class='sitem' key='stream' map='' />
+ <link field='routing_list_users' reltype='has_many' class='srlu' key='stream' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_STREAM'>
+ <context field='holding_lib' link='distribution'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SERIAL_STREAM'>
+ <context field='holding_lib' link='distribution'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_STREAM'>
+ <context field='holding_lib' link='distribution'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::routing_list_user' reporter:label='&class.srlu.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.routing_list_user' id='srlu'>
+ <fields oils_persist:sequence='serial.routing_list_user_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.srlu.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.srlu.stream.label;' name='stream' reporter:datatype='link' />
+ <field reporter:label='&field.srlu.pos.label;' name='pos' reporter:datatype='int' />
+ <field reporter:label='&field.srlu.reader.label;' name='reader' reporter:datatype='link' />
+ <field reporter:label='&field.srlu.department.label;' name='department' reporter:datatype='text' />
+ <field reporter:label='&field.srlu.note.label;' name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='stream' reltype='has_a' class='sstr' key='id' map='' />
+ <link field='reader' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_STREAM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </create>
+ <retrieve permission='RECEIVE_SERIAL'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </retrieve>
+ <update permission='ADMIN_SERIAL_STREAM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_STREAM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::issuance' reporter:label='&class.siss.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.issuance' id='siss'>
+ <fields oils_persist:sequence='serial.issuance_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.siss.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.siss.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.siss.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.siss.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.siss.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.siss.subscription.label;' name='subscription' reporter:datatype='link' />
+ <field reporter:label='&field.siss.caption_and_pattern.label;' name='caption_and_pattern' reporter:datatype='link' />
+ <field reporter:label='&field.siss.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.siss.date_published.label;' name='date_published' reporter:datatype='timestamp' />
+ <field reporter:label='&field.siss.holding_code.label;' name='holding_code' reporter:datatype='text' />
+ <field reporter:label='&field.siss.holding_type.label;' name='holding_type' reporter:datatype='text' />
+ <field reporter:label='&field.siss.holding_link_id.label;' name='holding_link_id' reporter:datatype='int' />
+ <field reporter:label='&field.siss.items.label;' name='items' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='subscription' reltype='has_a' class='ssub' key='id' map='' />
+ <link field='caption_and_pattern' reltype='has_a' class='scap' key='id' map='' />
+ <link field='items' reltype='has_many' class='sitem' key='issuance' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_SUBSCRIPTION'>
+ <context field='owning_lib' link='subscription'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SERIAL_SUBSCRIPTION'>
+ <context field='owning_lib' link='subscription'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_SUBSCRIPTION'>
+ <context field='owning_lib' link='subscription'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::unit' reporter:label='&class.sunit.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.unit' id='sunit'>
+ <fields oils_persist:sequence='asset.copy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sunit.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sunit.age_protect.label;' name='age_protect' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.alert_message.label;' name='alert_message' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.call_number.label;' name='call_number' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.circ_as_type.label;' name='circ_as_type' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.sunit.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.circulate.label;' name='circulate' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.copy_number.label;' name='copy_number' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sunit.active_date.label;' name='active_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sunit.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.dummy_isbn.label;' name='dummy_isbn' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.deposit.label;' name='deposit' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.deposit_amount.label;' name='deposit_amount' reporter:datatype='money' />
+ <field reporter:label='&field.sunit.dummy_author.label;' name='dummy_author' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.dummy_title.label;' name='dummy_title' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sunit.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.fine_level.label;' name='fine_level' reporter:datatype='int' />
+ <field reporter:label='&field.sunit.holdable.label;' name='holdable' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.loan_duration.label;' name='loan_duration' reporter:datatype='int' />
+ <field reporter:label='&field.sunit.location.label;' name='location' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.price.label;' name='price' reporter:datatype='money' />
+ <field reporter:label='&field.sunit.ref.label;' name='ref' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.status.label;' name='status' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.status_changed_time.label;' name='status_changed_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sunit.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.sunit.floating.label;' name='floating' reporter:datatype='link' />
+ <field reporter:label='&field.sunit.cost.label;' name='cost' reporter:datatype='money' />
+ <field reporter:label='&field.sunit.sort_key.label;' name='sort_key' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.summary_contents.label;' name='summary_contents' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.detailed_contents.label;' name='detailed_contents' reporter:datatype='text' />
+ <field reporter:label='&field.sunit.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sunit.stat_cat_entry_copy_maps.label;' name='stat_cat_entry_copy_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sunit.circulations.label;' name='circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sunit.total_circ_count.label;' name='total_circ_count' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sunit.holds.label;' name='holds' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sunit.stat_cat_entries.label;' name='stat_cat_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='age_protect' reltype='has_a' class='crahp' key='id' map='' />
+ <link field='call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='holds' reltype='has_many' class='ahcm' key='target_copy' map='hold' />
+ <link field='stat_cat_entry_copy_maps' reltype='has_many' class='ascecm' key='owning_copy' map='' />
+ <link field='notes' reltype='has_many' class='acpn' key='owning_copy' map='' />
+ <link field='stat_cat_entries' reltype='has_many' class='ascecm' key='owning_copy' map='stat_cat_entry' />
+ <link field='circulations' reltype='has_many' class='circ' key='target_copy' map='' />
+ <link field='total_circ_count' reltype='might_have' class='erfcc' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='floating' reltype='has_a' class='cfg' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='circ_lib' permission='RECEIVE_SERIAL ADMIN_SERIAL_SUBSCRIPTION'></create>
+ <retrieve></retrieve>
+ <update context_field='circ_lib' permission='RECEIVE_SERIAL ADMIN_SERIAL_SUBSCRIPTION'></update>
+ <delete context_field='circ_lib' permission='RECEIVE_SERIAL ADMIN_SERIAL_SUBSCRIPTION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::item' reporter:label='&class.sitem.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.item' id='sitem'>
+ <fields oils_persist:sequence='serial.item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sitem.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sitem.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.sitem.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.sitem.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sitem.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sitem.issuance.label;' name='issuance' reporter:datatype='link' />
+ <field reporter:label='&field.sitem.stream.label;' name='stream' reporter:datatype='link' />
+ <field reporter:label='&field.sitem.unit.label;' name='unit' reporter:datatype='link' />
+ <field reporter:label='&field.sitem.uri.label;' name='uri' reporter:datatype='link' />
+ <field reporter:label='&field.sitem.date_expected.label;' name='date_expected' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sitem.date_received.label;' name='date_received' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sitem.status.label;' name='status' reporter:datatype='text' />
+ <field reporter:label='&field.sitem.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.sitem.shadowed.label;' name='shadowed' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='issuance' reltype='has_a' class='siss' key='id' map='' />
+ <link field='stream' reltype='has_a' class='sstr' key='id' map='' />
+ <link field='unit' reltype='has_a' class='sunit' key='id' map='' />
+ <link field='uri' reltype='has_a' class='auri' key='id' map='' />
+ <link field='notes' reltype='has_many' class='sin' key='item' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_ITEM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </create>
+ <retrieve permission='ADMIN_SERIAL_ITEM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </retrieve>
+ <update permission='ADMIN_SERIAL_ITEM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_ITEM'>
+ <context jump='distribution' field='holding_lib' link='stream'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::item_note' reporter:label='&class.sin.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.item_note' id='sin'>
+ <fields oils_persist:sequence='serial.item_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sin.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sin.item.label;' name='item' reporter:datatype='link' />
+ <field reporter:label='&field.sin.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.sin.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.sin.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.sin.alert.label;' name='alert' reporter:datatype='bool' />
+ <field reporter:label='&field.sin.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.sin.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='item' reltype='has_a' class='sitem' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_ITEM'>
+ <context jump='stream.distribution' field='holding_lib' link='item'></context>
+ </create>
+ <retrieve permission='ADMIN_SERIAL_ITEM'>
+ <context jump='stream.distribution' field='holding_lib' link='item'></context>
+ </retrieve>
+ <update permission='ADMIN_SERIAL_ITEM'>
+ <context jump='stream.distribution' field='holding_lib' link='item'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_ITEM'>
+ <context jump='stream.distribution' field='holding_lib' link='item'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.sasum.label;' oils_persist:tablename='serial.any_summary' oils_obj:fieldmapper='serial::any_summary' controller='open-ils.cstore' id='sasum' oils_persist:readonly='true'>
+ <fields>
+ <field reporter:label='&field.sasum.summary_type.label;' name='summary_type' reporter:datatype='text' />
+ <field reporter:label='&field.sasum.id.label;' name='id' reporter:datatype='int' />
+ <field reporter:label='&field.sasum.distribution.label;' name='distribution' reporter:datatype='link' />
+ <field reporter:label='&field.sasum.generated_coverage.label;' name='generated_coverage' reporter:datatype='text' />
+ <field reporter:label='&field.sasum.show_generated.label;' name='show_generated' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='distribution' reltype='has_a' class='sdist' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.smhc.label;' oils_persist:tablename='serial.materialized_holding_code' oils_obj:fieldmapper='serial::materialized_holding_code' controller='open-ils.cstore' id='smhc' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='serial.materialized_holding_code_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.smhc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.smhc.issuance.label;' name='issuance' reporter:datatype='link' />
+ <field reporter:label='&field.smhc.holding_type.label;' name='holding_type' reporter:datatype='text' />
+ <field reporter:label='&field.smhc.ind1.label;' name='ind1' reporter:datatype='text' />
+ <field reporter:label='&field.smhc.ind2.label;' name='ind2' reporter:datatype='text' />
+ <field reporter:label='&field.smhc.subfield.label;' name='subfield' reporter:datatype='text' />
+ <field reporter:label='&field.smhc.value.label;' oils_obj:validate='^\w$' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='issuance' reltype='has_a' class='siss' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='serial::basic_summary' reporter:label='&class.sbsum.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.basic_summary' id='sbsum'>
+ <fields oils_persist:sequence='serial.basic_summary_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sbsum.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sbsum.distribution.label;' name='distribution' reporter:datatype='link' />
+ <field reporter:label='&field.sbsum.generated_coverage.label;' name='generated_coverage' reporter:datatype='text' />
+ <field reporter:label='&field.sbsum.textual_holdings.label;' name='textual_holdings' reporter:datatype='text' />
+ <field reporter:label='&field.sbsum.show_generated.label;' name='show_generated' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='distribution' reltype='has_a' class='sdist' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::supplement_summary' reporter:label='&class.sssum.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.supplement_summary' id='sssum'>
+ <fields oils_persist:sequence='serial.supplement_summary_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sssum.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sssum.distribution.label;' name='distribution' reporter:datatype='link' />
+ <field reporter:label='&field.sssum.generated_coverage.label;' name='generated_coverage' reporter:datatype='text' />
+ <field reporter:label='&field.sssum.textual_holdings.label;' name='textual_holdings' reporter:datatype='text' />
+ <field reporter:label='&field.sssum.show_generated.label;' name='show_generated' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='distribution' reltype='has_a' class='sdist' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::index_summary' reporter:label='&class.sisum.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.index_summary' id='sisum'>
+ <fields oils_persist:sequence='serial.index_summary_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sisum.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sisum.distribution.label;' name='distribution' reporter:datatype='link' />
+ <field reporter:label='&field.sisum.generated_coverage.label;' name='generated_coverage' reporter:datatype='text' />
+ <field reporter:label='&field.sisum.textual_holdings.label;' name='textual_holdings' reporter:datatype='text' />
+ <field reporter:label='&field.sisum.show_generated.label;' name='show_generated' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='distribution' reltype='has_a' class='sdist' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </update>
+ <delete permission='ADMIN_SERIAL_DISTRIBUTION'>
+ <context field='holding_lib' link='distribution'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='serial::pattern_template' reporter:label='&class.spt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='serial.pattern_template' id='spt'>
+ <fields oils_persist:sequence='serial.pattern_template_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.spt.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.spt.name.label;' name='name' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.spt.pattern_code.label;' name='pattern_code' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.spt.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' oils_obj:required='true' />
+ <field reporter:label='&field.spt.share_depth.label;' name='share_depth' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='ADMIN_SERIAL_PATTERN_TEMPLATE'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='ADMIN_SERIAL_PATTERN_TEMPLATE'></update>
+ <delete context_field='owning_lib' permission='ADMIN_SERIAL_PATTERN_TEMPLATE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='asset::stat_cat_entry_copy_map' reporter:label='&class.ascecm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.stat_cat_entry_copy_map' id='ascecm'>
+ <fields oils_persist:sequence='asset.stat_cat_entry_copy_map_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='owning_copy' reporter:datatype='link' />
+ <field name='stat_cat' reporter:datatype='link' />
+ <field name='stat_cat_entry' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='owning_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='stat_cat_entry' reltype='has_a' class='asce' key='id' map='' />
+ <link field='stat_cat' reltype='has_a' class='asc' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.citm.label;' oils_persist:tablename='config.item_type_map' oils_obj:fieldmapper='config::item_type_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='citm'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.citm.code.label;' name='code' reporter:datatype='text' reporter:selector='value' />
+ <field reporter:label='&field.citm.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_MARC_CODE'></update>
+ <delete global_required='true' permission='ADMIN_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.cblvl.label;' oils_persist:tablename='config.bib_level_map' oils_obj:fieldmapper='config::bib_level_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cblvl'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.cblvl.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.cblvl.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_MARC_CODE'></update>
+ <delete global_required='true' permission='DELETE_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='search::relevance_adjustment' reporter:label='&class.sra.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='search.relevance_adjustment' id='sra'>
+ <fields oils_persist:sequence='search.relevance_adjustment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.sra.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.sra.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.sra.field.label;' name='field' reporter:datatype='link' />
+ <field reporter:label='&field.sra.bump_type.label;' name='bump_type' reporter:datatype='text' />
+ <field reporter:label='&field.sra.multiplier.label;' name='multiplier' reporter:datatype='number' />
+ </fields>
+ <links>
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_RELEVANCE_ADJUSTMENT'></create>
+ <retrieve global_required='true' permission='CREATE_RELEVANCE_ADJUSTMENT UPDATE_RELEVANCE_ADJUSTMENT DELETE_RELEVANCE_ADJUSTMENT'></retrieve>
+ <update global_required='true' permission='UPDATE_RELEVANCE_ADJUSTMENT'></update>
+ <delete global_required='true' permission='DELETE_RELEVANCE_ADJUSTMENT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_lasso' reporter:label='&class.lasso.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_lasso' id='lasso'>
+ <fields oils_persist:sequence='actor.org_lasso_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_LASSO'></create>
+ <retrieve global_required='true' permission='CREATE_LASSO UPDATE_LASSO DELETE_LASSO'></retrieve>
+ <update global_required='true' permission='UPDATE_LASSO'></update>
+ <delete global_required='true' permission='DELETE_LASSO'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_lasso_map' reporter:label='&class.lmap.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_lasso_map' id='lmap'>
+ <fields oils_persist:sequence='actor.org_lasso_map_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='lasso' reporter:datatype='link' />
+ <field name='org_unit' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='lasso' reltype='has_a' class='lasso' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_LASSO_MAP'></create>
+ <retrieve global_required='true' permission='CREATE_LASSO_MAP UPDATE_LASSO_MAP DELETE_LASSO_MAP'></retrieve>
+ <update global_required='true' permission='UPDATE_LASSO_MAP'></update>
+ <delete global_required='true' permission='DELETE_LASSO_MAP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit_proximity_adjustment' reporter:label='&class.aoupa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_unit_proximity_adjustment' id='aoupa'>
+ <fields oils_persist:sequence='actor.org_unit_proximity_adjustment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aoupa.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aoupa.item_circ_lib.label;' name='item_circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aoupa.item_owning_lib.label;' name='item_owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aoupa.hold_pickup_lib.label;' name='hold_pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aoupa.hold_request_lib.label;' name='hold_request_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aoupa.copy_location.label;' name='copy_location' reporter:datatype='link' />
+ <field reporter:label='&field.aoupa.circ_mod.label;' name='circ_mod' reporter:datatype='link' />
+ <field reporter:label='&field.aoupa.pos.label;' name='pos' reporter:datatype='int' />
+ <field reporter:label='&field.aoupa.absolute_adjustment.label;' name='absolute_adjustment' reporter:datatype='bool' />
+ <field reporter:label='&field.aoupa.prox_adjustment.label;' name='prox_adjustment' reporter:datatype='number' />
+ </fields>
+ <links>
+ <link field='item_circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='item_owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='hold_pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='hold_request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='circ_mod' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='copy_location' reltype='has_a' class='acpl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_PROXIMITY_ADJUSTMENT'></create>
+ <retrieve global_required='true' permission='ADMIN_PROXIMITY_ADJUSTMENT'></retrieve>
+ <update global_required='true' permission='ADMIN_PROXIMITY_ADJUSTMENT'></update>
+ <delete global_required='true' permission='ADMIN_PROXIMITY_ADJUSTMENT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit_proximity' reporter:label='&class.aoup.label;' controller='open-ils.cstore' oils_persist:tablename='actor.org_unit_proximity' id='aoup'>
+ <fields oils_persist:sequence='actor.org_unit_proximity_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='from_org' reporter:datatype='org_unit' />
+ <field name='to_org' reporter:datatype='org_unit' />
+ <field name='prox' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='from_org' reltype='has_a' class='aou' key='id' map='' />
+ <link field='to_org' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.ssr.label;' oils_persist:tablename='search.search_result' oils_obj:fieldmapper='search::search_result' controller='open-ils.cstore' id='ssr' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='actor.org_unit_proximity_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ssr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ssr.rel.label;' name='rel' reporter:datatype='float' />
+ <field reporter:label='&field.ssr.record.label;' name='record' reporter:datatype='link' />
+ <field reporter:label='&field.ssr.total.label;' name='total' reporter:datatype='int' />
+ <field reporter:label='&field.ssr.checked.label;' name='checked' reporter:datatype='int' />
+ <field reporter:label='&field.ssr.visible.label;' name='visible' reporter:datatype='int' />
+ <field reporter:label='&field.ssr.deleted.label;' name='deleted' reporter:datatype='int' />
+ <field reporter:label='&field.ssr.excluded.label;' name='excluded' reporter:datatype='int' />
+ </fields>
+ <links></links>
+ </class>
+ <class oils_obj:fieldmapper='action::survey' reporter:label='&class.asv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.survey' id='asv'>
+ <fields oils_persist:sequence='action.survey_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.asv.questions.label;' name='questions' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.asv.responses.label;' name='responses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.asv.description.label;' name='description' reporter:datatype='text' />
+ <field reporter:label='&field.asv.end_date.label;' name='end_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.asv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.asv.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.asv.opac.label;' name='opac' reporter:datatype='bool' />
+ <field reporter:label='&field.asv.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.asv.poll.label;' name='poll' reporter:datatype='bool' />
+ <field reporter:label='&field.asv.required.label;' name='required' reporter:datatype='bool' />
+ <field reporter:label='&field.asv.start_date.label;' name='start_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.asv.usr_summary.label;' name='usr_summary' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='responses' reltype='has_many' class='asvr' key='survey' map='' />
+ <link field='questions' reltype='has_many' class='asvq' key='survey' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_SURVEY'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_SURVEY'></update>
+ <delete context_field='owner' permission='ADMIN_SURVEY'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_address' reporter:label='&class.aoa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_address' id='aoa'>
+ <fields oils_persist:sequence='actor.org_address_id_seq' oils_persist:primary='id'>
+ <field name='address_type' reporter:datatype='text' />
+ <field name='city' reporter:datatype='text' />
+ <field name='country' reporter:datatype='text' />
+ <field name='county' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='org_unit' reporter:datatype='org_unit' />
+ <field name='post_code' reporter:datatype='text' />
+ <field name='state' reporter:datatype='text' />
+ <field name='street1' reporter:datatype='text' />
+ <field name='street2' reporter:datatype='text' />
+ <field name='valid' reporter:datatype='bool' />
+ <field reporter:label='&field.aoa.san.label;' name='san' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='CREATE_ORG_ADDRESS'></create>
+ <retrieve></retrieve>
+ <update context_field='org_unit' permission='UPDATE_ORG_ADDRESS'></update>
+ <delete context_field='org_unit' permission='DELETE_ORG_ADDRESS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.asq.label;' oils_persist:tablename='actor.search_query' oils_obj:fieldmapper='actor::search_query' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='asq'>
+ <fields oils_persist:sequence='actor.search_query_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' reporter:selector='label' />
+ <field name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='query_text' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.asfg.label;' oils_persist:tablename='actor.search_filter_group' oils_obj:fieldmapper='actor::search_filter_group' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='asfg'>
+ <fields oils_persist:sequence='actor.search_filter_group_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' reporter:selector='label' />
+ <field name='owner' reporter:datatype='org_unit' />
+ <field name='code' reporter:datatype='text' />
+ <field name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='create_date' reporter:datatype='timestamp' />
+ <field name='entries' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='entries' reltype='has_many' class='asfge' key='grp' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_SEARCH_FILTER_GROUP'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_SEARCH_FILTER_GROUP'></update>
+ <delete context_field='owner' permission='ADMIN_SEARCH_FILTER_GROUP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.asfge.label;' oils_persist:tablename='actor.search_filter_group_entry' oils_obj:fieldmapper='actor::search_filter_group_entry' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='asfge'>
+ <fields oils_persist:sequence='actor.search_filter_group_entry_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='grp' reporter:datatype='link' />
+ <field name='pos' reporter:datatype='int' />
+ <field name='query' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='grp' reltype='has_a' class='asfg' key='id' map='' />
+ <link field='query' reltype='has_a' class='asq' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SEARCH_FILTER_GROUP'>
+ <context field='owner' link='grp'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SEARCH_FILTER_GROUP'>
+ <context field='owner' link='grp'></context>
+ </update>
+ <delete permission='ADMIN_SEARCH_FILTER_GROUP'>
+ <context field='owner' link='grp'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class reporter:label='&class.ahr.label;' oils_persist:tablename='action.hold_request' reporter:core='true' oils_obj:fieldmapper='action::hold_request' controller='open-ils.cstore open-ils.pcrud' id='ahr'>
+ <fields oils_persist:sequence='action.hold_request_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ahr.status.label;' name='status' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.transit.label;' name='transit' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.capture_time.label;' name='capture_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.current_copy.label;' name='current_copy' reporter:datatype='link' />
+ <field reporter:label='&field.ahr.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.ahr.expire_time.label;' name='expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.fulfillment_lib.label;' name='fulfillment_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahr.fulfillment_staff.label;' name='fulfillment_staff' />
+ <field reporter:label='&field.ahr.fulfillment_time.label;' name='fulfillment_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.hold_type.label;' name='hold_type' reporter:datatype='text' />
+ <field reporter:label='&field.ahr.holdable_formats.label;' name='holdable_formats' reporter:datatype='text' />
+ <field reporter:label='&field.ahr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahr.phone_notify.label;' name='phone_notify' reporter:datatype='text' />
+ <field reporter:label='&field.ahr.sms_notify.label;' name='sms_notify' reporter:datatype='text' />
+ <field reporter:label='&field.ahr.sms_carrier.label;' name='sms_carrier' reporter:datatype='link' />
+ <field reporter:label='&field.ahr.pickup_lib.label;' name='pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahr.prev_check_time.label;' name='prev_check_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.request_lib.label;' name='request_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahr.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.requestor.label;' name='requestor' reporter:datatype='link' />
+ <field reporter:label='&field.ahr.selection_depth.label;' name='selection_depth' />
+ <field reporter:label='&field.ahr.selection_ou.label;' name='selection_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahr.target.label;' name='target' reporter:datatype='link' />
+ <field reporter:label='&field.ahr.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.ahr.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.notify_time.label;' name='notify_time' reporter:datatype='timestamp' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.notify_count.label;' name='notify_count' reporter:datatype='int' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.notifications.label;' name='notifications' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.bib_rec.label;' name='bib_rec' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.eligible_copies.label;' name='eligible_copies' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.frozen.label;' name='frozen' reporter:datatype='bool' />
+ <field reporter:label='&field.ahr.thaw_date.label;' name='thaw_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.shelf_time.label;' name='shelf_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.cancel_cause.label;' name='cancel_cause' reporter:datatype='link' />
+ <field reporter:label='&field.ahr.cancel_note.label;' name='cancel_note' reporter:datatype='text' />
+ <field reporter:label='&field.ahr.cut_in_line.label;' name='cut_in_line' reporter:datatype='bool' />
+ <field reporter:label='&field.ahr.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.ahr.shelf_expire_time.label;' name='shelf_expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahr.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahr.current_shelf_lib.label;' name='current_shelf_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahr.behind_desk.label;' name='behind_desk' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='fulfillment_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='fulfillment_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='selection_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='requestor' reltype='has_a' class='au' key='id' map='' />
+ <link field='current_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='transit' reltype='might_have' class='ahtc' key='hold' map='' />
+ <link field='notifications' reltype='has_many' class='ahn' key='hold' map='' />
+ <link field='eligible_copies' reltype='has_many' class='ahcm' key='hold' map='target_copy' />
+ <link field='bib_rec' reltype='might_have' class='rhrr' key='id' map='' />
+ <link field='cancel_cause' reltype='might_have' class='ahrcc' key='id' map='' />
+ <link field='notes' reltype='has_many' class='ahrn' key='hold' map='' />
+ <link field='current_shelf_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='sms_carrier' reltype='has_a' class='csc' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='pickup_lib' permission='VIEW_HOLD'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::hold_on_pull_list' reporter:label='&class.ahopl.label;' controller='open-ils.cstore open-ils.pcrud' id='ahopl' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT
+ ahr.*,
+ COALESCE(acplo.position, acpl_ordered.fallback_position) AS
+ copy_location_order_position,
+ CASE WHEN au.alias IS NOT NULL THEN
+ au.alias
+ ELSE
+ au.first_given_name
+ END AS usr_alias_or_first_given_name,
+ au.first_given_name AS usr_first_given_name,
+ au.second_given_name AS usr_second_given_name,
+ au.family_name AS usr_family_name,
+ au.prefix AS usr_prefix,
+ au.suffix AS usr_suffix,
+ au.alias AS usr_alias,
+ CASE WHEN au.alias IS NOT NULL THEN
+ au.alias
+ ELSE
+ REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[
+ COALESCE(au.family_name, ''),
+ COALESCE(au.suffix, ''),
+ ', ',
+ COALESCE(au.prefix, ''),
+ COALESCE(au.first_given_name, ''),
+ COALESCE(au.second_given_name, '')
+ ], ' '), E'\\s+,', ',')
+ END AS usr_alias_or_display_name,
+ REGEXP_REPLACE(ARRAY_TO_STRING(ARRAY[
+ COALESCE(au.family_name, ''),
+ COALESCE(au.suffix, ''),
+ ', ',
+ COALESCE(au.prefix, ''),
+ COALESCE(au.first_given_name, ''),
+ COALESCE(au.second_given_name, '')
+ ], ' '), E'\\s+,', ',') AS usr_display_name,
+ TRIM(acnp.label || ' ' || acn.label || ' ' || acns.label)
+ AS call_number_label,
+ siss.label AS issuance_label,
+ (ahr.usr <> ahr.requestor) AS is_staff_hold,
+ ahcm_1.copy_count AS potential_copies
+ FROM action.hold_request ahr
+ JOIN asset.copy acp ON (acp.id = ahr.current_copy)
+ JOIN asset.call_number acn ON (acp.call_number = acn.id)
+ JOIN asset.call_number_prefix acnp ON (acn.prefix = acnp.id)
+ JOIN asset.call_number_suffix acns ON (acn.suffix = acns.id)
+ JOIN actor.usr au ON (au.id = ahr.usr)
+ JOIN (
+ SELECT *, (ROW_NUMBER() OVER (ORDER BY name) + 1000000) AS fallback_position
+ FROM asset.copy_location
+ ) acpl_ordered ON (acpl_ordered.id = acp.location)
+ LEFT JOIN actor.usr_standing_penalty ausp
+ ON (ahr.usr = ausp.usr AND (ausp.stop_date IS NULL OR ausp.stop_date > NOW()))
+ LEFT JOIN config.standing_penalty csp
+ ON (
+ csp.id = ausp.standing_penalty AND
+ csp.block_list LIKE '%CAPTURE%' AND (
+ (csp.org_depth IS NULL AND ahr.pickup_lib = ausp.org_unit) OR
+ (csp.org_depth IS NOT NULL AND ahr.pickup_lib IN (
+ SELECT id FROM actor.org_unit_descendants(ausp.org_unit, csp.org_depth))
+ )
+ )
+ )
+ JOIN (
+ SELECT COUNT(target_copy) AS copy_count, hold
+ FROM action.hold_copy_map
+ GROUP BY 2
+ ) ahcm_1 ON (ahcm_1.hold = ahr.id)
+ LEFT JOIN serial.issuance siss
+ ON (ahr.hold_type = 'I' AND siss.id = ahr.target)
+ LEFT JOIN asset.copy_location_order acplo
+ ON (acp.location = acplo.location AND
+ acp.circ_lib = acplo.org)
+ WHERE
+ ahr.capture_time IS NULL AND
+ ahr.cancel_time IS NULL AND
+ csp.id IS NULL AND
+ (ahr.expire_time is NULL OR ahr.expire_time > NOW()) AND
+ acp.status IN (0,7)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.ahopl.status.label;' name='status' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.transit.label;' name='transit' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.capture_time.label;' name='capture_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.current_copy.label;' name='current_copy' reporter:datatype='link' />
+ <field reporter:label='&field.ahopl.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.ahopl.expire_time.label;' name='expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.fulfillment_lib.label;' name='fulfillment_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahopl.fulfillment_staff.label;' name='fulfillment_staff' />
+ <field reporter:label='&field.ahopl.fulfillment_time.label;' name='fulfillment_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.hold_type.label;' name='hold_type' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.holdable_formats.label;' name='holdable_formats' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahopl.phone_notify.label;' name='phone_notify' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.sms_notify.label;' name='sms_notify' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.sms_carrier.label;' name='sms_carrier' reporter:datatype='link' />
+ <field reporter:label='&field.ahopl.pickup_lib.label;' name='pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahopl.prev_check_time.label;' name='prev_check_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.request_lib.label;' name='request_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahopl.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.requestor.label;' name='requestor' reporter:datatype='link' />
+ <field reporter:label='&field.ahopl.selection_depth.label;' name='selection_depth' />
+ <field reporter:label='&field.ahopl.selection_ou.label;' name='selection_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahopl.target.label;' name='target' reporter:datatype='link' />
+ <field reporter:label='&field.ahopl.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.ahopl.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.notify_time.label;' name='notify_time' reporter:datatype='timestamp' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.notify_count.label;' name='notify_count' reporter:datatype='int' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.notifications.label;' name='notifications' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.bib_rec.label;' name='bib_rec' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.eligible_copies.label;' name='eligible_copies' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.frozen.label;' name='frozen' reporter:datatype='bool' />
+ <field reporter:label='&field.ahopl.thaw_date.label;' name='thaw_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.shelf_time.label;' name='shelf_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.cancel_cause.label;' name='cancel_cause' reporter:datatype='link' />
+ <field reporter:label='&field.ahopl.cancel_note.label;' name='cancel_note' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.cut_in_line.label;' name='cut_in_line' reporter:datatype='bool' />
+ <field reporter:label='&field.ahopl.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.ahopl.shelf_expire_time.label;' name='shelf_expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahopl.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahopl.current_shelf_lib.label;' name='current_shelf_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahopl.copy_location_order_position.label;' name='copy_location_order_position' reporter:datatype='int' />
+ <field reporter:label='&field.ahopl.usr_first_given_name.label;' name='usr_first_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_second_given_name.label;' name='usr_second_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_family_name.label;' name='usr_family_name' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_prefix.label;' name='usr_prefix' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_suffix.label;' name='usr_suffix' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_alias_or_first_given_name.label;' name='usr_alias_or_first_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_display_name.label;' name='usr_display_name' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_alias_or_display_name.label;' name='usr_alias_or_display_name' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.usr_alias.label;' name='usr_alias' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.call_number_label.label;' name='call_number_label' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.issuance_label.label;' name='issuance_label' reporter:datatype='text' />
+ <field reporter:label='&field.ahopl.is_staff_hold.label;' name='is_staff_hold' reporter:datatype='bool' />
+ <field reporter:label='&field.ahopl.potential_copies.label;' name='potential_copies' reporter:datatype='int' />
+ <field reporter:label='&field.ahopl.behind_desk.label;' name='behind_desk' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='fulfillment_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='fulfillment_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='selection_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='requestor' reltype='has_a' class='au' key='id' map='' />
+ <link field='current_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='transit' reltype='might_have' class='ahtc' key='hold' map='' />
+ <link field='notifications' reltype='has_many' class='ahn' key='hold' map='' />
+ <link field='eligible_copies' reltype='has_many' class='ahcm' key='hold' map='target_copy' />
+ <link field='bib_rec' reltype='might_have' class='rhrr' key='id' map='' />
+ <link field='cancel_cause' reltype='might_have' class='ahrcc' key='id' map='' />
+ <link field='notes' reltype='has_many' class='ahrn' key='hold' map='' />
+ <link field='current_shelf_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='sms_carrier' reltype='has_a' class='csc' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='pickup_lib' permission='VIEW_HOLD'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::last_hold_request' reporter:label='&class.alhr.label;' controller='open-ils.cstore' id='alhr' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT ahr.* FROM action.hold_request ahr JOIN (SELECT current_copy, MAX(capture_time) AS capture_time FROM action.hold_request WHERE capture_time IS NOT NULL AND current_copy IS NOT NULL AND fulfillment_time IS NULL GROUP BY current_copy)x USING (current_copy, capture_time)
+ </oils_persist:source_definition>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.alhr.status.label;' name='status' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.transit.label;' name='transit' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.capture_time.label;' name='capture_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.current_copy.label;' name='current_copy' reporter:datatype='link' />
+ <field reporter:label='&field.alhr.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.alhr.expire_time.label;' name='expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.fulfillment_lib.label;' name='fulfillment_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.alhr.fulfillment_staff.label;' name='fulfillment_staff' />
+ <field reporter:label='&field.alhr.fulfillment_time.label;' name='fulfillment_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.hold_type.label;' name='hold_type' reporter:datatype='text' />
+ <field reporter:label='&field.alhr.holdable_formats.label;' name='holdable_formats' reporter:datatype='text' />
+ <field reporter:label='&field.alhr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.alhr.phone_notify.label;' name='phone_notify' reporter:datatype='text' />
+ <field reporter:label='&field.alhr.pickup_lib.label;' name='pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.alhr.prev_check_time.label;' name='prev_check_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.request_lib.label;' name='request_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.alhr.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.requestor.label;' name='requestor' reporter:datatype='link' />
+ <field reporter:label='&field.alhr.selection_depth.label;' name='selection_depth' />
+ <field reporter:label='&field.alhr.selection_ou.label;' name='selection_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.alhr.target.label;' name='target' reporter:datatype='link' />
+ <field reporter:label='&field.alhr.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.alhr.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.notify_time.label;' name='notify_time' reporter:datatype='timestamp' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.notify_count.label;' name='notify_count' reporter:datatype='int' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.notifications.label;' name='notifications' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.bib_rec.label;' name='bib_rec' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.eligible_copies.label;' name='eligible_copies' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.frozen.label;' name='frozen' reporter:datatype='bool' />
+ <field reporter:label='&field.alhr.thaw_date.label;' name='thaw_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.shelf_time.label;' name='shelf_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.cancel_cause.label;' name='cancel_cause' reporter:datatype='link' />
+ <field reporter:label='&field.alhr.cancel_note.label;' name='cancel_note' reporter:datatype='text' />
+ <field reporter:label='&field.alhr.cut_in_line.label;' name='cut_in_line' reporter:datatype='bool' />
+ <field reporter:label='&field.alhr.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.alhr.shelf_expire_time.label;' name='shelf_expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.alhr.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.alhr.current_shelf_lib.label;' name='current_shelf_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.alhr.behind_desk.label;' name='behind_desk' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='fulfillment_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='fulfillment_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='selection_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='requestor' reltype='has_a' class='au' key='id' map='' />
+ <link field='current_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='transit' reltype='might_have' class='ahtc' key='hold' map='' />
+ <link field='notifications' reltype='has_many' class='ahn' key='hold' map='' />
+ <link field='eligible_copies' reltype='has_many' class='ahcm' key='hold' map='target_copy' />
+ <link field='bib_rec' reltype='might_have' class='rhrr' key='id' map='' />
+ <link field='cancel_cause' reltype='might_have' class='ahrcc' key='id' map='' />
+ <link field='notes' reltype='has_many' class='ahrn' key='hold' map='' />
+ <link field='current_shelf_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::hold_request_note' reporter:label='&class.ahrn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.hold_request_note' id='ahrn'>
+ <fields oils_persist:sequence='action.hold_request_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ahrn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahrn.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.ahrn.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.ahrn.body.label;' name='body' reporter:datatype='text' />
+ <field reporter:label='&field.ahrn.slip.label;' name='slip' reporter:datatype='bool' />
+ <field reporter:label='&field.ahrn.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.ahrn.staff.label;' name='staff' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='UPDATE_HOLD'><context field='request_lib' link='hold'></context></create>
+ <retrieve permission='VIEW_USER'><context field='request_lib' link='hold'></context></retrieve>
+ <update permission='UPDATE_HOLD'><context field='request_lib' link='hold'></context></update>
+ <delete permission='UPDATE_HOLD'><context field='request_lib' link='hold'></context></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.combahr.label;' oils_persist:tablename='action.all_hold_request' reporter:core='true' oils_obj:fieldmapper='action::all_hold_request' controller='open-ils.cstore open-ils.pcrud' id='combahr'>
+ <fields oils_persist:sequence='action.hold_request_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.combahr.status.label;' name='status' oils_persist:virtual='true' />
+ <field reporter:label='&field.combahr.capture_time.label;' name='capture_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.current_copy.label;' name='current_copy' reporter:datatype='link' />
+ <field reporter:label='&field.combahr.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.expire_time.label;' name='expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.fulfillment_lib.label;' name='fulfillment_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combahr.fulfillment_staff.label;' name='fulfillment_staff' />
+ <field reporter:label='&field.combahr.fulfillment_time.label;' name='fulfillment_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.hold_type.label;' name='hold_type' reporter:datatype='text' />
+ <field reporter:label='&field.combahr.holdable_formats.label;' name='holdable_formats' reporter:datatype='text' />
+ <field reporter:label='&field.combahr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.combahr.phone_notify.label;' name='phone_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.sms_notify.label;' name='sms_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.pickup_lib.label;' name='pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combahr.prev_check_time.label;' name='prev_check_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.request_lib.label;' name='request_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combahr.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.usr_post_code.label;' name='usr_post_code' reporter:datatype='text' />
+ <field reporter:label='&field.combahr.usr_home_ou.label;' name='usr_home_ou' reporter:datatype='link' />
+ <field reporter:label='&field.combahr.usr_profile.label;' name='usr_profile' reporter:datatype='link' />
+ <field reporter:label='&field.combahr.usr_birth_year.label;' name='usr_birth_year' reporter:datatype='int' />
+ <field reporter:label='&field.combahr.staff_placed.label;' name='staff_placed' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.selection_depth.label;' name='selection_depth' />
+ <field reporter:label='&field.combahr.selection_ou.label;' name='selection_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combahr.target.label;' name='target' reporter:datatype='link' />
+ <field reporter:label='&field.combahr.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.bib_rec.label;' name='bib_rec' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.combahr.frozen.label;' name='frozen' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.thaw_date.label;' name='thaw_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.shelf_time.label;' name='shelf_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.cancel_cause.label;' name='cancel_cause' reporter:datatype='link' />
+ <field reporter:label='&field.combahr.cancel_note.label;' name='cancel_note' reporter:datatype='text' />
+ <field reporter:label='&field.combahr.cut_in_line.label;' name='cut_in_line' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.combahr.shelf_expire_time.label;' name='shelf_expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.combahr.current_shelf_lib.label;' name='current_shelf_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.combahr.behind_desk.label;' name='behind_desk' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='fulfillment_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='fulfillment_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='selection_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='current_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_home_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='bib_rec' reltype='might_have' class='rhrr' key='id' map='' />
+ <link field='cancel_cause' reltype='might_have' class='ahrcc' key='id' map='' />
+ <link field='current_shelf_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_profile' reltype='has_a' class='pgt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='pickup_lib' permission='VIEW_HOLD'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.aahr.label;' oils_persist:tablename='action.aged_hold_request' reporter:core='true' oils_obj:fieldmapper='action::aged_hold_request' controller='open-ils.cstore open-ils.pcrud' id='aahr'>
+ <fields oils_persist:sequence='action.hold_request_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aahr.status.label;' name='status' oils_persist:virtual='true' />
+ <field reporter:label='&field.aahr.capture_time.label;' name='capture_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.current_copy.label;' name='current_copy' reporter:datatype='link' />
+ <field reporter:label='&field.aahr.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.expire_time.label;' name='expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.fulfillment_lib.label;' name='fulfillment_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aahr.fulfillment_staff.label;' name='fulfillment_staff' />
+ <field reporter:label='&field.aahr.fulfillment_time.label;' name='fulfillment_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.hold_type.label;' name='hold_type' reporter:datatype='text' />
+ <field reporter:label='&field.aahr.holdable_formats.label;' name='holdable_formats' reporter:datatype='text' />
+ <field reporter:label='&field.aahr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aahr.phone_notify.label;' name='phone_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.sms_notify.label;' name='sms_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.pickup_lib.label;' name='pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aahr.prev_check_time.label;' name='prev_check_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.request_lib.label;' name='request_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aahr.request_time.label;' name='request_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.usr_post_code.label;' name='usr_post_code' reporter:datatype='text' />
+ <field reporter:label='&field.aahr.usr_home_ou.label;' name='usr_home_ou' reporter:datatype='link' />
+ <field reporter:label='&field.aahr.usr_profile.label;' name='usr_profile' reporter:datatype='link' />
+ <field reporter:label='&field.aahr.usr_birth_year.label;' name='usr_birth_year' reporter:datatype='int' />
+ <field reporter:label='&field.aahr.staff_placed.label;' name='staff_placed' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.selection_depth.label;' name='selection_depth' />
+ <field reporter:label='&field.aahr.selection_ou.label;' name='selection_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aahr.target.label;' name='target' reporter:datatype='link' />
+ <field reporter:label='&field.aahr.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.bib_rec.label;' name='bib_rec' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aahr.frozen.label;' name='frozen' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.thaw_date.label;' name='thaw_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.shelf_time.label;' name='shelf_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.cancel_cause.label;' name='cancel_cause' reporter:datatype='link' />
+ <field reporter:label='&field.aahr.cancel_note.label;' name='cancel_note' reporter:datatype='text' />
+ <field reporter:label='&field.aahr.cut_in_line.label;' name='cut_in_line' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.aahr.shelf_expire_time.label;' name='shelf_expire_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aahr.current_shelf_lib.label;' name='current_shelf_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='fulfillment_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='fulfillment_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='selection_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='current_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='request_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_home_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='bib_rec' reltype='might_have' class='rhrr' key='id' map='' />
+ <link field='cancel_cause' reltype='might_have' class='ahrcc' key='id' map='' />
+ <link field='current_shelf_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_profile' reltype='has_a' class='pgt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='pickup_lib' permission='VIEW_HOLD'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.aou.label;' oils_persist:tablename='actor.org_unit' oils_obj:fieldmapper='actor::org_unit' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='aou'>
+ <fields oils_persist:sequence='actor.org_unit_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aou.children.label;' name='children' reporter:datatype='org_unit' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.billing_address.label;' name='billing_address' reporter:datatype='link' />
+ <field reporter:label='&field.aou.holds_address.label;' name='holds_address' reporter:datatype='link' />
+ <field reporter:label='&field.aou.id.label;' name='id' reporter:datatype='org_unit' reporter:selector='shortname' />
+ <field reporter:label='&field.aou.ill_address.label;' name='ill_address' reporter:datatype='link' />
+ <field reporter:label='&field.aou.mailing_address.label;' name='mailing_address' reporter:datatype='link' />
+ <field reporter:label='&field.aou.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.aou.ou_type.label;' name='ou_type' reporter:datatype='link' />
+ <field reporter:label='&field.aou.parent_ou.label;' name='parent_ou' reporter:datatype='link' />
+ <field reporter:label='&field.aou.shortname.label;' oils_obj:validate='^.+$' name='shortname' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.aou.email.label;' name='email' reporter:datatype='text' />
+ <field reporter:label='&field.aou.phone.label;' name='phone' reporter:datatype='text' />
+ <field reporter:label='&field.aou.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.aou.fiscal_calendar.label;' name='fiscal_calendar' reporter:datatype='link' />
+ <field reporter:label='&field.aou.users.label;' name='users' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.closed_dates.label;' name='closed_dates' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.circulations.label;' name='circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.settings.label;' name='settings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.addresses.label;' name='addresses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.checkins.label;' name='checkins' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.workstations.label;' name='workstations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.fund_alloc_pcts.label;' name='fund_alloc_pcts' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.copy_location_orders.label;' name='copy_location_orders' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.atc_prev_dests.label;' name='atc_prev_dests' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.resv_requests.label;' name='resv_requests' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.resv_pickups.label;' name='resv_pickups' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.rsrc_types.label;' name='rsrc_types' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.resources.label;' name='resources' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.rsrc_attrs.label;' name='rsrc_attrs' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.attr_vals.label;' name='attr_vals' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aou.hours_of_operation.label;' name='hours_of_operation' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='billing_address' reltype='has_a' class='aoa' key='id' map='' />
+ <link field='holds_address' reltype='has_a' class='aoa' key='id' map='' />
+ <link field='ou_type' reltype='has_a' class='aout' key='id' map='' />
+ <link field='mailing_address' reltype='has_a' class='aoa' key='id' map='' />
+ <link field='parent_ou' reltype='has_a' class='aou' key='id' map='' />
+ <link field='ill_address' reltype='has_a' class='aoa' key='id' map='' />
+ <link field='fiscal_calendar' reltype='has_a' class='acqfc' key='id' map='' />
+ <link field='users' reltype='has_many' class='au' key='home_ou' map='' />
+ <link field='closed_dates' reltype='has_many' class='aoucd' key='org_unit' map='' />
+ <link field='children' reltype='has_many' class='aou' key='parent_ou' map='' />
+ <link field='circulations' reltype='has_many' class='circ' key='circ_lib' map='' />
+ <link field='settings' reltype='has_many' class='aous' key='org_unit' map='' />
+ <link field='addresses' reltype='has_many' class='aoa' key='org_unit' map='' />
+ <link field='checkins' reltype='has_many' class='circ' key='checkin_lib' map='' />
+ <link field='workstations' reltype='has_many' class='aws' key='owning_lib' map='' />
+ <link field='fund_alloc_pcts' reltype='has_many' class='acqfap' key='org' map='' />
+ <link field='copy_location_orders' reltype='has_many' class='acplo' key='org' map='' />
+ <link field='atc_prev_dests' reltype='has_many' class='atc' key='prev_dest' map='' />
+ <link field='resv_requests' reltype='has_many' class='bresv' key='request_lib' map='' />
+ <link field='resv_pickups' reltype='has_many' class='bresv' key='pickup_lib' map='' />
+ <link field='rsrc_types' reltype='has_many' class='brt' key='owner' map='' />
+ <link field='resources' reltype='has_many' class='brsrc' key='owner' map='' />
+ <link field='rsrc_attrs' reltype='has_many' class='bra' key='owner' map='' />
+ <link field='attr_vals' reltype='has_many' class='brav' key='owner' map='' />
+ <link field='hours_of_operation' reltype='might_have' class='aouhoo' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='parent_ou' permission='CREATE_ORG_UNIT'></create>
+ <retrieve></retrieve>
+ <update context_field='id' permission='UPDATE_ORG_UNIT'></update>
+ <delete context_field='parent_ou' permission='DELETE_ORG_UNIT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit_custom_tree' reporter:label='&class.aouct.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_unit_custom_tree' id='aouct'>
+ <fields oils_persist:sequence='actor.org_unit_custom_tree_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aouct.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aouct.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.aouct.purpose.label;' name='purpose' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ORG_UNIT_CUSTOM_TREE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_ORG_UNIT_CUSTOM_TREE'></update>
+ <delete global_required='true' permission='ADMIN_ORG_UNIT_CUSTOM_TREE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::org_unit_custom_tree_node' reporter:label='&class.aouctn.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.org_unit_custom_tree_node' id='aouctn'>
+ <fields oils_persist:sequence='actor.org_unit_custom_tree_node_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aouctn.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aouctn.tree.label;' name='tree' reporter:datatype='link' />
+ <field reporter:label='&field.aouctn.org_unit.label;' name='org_unit' reporter:datatype='link' />
+ <field reporter:label='&field.aouctn.parent_node.label;' name='parent_node' reporter:datatype='link' />
+ <field reporter:label='&field.aouctn.sibling_order.label;' name='sibling_order' reporter:datatype='int' />
+ <field reporter:label='&field.aouctn.children.label;' name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='tree' reltype='has_a' class='aouct' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='parent_node' reltype='has_a' class='aouctn' key='id' map='' />
+ <link field='children' reltype='has_many' class='aouctn' key='parent_node' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ORG_UNIT_CUSTOM_TREE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_ORG_UNIT_CUSTOM_TREE'></update>
+ <delete global_required='true' permission='ADMIN_ORG_UNIT_CUSTOM_TREE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::call_number_bucket' reporter:label='&class.ccnb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.call_number_bucket' id='ccnb'>
+ <fields oils_persist:sequence='container.call_number_bucket_id_seq' oils_persist:primary='id'>
+ <field name='items' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='btype' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='description' reporter:datatype='text' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='pub' reporter:datatype='bool' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='items' reltype='has_many' class='ccnbi' key='bucket' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create owning_user='owner' context='owning_lib' permission='CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET'></create>
+ <retrieve owning_user='owner' context='owning_lib' permission='CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET'></retrieve>
+ <update owning_user='owner' context='owning_lib' permission='CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET'></update>
+ <delete owning_user='owner' context='owning_lib' permission='CREATE_CALLNUMBER_BUCKET ADMIN_CALLNUMBER_BUCKET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::call_number_bucket_note' reporter:label='&class.ccnbn.label;' controller='open-ils.cstore' oils_persist:tablename='container.call_number_bucket_note' id='ccnbn'>
+ <fields oils_persist:sequence='container.call_number_bucket_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='bucket' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='bucket' reltype='has_a' class='ccnb' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='asset::stat_cat' reporter:label='&class.asc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.stat_cat' id='asc'>
+ <fields oils_persist:sequence='asset.stat_cat_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.asc.entries.label;' name='entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.asc.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.asc.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.asc.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.asc.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.asc.sip_field.label;' name='sip_field' reporter:datatype='link' />
+ <field reporter:label='&field.asc.sip_format.label;' name='sip_format' reporter:datatype='text' />
+ <field reporter:label='&field.asc.required.label;' name='required' reporter:datatype='bool' />
+ <field reporter:label='&field.asc.checkout_archive.label;' name='checkout_archive' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='sip_field' reltype='has_a' class='ascsf' key='field' map='' />
+ <link field='entries' reltype='has_many' class='asce' key='stat_cat' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::card' reporter:label='&class.ac.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.card' id='ac'>
+ <fields oils_persist:sequence='actor.card_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ac.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.ac.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.ac.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ac.usr.label;' name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::stat_cat_sip_fields' reporter:label='&class.actscsf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.stat_cat_sip_fields' id='actscsf'>
+ <fields oils_persist:primary='field'>
+ <field reporter:label='&field.actscsf.field.label;' name='field' reporter:datatype='text' reporter:selector='name' />
+ <field reporter:label='&field.actscsf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.actscsf.one_only.label;' name='one_only' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_PATRON_STAT_CAT'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_PATRON_STAT_CAT'></update>
+ <delete global_required='true' permission='DELETE_PATRON_STAT_CAT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::stat_cat' reporter:label='&class.actsc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='actor.stat_cat' id='actsc'>
+ <fields oils_persist:sequence='actor.stat_cat_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.actsc.entries.label;' name='entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.actsc.default_entries.label;' name='default_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.actsc.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.actsc.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.actsc.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.actsc.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.actsc.usr_summary.label;' name='usr_summary' reporter:datatype='bool' />
+ <field reporter:label='&field.actsc.sip_field.label;' name='sip_field' reporter:datatype='link' />
+ <field reporter:label='&field.actsc.sip_format.label;' name='sip_format' reporter:datatype='text' />
+ <field reporter:label='&field.actsc.checkout_archive.label;' name='checkout_archive' reporter:datatype='bool' />
+ <field reporter:label='&field.actsc.required.label;' name='required' reporter:datatype='bool' />
+ <field reporter:label='&field.actsc.allow_freetext.label;' name='allow_freetext' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='sip_field' reltype='has_a' class='actscsf' key='field' map='' />
+ <link field='entries' reltype='has_many' class='actsce' key='stat_cat' map='' />
+ <link field='default_entries' reltype='has_many' class='actsced' key='stat_cat' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='CREATE_PATRON_STAT_CAT'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='UPDATE_PATRON_STAT_CAT'></update>
+ <delete context_field='owner' permission='DELETE_PATRON_STAT_CAT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='metabib::series_field_entry' reporter:label='&class.msefe.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.series_field_entry' id='msefe'>
+ <fields oils_persist:sequence='metabib.series_field_entry_id_seq' oils_persist:primary='id'>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='container::user_bucket' reporter:label='&class.cub.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.user_bucket' id='cub'>
+ <fields oils_persist:sequence='container.user_bucket_id_seq' oils_persist:primary='id'>
+ <field name='items' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='btype' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='description' reporter:datatype='text' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='pub' reporter:datatype='bool' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='items' reltype='has_many' class='cubi' key='bucket' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create owning_user='owner' context='owning_lib' permission='CREATE_USER_BUCKET ADMIN_USER_BUCKET'></create>
+ <retrieve owning_user='owner' context='owning_lib' permission='CREATE_USER_BUCKET ADMIN_USER_BUCKET'></retrieve>
+ <update owning_user='owner' context='owning_lib' permission='CREATE_USER_BUCKET ADMIN_USER_BUCKET'></update>
+ <delete owning_user='owner' context='owning_lib' permission='CREATE_USER_BUCKET ADMIN_USER_BUCKET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::user_bucket_note' reporter:label='&class.cubn.label;' controller='open-ils.cstore' oils_persist:tablename='container.user_bucket_note' id='cubn'>
+ <fields oils_persist:sequence='container.user_bucket_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='bucket' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='bucket' reltype='has_a' class='cub' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='money::credit_payment' reporter:label='&class.mcrp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.credit_payment' id='mcrp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mcrp.accepting_usr.label;' name='accepting_usr' reporter:datatype='link' />
+ <field reporter:label='&field.mcrp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mcrp.amount_collected.label;' name='amount_collected' reporter:datatype='money' />
+ <field reporter:label='&field.mcrp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mcrp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mcrp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mcrp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mcrp.payment_type.label;' name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ <field reporter:label='&field.mcrp.payment.label;' name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='authority::full_rec' reporter:label='&class.afr.label;' controller='open-ils.cstore' oils_persist:tablename='authority.full_rec' id='afr'>
+ <fields oils_persist:sequence='authority.full_rec_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='ind1' />
+ <field name='ind2' />
+ <field name='record' />
+ <field name='subfield' />
+ <field name='tag' />
+ <field name='value' />
+ </fields>
+ <links>
+ <link field='record' reltype='has_a' class='are' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='authority::authority_linking' reporter:label='&class.aalink.label;' controller='open-ils.cstore' oils_persist:tablename='authority.authority_linking' id='aalink'>
+ <fields oils_persist:sequence='authority.authority_linking_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aalink.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aalink.source.label;' name='source' reporter:datatype='link' />
+ <field reporter:label='&field.aalink.target.label;' name='target' reporter:datatype='link' />
+ <field reporter:label='&field.aalink.field.label;' name='field' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='are' key='id' map='' />
+ <link field='target' reltype='has_a' class='are' key='id' map='' />
+ <link field='field' reltype='has_a' class='acsaf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='config::non_cataloged_type' reporter:label='&class.cnct.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.non_cataloged_type' id='cnct'>
+ <fields oils_persist:sequence='config.non_cataloged_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cnct.circ_duration.label;' name='circ_duration' reporter:datatype='interval' />
+ <field reporter:label='&field.cnct.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cnct.in_house.label;' name='in_house' reporter:datatype='bool' />
+ <field reporter:label='&field.cnct.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cnct.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='CREATE_NON_CAT_TYPE'></create>
+ <retrieve></retrieve>
+ <update context_field='owning_lib' permission='CREATE_NON_CAT_TYPE'></update>
+ <delete context_field='owning_lib' permission='CREATE_NON_CAT_TYPE'></delete>
+ </actions>
+ </permacrud>
+
+ </class>
+ <class reporter:label='&class.aout.label;' oils_persist:tablename='actor.org_unit_type' oils_obj:fieldmapper='actor::org_unit_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='aout'>
+ <fields oils_persist:sequence='actor.org_unit_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aout.children.label;' name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.aout.can_have_users.label;' name='can_have_users' reporter:datatype='bool' />
+ <field reporter:label='&field.aout.can_have_vols.label;' name='can_have_vols' reporter:datatype='bool' />
+ <field reporter:label='&field.aout.depth.label;' name='depth' reporter:datatype='int' />
+ <field reporter:label='&field.aout.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.aout.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.aout.opac_label.label;' name='opac_label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.aout.parent.label;' name='parent' reporter:datatype='link' />
+ <field reporter:label='&field.aout.org_units.label;' name='org_units' reporter:datatype='org_unit' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='parent' reltype='has_a' class='aout' key='id' map='' />
+ <link field='children' reltype='has_many' class='aout' key='parent' map='' />
+ <link field='org_units' reltype='has_many' class='aou' key='ou_type' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_ORG_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_ORG_TYPE'></update>
+ <delete global_required='true' permission='DELETE_ORG_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='biblio::record_note' reporter:label='&class.bren.label;' controller='open-ils.cstore' oils_persist:tablename='biblio.record_note' id='bren'>
+ <fields oils_persist:sequence='biblio.record_note_id_seq' oils_persist:primary='id'>
+ <field name='create_date' reporter:datatype='timestamp' />
+ <field name='creator' reporter:datatype='link' />
+ <field name='edit_date' reporter:datatype='timestamp' />
+ <field name='editor' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='pub' reporter:datatype='bool' />
+ <field name='record' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='money::user_circulation_summary' reporter:label='&class.mucs.label;' controller='open-ils.cstore' oils_persist:tablename='money.usr_circulation_summary' id='mucs'>
+ <fields oils_persist:sequence='' oils_persist:primary='usr'>
+ <field name='balance_owed' reporter:datatype='money' />
+ <field name='total_owed' reporter:datatype='money' />
+ <field name='total_paid' reporter:datatype='money' />
+ <field name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='money::grocery' reporter:label='&class.mg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.grocery' id='mg'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mg.billing_location.label;' name='billing_location' reporter:datatype='link' />
+ <field reporter:label='&field.mg.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mg.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mg.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.mg.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mg.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mg.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mg.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mg.billable_transaction.label;' name='billable_transaction' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mg.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.mg.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='billable_transaction' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='billing_location' reltype='has_a' class='aou' key='id' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='billing_location' permission='VIEW_USER_TRANSACTIONS'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::bib_source' reporter:label='&class.cbs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.bib_source' id='cbs'>
+ <fields oils_persist:sequence='config.bib_source_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' reporter:selector='source' />
+ <field name='quality' reporter:datatype='int' />
+ <field name='source' reporter:datatype='text' />
+ <field name='transcendant' reporter:datatype='bool' />
+ <field name='can_have_copies' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_BIB_SOURCE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_BIB_SOURCE'></update>
+ <delete global_required='true' permission='DELETE_BIB_SOURCE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::billable_transaction' reporter:label='&class.mbt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.billable_xact' id='mbt'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mbt.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mbt.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.mbt.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbt.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbt.unrecovered.label;' name='unrecovered' reporter:datatype='bool' />
+ <field reporter:label='&field.mbt.grocery.label;' name='grocery' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbt.circulation.label;' name='circulation' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbt.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbt.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbt.billing_total.label;' name='billing_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbt.payment_total.label;' name='payment_total' reporter:datatype='money' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbt.summary.label;' name='summary' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='grocery' reltype='might_have' class='mg' key='id' map='' />
+ <link field='circulation' reltype='might_have' class='circ' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ <link field='summary' reltype='might_have' class='mbts' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='actor::stat_cat_entry' reporter:label='&class.actsce.label;' controller='open-ils.cstore' oils_persist:tablename='actor.stat_cat_entry' id='actsce'>
+ <fields oils_persist:sequence='actor.stat_cat_entry_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.actsce.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.actsce.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.actsce.stat_cat.label;' name='stat_cat' reporter:datatype='link' />
+ <field reporter:label='&field.actsce.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.actsce.default_entries.label;' name='default_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='stat_cat' reltype='has_a' class='actsc' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='default_entries' reltype='has_many' class='actsced' key='stat_cat_entry' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='actor::stat_cat_entry_default' reporter:label='&class.actsced.label;' controller='open-ils.cstore' oils_persist:tablename='actor.stat_cat_entry_default' id='actsced'>
+ <fields oils_persist:sequence='actor.stat_cat_entry_default_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.actsced.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.actsced.stat_cat_entry.label;' name='stat_cat_entry' reporter:datatype='link' />
+ <field reporter:label='&field.actsced.stat_cat.label;' name='stat_cat' reporter:datatype='link' />
+ <field reporter:label='&field.actsced.owner.label;' name='owner' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='stat_cat' reltype='has_a' class='actsc' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='stat_cat_entry' reltype='has_a' class='actsce' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='container::user_bucket_item' reporter:label='&class.cubi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.user_bucket_item' id='cubi'>
+ <fields oils_persist:sequence='container.user_bucket_item_id_seq' oils_persist:primary='id'>
+ <field name='bucket' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='target_user' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='pos' reporter:datatype='int' />
+ <field name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='target_user' reltype='has_a' class='au' key='id' map='' />
+ <link field='bucket' reltype='has_a' class='cub' key='id' map='' />
+ <link field='notes' reltype='has_many' class='cubin' key='item' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_USER_BUCKET'>
+ <context link='bucket' owning_lib='owning_lib'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::user_bucket_item_note' reporter:label='&class.cubin.label;' controller='open-ils.cstore' oils_persist:tablename='container.user_bucket_item_note' id='cubin'>
+ <fields oils_persist:sequence='container.user_bucket_item_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='item' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='item' reltype='has_a' class='cubi' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='money::user_summary' reporter:label='&class.mus.label;' controller='open-ils.cstore' oils_persist:tablename='money.usr_summary' id='mus'>
+ <fields oils_persist:sequence='' oils_persist:primary='usr'>
+ <field name='balance_owed' reporter:datatype='money' />
+ <field name='total_owed' reporter:datatype='money' />
+ <field name='total_paid' reporter:datatype='money' />
+ <field name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.clfm.label;' oils_persist:tablename='config.lit_form_map' oils_obj:fieldmapper='config::lit_form_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='clfm'>
+ <fields oils_persist:sequence='' oils_persist:primary='code'>
+ <field reporter:label='&field.clfm.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.clfm.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.clfm.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_MARC_CODE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_MARC_CODE'></update>
+ <delete global_required='true' permission='DELETE_MARC_CODE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::work_payment' reporter:label='&class.mwp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.work_payment' id='mwp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mwp.accepting_usr.label;' name='accepting_usr' reporter:datatype='link' />
+ <field reporter:label='&field.mwp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mwp.amount_collected.label;' name='amount_collected' reporter:datatype='money' />
+ <field reporter:label='&field.mwp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mwp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mwp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mwp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mwp.payment.label;' name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mwp.payment_type.label;' name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::goods_payment' reporter:label='&class.mgp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.goods_payment' id='mgp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mgp.accepting_usr.label;' name='accepting_usr' reporter:datatype='link' />
+ <field reporter:label='&field.mgp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mgp.amount_collected.label;' name='amount_collected' reporter:datatype='money' />
+ <field reporter:label='&field.mgp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mgp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mgp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mgp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mgp.payment.label;' name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mgp.payment_type.label;' name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::open_circulation' reporter:label='&class.aoc.label;' controller='open-ils.cstore' oils_persist:tablename='action.open_circulation' id='aoc'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field name='checkin_lib' reporter:datatype='link' />
+ <field name='checkin_staff' reporter:datatype='link' />
+ <field name='checkin_time' reporter:datatype='timestamp' />
+ <field name='circ_lib' reporter:datatype='org_unit' />
+ <field name='circ_staff' reporter:datatype='link' />
+ <field name='desk_renewal' reporter:datatype='bool' />
+ <field name='due_date' reporter:datatype='timestamp' />
+ <field name='duration' reporter:datatype='interval' />
+ <field name='duration_rule' reporter:datatype='link' />
+ <field name='fine_interval' reporter:datatype='interval' />
+ <field name='id' reporter:datatype='id' />
+ <field name='max_fine' reporter:datatype='money' />
+ <field name='max_fine_rule' reporter:datatype='link' />
+ <field name='opac_renewal' reporter:datatype='bool' />
+ <field name='phone_renewal' reporter:datatype='bool' />
+ <field name='recurring_fine' reporter:datatype='money' />
+ <field name='recurring_fine_rule' reporter:datatype='link' />
+ <field name='renewal_remaining' reporter:datatype='int' />
+ <field name='grace_period' reporter:datatype='interval' />
+ <field name='stop_fines' reporter:datatype='text' />
+ <field name='stop_fines_time' reporter:datatype='timestamp' />
+ <field name='target_copy' reporter:datatype='link' />
+ <field name='usr' reporter:datatype='link' />
+ <field name='xact_finish' reporter:datatype='timestamp' />
+ <field name='xact_start' reporter:datatype='timestamp' />
+ <field name='circulation' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='circulation' reltype='might_have' class='circ' key='id' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::subject_field_entry' reporter:label='&class.msfe.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.subject_field_entry' id='msfe'>
+ <fields oils_persist:sequence='metabib.subject_field_entry_id_seq' oils_persist:primary='id'>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='config::rules::recurring_fine' reporter:label='&class.crrf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.rule_recurring_fine' id='crrf'>
+ <fields oils_persist:sequence='config.rule_recurring_fine_id_seq' oils_persist:primary='id'>
+ <field name='high' reporter:datatype='money' />
+ <field name='id' reporter:datatype='id' reporter:selector='name' />
+ <field name='low' reporter:datatype='money' />
+ <field name='name' reporter:datatype='text' />
+ <field name='normal' reporter:datatype='money' />
+ <field name='recurrence_interval' reporter:datatype='interval' />
+ <field name='grace_period' reporter:datatype='interval' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_RECURRING_FINE_RULE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_RECURRING_FINE_RULE'></update>
+ <delete global_required='true' permission='ADMIN_RECURRING_FINE_RULE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::check_payment' reporter:label='&class.mckp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.check_payment' id='mckp'>
+ <fields oils_persist:sequence='money.payment_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mckp.accepting_usr.label;' name='accepting_usr' reporter:datatype='link' />
+ <field reporter:label='&field.mckp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mckp.amount_collected.label;' name='amount_collected' reporter:datatype='money' />
+ <field reporter:label='&field.mckp.cash_drawer.label;' name='cash_drawer' reporter:datatype='link' />
+ <field reporter:label='&field.mckp.check_number.label;' name='check_number' reporter:datatype='int' />
+ <field reporter:label='&field.mckp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mckp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mckp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mckp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mckp.payment.label;' name='payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mckp.payment_type.label;' name='payment_type' reporter:datatype='text' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='payment' reltype='might_have' class='mp' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='cash_drawer' reltype='has_a' class='aws' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.acp.label;' oils_persist:tablename='asset.copy' reporter:core='true' oils_obj:fieldmapper='asset::copy' controller='open-ils.cstore open-ils.pcrud' id='acp'>
+ <fields oils_persist:sequence='asset.copy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acp.age_protect.label;' name='age_protect' reporter:datatype='link' />
+ <field reporter:label='&field.acp.alert_message.label;' name='alert_message' reporter:datatype='text' />
+ <field reporter:label='&field.acp.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.acp.call_number.label;' name='call_number' reporter:datatype='link' />
+ <field reporter:label='&field.acp.circ_as_type.label;' name='circ_as_type' reporter:datatype='text' />
+ <field reporter:label='&field.acp.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acp.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' />
+ <field reporter:label='&field.acp.circulate.label;' name='circulate' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.copy_number.label;' name='copy_number' reporter:datatype='text' />
+ <field reporter:label='&field.acp.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acp.active_date.label;' name='active_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acp.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acp.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.dummy_isbn.label;' name='dummy_isbn' reporter:datatype='text' />
+ <field reporter:label='&field.acp.deposit.label;' name='deposit' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.deposit_amount.label;' name='deposit_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acp.dummy_author.label;' name='dummy_author' reporter:datatype='text' />
+ <field reporter:label='&field.acp.dummy_title.label;' name='dummy_title' reporter:datatype='text' />
+ <field reporter:label='&field.acp.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acp.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acp.fine_level.label;' name='fine_level' reporter:datatype='int' />
+ <field reporter:label='&field.acp.holdable.label;' name='holdable' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acp.loan_duration.label;' name='loan_duration' reporter:datatype='int' />
+ <field reporter:label='&field.acp.location.label;' name='location' reporter:datatype='link' />
+ <field reporter:label='&field.acp.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.price.label;' name='price' reporter:datatype='money' />
+ <field reporter:label='&field.acp.ref.label;' name='ref' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.status.label;' name='status' reporter:datatype='link' />
+ <field reporter:label='&field.acp.status_changed_time.label;' name='status_changed_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acp.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ <field reporter:label='&field.acp.floating.label;' name='floating' reporter:datatype='link' />
+ <field reporter:label='&field.acp.cost.label;' name='cost' reporter:datatype='money' />
+ <field reporter:label='&field.acp.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.stat_cat_entry_copy_maps.label;' name='stat_cat_entry_copy_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.circulations.label;' name='circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.aged_circulations.label;' name='aged_circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.all_circulations.label;' name='all_circulations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.total_circ_count.label;' name='total_circ_count' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.last_circ.label;' name='last_circ' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.holds.label;' name='holds' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.stat_cat_entries.label;' name='stat_cat_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.parts.label;' name='parts' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.peer_record_maps.label;' name='peer_record_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.peer_records.label;' name='peer_records' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.last_captured_hold.label;' name='last_captured_hold' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.holds_count.label;' name='holds_count' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acp.tags.label;' name='tags' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='age_protect' reltype='has_a' class='crahp' key='id' map='' />
+ <link field='call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='holds' reltype='has_many' class='ahcm' key='target_copy' map='hold' />
+ <link field='stat_cat_entry_copy_maps' reltype='has_many' class='ascecm' key='owning_copy' map='' />
+ <link field='notes' reltype='has_many' class='acpn' key='owning_copy' map='' />
+ <link field='stat_cat_entries' reltype='has_many' class='ascecm' key='owning_copy' map='stat_cat_entry' />
+ <link field='circulations' reltype='has_many' class='circ' key='target_copy' map='' />
+ <link field='aged_circulations' reltype='has_many' class='acirc' key='target_copy' map='' />
+ <link field='all_circulations' reltype='has_many' class='combcirc' key='target_copy' map='' />
+ <link field='total_circ_count' reltype='might_have' class='erfcc' key='id' map='' />
+ <link field='last_circ' reltype='might_have' class='rlc' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='parts' reltype='has_many' class='acpm' key='target_copy' map='part' />
+ <link field='peer_record_maps' reltype='has_many' class='bpbcm' key='target_copy' map='' />
+ <link field='peer_records' reltype='has_many' class='bpbcm' key='target_copy' map='peer_record' />
+ <link field='last_captured_hold' reltype='has_a' class='alhr' key='current_copy' map='' />
+ <link field='floating' reltype='has_a' class='cfg' key='id' map='' />
+ <link field='holds_count' reltype='might_have' class='hasholdscount' key='id' map='' />
+ <link field='tags' reltype='has_many' class='acptcm' key='copy' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_COPY'>
+ <context field='owning_lib' link='call_number'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='UPDATE_COPY'>
+ <context field='owning_lib' link='call_number'></context>
+ </update>
+ <delete permission='DELETE_COPY'>
+ <context field='owning_lib' link='call_number'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='asset::copy_template' reporter:label='&class.act.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.copy_template' id='act'>
+ <fields oils_persist:sequence='asset.copy_template_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.act.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.act.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.act.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.act.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.act.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.act.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.act.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.act.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.act.status.label;' name='status' reporter:datatype='link' />
+ <field reporter:label='&field.act.location.label;' name='location' reporter:datatype='link' />
+ <field reporter:label='&field.act.loan_duration.label;' name='loan_duration' reporter:datatype='int' />
+ <field reporter:label='&field.act.fine_level.label;' name='fine_level' reporter:datatype='int' />
+ <field reporter:label='&field.act.age_protect.label;' name='age_protect' reporter:datatype='link' />
+ <field reporter:label='&field.act.circulate.label;' name='circulate' reporter:datatype='bool' />
+ <field reporter:label='&field.act.deposit.label;' name='deposit' reporter:datatype='bool' />
+ <field reporter:label='&field.act.ref.label;' name='ref' reporter:datatype='bool' />
+ <field reporter:label='&field.act.holdable.label;' name='holdable' reporter:datatype='bool' />
+ <field reporter:label='&field.act.deposit_amount.label;' name='deposit_amount' reporter:datatype='money' />
+ <field reporter:label='&field.act.price.label;' name='price' reporter:datatype='money' />
+ <field reporter:label='&field.act.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' />
+ <field reporter:label='&field.act.circ_as_type.label;' name='circ_as_type' reporter:datatype='link' />
+ <field reporter:label='&field.act.alert_message.label;' name='alert_message' reporter:datatype='text' />
+ <field reporter:label='&field.act.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.act.floating.label;' name='floating' reporter:datatype='link' />
+ <field reporter:label='&field.act.mint_condition.label;' name='mint_condition' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='floating' reltype='has_a' class='cfg' key='id' map='' />
+ <link field='age_protect' reltype='has_a' class='crahp' key='id' map='' />
+ <link field='circ_as_type' reltype='has_a' class='citm' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ASSET_COPY_TEMPLATE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_ASSET_COPY_TEMPLATE'></update>
+ <delete global_required='true' permission='ADMIN_ASSET_COPY_TEMPLATE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.crahp.label;' oils_persist:tablename='config.rule_age_hold_protect' oils_obj:fieldmapper='config::rules::age_hold_protect' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='crahp'>
+ <fields oils_persist:sequence='config.rule_age_hold_protect_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.crahp.age.label;' name='age' reporter:datatype='interval' />
+ <field reporter:label='&field.crahp.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.crahp.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.crahp.prox.label;' name='prox' reporter:datatype='int' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_AGE_PROTECT_RULE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_AGE_PROTECT_RULE'></update>
+ <delete global_required='true' permission='ADMIN_AGE_PROTECT_RULE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::rules::max_fine' reporter:label='&class.crmf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.rule_max_fine' id='crmf'>
+ <fields oils_persist:sequence='config.rule_max_fine_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.crmf.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.crmf.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.crmf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.crmf.is_percent.label;' name='is_percent' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_MAX_FINE_RULE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_MAX_FINE_RULE'></update>
+ <delete global_required='true' permission='ADMIN_MAX_FINE_RULE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='permission::grp_tree' reporter:label='&class.pgt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='permission.grp_tree' id='pgt'>
+ <fields oils_persist:sequence='permission.grp_tree_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.pgt.children.label;' name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.pgt.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.pgt.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.pgt.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.pgt.parent.label;' name='parent' reporter:datatype='link' />
+ <field reporter:label='&field.pgt.perm_interval.label;' name='perm_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.pgt.application_perm.label;' name='application_perm' reporter:datatype='text' />
+ <field reporter:label='&field.pgt.usergroup.label;' name='usergroup' reporter:datatype='bool' />
+ <field reporter:label='&field.pgt.hold_priority.label;' name='hold_priority' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='parent' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='children' reltype='has_many' class='pgt' key='parent' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_PERM'></create>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ <update global_required='true' permission='UPDATE_PERM'></update>
+ <delete global_required='true' permission='DELETE_PERM'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::survey_answer' reporter:label='&class.asva.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.survey_answer' id='asva'>
+ <fields oils_persist:sequence='action.survey_answer_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.asva.responses.label;' name='responses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.asva.answer.label;' name='answer' reporter:datatype='text' />
+ <field reporter:label='&field.asva.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.asva.question.label;' name='question' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='question' reltype='has_a' class='asvq' key='id' map='' />
+ <link field='responses' reltype='has_many' class='asvr' key='answer' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_SURVEY'>
+ <context jump='survey' field='owner' link='question'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='ADMIN_SURVEY'>
+ <context jump='survey' field='owner' link='question'></context>
+ </update>
+ <delete permission='ADMIN_SURVEY'>
+ <context jump='survey' field='owner' link='question'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.ancc.label;' oils_persist:tablename='action.non_cataloged_circulation' reporter:core='true' oils_obj:fieldmapper='action::non_cataloged_circulation' controller='open-ils.cstore open-ils.pcrud' id='ancc'>
+ <fields oils_persist:sequence='action.non_cataloged_circulation_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ancc.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ancc.circ_time.label;' name='circ_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ancc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ancc.item_type.label;' name='item_type' reporter:datatype='link' />
+ <field reporter:label='&field.ancc.patron.label;' name='patron' reporter:datatype='link' />
+ <field reporter:label='&field.ancc.staff.label;' name='staff' reporter:datatype='link' />
+ <field reporter:label='&field.ancc.duedate.label;' name='duedate' reporter:datatype='timestamp' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='item_type' reltype='has_a' class='cnct' key='id' map='' />
+ <link field='staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='patron' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='circ_lib' permission='VIEW_CIRCULATIONS'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::open_user_circulation_summary' reporter:label='&class.moucs.label;' controller='open-ils.cstore' oils_persist:tablename='money.open_usr_circulation_summary' id='moucs'>
+ <fields oils_persist:sequence='' oils_persist:primary='usr'>
+ <field name='balance_owed' reporter:datatype='money' />
+ <field name='total_owed' reporter:datatype='money' />
+ <field name='total_paid' reporter:datatype='money' />
+ <field name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='action::unfulfilled_hold_list' reporter:label='&class.aufh.label;' controller='open-ils.cstore' oils_persist:tablename='action.unfulfilled_hold_list' id='aufh'>
+ <fields oils_persist:sequence='action.unfulfilled_hold_list_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aufh.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.aufh.current_copy.label;' name='current_copy' reporter:datatype='link' />
+ <field reporter:label='&field.aufh.fail_time.label;' name='fail_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aufh.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.aufh.id.label;' name='id' reporter:datatype='id' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='current_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::identifier_field_entry' reporter:label='&class.mife.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.identifier_field_entry' id='mife'>
+ <fields oils_persist:sequence='metabib.identifier_field_entry_id_seq' oils_persist:primary='id'>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='metabib::title_field_entry' reporter:label='&class.mtfe.label;' controller='open-ils.cstore' oils_persist:tablename='metabib.title_field_entry' id='mtfe'>
+ <fields oils_persist:sequence='metabib.title_field_entry_id_seq' oils_persist:primary='id'>
+ <field name='field' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='source' reporter:datatype='link' />
+ <field name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='source' reltype='has_a' class='bre' key='id' map='' />
+ <link field='field' reltype='has_a' class='cmf' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='actor::stat_cat_entry_user_map' reporter:label='&class.actscecm.label;' controller='open-ils.cstore' oils_persist:tablename='actor.stat_cat_entry_usr_map' id='actscecm'>
+ <fields oils_persist:sequence='actor.stat_cat_entry_usr_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.actscecm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.actscecm.stat_cat.label;' name='stat_cat' reporter:datatype='link' />
+ <field reporter:label='&field.actscecm.stat_cat_entry.label;' name='stat_cat_entry' reporter:datatype='text' />
+ <field reporter:label='&field.actscecm.target_usr.label;' name='target_usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='target_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='stat_cat' reltype='has_a' class='actsc' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='permission::grp_perm_map' reporter:label='&class.pgpm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='permission.grp_perm_map' id='pgpm'>
+ <fields oils_persist:sequence='permission.grp_perm_map_id_seq' oils_persist:primary='id'>
+ <field name='depth' reporter:datatype='int' />
+ <field name='grantable' reporter:datatype='bool' />
+ <field name='grp' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='perm' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='grp' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='perm' reltype='has_a' class='ppl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ASSIGN_GROUP_PERM'></create>
+ <retrieve global_required='true' permission='ASSIGN_GROUP_PERM UPDATE_GROUP_PERM REMOVE_GROUP_PERM'></retrieve>
+ <update global_required='true' permission='UPDATE_GROUP_PERM'></update>
+ <delete global_required='true' permission='REMOVE_GROUP_PERM'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::copy_bucket' reporter:label='&class.ccb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.copy_bucket' id='ccb'>
+ <fields oils_persist:sequence='container.copy_bucket_id_seq' oils_persist:primary='id'>
+ <field name='items' oils_persist:virtual='true' />
+ <field name='btype' reporter:datatype='text' />
+ <field name='id' reporter:datatype='id' />
+ <field name='name' reporter:datatype='text' />
+ <field name='description' reporter:datatype='text' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='pub' reporter:datatype='bool' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='items' reltype='has_many' class='ccbi' key='bucket' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create owning_user='owner' context='owning_lib' permission='CREATE_COPY_BUCKET ADMIN_COPY_BUCKET'></create>
+ <retrieve owning_user='owner' context='owning_lib' permission='CREATE_COPY_BUCKET ADMIN_COPY_BUCKET'></retrieve>
+ <update owning_user='owner' context='owning_lib' permission='CREATE_COPY_BUCKET ADMIN_COPY_BUCKET'></update>
+ <delete owning_user='owner' context='owning_lib' permission='CREATE_COPY_BUCKET ADMIN_COPY_BUCKET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::copy_bucket_note' reporter:label='&class.ccbn.label;' controller='open-ils.cstore' oils_persist:tablename='container.copy_bucket_note' id='ccbn'>
+ <fields oils_persist:sequence='container.copy_bucket_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='bucket' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='bucket' reltype='has_a' class='ccb' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='permission::usr_work_ou_map' reporter:label='&class.puwoum.label;' controller='open-ils.cstore' oils_persist:tablename='permission.usr_work_ou_map' id='puwoum'>
+ <fields oils_persist:sequence='permission.usr_work_ou_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.puwoum.id.label;' name='id' reporter:datatype='int' />
+ <field reporter:label='&field.puwoum.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.puwoum.work_ou.label;' name='work_ou' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='work_ou' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='permission::usr_perm_map' reporter:label='&class.pupm.label;' controller='open-ils.cstore' oils_persist:tablename='permission.usr_perm_map' id='pupm'>
+ <fields oils_persist:sequence='permission.usr_perm_map_id_seq' oils_persist:primary='id'>
+ <field name='depth' reporter:datatype='int' />
+ <field name='grantable' reporter:datatype='bool' />
+ <field name='id' reporter:datatype='id' />
+ <field name='perm' reporter:datatype='link' />
+ <field name='usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='perm' reltype='has_a' class='ppl' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='permission::usr_object_perm_map' reporter:label='&class.puopm.label;' controller='open-ils.cstore' oils_persist:tablename='permission.usr_object_perm_map' id='puopm'>
+ <fields oils_persist:sequence='permission.usr_object_perm_map_id_seq' oils_persist:primary='id'>
+ <field name='object_id' reporter:datatype='text' />
+ <field name='grantable' reporter:datatype='bool' />
+ <field name='id' reporter:datatype='id' />
+ <field name='perm' reporter:datatype='link' />
+ <field name='usr' reporter:datatype='link' />
+ <field name='object_type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='perm' reltype='has_a' class='ppl' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.mp.label;' oils_persist:tablename='money.payment_view' reporter:core='true' oils_obj:fieldmapper='money::payment' controller='open-ils.cstore open-ils.pcrud' id='mp'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field reporter:label='&field.mp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mp.payment_type.label;' name='payment_type' reporter:datatype='text' />
+ <field reporter:label='&field.mp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mp.voided.label;' name='voided' reporter:datatype='bool' />
+ <field reporter:label='&field.mp.cash_payment.label;' name='cash_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.credit_card_payment.label;' name='credit_card_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.credit_payment.label;' name='credit_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.check_payment.label;' name='check_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.work_payment.label;' name='work_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.forgive_payment.label;' name='forgive_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.goods_payment.label;' name='goods_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mp.account_adjustment.label;' name='account_adjustment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='cash_payment' reltype='might_have' class='mcp' key='id' map='' />
+ <link field='credit_card_payment' reltype='might_have' class='mccp' key='id' map='' />
+ <link field='credit_payment' reltype='might_have' class='mcrp' key='id' map='' />
+ <link field='check_payment' reltype='might_have' class='mckp' key='id' map='' />
+ <link field='work_payment' reltype='might_have' class='mwp' key='id' map='' />
+ <link field='forgive_payment' reltype='might_have' class='mfp' key='id' map='' />
+ <link field='goods_payment' reltype='might_have' class='mgp' key='id' map='' />
+ <link field='account_adjustment' reltype='might_have' class='maa' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mbp.label;' oils_persist:tablename='money.bnm_payment_view' reporter:core='true' oils_obj:fieldmapper='money::bnm_payment' controller='open-ils.cstore open-ils.pcrud' id='mbp'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field reporter:label='&field.mbp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mbp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mbp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mbp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mbp.payment_type.label;' name='payment_type' reporter:datatype='text' />
+ <field reporter:label='&field.mbp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mbp.accepting_usr.label;' name='accepting_usr' reporter:datatype='link' />
+ <field reporter:label='&field.mbp.voided.label;' name='voided' reporter:datatype='bool' />
+ <field reporter:label='&field.mbp.cash_payment.label;' name='cash_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.credit_card_payment.label;' name='credit_card_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.credit_payment.label;' name='credit_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.check_payment.label;' name='check_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.work_payment.label;' name='work_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.forgive_payment.label;' name='forgive_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.goods_payment.label;' name='goods_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mbp.account_adjustment.label;' name='account_adjustment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='cash_payment' reltype='might_have' class='mcp' key='id' map='' />
+ <link field='credit_card_payment' reltype='might_have' class='mccp' key='id' map='' />
+ <link field='credit_payment' reltype='might_have' class='mcrp' key='id' map='' />
+ <link field='check_payment' reltype='might_have' class='mckp' key='id' map='' />
+ <link field='work_payment' reltype='might_have' class='mwp' key='id' map='' />
+ <link field='forgive_payment' reltype='might_have' class='mfp' key='id' map='' />
+ <link field='goods_payment' reltype='might_have' class='mgp' key='id' map='' />
+ <link field='account_adjustment' reltype='might_have' class='maa' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.mndp.label;' oils_persist:tablename='money.non_drawer_payment_view' reporter:core='true' oils_obj:fieldmapper='money::non_drawer_payment' controller='open-ils.reporter' id='mndp'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field reporter:label='&field.mndp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mndp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mndp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mndp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mndp.payment_type.label;' name='payment_type' reporter:datatype='text' />
+ <field reporter:label='&field.mndp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mndp.voided.label;' name='voided' reporter:datatype='bool' />
+ <field reporter:label='&field.mndp.work_payment.label;' name='work_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mndp.forgive_payment.label;' name='forgive_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mndp.goods_payment.label;' name='goods_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mndp.credit_payment.label;' name='credit_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mndp.account_adjustment.label;' name='account_adjustment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='work_payment' reltype='might_have' class='mwp' key='id' map='' />
+ <link field='forgive_payment' reltype='might_have' class='mfp' key='id' map='' />
+ <link field='goods_payment' reltype='might_have' class='mgp' key='id' map='' />
+ <link field='credit_payment' reltype='might_have' class='mcrp' key='id' map='' />
+ <link field='account_adjustment' reltype='might_have' class='maa' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.mdp.label;' oils_persist:tablename='money.desk_payment_view' reporter:core='true' oils_obj:fieldmapper='money::desk_payment' controller='open-ils.cstore' id='mdp'>
+ <fields oils_persist:sequence='' oils_persist:primary='id'>
+ <field reporter:label='&field.mdp.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mdp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mdp.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mdp.payment_ts.label;' name='payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mdp.payment_type.label;' name='payment_type' reporter:datatype='text' />
+ <field reporter:label='&field.mdp.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mdp.accepting_usr.label;' name='accepting_usr' reporter:datatype='link' />
+ <field reporter:label='&field.mdp.cash_drawer.label;' name='cash_drawer' reporter:datatype='link' />
+ <field reporter:label='&field.mdp.voided.label;' name='voided' reporter:datatype='bool' />
+ <field reporter:label='&field.mdp.cash_payment.label;' name='cash_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mdp.credit_card_payment.label;' name='credit_card_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.mdp.check_payment.label;' name='check_payment' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='cash_payment' reltype='might_have' class='mcp' key='id' map='' />
+ <link field='credit_card_payment' reltype='might_have' class='mccp' key='id' map='' />
+ <link field='check_payment' reltype='might_have' class='mckp' key='id' map='' />
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ <link field='accepting_usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='cash_drawer' reltype='has_a' class='aws' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='container::biblio_record_entry_bucket_item' reporter:label='&class.cbrebi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='container.biblio_record_entry_bucket_item' id='cbrebi'>
+ <fields oils_persist:sequence='container.biblio_record_entry_bucket_item_id_seq' oils_persist:primary='id'>
+ <field name='bucket' reporter:datatype='link' />
+ <field name='id' reporter:datatype='id' />
+ <field name='target_biblio_record_entry' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='pos' reporter:datatype='int' />
+ <field name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='target_biblio_record_entry' reltype='has_a' class='bre' key='id' map='' />
+ <link field='bucket' reltype='has_a' class='cbreb' key='id' map='' />
+ <link field='notes' reltype='has_many' class='cbrebin' key='item' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_COPY_BUCKET'>
+ <context link='bucket' owning_lib='owning_lib'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='container::biblio_record_entry_bucket_item_note' reporter:label='&class.cbrebin.label;' controller='open-ils.cstore' oils_persist:tablename='container.biblio_record_entry_bucket_item_note' id='cbrebin'>
+ <fields oils_persist:sequence='container.biblio_record_entry_bucket_item_note_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='item' reporter:datatype='link' />
+ <field name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='item' reltype='has_a' class='cbrebi' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='asset::stat_cat_entry' reporter:label='&class.asce.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.stat_cat_entry' id='asce'>
+ <fields oils_persist:sequence='asset.stat_cat_entry_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.asce.id.label;' name='id' reporter:datatype='int' />
+ <field reporter:label='&field.asce.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.asce.stat_cat.label;' name='stat_cat' reporter:datatype='link' />
+ <field reporter:label='&field.asce.value.label;' name='value' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links>
+ <link field='stat_cat' reltype='has_a' class='asc' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='asset::stat_cat_sip_fields' reporter:label='&class.ascsf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='asset.stat_cat_sip_fields' id='ascsf'>
+ <fields oils_persist:primary='field'>
+ <field reporter:label='&field.ascsf.field.label;' name='field' reporter:datatype='text' reporter:selector='name' />
+ <field reporter:label='&field.ascsf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.ascsf.one_only.label;' name='one_only' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_COPY_STAT_CAT'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_COPY_STAT_CAT'></update>
+ <delete global_required='true' permission='DELETE_COPY_STAT_CAT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.ahrcc.label;' oils_persist:tablename='action.hold_request_cancel_cause' oils_obj:fieldmapper='action::hold_request_cancel_cause' controller='open-ils.cstore open-ils.reporter-store open-ils.pcrud' id='ahrcc' oils_persist:restrict_primary='100'>
+ <fields oils_persist:sequence='action.hold_request_cancel_cause_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ahrcc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahrcc.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_HOLD_CANCEL_CAUSE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_HOLD_CANCEL_CAUSE'></update>
+ <delete global_required='true' permission='ADMIN_HOLD_CANCEL_CAUSE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class reporter:label='&class.artc.label;' oils_persist:tablename='action.reservation_transit_copy' reporter:core='true' oils_obj:fieldmapper='action::reservation_transit_copy' controller='open-ils.cstore open-ils.pcrud' id='artc'>
+ <fields oils_persist:sequence='action.transit_copy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.artc.copy_status.label;' name='copy_status' reporter:datatype='link' />
+ <field reporter:label='&field.artc.dest.label;' name='dest' reporter:datatype='org_unit' />
+ <field reporter:label='&field.artc.dest_recv_time.label;' name='dest_recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.artc.reservation.label;' name='reservation' reporter:datatype='link' />
+ <field reporter:label='&field.artc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.artc.persistant_transfer.label;' name='persistant_transfer' reporter:datatype='bool' />
+ <field reporter:label='&field.artc.prev_hop.label;' name='prev_hop' reporter:datatype='link' />
+ <field reporter:label='&field.artc.source.label;' name='source' reporter:datatype='org_unit' />
+ <field reporter:label='&field.artc.source_send_time.label;' name='source_send_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.artc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.artc.transit_copy.label;' name='transit_copy' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.artc.prev_dest.label;' name='prev_dest' reporter:datatype='org_unit' />
+ <field reporter:label='&field.artc.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='transit_copy' reltype='might_have' class='atc' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='brsrc' key='id' map='' />
+ <link field='source' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='prev_dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='reservation' reltype='has_a' class='bresv' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='TRANSIT_COPY'>
+ <context field='owner' link='target_copy'></context>
+ </create>
+ <retrieve></retrieve>
+ <update context_field='dest source' permission='UPDATE_TRANSIT'></update>
+ <delete context_field='dest source' permission='DELETE_TRANSIT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.ahtc.label;' oils_persist:tablename='action.hold_transit_copy' reporter:core='true' oils_obj:fieldmapper='action::hold_transit_copy' controller='open-ils.cstore open-ils.pcrud' id='ahtc'>
+ <fields oils_persist:sequence='action.transit_copy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.ahtc.copy_status.label;' name='copy_status' reporter:datatype='link' />
+ <field reporter:label='&field.ahtc.dest.label;' name='dest' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahtc.dest_recv_time.label;' name='dest_recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahtc.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.ahtc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ahtc.persistant_transfer.label;' name='persistant_transfer' reporter:datatype='bool' />
+ <field reporter:label='&field.ahtc.prev_hop.label;' name='prev_hop' reporter:datatype='link' />
+ <field reporter:label='&field.ahtc.source.label;' name='source' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahtc.source_send_time.label;' name='source_send_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ahtc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.ahtc.transit_copy.label;' name='transit_copy' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.ahtc.prev_dest.label;' name='prev_dest' reporter:datatype='org_unit' />
+ <field reporter:label='&field.ahtc.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='transit_copy' reltype='might_have' class='atc' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='source' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='prev_dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='TRANSIT_COPY'>
+ <context field='circ_lib' link='target_copy'></context>
+ </create>
+ <retrieve></retrieve>
+ <update context_field='dest source' permission='UPDATE_TRANSIT'></update>
+ <delete context_field='dest source' permission='DELETE_TRANSIT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='money::billing' reporter:label='&class.mb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='money.billing' id='mb'>
+ <fields oils_persist:sequence='money.billing_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.mb.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.mb.billing_ts.label;' name='billing_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mb.billing_type.label;' name='billing_type' reporter:datatype='text' />
+ <field reporter:label='&field.mb.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.mb.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.mb.void_time.label;' name='void_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.mb.voided.label;' name='voided' reporter:datatype='bool' />
+ <field reporter:label='&field.mb.voider.label;' name='voider' reporter:datatype='link' />
+ <field reporter:label='&field.mb.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.mb.btype.label;' name='btype' reporter:datatype='link' />
+ <field reporter:label='&field.mb.adjustments.label;' name='adjustments' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='xact' reltype='has_a' class='mbt' key='id' map='' />
+ <link field='voider' reltype='has_a' class='au' key='id' map='' />
+ <link field='btype' reltype='has_a' class='cbt' key='id' map='' />
+ <link field='adjustments' reltype='has_many' class='maa' key='billing' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='VIEW_USER_TRANSACTIONS'>
+ <context jump='usr' field='home_ou' link='xact'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='permission::usr_grp_map' reporter:label='&class.pugm.label;' controller='open-ils.cstore' oils_persist:tablename='permission.usr_grp_map' id='pugm'>
+ <fields oils_persist:sequence='permission.usr_grp_map_id_seq' oils_persist:primary='id'>
+ <field name='grp' />
+ <field name='id' reporter:datatype='id' />
+ <field name='usr' />
+ </fields>
+ <links>
+ <link field='grp' reltype='has_a' class='pgt' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.i18n.label;' oils_persist:tablename='config.i18n_core' oils_obj:fieldmapper='config::i18n_core' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='i18n'>
+ <fields oils_persist:sequence='config.i18n_core_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='fq_field' reporter:datatype='text' />
+ <field name='identity_value' reporter:datatype='text' />
+ <field name='translation' reporter:datatype='text' />
+ <field name='string' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='translation' reltype='has_a' class='i18n_l' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_TRANSLATION'></create>
+ <retrieve global_required='true' permission='CREATE_TRANSLATION UPDATE_TRANSLATION DELETE_TRANSLATION'></retrieve>
+ <update global_required='true' permission='UPDATE_TRANSLATION'></update>
+ <delete global_required='true' permission='DELETE_TRANSLATION'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.fdoc.label;' oils_persist:tablename='config.idl_field_doc' oils_obj:fieldmapper='config::idl_field_doc' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='fdoc'>
+ <fields oils_persist:sequence='config.idl_field_doc_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='fm_class' reporter:datatype='text' />
+ <field name='field' reporter:datatype='text' />
+ <field name='owner' reporter:datatype='org_unit' />
+ <field name='string' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_FIELD_DOC'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_FIELD_DOC'></update>
+ <delete context_field='owner' permission='ADMIN_FIELD_DOC'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.i18n_l.label;' oils_persist:tablename='config.i18n_locale' oils_obj:fieldmapper='config::i18n_locale' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='i18n_l'>
+ <fields oils_persist:primary='code'>
+ <field name='code' reporter:datatype='id' />
+ <field name='marc_code' reporter:datatype='text' />
+ <field name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field name='rtl' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='CREATE_LOCALE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='UPDATE_LOCALE'></update>
+ <delete global_required='true' permission='DELETE_LOCALE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.cbt.label;' oils_persist:tablename='config.billing_type' oils_obj:fieldmapper='config::billing_type' controller='open-ils.cstore open-ils.pcrud' id='cbt' oils_persist:restrict_primary='100'>
+ <fields oils_persist:sequence='config.billing_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cbt.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cbt.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.cbt.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.cbt.default_price.label;' name='default_price' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='CREATE_BILLING_TYPE'></create>
+ <retrieve context_field='owner' permission='VIEW_BILLING_TYPE CREATE_BILLING_TYPE UPDATE_BILLING_TYPE DELETE_BILLING_TYPE'></retrieve>
+ <update context_field='owner' permission='UPDATE_BILLING_TYPE'></update>
+ <delete context_field='owner' permission='DELETE_BILLING_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::user_request_type' reporter:label='&class.aurt.label;' controller='open-ils.cstore open-ils.reporter-store open-ils.pcrud' oils_persist:tablename='acq.user_request_type' id='aurt'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.aurt.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.aurt.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_USER_REQUEST_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_USER_REQUEST_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_USER_REQUEST_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::user_request' reporter:label='&class.aur.label;' controller='open-ils.cstore open-ils.reporter-store open-ils.pcrud' oils_persist:tablename='acq.user_request' id='aur'>
+ <fields oils_persist:sequence='acq.user_request_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aur.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.aur.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.aur.request_type.label;' name='request_type' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.aur.hold.label;' name='hold' reporter:datatype='bool' />
+ <field reporter:label='&field.aur.pickup_lib.label;' name='pickup_lib' reporter:datatype='link' />
+ <field reporter:label='&field.aur.holdable_formats.label;' name='holdable_formats' reporter:datatype='text' />
+ <field reporter:label='&field.aur.phone_notify.label;' name='phone_notify' reporter:datatype='text' />
+ <field reporter:label='&field.aur.email_notify.label;' name='email_notify' reporter:datatype='bool' />
+ <field reporter:label='&field.aur.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.aur.eg_bib.label;' name='eg_bib' reporter:datatype='link' />
+ <field reporter:label='&field.aur.request_date.label;' name='request_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aur.need_before.label;' name='need_before' reporter:datatype='timestamp' />
+ <field reporter:label='&field.aur.max_fee.label;' name='max_fee' reporter:datatype='text' />
+ <field reporter:label='&field.aur.isxn.label;' name='isxn' reporter:datatype='text' />
+ <field reporter:label='&field.aur.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.aur.volume.label;' name='volume' reporter:datatype='text' />
+ <field reporter:label='&field.aur.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.aur.article_title.label;' name='article_title' reporter:datatype='text' />
+ <field reporter:label='&field.aur.article_pages.label;' name='article_pages' reporter:datatype='text' />
+ <field reporter:label='&field.aur.publisher.label;' name='publisher' reporter:datatype='text' />
+ <field reporter:label='&field.aur.location.label;' name='location' reporter:datatype='text' />
+ <field reporter:label='&field.aur.pubdate.label;' name='pubdate' reporter:datatype='text' />
+ <field reporter:label='&field.aur.mentioned.label;' name='mentioned' reporter:datatype='text' />
+ <field reporter:label='&field.aur.other_info.label;' name='other_info' reporter:datatype='text' />
+ <field reporter:label='&field.aur.cancel_reason.label;' name='cancel_reason' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ <link field='eg_bib' reltype='has_a' class='bre' key='id' map='' />
+ <link field='request_type' reltype='has_a' class='aurt' key='id' map='' />
+ <link field='cancel_reason' reltype='has_a' class='acqcr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='user_request.create'>
+ <context field='home_ou' link='usr'></context>
+ </create>
+ <retrieve permission='user_request.view'>
+ <context field='home_ou' link='usr'></context>
+ </retrieve>
+ <update permission='user_request.update'>
+ <context field='home_ou' link='usr'></context>
+ </update>
+ <delete permission='user_request.delete'>
+ <context field='home_ou' link='usr'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::currency_type' reporter:label='&class.acqct.label;' controller='open-ils.cstore open-ils.reporter-store open-ils.pcrud' oils_persist:tablename='acq.currency_type' id='acqct'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.acqct.code.label;' name='code' reporter:datatype='text' reporter:selector='label' />
+ <field reporter:label='&field.acqct.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CURRENCY_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CURRENCY_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_CURRENCY_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::exchange_rate' reporter:label='&class.acqexr.label;' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' oils_persist:tablename='acq.exchange_rate' id='acqexr'>
+ <fields oils_persist:sequence='acq.exchange_rate_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqexr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqexr.from_currency.label;' name='from_currency' reporter:datatype='link' />
+ <field reporter:label='&field.acqexr.to_currency.label;' name='to_currency' reporter:datatype='link' />
+ <field reporter:label='&field.acqexr.ratio.label;' name='ratio' />
+ </fields>
+ <links>
+ <link field='from_currency' reltype='has_a' class='acqct' key='code' map='' />
+ <link field='to_currency' reltype='has_a' class='acqct' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_CURRENCY_TYPE'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_CURRENCY_TYPE'></update>
+ <delete global_required='true' permission='ADMIN_CURRENCY_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::provider' reporter:label='&class.acqpro.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.provider' id='acqpro'>
+ <fields oils_persist:sequence='acq.provider_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpro.id.label;' name='id' reporter:datatype='id' reporter:selector='code' />
+ <field reporter:label='&field.acqpro.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqpro.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqpro.currency_type.label;' name='currency_type' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.acqpro.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.holding_tag.label;' name='holding_tag' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.addresses.label;' name='addresses' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpro.san.label;' name='san' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.edi_default.label;' name='edi_default' reporter:datatype='link' />
+ <field reporter:label='&field.acqpro.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.acqpro.prepayment_required.label;' name='prepayment_required' reporter:datatype='bool' />
+ <field reporter:label='&field.acqpro.url.label;' name='url' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.email.label;' name='email' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.phone.label;' name='phone' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.fax_phone.label;' name='fax_phone' reporter:datatype='text' />
+ <field reporter:label='&field.acqpro.default_claim_policy.label;' name='default_claim_policy' reporter:datatype='link' />
+ <field reporter:label='&field.acqpro.default_copy_count.label;' name='default_copy_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqpro.provider_notes.label;' name='provider_notes' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='currency_type' reltype='has_a' class='acqct' key='code' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='addresses' reltype='has_many' class='acqpa' key='provider' map='' />
+ <link field='edi_default' reltype='has_a' class='acqedi' key='id' map='' />
+ <link field='default_claim_policy' reltype='has_a' class='acqclp' key='id' map='' />
+ <link field='provider_notes' reltype='has_many' class='acqpron' key='provider' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_PROVIDER'></create>
+ <retrieve context_field='owner' permission='ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER'></retrieve>
+ <update context_field='owner' permission='ADMIN_PROVIDER'></update>
+ <delete context_field='owner' permission='ADMIN_PROVIDER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::provider_note' reporter:label='&class.acqpron.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.provider_note' id='acqpron'>
+ <fields oils_persist:sequence='acq.provider_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpron.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpron.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqpron.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqpron.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpron.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpron.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acqpron.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::invoice_payment_method' reporter:label='&class.acqipm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.invoice_payment_method' id='acqipm'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.acqipm.code.label;' name='code' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqipm.name.label;' name='name' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INVOICE_PAYMENT_METHOD'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INVOICE_PAYMENT_METHOD'></update>
+ <delete global_required='true' permission='ADMIN_INVOICE_PAYMENT_METHOD'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::invoice' reporter:label='&class.acqinv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.invoice' id='acqinv'>
+ <fields oils_persist:sequence='acq.invoice_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqinv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqinv.receiver.label;' name='receiver' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqinv.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqinv.shipper.label;' name='shipper' reporter:datatype='link' />
+ <field reporter:label='&field.acqinv.recv_date.label;' name='recv_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqinv.recv_method.label;' name='recv_method' reporter:datatype='link' />
+ <field reporter:label='&field.acqinv.inv_type.label;' name='inv_type' reporter:datatype='text' />
+ <field reporter:label='&field.acqinv.inv_ident.label;' name='inv_ident' reporter:datatype='text' />
+ <field reporter:label='&field.acqinv.payment_auth.label;' name='payment_auth' reporter:datatype='text' />
+ <field reporter:label='&field.acqinv.payment_method.label;' name='payment_method' reporter:datatype='link' />
+ <field reporter:label='&field.acqinv.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqinv.complete.label;' name='complete' reporter:datatype='bool' />
+ <field reporter:label='&field.acqinv.entries.label;' name='entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqinv.items.label;' name='items' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='receiver' reltype='has_a' class='aou' key='id' map='' />
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='shipper' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='recv_method' reltype='has_a' class='acqim' key='code' map='' />
+ <link field='payment_method' reltype='has_a' class='acqipm' key='code' map='' />
+ <link field='entries' reltype='has_many' class='acqie' key='invoice' map='' />
+ <link field='items' reltype='has_many' class='acqii' key='invoice' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='receiver' permission='CREATE_INVOICE'></create>
+ <retrieve context_field='receiver' permission='CREATE_INVOICE VIEW_INVOICE'></retrieve>
+ <update context_field='receiver' permission='CREATE_INVOICE'></update>
+ <delete context_field='receiver' permission='CREATE_INVOICE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::invoice_entry' reporter:label='&class.acqie.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.invoice_entry' id='acqie'>
+ <fields oils_persist:sequence='acq.invoice_entry_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqie.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqie.invoice.label;' name='invoice' reporter:datatype='link' />
+ <field reporter:label='&field.acqie.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqie.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqie.inv_item_count.label;' name='inv_item_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqie.phys_item_count.label;' name='phys_item_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqie.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqie.billed_per_item.label;' name='billed_per_item' reporter:datatype='bool' />
+ <field reporter:label='&field.acqie.cost_billed.label;' name='cost_billed' reporter:datatype='money' />
+ <field reporter:label='&field.acqie.actual_cost.label;' name='actual_cost' reporter:datatype='money' />
+ <field reporter:label='&field.acqie.amount_paid.label;' name='amount_paid' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='invoice' reltype='has_a' class='acqinv' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </create>
+ <retrieve permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </retrieve>
+ <update permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </update>
+ <delete permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::invoice_item' reporter:label='&class.acqii.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.invoice_item' id='acqii'>
+ <fields oils_persist:sequence='acq.invoice_item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqii.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqii.invoice.label;' name='invoice' reporter:datatype='link' />
+ <field reporter:label='&field.acqii.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqii.fund_debit.label;' name='fund_debit' reporter:datatype='link' />
+ <field reporter:label='&field.acqii.inv_item_type.label;' name='inv_item_type' reporter:datatype='link' />
+ <field reporter:label='&field.acqii.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.acqii.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.acqii.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqii.cost_billed.label;' name='cost_billed' reporter:datatype='money' />
+ <field reporter:label='&field.acqii.actual_cost.label;' name='actual_cost' reporter:datatype='money' />
+ <field reporter:label='&field.acqii.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqii.amount_paid.label;' name='amount_paid' reporter:datatype='money' />
+ <field reporter:label='&field.acqii.po_item.label;' name='po_item' reporter:datatype='link' />
+ <field reporter:label='&field.acqii.target.label;' name='target' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='invoice' reltype='has_a' class='acqinv' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='fund_debit' reltype='has_a' class='acqfdeb' key='id' map='' />
+ <link field='inv_item_type' reltype='has_a' class='aiit' key='code' map='' />
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='po_item' reltype='has_a' class='acqpoi' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </create>
+ <retrieve permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </retrieve>
+ <update permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </update>
+ <delete permission='ADMIN_INVOICE'>
+ <context field='receiver' link='invoice'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::provider_address' reporter:label='&class.acqpa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.provider_address' id='acqpa'>
+ <fields oils_persist:sequence='acq.provider_address_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpa.address_type.label;' name='address_type' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.city.label;' name='city' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.country.label;' name='country' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.county.label;' name='county' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpa.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqpa.post_code.label;' name='post_code' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.street1.label;' name='street1' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.street2.label;' name='street2' reporter:datatype='text' />
+ <field reporter:label='&field.acqpa.valid.label;' name='valid' reporter:datatype='bool' />
+ <field reporter:label='&field.acqpa.fax_phone.label;' name='fax_phone' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </create>
+ <retrieve permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::provider_contact' reporter:label='&class.acqpc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.provider_contact' id='acqpc'>
+ <fields oils_persist:sequence='acq.provider_contact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpc.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqpc.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqpc.role.label;' name='role' reporter:datatype='text' />
+ <field reporter:label='&field.acqpc.email.label;' name='email' reporter:datatype='text' />
+ <field reporter:label='&field.acqpc.phone.label;' name='phone' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </create>
+ <retrieve permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::provider_contact_address' reporter:label='&class.acqpca.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.provider_contact_address' id='acqpca'>
+ <fields oils_persist:sequence='acq.provider_contact_address_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpca.address_type.label;' name='address_type' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.city.label;' name='city' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.country.label;' name='country' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.county.label;' name='county' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpca.post_code.label;' name='post_code' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.street1.label;' name='street1' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.street2.label;' name='street2' reporter:datatype='text' />
+ <field reporter:label='&field.acqpca.contact.label;' name='contact' reporter:datatype='link' />
+ <field reporter:label='&field.acqpca.valid.label;' name='valid' reporter:datatype='bool' />
+ <field reporter:label='&field.acqpca.fax_phone.label;' name='fax_phone' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='contact' reltype='has_a' class='acqpc' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_PROVIDER'>
+ <context jump='provider' field='owner' link='contact'></context>
+ </create>
+ <retrieve permission='ADMIN_PROVIDER'>
+ <context jump='provider' field='owner' link='contact'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER'>
+ <context jump='provider' field='owner' link='contact'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER'>
+ <context jump='provider' field='owner' link='contact'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::fund_transfer' reporter:label='&class.acqftr.label;' controller='open-ils.cstore' oils_persist:tablename='acq.fund_transfer' id='acqftr'>
+ <fields oils_persist:sequence='acq.fund_transfer_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqftr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqftr.src_fund.label;' name='src_fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqftr.src_amount.label;' name='src_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqftr.dest_fund.label;' name='dest_fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqftr.dest_amount.label;' name='dest_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqftr.transfer_time.label;' name='transfer_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqftr.transfer_user.label;' name='transfer_user' reporter:datatype='link' />
+ <field reporter:label='&field.acqftr.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqftr.funding_source_credit.label;' name='funding_source_credit' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='src_fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='dest_fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='transfer_user' reltype='has_a' class='au' key='id' map='' />
+ <link field='funding_source_credit' reltype='has_a' class='acqfscred' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::fiscal_calendar' reporter:label='&class.acqfc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fiscal_calendar' id='acqfc'>
+ <fields oils_persist:sequence='acq.fiscal_calendar_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfc.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqfc.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqfc.years.label;' name='years' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='years' reltype='has_many' class='acqfy' key='calendar' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ACQ_FISCAL_YEAR'></create>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ <update global_required='true' permission='ADMIN_ACQ_FISCAL_YEAR'></update>
+ <delete global_required='true' permission='ADMIN_ACQ_FISCAL_YEAR'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::fiscal_year' reporter:label='&class.acqfy.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fiscal_year' id='acqfy'>
+ <fields oils_persist:sequence='acq.fiscal_year_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfy.id.label;' name='id' reporter:datatype='id' reporter:selector='year' />
+ <field reporter:label='&field.acqfy.calendar.label;' name='calendar' reporter:datatype='link' />
+ <field reporter:label='&field.acqfy.year.label;' name='year' reporter:datatype='int' />
+ <field reporter:label='&field.acqfy.year_begin.label;' name='year_begin' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqfy.year_end.label;' name='year_end' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='calendar' reltype='has_a' class='acqfc' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ACQ_FISCAL_YEAR'></create>
+ <retrieve global_required='true' permission='STAFF_LOGIN'></retrieve>
+ <update global_required='true' permission='ADMIN_ACQ_FISCAL_YEAR'></update>
+ <delete global_required='true' permission='ADMIN_ACQ_FISCAL_YEAR'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::funding_source' reporter:label='&class.acqfs.label;' controller='open-ils.cstore open-ils.reporter-store open-ils.pcrud' oils_persist:tablename='acq.funding_source' id='acqfs'>
+ <fields oils_persist:sequence='acq.funding_source_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfs.id.label;' name='id' reporter:datatype='id' reporter:selector='code' />
+ <field reporter:label='&field.acqfs.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqfs.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqfs.currency_type.label;' name='currency_type' reporter:datatype='link' oils_persist:primitive='string' />
+ <field reporter:label='&field.acqfs.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqfs.summary.label;' name='summary' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqfs.allocations.label;' name='allocations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqfs.credits.label;' name='credits' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqfs.fund_alloc_pcts.label;' name='fund_alloc_pcts' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='currency_type' reltype='has_a' class='acqct' key='code' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='allocations' reltype='has_many' class='acqfa' key='funding_source' map='' />
+ <link field='credits' reltype='has_many' class='acqfscred' key='funding_source' map='' />
+ <link field='fund_alloc_pcts' reltype='has_many' class='acqfap' key='funding_source' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_FUNDING_SOURCE'></create>
+ <retrieve context_field='owner' permission='ADMIN_FUNDING_SOURCE MANAGE_FUNDING_SOURCE VIEW_FUNDING_SOURCE'></retrieve>
+ <update context_field='owner' permission='ADMIN_FUNDING_SOURCE'></update>
+ <delete context_field='owner' permission='ADMIN_FUNDING_SOURCE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::funding_source_credit' reporter:label='&class.acqfscred.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.funding_source_credit' id='acqfscred'>
+ <fields oils_persist:sequence='acq.funding_source_credit_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfscred.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqfscred.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqfscred.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqfscred.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqfscred.deadline_date.label;' name='deadline_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqfscred.effective_date.label;' name='effective_date' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_FUNDING_SOURCE'>
+ <context field='owner' link='funding_source'></context>
+ </create>
+ <retrieve permission='ADMIN_FUNDING_SOURCE'>
+ <context field='owner' link='funding_source'></context>
+ </retrieve>
+ <update permission='ADMIN_FUNDING_SOURCE'>
+ <context field='owner' link='funding_source'></context>
+ </update>
+ <delete permission='ADMIN_FUNDING_SOURCE'>
+ <context field='owner' link='funding_source'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::ordered_funding_source_credit' reporter:label='&class.acqofscred.label;' controller='open-ils.cstore' oils_persist:tablename='acq.ordered_funding_source_credit' id='acqofscred'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.acqofscred.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqofscred.sort_priority.label;' name='sort_priority' reporter:datatype='int' />
+ <field reporter:label='&field.acqofscred.sort_date.label;' name='sort_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqofscred.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqofscred.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqofscred.note.label;' name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::fund_debit' reporter:label='&class.acqfdeb.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fund_debit' id='acqfdeb'>
+ <fields oils_persist:sequence='acq.fund_debit_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfdeb.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqfdeb.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfdeb.origin_amount.label;' name='origin_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqfdeb.origin_currency_type.label;' name='origin_currency_type' reporter:datatype='link' />
+ <field reporter:label='&field.acqfdeb.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqfdeb.encumbrance.label;' name='encumbrance' reporter:datatype='bool' />
+ <field reporter:label='&field.acqfdeb.debit_type.label;' name='debit_type' reporter:datatype='text' />
+ <field reporter:label='&field.acqfdeb.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqfdeb.invoice_entry.label;' name='invoice_entry' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='origin_currency_type' reltype='has_a' class='acqct' key='code' map='' />
+ <link field='invoice_entry' reltype='has_a' class='acqie' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </create>
+ <retrieve permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ <update permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </update>
+ <delete permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::fund' reporter:label='&class.acqf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fund' id='acqf'>
+ <fields oils_persist:sequence='acq.fund_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqf.id.label;' name='id' reporter:datatype='id' reporter:selector='code' />
+ <field reporter:label='&field.acqf.org.label;' name='org' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqf.year.label;' name='year' reporter:datatype='int' />
+ <field reporter:label='&field.acqf.currency_type.label;' name='currency_type' reporter:datatype='link' />
+ <field reporter:label='&field.acqf.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqf.rollover.label;' name='rollover' reporter:datatype='bool' />
+ <field reporter:label='&field.acqf.propagate.label;' name='propagate' reporter:datatype='bool' />
+ <field reporter:label='&field.acqf.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.acqf.balance_warning_percent.label;' name='balance_warning_percent' reporter:datatype='int' />
+ <field reporter:label='&field.acqf.balance_stop_percent.label;' name='balance_stop_percent' reporter:datatype='int' />
+ <field reporter:label='&field.acqf.summary.label;' name='summary' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.allocations.label;' name='allocations' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.debits.label;' name='debits' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.tags.label;' name='tags' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.allocation_total.label;' name='allocation_total' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.debit_total.label;' name='debit_total' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.encumbrance_total.label;' name='encumbrance_total' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.spent_total.label;' name='spent_total' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.combined_balance.label;' name='combined_balance' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqf.spent_balance.label;' name='spent_balance' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='org' reltype='has_a' class='aou' key='id' map='' />
+ <link field='currency_type' reltype='has_a' class='acqct' key='code' map='' />
+ <link field='allocations' reltype='has_many' class='acqfa' key='fund' map='' />
+ <link field='debits' reltype='has_many' class='acqfdeb' key='fund' map='' />
+ <link field='tags' reltype='has_many' class='acqftm' key='fund' map='' />
+ <link field='allocation_total' reltype='might_have' class='acqfat' key='fund' map='' />
+ <link field='debit_total' reltype='might_have' class='acqfdt' key='fund' map='' />
+ <link field='encumbrance_total' reltype='might_have' class='acqfet' key='fund' map='' />
+ <link field='spent_total' reltype='might_have' class='acqfst' key='fund' map='' />
+ <link field='combined_balance' reltype='might_have' class='acqfcb' key='fund' map='' />
+ <link field='spent_balance' reltype='might_have' class='acqfsb' key='fund' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1' ignore_object_perms='true'>
+ <actions>
+ <create context_field='org' permission='ADMIN_ACQ_FUND'></create>
+ <retrieve context_field='org' permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'></retrieve>
+ <update context_field='org' permission='ADMIN_ACQ_FUND'></update>
+ <delete context_field='org' permission='ADMIN_ACQ_FUND'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqfat.label;' oils_persist:tablename='acq.fund_allocation_total' oils_obj:fieldmapper='acq::fund_allocation_total' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfat' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqfat.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfat.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqfdt.label;' oils_persist:tablename='acq.fund_debit_total' oils_obj:fieldmapper='acq::fund_debit_total' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfdt' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqfdt.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfdt.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqfet.label;' oils_persist:tablename='acq.fund_encumbrance_total' oils_obj:fieldmapper='acq::fund_encumbrance_total' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfet' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqfet.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfet.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqfst.label;' oils_persist:tablename='acq.fund_spent_total' oils_obj:fieldmapper='acq::fund_spent_total' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfst' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqfst.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfst.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqfcb.label;' oils_persist:tablename='acq.fund_combined_balance' oils_obj:fieldmapper='acq::fund_combined_balance' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfcb' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqfcb.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfcb.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.acqafat.label;' oils_persist:tablename='acq.all_fund_allocation_total' oils_obj:fieldmapper='acq::all_fund_allocation_total' controller='open-ils.cstore open-ils.reporter-store' id='acqafat' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqafat.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqafat.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqafet.label;' oils_persist:tablename='acq.all_fund_encumbrance_total' oils_obj:fieldmapper='acq::all_fund_encumbrance_total' controller='open-ils.cstore open-ils.reporter-store' id='acqafet' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqafet.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqafet.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqafst.label;' oils_persist:tablename='acq.all_fund_spent_total' oils_obj:fieldmapper='acq::all_fund_spent_total' controller='open-ils.cstore open-ils.reporter-store' id='acqafst' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqafst.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqafst.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqafsb.label;' oils_persist:tablename='acq.all_fund_spent_balance' oils_obj:fieldmapper='acq::all_fund_spent_balance' controller='open-ils.cstore open-ils.reporter-store' id='acqafsb' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqafsb.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqafsb.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqafcb.label;' oils_persist:tablename='acq.all_fund_combined_balance' oils_obj:fieldmapper='acq::all_fund_combined_balance' controller='open-ils.cstore open-ils.reporter-store' id='acqafcb' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqafcb.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqafcb.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqfsrcct.label;' oils_persist:tablename='acq.funding_source_credit_total' oils_obj:fieldmapper='acq::funding_source_credit_total' controller='open-ils.cstore open-ils.reporter-store' id='acqfsrcct' oils_persist:readonly='true'>
+ <fields oils_persist:primary='funding_source'>
+ <field reporter:label='&field.acqfsrcct.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqfsrcct.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqfsrcat.label;' oils_persist:tablename='acq.funding_source_allocation_total' oils_obj:fieldmapper='acq::funding_source_allocation_total' controller='open-ils.cstore open-ils.reporter-store' id='acqfsrcat' oils_persist:readonly='true'>
+ <fields oils_persist:primary='funding_source'>
+ <field reporter:label='&field.acqfsrcat.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqfsrcat.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqfsrcb.label;' oils_persist:tablename='acq.funding_source_balance' oils_obj:fieldmapper='acq::funding_source_balance' controller='open-ils.cstore open-ils.reporter-store' id='acqfsrcb' oils_persist:readonly='true'>
+ <fields oils_persist:primary='funding_source'>
+ <field reporter:label='&field.acqfsrcb.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqfsrcb.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.acqfsb.label;' oils_persist:tablename='acq.fund_spent_balance' oils_obj:fieldmapper='acq::fund_spent_balance' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfsb' oils_persist:readonly='true'>
+ <fields oils_persist:primary='fund'>
+ <field reporter:label='&field.acqfsb.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfsb.amount.label;' name='amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.acqfsum.label;' reporter:core='true' oils_obj:fieldmapper='acq::fund_summary' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='acqfsum' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT
+ acqf.*,
+ COALESCE(acqfat.amount, 0.00) AS allocated_total,
+ COALESCE(acqfst.amount, 0.00) AS spent_total,
+ COALESCE(acqfet.amount, 0.00) AS encumbrance_total,
+ COALESCE(acqfcb.amount, 0.00) AS combined_balance
+ FROM
+ acq.fund acqf
+ LEFT JOIN acq.fund_allocation_total acqfat ON (acqfat.fund = acqf.id)
+ LEFT JOIN acq.fund_spent_total acqfst ON (acqfst.fund = acqf.id)
+ LEFT JOIN acq.fund_encumbrance_total acqfet ON (acqfet.fund = acqf.id)
+ LEFT JOIN acq.fund_combined_balance acqfcb ON (acqfcb.fund = acqf.id)
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='acq.fund_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfsum.id.label;' name='id' reporter:datatype='id' reporter:selector='code' />
+ <field reporter:label='&field.acqfsum.org.label;' name='org' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqfsum.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqfsum.year.label;' name='year' reporter:datatype='int' />
+ <field reporter:label='&field.acqfsum.currency_type.label;' name='currency_type' reporter:datatype='link' />
+ <field reporter:label='&field.acqfsum.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqfsum.rollover.label;' name='rollover' reporter:datatype='bool' />
+ <field reporter:label='&field.acqfsum.propagate.label;' name='propagate' reporter:datatype='bool' />
+ <field reporter:label='&field.acqfsum.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.acqfsum.balance_warning_percent.label;' name='balance_warning_percent' reporter:datatype='int' />
+ <field reporter:label='&field.acqfsum.balance_stop_percent.label;' name='balance_stop_percent' reporter:datatype='int' />
+
+
+ <field reporter:label='&field.acqfsum.allocated_total.label;' name='allocated_total' reporter:datatype='money' />
+ <field reporter:label='&field.acqfsum.spent_total.label;' name='spent_total' reporter:datatype='money' />
+ <field reporter:label='&field.acqfsum.encumbrance_total.label;' name='encumbrance_total' reporter:datatype='money' />
+ <field reporter:label='&field.acqfsum.combined_balance.label;' name='combined_balance' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='org' reltype='has_a' class='aou' key='id' map='' />
+ <link field='currency_type' reltype='has_a' class='acqct' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='org' permission='ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::fund_allocation' reporter:label='&class.acqfa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fund_allocation' id='acqfa'>
+ <fields oils_persist:sequence='acq.fund_allocation_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfa.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqfa.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqfa.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqfa.amount.label;' name='amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqfa.allocator.label;' name='allocator' reporter:datatype='link' />
+ <field reporter:label='&field.acqfa.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqfa.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='allocator' reltype='has_a' class='au' key='id' map='' />
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </create>
+ <retrieve permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </retrieve>
+ <update permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </update>
+ <delete permission='ADMIN_ACQ_FUND'>
+ <context field='org' link='fund'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::fund_allocation_percent' reporter:label='&class.acqfap.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fund_allocation_percent' id='acqfap'>
+ <fields oils_persist:sequence='acq.fund_allocation_percent_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqfap.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqfap.funding_source.label;' name='funding_source' reporter:datatype='link' />
+ <field reporter:label='&field.acqfap.org.label;' name='org' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqfap.fund_code.label;' name='fund_code' reporter:datatype='text' />
+ <field reporter:label='&field.acqfap.percent.label;' name='percent' reporter:datatype='float' />
+ <field reporter:label='&field.acqfap.allocator.label;' name='allocator' reporter:datatype='link' />
+ <field reporter:label='&field.acqfap.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqfap.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='allocator' reltype='has_a' class='au' key='id' map='' />
+ <link field='org' reltype='has_a' class='aou' key='id' map='' />
+ <link field='funding_source' reltype='has_a' class='acqfs' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_ACQ_FUND_ALLOCATION_PERCENT'></create>
+ <retrieve global_required='true' permission='VIEW_ACQ_FUND_ALLOCATION_PERCENT'></retrieve>
+ <update global_required='true' permission='ADMIN_ACQ_FUND_ALLOCATION_PERCENT'></update>
+ <delete global_required='true' permission='ADMIN_ACQ_FUND_ALLOCATION_PERCENT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::picklist' reporter:label='&class.acqpl.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.picklist' id='acqpl'>
+ <fields oils_persist:sequence='acq.picklist_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpl.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqpl.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.acqpl.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqpl.name.label;' name='name' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqpl.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpl.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpl.entries.label;' name='entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpl.entry_count.label;' name='entry_count' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpl.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqpl.editor.label;' name='editor' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ <link field='entries' reltype='has_many' class='jub' key='picklist' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='org_unit' permission='CREATE_PICKLIST VIEW_PICKLIST'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::cancel_reason' reporter:label='&class.acqcr.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.cancel_reason' id='acqcr'>
+ <fields oils_persist:sequence='acq.cancel_reason_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqcr.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.acqcr.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqcr.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqcr.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqcr.keep_debits.label;' name='keep_debits' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_ACQ_CANCEL_CAUSE'></create>
+ <retrieve context_field='org_unit' permission='STAFF_LOGIN'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_ACQ_CANCEL_CAUSE'></update>
+ <delete context_field='org_unit' permission='ADMIN_ACQ_CANCEL_CAUSE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::purchase_order' reporter:label='&class.acqpo.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.purchase_order' id='acqpo'>
+ <fields oils_persist:sequence='acq.purchase_order_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpo.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqpo.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.acqpo.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpo.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpo.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqpo.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.acqpo.ordering_agency.label;' name='ordering_agency' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqpo.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqpo.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acqpo.order_date.label;' name='order_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpo.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqpo.cancel_reason.label;' name='cancel_reason' reporter:datatype='link' />
+ <field reporter:label='&field.acqpo.prepayment_required.label;' name='prepayment_required' reporter:datatype='bool' />
+ <field reporter:label='&field.acqpo.lineitems.label;' name='lineitems' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpo.notes.label;' name='notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpo.lineitem_count.label;' name='lineitem_count' reporter:datatype='int' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpo.amount_encumbered.label;' name='amount_encumbered' reporter:datatype='float' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpo.amount_spent.label;' name='amount_spent' reporter:datatype='float' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpo.amount_estimated.label;' name='amount_estimated' reporter:datatype='float' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqpo.po_items.label;' name='po_items' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='default_fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='lineitems' reltype='has_many' class='jub' key='purchase_order' map='' />
+ <link field='po_items' reltype='has_many' class='acqpoi' key='purchase_order' map='' />
+ <link field='notes' reltype='has_many' class='acqpon' key='purchase_order' map='' />
+ <link field='ordering_agency' reltype='has_a' class='aou' key='id' map='' />
+ <link field='cancel_reason' reltype='has_a' class='acqcr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='ordering_agency' permission='CREATE_PURCHASE_ORDER'></create>
+ <retrieve context_field='ordering_agency' permission='CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER'></retrieve>
+ <update context_field='ordering_agency' permission='CREATE_PURCHASE_ORDER'></update>
+ <delete context_field='ordering_agency' permission='CREATE_PURCHASE_ORDER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::acq_purchase_order_history' reporter:label='&class.acqpoh.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.acq_purchase_order_history' id='acqpoh'>
+ <fields oils_persist:sequence='acq.acq_purchase_order_pkey_seq' oils_persist:primary='audit_id'>
+ <field reporter:label='&field.acqpoh.audit_id.label;' name='audit_id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpoh.audit_time.label;' name='audit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpoh.audit_action.label;' name='audit_action' reporter:datatype='text' />
+ <field reporter:label='&field.acqpoh.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.ordering_agency.label;' name='ordering_agency' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpoh.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpoh.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.acqpoh.order_date.label;' name='order_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpoh.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqpoh.cancel_reason.label;' name='cancel_reason' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoh.prepayment_required.label;' name='prepayment_required' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='ordering_agency' reltype='has_a' class='aou' key='id' map='' />
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='cancel_reason' reltype='has_a' class='acqcr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='ordering_agency' permission='CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::po_note' reporter:label='&class.acqpon.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.po_note' id='acqpon'>
+ <fields oils_persist:sequence='acq.po_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpon.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpon.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqpon.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqpon.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpon.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqpon.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acqpon.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.acqpon.vendor_public.label;' name='vendor_public' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </create>
+ <retrieve permission='CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </retrieve>
+ <update permission='CREATE_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </update>
+ <delete permission='CREATE_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::po_item' reporter:label='&class.acqpoi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.po_item' id='acqpoi'>
+ <fields oils_persist:sequence='acq.po_item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqpoi.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqpoi.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoi.fund_debit.label;' name='fund_debit' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoi.inv_item_type.label;' name='inv_item_type' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoi.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.acqpoi.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.acqpoi.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqpoi.estimated_cost.label;' name='estimated_cost' reporter:datatype='money' />
+ <field reporter:label='&field.acqpoi.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqpoi.target.label;' name='target' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='fund_debit' reltype='has_a' class='acqfdeb' key='id' map='' />
+ <link field='inv_item_type' reltype='has_a' class='aiit' key='code' map='' />
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </create>
+ <retrieve permission='CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </retrieve>
+ <update permission='CREATE_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </update>
+ <delete permission='CREATE_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem' reporter:label='&class.jub.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.lineitem' id='jub'>
+ <fields oils_persist:sequence='acq.lineitem_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.jub.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.jub.selector.label;' name='selector' reporter:datatype='link' />
+ <field reporter:label='&field.jub.picklist.label;' name='picklist' reporter:datatype='link' />
+ <field reporter:label='&field.jub.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.jub.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.jub.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.jub.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.jub.marc.label;' name='marc' reporter:datatype='text' />
+ <field reporter:label='&field.jub.eg_bib_id.label;' name='eg_bib_id' reporter:datatype='link' />
+ <field reporter:label='&field.jub.source_label.label;' name='source_label' reporter:datatype='text' />
+ <field reporter:label='&field.jub.expected_recv_time.label;' name='expected_recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.jub.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.jub.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.jub.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.jub.claim_policy.label;' name='claim_policy' reporter:datatype='link' />
+ <field reporter:label='&field.jub.cancel_reason.label;' name='cancel_reason' reporter:datatype='link' />
+ <field reporter:label='&field.jub.estimated_unit_price.label;' name='estimated_unit_price' reporter:datatype='money' />
+ <field reporter:label='&field.jub.queued_record.label;' name='queued_record' reporter:datatype='link' />
+ <field reporter:label='&field.jub.item_count.label;' name='item_count' reporter:datatype='int' oils_persist:virtual='true' />
+ <field reporter:label='&field.jub.attributes.label;' name='attributes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.jub.lineitem_details.label;' name='lineitem_details' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.jub.lineitem_notes.label;' name='lineitem_notes' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.jub.distribution_formulas.label;' name='distribution_formulas' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.jub.invoice_entries.label;' name='invoice_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.jub.order_summary.label;' name='order_summary' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='selector' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='picklist' reltype='has_a' class='acqpl' key='id' map='' />
+ <link field='eg_bib_id' reltype='has_a' class='bre' key='id' map='' />
+ <link field='attributes' reltype='has_many' class='acqlia' key='lineitem' map='' />
+ <link field='lineitem_details' reltype='has_many' class='acqlid' key='lineitem' map='' />
+ <link field='lineitem_notes' reltype='has_many' class='acqlin' key='lineitem' map='' />
+ <link field='cancel_reason' reltype='has_a' class='acqcr' key='id' map='' />
+ <link field='distribution_formulas' reltype='has_many' class='acqdfa' key='lineitem' map='' />
+ <link field='claim_policy' reltype='has_a' class='acqclp' key='id' map='' />
+ <link field='invoice_entries' reltype='has_many' class='acqie' key='lineitem' map='' />
+ <link field='order_summary' reltype='might_have' class='acqlisum' key='lineitem' map='' />
+ <link field='queued_record' reltype='has_a' class='vqbr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER CREATE_PICKLIST VIEW_PICKLIST'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ <context field='org_unit' link='picklist'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::acq_lineitem_history' reporter:label='&class.acqlih.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.acq_lineitem_history' id='acqlih'>
+ <fields oils_persist:sequence='acq.acq_lineitem_pkey_seq' oils_persist:primary='audit_id'>
+ <field reporter:label='&field.acqlih.audit_id.label;' name='audit_id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlih.audit_time.label;' name='audit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlih.audit_action.label;' name='audit_action' reporter:datatype='text' />
+ <field reporter:label='&field.acqlih.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.selector.label;' name='selector' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.picklist.label;' name='picklist' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.expected_recv_time.label;' name='expected_recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlih.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlih.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlih.marc.label;' name='marc' reporter:datatype='text' />
+ <field reporter:label='&field.acqlih.eg_bib_id.label;' name='eg_bib_id' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.source_label.label;' name='source_label' reporter:datatype='text' />
+ <field reporter:label='&field.acqlih.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.acqlih.claim_policy.label;' name='claim_policy' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.cancel_reason.label;' name='cancel_reason' reporter:datatype='link' />
+ <field reporter:label='&field.acqlih.estimated_unit_price.label;' name='estimated_unit_price' reporter:datatype='money' />
+ <field reporter:label='&field.acqlih.queued_record.label;' name='queued_record' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='jub' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='selector' reltype='has_a' class='au' key='id' map='' />
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='picklist' reltype='has_a' class='acqpl' key='id' map='' />
+ <link field='eg_bib_id' reltype='has_a' class='bre' key='id' map='' />
+ <link field='cancel_reason' reltype='has_a' class='acqcr' key='id' map='' />
+ <link field='claim_policy' reltype='has_a' class='acqclp' key='id' map='' />
+ <link field='queued_record' reltype='has_a' class='vqbr' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='CREATE_PURCHASE_ORDER VIEW_PURCHASE_ORDER'>
+ <context field='ordering_agency' link='purchase_order'></context>
+ <context field='org_unit' link='picklist'></context>
+ </retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_alert_text' reporter:label='&class.acqliat.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.lineitem_alert_text' id='acqliat'>
+ <fields oils_persist:sequence='acq.lineitem_alert_text_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqliat.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqliat.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqliat.description.label;' name='description' reporter:datatype='text' />
+ <field reporter:label='&field.acqliat.owning_lib.label;' name='owning_lib' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='ADMIN_ACQ_LINEITEM_ALERT_TEXT'></create>
+ <retrieve context_field='owning_lib' permission='STAFF_LOGIN'></retrieve>
+ <update context_field='owning_lib' permission='ADMIN_ACQ_LINEITEM_ALERT_TEXT'></update>
+ <delete context_field='owning_lib' permission='ADMIN_ACQ_LINEITEM_ALERT_TEXT'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_note' reporter:label='&class.acqlin.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.lineitem_note' id='acqlin'>
+ <fields oils_persist:sequence='acq.lineitem_note_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqlin.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlin.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqlin.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqlin.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlin.edit_time.label;' name='edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlin.editor.label;' name='editor' reporter:datatype='link' />
+ <field reporter:label='&field.acqlin.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.acqlin.alert_text.label;' name='alert_text' reporter:datatype='link' />
+ <field reporter:label='&field.acqlin.vendor_public.label;' name='vendor_public' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='editor' reltype='has_a' class='au' key='id' map='' />
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ <link field='alert_text' reltype='has_a' class='acqliat' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_attr' reporter:label='&class.acqlia.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.lineitem_attr' id='acqlia'>
+ <fields oils_persist:sequence='acq.lineitem_attr_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqlia.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlia.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqlia.attr_type.label;' name='attr_type' reporter:datatype='text' />
+ <field reporter:label='&field.acqlia.attr_name.label;' name='attr_name' reporter:datatype='text' />
+ <field reporter:label='&field.acqlia.attr_value.label;' name='attr_value' reporter:datatype='text' />
+ <field reporter:label='&field.acqlia.definition.label;' name='definition' reporter:datatype='text' />
+ <field reporter:label='&field.acqlia.order_ident.label;' name='order_ident' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ <link field='definition' reltype='has_a' class='acqliad' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_detail' reporter:label='&class.acqlid.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.lineitem_detail' id='acqlid'>
+ <fields oils_persist:sequence='acq.lineitem_detail_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqlid.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlid.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.eg_copy_id.label;' name='eg_copy_id' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.acqlid.cn_label.label;' name='cn_label' reporter:datatype='text' />
+ <field reporter:label='&field.acqlid.recv_time.label;' name='recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqlid.receiver.label;' name='receiver' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.fund_debit.label;' name='fund_debit' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqlid.location.label;' name='location' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.note.label;' name='note' reporter:datatype='text' />
+ <field reporter:label='&field.acqlid.collection_code.label;' name='collection_code' reporter:datatype='text' />
+ <field reporter:label='&field.acqlid.cancel_reason.label;' name='cancel_reason' reporter:datatype='link' />
+ <field reporter:label='&field.acqlid.claims.label;' name='claims' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ <link field='eg_copy_id' reltype='has_a' class='acp' key='id' map='' />
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='fund_debit' reltype='has_a' class='acqfdeb' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ <link field='cancel_reason' reltype='has_a' class='acqcr' key='id' map='' />
+ <link field='claims' reltype='has_many' class='acqcl' key='lineitem_detail' map='' />
+ <link field='receiver' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_attr_definition' reporter:label='&class.acqliad.label;' controller='open-ils.cstore open-ils.reporter-store open-ils.pcrud' oils_persist:tablename='acq.lineitem_attr_definition' id='acqliad'>
+ <fields oils_persist:sequence='acq.lineitem_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqliad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqliad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqliad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqliad.ident.label;' name='ident' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_marc_attr_definition' reporter:label='&class.acqlimad.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.lineitem_marc_attr_definition' id='acqlimad'>
+ <fields oils_persist:sequence='acq.lineitem_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqlimad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlimad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqlimad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqlimad.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.acqlimad.ident.label;' name='ident' reporter:datatype='bool' />
+ <field reporter:label='&field.acqlimad.remove.label;' name='remove' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_LINEITEM_MARC_ATTR_DEF'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_LINEITEM_MARC_ATTR_DEF'></update>
+ <delete global_required='true' permission='ADMIN_LINEITEM_MARC_ATTR_DEF'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_generated_attr_definition' reporter:label='&class.acqligad.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.lineitem_generated_attr_definition' id='acqligad'>
+ <fields oils_persist:sequence='acq.lineitem_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqligad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqligad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqligad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqligad.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.acqligad.ident.label;' name='ident' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ </class>
+ <class oils_obj:fieldmapper='acq::lineitem_usr_attr_definition' reporter:label='&class.acqliuad.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.lineitem_usr_attr_definition' id='acqliuad'>
+ <fields oils_persist:sequence='acq.lineitem_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqliuad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqliuad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqliuad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqliuad.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.acqliuad.ident.label;' name='ident' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_provider_attr_definition' reporter:label='&class.acqlipad.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.lineitem_provider_attr_definition' id='acqlipad'>
+ <fields oils_persist:sequence='acq.lineitem_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqlipad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlipad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqlipad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqlipad.xpath.label;' name='xpath' reporter:datatype='text' />
+ <field reporter:label='&field.acqlipad.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqlipad.ident.label;' name='ident' reporter:datatype='bool' />
+ <field reporter:label='&field.acqlipad.remove.label;' name='remove' reporter:datatype='text' />
+
+ </fields>
+ <links>
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </create>
+ <retrieve permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::provider_holding_subfield_map' reporter:label='&class.acqphsm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.provider_holding_subfield_map' id='acqphsm'>
+ <fields oils_persist:sequence='acq.provider_holding_subfield_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqphsm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqphsm.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqphsm.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqphsm.subfield.label;' name='subfield' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </create>
+ <retrieve permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::lineitem_local_attr_definition' reporter:label='&class.acqlilad.label;' controller='open-ils.cstore open-ils.reporter-store' oils_persist:tablename='acq.lineitem_local_attr_definition' id='acqlilad'>
+ <fields oils_persist:sequence='acq.lineitem_attr_definition_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqlilad.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqlilad.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqlilad.description.label;' name='description' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.acqlilad.ident.label;' name='ident' reporter:datatype='bool' />
+ </fields>
+ <links></links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::edi_account' reporter:label='&class.acqedi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.edi_account' id='acqedi'>
+ <fields oils_persist:sequence='config.remote_account_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqedi.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.acqedi.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.host.label;' name='host' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.username.label;' name='username' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.password.label;' name='password' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.account.label;' name='account' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.path.label;' name='path' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.acqedi.last_activity.label;' name='last_activity' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqedi.provider.label;' name='provider' reporter:datatype='link' />
+ <field reporter:label='&field.acqedi.in_dir.label;' name='in_dir' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.vendacct.label;' name='vendacct' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.vendcode.label;' name='vendcode' reporter:datatype='text' />
+ <field reporter:label='&field.acqedi.attr_set.label;' name='attr_set' reporter:datatype='link' />
+ <field reporter:label='&field.acqedi.use_attrs.label;' name='use_attrs' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='provider' reltype='has_a' class='acqpro' key='id' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='attr_set' reltype='has_a' class='aeas' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </create>
+ <retrieve permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER'>
+ <context field='owner' link='provider'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::edi_attr' reporter:label='&class.aea.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.edi_attr' id='aea'>
+ <fields oils_persist:primary='key'>
+ <field reporter:label='&field.aea.key.label;' name='key' reporter:datatype='text' reporter:selector='label' />
+ <field reporter:label='&field.aea.label.label;' name='label' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_PROVIDER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_PROVIDER'></update>
+ <delete global_required='true' permission='ADMIN_PROVIDER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::edi_attr_set' reporter:label='&class.aeas.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.edi_attr_set' id='aeas'>
+ <fields oils_persist:sequence='acq.edi_attr_set_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aeas.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.aeas.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.aeas.attr_maps.label;' name='attr_maps' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='attr_maps' reltype='has_many' class='aeasm' key='attr_set' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_PROVIDER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_PROVIDER'></update>
+ <delete global_required='true' permission='ADMIN_PROVIDER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::edi_attr_set_map' reporter:label='&class.aeasm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.edi_attr_set_map' id='aeasm'>
+ <fields oils_persist:sequence='acq.edi_attr_set_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aeasm.id.label;' name='id' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.aeasm.attr_set.label;' name='attr_set' reporter:datatype='link' />
+ <field reporter:label='&field.aeasm.attr.label;' name='attr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='attr_set' reltype='has_a' class='aeas' key='id' map='' />
+ <link field='attr' reltype='has_a' class='aea' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_PROVIDER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_PROVIDER'></update>
+ <delete global_required='true' permission='ADMIN_PROVIDER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class oils_obj:fieldmapper='acq::edi_message' reporter:label='&class.acqedim.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.edi_message' id='acqedim'>
+ <fields oils_persist:sequence='acq.edi_message_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqedim.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqedim.account.label;' name='account' reporter:datatype='link' />
+ <field reporter:label='&field.acqedim.remote_file.label;' name='remote_file' reporter:datatype='text' />
+ <field reporter:label='&field.acqedim.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqedim.translate_time.label;' name='translate_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqedim.process_time.label;' name='process_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqedim.error_time.label;' name='error_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqedim.status.label;' name='status' reporter:datatype='text' />
+ <field reporter:label='&field.acqedim.edi.label;' name='edi' reporter:datatype='text' />
+ <field reporter:label='&field.acqedim.jedi.label;' name='jedi' reporter:datatype='text' />
+ <field reporter:label='&field.acqedim.error.label;' name='error' reporter:datatype='text' />
+ <field reporter:label='&field.acqedim.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqedim.message_type.label;' name='message_type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='account' reltype='has_a' class='acqedi' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve permission='ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER'>
+ <context jump='provider' field='owner' link='account'></context>
+ </retrieve>
+ <update permission='ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER'>
+ <context jump='provider' field='owner' link='account'></context>
+ </update>
+ <delete permission='ADMIN_PROVIDER MANAGE_PROVIDER VIEW_PROVIDER'>
+ <context jump='provider' field='owner' link='account'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+ <class oils_obj:fieldmapper='reporter::output_folder' reporter:label='&class.rof.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.output_folder' id='rof'>
+ <fields oils_persist:sequence='reporter.output_folder_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='parent' reporter:datatype='link' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='name' reporter:datatype='text' />
+ <field name='shared' reporter:datatype='bool' />
+ <field name='share_with' reporter:datatype='link' />
+ <field name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='outputs' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='parent' reltype='has_a' class='rof' key='id' map='' />
+ <link field='children' reltype='has_many' class='rof' key='parent' map='' />
+ <link field='share_with' reltype='has_a' class='aou' key='id' map='' />
+ <link field='outputs' reltype='has_many' class='rs' key='folder' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::template_folder' reporter:label='&class.rtf.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.template_folder' id='rtf'>
+ <fields oils_persist:sequence='reporter.template_folder_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='parent' reporter:datatype='link' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='name' reporter:datatype='text' />
+ <field name='shared' reporter:datatype='bool' />
+ <field name='share_with' reporter:datatype='link' />
+ <field name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='templates' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='parent' reltype='has_a' class='rtf' key='id' map='' />
+ <link field='children' reltype='has_many' class='rtf' key='parent' map='' />
+ <link field='share_with' reltype='has_a' class='aou' key='id' map='' />
+ <link field='templates' reltype='has_many' class='rt' key='folder' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::report_folder' reporter:label='&class.rrf.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.report_folder' id='rrf'>
+ <fields oils_persist:sequence='reporter.report_folder_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='parent' reporter:datatype='link' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='name' reporter:datatype='text' />
+ <field name='shared' reporter:datatype='bool' />
+ <field name='share_with' reporter:datatype='link' />
+ <field name='children' reporter:datatype='link' oils_persist:virtual='true' />
+ <field name='reports' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='parent' reltype='has_a' class='rrf' key='id' map='' />
+ <link field='children' reltype='has_many' class='rrf' key='parent' map='' />
+ <link field='share_with' reltype='has_a' class='aou' key='id' map='' />
+ <link field='reports' reltype='has_many' class='rr' key='folder' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::template' reporter:label='&class.rt.label;' controller='open-ils.reporter-store open-ils.cstore open-ils.pcrud' oils_persist:tablename='reporter.template' id='rt'>
+ <fields oils_persist:sequence='reporter.template_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='name' reporter:datatype='text' />
+ <field name='data' reporter:datatype='text' />
+ <field name='folder' reporter:datatype='link' />
+ <field name='description' reporter:datatype='text' />
+ <field name='reports' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='folder' reltype='has_a' class='rtf' key='id' map='' />
+ <link field='reports' reltype='has_many' class='rr' key='template' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' owning_user='owner' permission='RUN_REPORTS'></create>
+ <retrieve global_required='true' owning_user='owner' permission='RUN_REPORTS'></retrieve>
+ <update global_required='true' owning_user='owner' permission='RUN_REPORTS'></update>
+ <delete global_required='true' owning_user='owner' permission='RUN_REPORTS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='reporter::report' reporter:label='&class.rr.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.report' id='rr'>
+ <fields oils_persist:sequence='reporter.report_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='owner' reporter:datatype='link' />
+ <field name='create_time' reporter:datatype='timestamp' />
+ <field name='template' reporter:datatype='link' />
+ <field name='data' reporter:datatype='text' />
+ <field name='folder' reporter:datatype='link' />
+ <field name='recur' reporter:datatype='bool' />
+ <field name='recurrence' reporter:datatype='interval' />
+ <field name='name' reporter:datatype='text' />
+ <field name='description' reporter:datatype='text' />
+ <field name='runs' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='template' reltype='has_a' class='rt' key='id' map='' />
+ <link field='folder' reltype='has_a' class='rrf' key='id' map='' />
+ <link field='runs' reltype='has_many' class='rs' key='report' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::schedule' reporter:label='&class.rs.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.schedule' id='rs'>
+ <fields oils_persist:sequence='reporter.schedule_id_seq' oils_persist:primary='id'>
+ <field name='id' reporter:datatype='id' />
+ <field name='runner' reporter:datatype='link' />
+ <field name='start_time' reporter:datatype='timestamp' />
+ <field name='complete_time' reporter:datatype='timestamp' />
+ <field name='run_time' reporter:datatype='timestamp' />
+ <field name='email' reporter:datatype='text' />
+ <field name='excel_format' reporter:datatype='bool' />
+ <field name='csv_format' reporter:datatype='bool' />
+ <field name='html_format' reporter:datatype='bool' />
+ <field name='error_code' reporter:datatype='int' />
+ <field name='error_text' reporter:datatype='text' />
+ <field name='report' reporter:datatype='link' />
+ <field name='folder' reporter:datatype='link' />
+ <field name='chart_pie' reporter:datatype='bool' />
+ <field name='chart_bar' reporter:datatype='bool' />
+ <field name='chart_line' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='runner' reltype='has_a' class='au' key='id' map='' />
+ <link field='report' reltype='has_a' class='rr' key='id' map='' />
+ <link field='folder' reltype='has_a' class='rof' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::materialized_simple_record' reporter:label='&class.rmsr.label;' controller='open-ils.reporter-store open-ils.cstore open-ils.pcrud' oils_persist:tablename='reporter.materialized_simple_record' id='rmsr'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rmsr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rmsr.fingerprint.label;' name='fingerprint' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.quality.label;' name='quality' reporter:datatype='int' />
+ <field reporter:label='&field.rmsr.tcn_source.label;' name='tcn_source' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.tcn_value.label;' name='tcn_value' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.publisher.label;' name='publisher' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.pubdate.label;' name='pubdate' reporter:datatype='int' />
+ <field reporter:label='&field.rmsr.isbn.label;' name='isbn' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.issn.label;' name='issn' reporter:datatype='text' />
+ <field reporter:label='&field.rmsr.biblio_record.label;' name='biblio_record' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='biblio_record' reltype='might_have' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='reporter::super_simple_record' reporter:label='&class.rssr.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.super_simple_record' id='rssr'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rssr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rssr.fingerprint.label;' name='fingerprint' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.quality.label;' name='quality' reporter:datatype='int' />
+ <field reporter:label='&field.rssr.tcn_source.label;' name='tcn_source' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.tcn_value.label;' name='tcn_value' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.publisher.label;' name='publisher' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.pubdate.label;' name='pubdate' reporter:datatype='int' />
+ <field reporter:label='&field.rssr.isbn.label;' name='isbn' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.issn.label;' name='issn' reporter:datatype='text' />
+ <field reporter:label='&field.rssr.biblio_record.label;' name='biblio_record' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='biblio_record' reltype='might_have' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::simple_record' reporter:label='&class.rsr.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.simple_record' id='rsr'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rsr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rsr.metarecord.label;' name='metarecord' reporter:datatype='link' />
+ <field reporter:label='&field.rsr.fingerprint.label;' name='fingerprint' />
+ <field reporter:label='&field.rsr.quality.label;' name='quality' reporter:datatype='int' />
+ <field reporter:label='&field.rsr.tcn_source.label;' name='tcn_source' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.tcn_value.label;' name='tcn_value' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.uniform_title.label;' name='uniform_title' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.publisher.label;' name='publisher' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.pubdate.label;' name='pubdate' reporter:datatype='int' />
+ <field reporter:label='&field.rsr.series_title.label;' name='series_title' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.series_statement.label;' name='series_statement' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.summary.label;' name='summary' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.isbn.label;' name='isbn' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.issn.label;' name='issn' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.topic_subject.label;' name='topic_subject' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.geographic_subject.label;' name='geographic_subject' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.genre.label;' name='genre' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.name_subject.label;' name='name_subject' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.corporate_subject.label;' name='corporate_subject' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.external_uri.label;' name='external_uri' reporter:datatype='text' />
+ <field reporter:label='&field.rsr.biblio_record.label;' name='biblio_record' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='metarecord' reltype='has_a' class='mmr' key='id' map='' />
+ <link field='biblio_record' reltype='might_have' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::user_demographic' reporter:label='&class.rud.label;' controller='open-ils.reporter-store open-ils.cstore' oils_persist:tablename='reporter.demographic' id='rud'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rud.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rud.dob.label;' name='dob' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rud.general_division.label;' name='general_division' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='id' reltype='might_have' class='au' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::circulation_type' reporter:label='&class.rcirct.label;' controller='open-ils.reporter-store open-ils.cstore' oils_persist:tablename='reporter.circ_type' id='rcirct'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rcirct.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rcirct.type.label;' name='type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='id' reltype='might_have' class='circ' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::hold_request_record' reporter:label='&class.rhrr.label;' controller='open-ils.reporter-store open-ils.cstore' oils_persist:tablename='reporter.hold_request_record' id='rhrr'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rhrr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rhrr.target.label;' name='target' reporter:datatype='int' />
+ <field reporter:label='&field.rhrr.hold_type.label;' name='hold_type' reporter:datatype='text' />
+ <field reporter:label='&field.rhrr.bib_record.label;' name='bib_record' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='id' reltype='might_have' class='ahr' key='id' map='' />
+ <link field='bib_record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::xact_billing_totals' reporter:label='&class.rxbt.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.xact_billing_totals' id='rxbt'>
+ <fields oils_persist:primary='xact'>
+ <field reporter:label='&field.rxbt.xact.label;' name='xact' reporter:datatype='int' />
+ <field reporter:label='&field.rxbt.unvoided.label;' name='unvoided' reporter:datatype='int' />
+ <field reporter:label='&field.rxbt.voided.label;' name='voided' reporter:datatype='money' />
+ <field reporter:label='&field.rxbt.total.label;' name='total' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='xact' reltype='might_have' class='mbt' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='reporter::xact_paid_totals' reporter:label='&class.rxpt.label;' controller='open-ils.reporter-store' oils_persist:tablename='reporter.xact_paid_totals' id='rxpt'>
+ <fields oils_persist:primary='xact'>
+ <field reporter:label='&field.rxpt.xact.label;' name='xact' reporter:datatype='int' />
+ <field reporter:label='&field.rxpt.unvoided.label;' name='unvoided' reporter:datatype='int' />
+ <field reporter:label='&field.rxpt.voided.label;' name='voided' reporter:datatype='money' />
+ <field reporter:label='&field.rxpt.total.label;' name='total' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='xact' reltype='might_have' class='mbt' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='extend_reporter::global_bibs_by_holding_update' reporter:label='&class.ergbhu.label;' controller='open-ils.reporter-store' oils_persist:tablename='extend_reporter.global_bibs_by_holding_update' id='ergbhu'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.ergbhu.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.ergbhu.holding_update.label;' name='holding_update' reporter:datatype='timestamp' />
+ <field reporter:label='&field.ergbhu.update_type.label;' name='update_type' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='extend_reporter::full_circ_count' reporter:label='&class.erfcc.label;' controller='open-ils.reporter-store' oils_persist:tablename='extend_reporter.full_circ_count' id='erfcc'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.erfcc.id.label;' name='id' reporter:datatype='int' />
+ <field reporter:label='&field.erfcc.circ_count.label;' name='circ_count' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='extend_reporter::copy_count_per_org' reporter:label='&class.erccpo.label;' controller='open-ils.reporter-store' oils_persist:tablename='extend_reporter.copy_count_per_org' id='erccpo'>
+ <fields oils_persist:primary='bibid'>
+ <field reporter:label='&field.erccpo.bibid.label;' name='bibid' reporter:datatype='id' />
+ <field reporter:label='&field.erccpo.circ_lib.label;' name='circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.erccpo.owning_lib.label;' name='owning_lib' reporter:datatype='link' />
+ <field reporter:label='&field.erccpo.last_edit_time.label;' name='last_edit_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.erccpo.has_only_deleted_copies.label;' name='has_only_deleted_copies' reporter:datatype='int' />
+ <field reporter:label='&field.erccpo.deleted_count.label;' name='deleted_count' reporter:datatype='int' />
+ <field reporter:label='&field.erccpo.visible_count.label;' name='visible_count' reporter:datatype='int' />
+ <field reporter:label='&field.erccpo.total_count.label;' name='total_count' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='bibid' reltype='has_a' class='bre' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='acq::distribution_formula' reporter:label='&class.acqdf.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.distribution_formula' id='acqdf'>
+ <fields oils_persist:sequence='acq.distribution_formula_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqdf.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqdf.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqdf.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqdf.skip_count.label;' name='skip_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqdf.entries.label;' name='entries' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.acqdf.use_count.label;' name='use_count' reporter:datatype='int' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='entries' reltype='has_many' class='acqdfe' key='formula' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_ACQ_DISTRIB_FORMULA'></create>
+ <retrieve context_field='owner' permission='CREATE_PURCHASE_ORDER ADMIN_ACQ_DISTRIB_FORMULA'></retrieve>
+ <update context_field='owner' permission='ADMIN_ACQ_DISTRIB_FORMULA'></update>
+ <delete context_field='owner' permission='ADMIN_ACQ_DISTRIB_FORMULA'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::distribution_formula_entry' reporter:label='&class.acqdfe.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.distribution_formula_entry' id='acqdfe'>
+ <fields oils_persist:sequence='acq.distribution_formula_entry_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqdfe.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqdfe.formula.label;' name='formula' reporter:datatype='link' />
+ <field reporter:label='&field.acqdfe.position.label;' name='position' reporter:datatype='int' />
+ <field reporter:label='&field.acqdfe.item_count.label;' name='item_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqdfe.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqdfe.location.label;' name='location' reporter:datatype='link' />
+ <field reporter:label='&field.acqdfe.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqdfe.circ_modifier.label;' name='circ_modifier' reporter:datatype='link' />
+ <field reporter:label='&field.acqdfe.collection_code.label;' name='collection_code' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='formula' reltype='has_a' class='acqdf' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='location' reltype='has_a' class='acpl' key='id' map='' />
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='circ_modifier' reltype='has_a' class='ccm' key='code' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_ACQ_DISTRIB_FORMULA'>
+ <context field='owner' link='formula'></context>
+ </create>
+ <retrieve permission='ADMIN_ACQ_DISTRIB_FORMULA'>
+ <context field='owner' link='formula'></context>
+ </retrieve>
+ <update permission='ADMIN_ACQ_DISTRIB_FORMULA'>
+ <context field='owner' link='formula'></context>
+ </update>
+ <delete permission='ADMIN_ACQ_DISTRIB_FORMULA'>
+ <context field='owner' link='formula'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::distribution_formula_application' reporter:label='&class.acqdfa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.distribution_formula_application' id='acqdfa'>
+ <fields oils_persist:sequence='acq.distribution_formula_application_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqdfa.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqdfa.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqdfa.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqdfa.formula.label;' name='formula' reporter:datatype='link' />
+ <field reporter:label='&field.acqdfa.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='formula' reltype='has_a' class='acqdf' key='id' map='' />
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_PURCHASE_ORDER'>
+ <context field='owner' link='formula'></context>
+ </create>
+ <retrieve permission='CREATE_PURCHASE_ORDER'>
+ <context field='owner' link='formula'></context>
+ </retrieve>
+ <update permission='CREATE_PURCHASE_ORDER'>
+ <context field='owner' link='formula'></context>
+ </update>
+ <delete permission='CREATE_PURCHASE_ORDER'>
+ <context field='owner' link='formula'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::debit_attribution' reporter:label='&class.acqda.label;' controller='open-ils.cstore' oils_persist:tablename='acq.debit_attribution' id='acqda'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.acqda.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqda.fund_debit.label;' name='fund_debit' reporter:datatype='link' />
+ <field reporter:label='&field.acqda.debit_amount.label;' name='debit_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqda.funding_source_credit.label;' name='funding_source_credit' reporter:datatype='link' />
+ <field reporter:label='&field.acqda.credit_amount.label;' name='credit_amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='fund_debit' reltype='has_a' class='acqfdeb' key='id' map='' />
+ <link field='funding_source_credit' reltype='has_a' class='acqfscred' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim_type' reporter:label='&class.acqclt.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.claim_type' id='acqclt'>
+ <fields oils_persist:sequence='acq.claim_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqclt.id.label;' name='id' reporter:datatype='id' reporter:selector='code' />
+ <field reporter:label='&field.acqclt.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqclt.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqclt.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_ACQ_CLAIM_TYPE'></create>
+ <retrieve context_field='org_unit' permission='ADMIN_ACQ_CLAIM_TYPE ADMIN_ACQ_CLAIM VIEW_CLAIM MANAGE_CLAIM'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_ACQ_CLAIM_TYPE'></update>
+ <delete context_field='org_unit' permission='ADMIN_ACQ_CLAIM_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim_event_type' reporter:label='&class.acqclet.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.claim_event_type' id='acqclet'>
+ <fields oils_persist:sequence='acq.claim_event_type_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqclet.id.label;' name='id' reporter:datatype='id' reporter:selector='code' />
+ <field reporter:label='&field.acqclet.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqclet.code.label;' name='code' reporter:datatype='text' />
+ <field reporter:label='&field.acqclet.description.label;' name='description' reporter:datatype='text' />
+ <field reporter:label='&field.acqclet.library_initiated.label;' name='library_initiated' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_ACQ_CLAIM_EVENT_TYPE'></create>
+ <retrieve context_field='org_unit' permission='ADMIN_ACQ_CLAIM_EVENT_TYPE ADMIN_ACQ_CLAIM VIEW_CLAIM MANAGE_CLAIM'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_ACQ_CLAIM_EVENT_TYPE'></update>
+ <delete context_field='org_unit' permission='ADMIN_ACQ_CLAIM_EVENT_TYPE'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim' reporter:label='&class.acqcl.label;' controller='open-ils.cstore' oils_persist:tablename='acq.claim' id='acqcl'>
+ <fields oils_persist:sequence='acq.claim_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqcl.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqcl.type.label;' name='type' reporter:datatype='link' />
+ <field reporter:label='&field.acqcl.lineitem_detail.label;' name='lineitem_detail' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='type' reltype='has_a' class='acqclt' key='id' map='' />
+ <link field='lineitem_detail' reltype='has_a' class='acqlid' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim_event' reporter:label='&class.acqcle.label;' controller='open-ils.cstore' oils_persist:tablename='acq.claim_event' id='acqcle'>
+ <fields oils_persist:sequence='acq.claim_event_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqcle.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqcle.type.label;' name='type' reporter:datatype='link' />
+ <field reporter:label='&field.acqcle.claim.label;' name='claim' reporter:datatype='link' />
+ <field reporter:label='&field.acqcle.event_date.label;' name='event_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqcle.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqcle.note.label;' name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='type' reltype='has_a' class='acqclet' key='id' map='' />
+ <link field='claim' reltype='has_a' class='acqcl' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::serial_claim' reporter:label='&class.acqscl.label;' controller='open-ils.cstore' oils_persist:tablename='acq.serial_claim' id='acqscl'>
+ <fields oils_persist:sequence='acq.serial_claim_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqscl.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqscl.type.label;' name='type' reporter:datatype='link' />
+ <field reporter:label='&field.acqscl.item.label;' name='item' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='type' reltype='has_a' class='acqclt' key='id' map='' />
+ <link field='item' reltype='has_a' class='sitem' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::serial_claim_event' reporter:label='&class.acqscle.label;' controller='open-ils.cstore' oils_persist:tablename='acq.serial_claim_event' id='acqscle'>
+ <fields oils_persist:sequence='acq.serial_claim_event_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqscle.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqscle.type.label;' name='type' reporter:datatype='link' />
+ <field reporter:label='&field.acqscle.claim.label;' name='claim' reporter:datatype='link' />
+ <field reporter:label='&field.acqscle.event_date.label;' name='event_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.acqscle.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.acqscle.note.label;' name='note' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='type' reltype='has_a' class='acqclet' key='id' map='' />
+ <link field='claim' reltype='has_a' class='acqscl' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim_policy' reporter:label='&class.acqclp.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.claim_policy' id='acqclp'>
+ <fields oils_persist:sequence='acq.claim_policy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqclp.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.acqclp.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqclp.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqclp.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='ADMIN_CLAIM_POLICY'></create>
+ <retrieve context_field='org_unit' permission='ADMIN_CLAIM_POLICY VIEW_PROVIDER'></retrieve>
+ <update context_field='org_unit' permission='ADMIN_CLAIM_POLICY'></update>
+ <delete context_field='org_unit' permission='ADMIN_CLAIM_POLICY'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim_policy_action' reporter:label='&class.acqclpa.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.claim_policy_action' id='acqclpa'>
+ <fields oils_persist:sequence='acq.claim_policy_action_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqclpa.id.label;' name='id' reporter:datatype='id' reporter:selector='action' />
+ <field reporter:label='&field.acqclpa.claim_policy.label;' name='claim_policy' reporter:datatype='link' />
+ <field reporter:label='&field.acqclpa.action_interval.label;' name='action_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.acqclpa.action.label;' name='action' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='claim_policy' reltype='has_a' class='acqclp' key='id' map='' />
+ <link field='action' reltype='has_a' class='acqclet' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_CLAIM_POLICY'>
+ <context field='org_unit' link='claim_policy'></context>
+ </create>
+ <retrieve permission='ADMIN_CLAIM_POLICY VIEW_PROVIDER'>
+ <context field='org_unit' link='claim_policy'></context>
+ </retrieve>
+ <update permission='ADMIN_CLAIM_POLICY'>
+ <context field='org_unit' link='claim_policy'></context>
+ </update>
+ <delete permission='ADMIN_CLAIM_POLICY'>
+ <context field='org_unit' link='claim_policy'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='staging::user_stage' reporter:label='&class.stgu.label;' controller='open-ils.cstore' oils_persist:tablename='staging.user_stage' id='stgu'>
+ <fields oils_persist:sequence='staging.user_stage_row_id_seq' oils_persist:primary='row_id'>
+ <field reporter:label='&field.stgu.row_id.label;' name='row_id' reporter:datatype='id' />
+ <field reporter:label='&field.stgu.row_date.label;' name='row_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.stgu.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.profile.label;' name='profile' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.email.label;' name='email' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.passwd.label;' name='passwd' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.ident_type.label;' name='ident_type' reporter:datatype='int' />
+ <field reporter:label='&field.stgu.first_given_name.label;' name='first_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.second_given_name.label;' name='second_given_name' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.family_name.label;' name='family_name' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.day_phone.label;' name='day_phone' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.evening_phone.label;' name='evening_phone' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.home_ou.label;' name='home_ou' reporter:datatype='int' />
+ <field reporter:label='&field.stgu.dob.label;' name='dob' reporter:datatype='text' />
+ <field reporter:label='&field.stgu.complete.label;' name='complete' reporter:datatype='bool' />
+ <field reporter:label='&field.stgu.requesting_usr.label;' name='requesting_usr' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='requesting_usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='staging::card_stage' reporter:label='&class.stgc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='staging.card_stage' id='stgc'>
+ <fields oils_persist:sequence='staging.card_stage_row_id_seq' oils_persist:primary='row_id'>
+ <field reporter:label='&field.stgc.row_id.label;' name='row_id' reporter:datatype='id' />
+ <field reporter:label='&field.stgc.row_date.label;' name='row_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.stgc.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.stgc.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.stgc.complete.label;' name='complete' reporter:datatype='bool' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='staging::mailing_address_stage' reporter:label='&class.stgma.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='staging.mailing_address_stage' id='stgma'>
+ <fields oils_persist:sequence='staging.mailing_address_stage_row_id_seq' oils_persist:primary='row_id'>
+ <field reporter:label='&field.stgma.row_id.label;' name='row_id' reporter:datatype='id' />
+ <field reporter:label='&field.stgma.row_date.label;' name='row_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.stgma.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.street1.label;' name='street1' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.street2.label;' name='street2' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.city.label;' name='city' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.county.label;' name='county' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.country.label;' name='country' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.post_code.label;' name='post_code' reporter:datatype='text' />
+ <field reporter:label='&field.stgma.complete.label;' name='complete' reporter:datatype='bool' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='staging::billing_address_stage' reporter:label='&class.stgba.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='staging.billing_address_stage' id='stgba'>
+ <fields oils_persist:sequence='staging.mailing_address_stage_row_id_seq' oils_persist:primary='row_id'>
+ <field reporter:label='&field.stgba.row_id.label;' name='row_id' reporter:datatype='id' />
+ <field reporter:label='&field.stgba.row_date.label;' name='row_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.stgba.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.street1.label;' name='street1' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.street2.label;' name='street2' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.city.label;' name='city' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.county.label;' name='county' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.state.label;' name='state' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.country.label;' name='country' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.post_code.label;' name='post_code' reporter:datatype='text' />
+ <field reporter:label='&field.stgba.complete.label;' name='complete' reporter:datatype='bool' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='staging::statcat_stage' reporter:label='&class.stgsc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='staging.statcat_stage' id='stgsc'>
+ <fields oils_persist:sequence='staging.statcat_stage_row_id_seq' oils_persist:primary='row_id'>
+ <field reporter:label='&field.stgsc.row_id.label;' name='row_id' reporter:datatype='id' />
+ <field reporter:label='&field.stgsc.row_date.label;' name='row_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.stgsc.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.stgsc.statcat.label;' name='statcat' reporter:datatype='text' />
+ <field reporter:label='&field.stgsc.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.stgsc.complete.label;' name='complete' reporter:datatype='bool' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='staging::setting_stage' reporter:label='&class.stgs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='staging.setting_stage' id='stgs'>
+ <fields oils_persist:sequence='staging.setting_stage_row_id_seq' oils_persist:primary='row_id'>
+ <field reporter:label='&field.stgs.row_id.label;' name='row_id' reporter:datatype='id' />
+ <field reporter:label='&field.stgs.row_date.label;' name='row_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.stgs.usrname.label;' name='usrname' reporter:datatype='text' />
+ <field reporter:label='&field.stgs.setting.label;' name='setting' reporter:datatype='text' />
+ <field reporter:label='&field.stgs.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.stgs.complete.label;' name='complete' reporter:datatype='bool' />
+ </fields>
+ </class>
+
+ <class oils_obj:fieldmapper='action::fieldset_group' reporter:label='&class.afsg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.fieldset_group' id='afsg'>
+ <fields oils_persist:sequence='action.fieldset_group_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.afsg.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.afsg.name.label;' name='name' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.afsg.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.afsg.complete_time.label;' name='complete_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.afsg.container.label;' name='container' reporter:datatype='int' oils_obj:required='true' />
+ <field reporter:label='&field.afsg.container_type.label;' name='container_type' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.afsg.rollback_group.label;' name='rollback_group' reporter:datatype='link' />
+ <field reporter:label='&field.afsg.rollback_time.label;' name='rollback_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.afsg.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.afsg.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ </fields>
+ <links>
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='rollback_group' reltype='has_a' class='afsg' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create owning_user='creator' context_field='owning_lib' permission='CREATE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP'></create>
+ <retrieve owning_user='creator' context_field='owning_lib' permission='RETRIEVE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP'></retrieve>
+ <update owning_user='creator' context_field='owning_lib' permission='UPDATE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP'></update>
+ <delete owning_user='creator' context_field='owning_lib' permission='DELETE_FIELDSET_GROUP ADMIN_FIELDSET_GROUP'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action::fieldset' reporter:label='&class.afs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.fieldset' id='afs'>
+ <fields oils_persist:sequence='action.fieldset_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.afs.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.afs.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.afs.owning_lib.label;' name='owning_lib' reporter:datatype='link' />
+ <field reporter:label='&field.afs.status.label;' name='status' reporter:datatype='text' />
+ <field reporter:label='&field.afs.creation_time.label;' name='creation_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.afs.scheduled_time.label;' name='scheduled_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.afs.applied_time.label;' name='applied_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.afs.classname.label;' name='classname' reporter:datatype='text' />
+ <field reporter:label='&field.afs.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.afs.stored_query.label;' name='stored_query' reporter:datatype='link' />
+ <field reporter:label='&field.afs.pkey_value.label;' name='pkey_value' reporter:datatype='text' />
+ <field reporter:label='&field.afs.fieldset_group.label;' name='fieldset_group' reporter:datatype='link' />
+ <field reporter:label='&field.afs.error_msg.label;' name='error_msg' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='au' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='stored_query' reltype='has_a' class='qsq' key='id' map='' />
+ <link field='fieldset_group' reltype='has_a' class='afsg' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create owning_user='owner' context_field='owning_lib' permission='CREATE_FIELDSET ADMIN_FIELDSET'></create>
+ <retrieve owning_user='owner' context_field='owning_lib' permission='RETRIEVE_FIELDSET ADMIN_FIELDSET'></retrieve>
+ <update owning_user='owner' context_field='owning_lib' permission='UPDATE_FIELDSET ADMIN_FIELDSET'></update>
+ <delete owning_user='owner' context_field='owning_lib' permission='DELETE_FIELDSET ADMIN_FIELDSET'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action::fieldset_col_val' reporter:label='&class.afscv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='action.fieldset_col_val' id='afscv'>
+ <fields oils_persist:sequence='action.fieldset_col_val_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.afscv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.afscv.fieldset.label;' name='fieldset' reporter:datatype='link' />
+ <field reporter:label='&field.afscv.col.label;' name='col' reporter:datatype='text' />
+ <field reporter:label='&field.afscv.val.label;' name='val' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='fieldset' reltype='has_a' class='afs' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='CREATE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY'>
+ <context field='owning_lib' link='fieldset'></context>
+ </create>
+ <retrieve permission='RETRIEVE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY'>
+ <context field='owning_lib' link='fieldset'></context>
+ </retrieve>
+ <update permission='UPDATE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY'>
+ <context field='owning_lib' link='fieldset'></context>
+ </update>
+ <delete permission='DELETE_FIELDSET_ENTRY ADMIN_FIELDSET_ENTRY'>
+ <context field='owning_lib' link='fieldset'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='action::unfulfilled_hold_loops' controller='open-ils.cstore' oils_persist:tablename='action.unfulfilled_hold_loops' id='aufhl' oils_persist:readonly='true'>
+ <fields>
+ <field reporter:label='&field.aufhl.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.aufhl.circ_lib.label;' name='circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.aufhl.count.label;' name='count' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::unfulfilled_hold_min_loop' controller='open-ils.cstore' oils_persist:tablename='action.unfulfilled_hold_min_loop' id='aufhml' oils_persist:readonly='true'>
+ <fields>
+ <field reporter:label='&field.aufhml.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.aufhml.min.label;' name='min' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::unfulfilled_hold_innermost_loop' controller='open-ils.cstore' oils_persist:tablename='action.unfulfilled_hold_innermost_loop' id='aufhil' oils_persist:readonly='true'>
+ <fields>
+ <field reporter:label='&field.aufhil.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.aufhil.circ_lib.label;' name='circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.aufhil.count.label;' name='count' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::unfulfilled_hold_max_loop' controller='open-ils.cstore' oils_persist:tablename='action.unfulfilled_hold_max_loop' id='aufhmxl' oils_persist:readonly='true'>
+ <fields>
+ <field reporter:label='&field.aufhmxl.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.aufhmxl.max.label;' name='max' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::unfulfilled_hold_outermost_loop' controller='open-ils.cstore' id='aufhol' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+
+ SELECT DISTINCT l.*
+ FROM action.unfulfilled_hold_loops l
+ JOIN action.unfulfilled_hold_max_loop m USING (hold)
+ WHERE l.count = m.max
+
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label='&field.aufhol.hold.label;' name='hold' reporter:datatype='link' />
+ <field reporter:label='&field.aufhol.circ_lib.label;' name='circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.aufhol.count.label;' name='count' reporter:datatype='int' />
+ </fields>
+ <links>
+ <link field='hold' reltype='has_a' class='ahr' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::stored_query' reporter:label='&class.qsq.label;' controller='open-ils.cstore' oils_persist:tablename='query.stored_query' id='qsq'>
+ <fields oils_persist:sequence='query.stored_query_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qsq.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qsq.type.label;' name='type' reporter:datatype='text' />
+ <field reporter:label='&field.qsq.use_all.label;' name='use_all' reporter:datatype='bool' />
+ <field reporter:label='&field.qsq.use_distinct.label;' name='use_distinct' reporter:datatype='bool' />
+ <field reporter:label='&field.qsq.from_clause.label;' name='from_clause' reporter:datatype='link' />
+ <field reporter:label='&field.qsq.where_clause.label;' name='where_clause' reporter:datatype='link' />
+ <field reporter:label='&field.qsq.having_clause.label;' name='having_clause' reporter:datatype='link' />
+ <field reporter:label='&field.qsq.limit_count.label;' name='limit_count' reporter:datatype='link' />
+ <field reporter:label='&field.qsq.offset_count.label;' name='offset_count' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='from_clause' reltype='has_a' class='qfr' key='id' map='' />
+ <link field='having_clause' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='where_clause' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='limit_count' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='offset_count' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::query_sequence' reporter:label='&class.qseq.label;' controller='open-ils.cstore' oils_persist:tablename='query.query_sequence' id='qseq'>
+ <fields oils_persist:sequence='query.query_sequence_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qseq.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qseq.parent_query.label;' name='parent_query' reporter:datatype='link' />
+ <field reporter:label='&field.qseq.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qseq.child_query.label;' name='child_query' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='parent_query' reltype='has_a' class='qsq' key='id' map='' />
+ <link field='child_query' reltype='has_a' class='qsq' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::datatype' reporter:label='&class.qdt.label;' controller='open-ils.cstore' oils_persist:tablename='query.datatype' id='qdt'>
+ <fields oils_persist:sequence='query.datatype_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qdt.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qdt.datatype_name.label;' name='datatype_name' reporter:datatype='text' />
+ <field reporter:label='&field.qdt.is_numeric.label;' name='is_numeric' reporter:datatype='bool' />
+ <field reporter:label='&field.qdt.is_composite.label;' name='is_composite' reporter:datatype='bool' />
+ </fields>
+ <links>
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::subfield' reporter:label='&class.qsf.label;' controller='open-ils.cstore' oils_persist:tablename='query.subfield' id='qsf'>
+ <fields oils_persist:sequence='query.subfield_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qsf.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qsf.composite_type.label;' name='composite_type' reporter:datatype='link' />
+ <field reporter:label='&field.qsf.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qsf.subfield_type.label;' name='subfield_type' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='composite_type' reltype='has_a' class='qdt' key='id' map='' />
+ <link field='subfield_type' reltype='has_a' class='qdt' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::function_sig' reporter:label='&class.qfs.label;' controller='open-ils.cstore' oils_persist:tablename='query.function_sig' id='qfs'>
+ <fields oils_persist:sequence='query.function_sig_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qfs.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qfs.function_name.label;' name='function_name' reporter:datatype='text' />
+ <field reporter:label='&field.qfs.return_type.label;' name='return_type' reporter:datatype='link' />
+ <field reporter:label='&field.qfs.is_aggregate.label;' name='is_aggregate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='return_type' reltype='has_a' class='qdt' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::function_param_def' reporter:label='&class.qfpd.label;' controller='open-ils.cstore' oils_persist:tablename='query.function_param_def' id='qfpd'>
+ <fields oils_persist:sequence='query.function_param_def_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qfpd.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qfpd.function_id.label;' name='function_id' reporter:datatype='link' />
+ <field reporter:label='&field.qfpd.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qfpd.datatype.label;' name='datatype' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='function_id' reltype='has_a' class='qfs' key='id' map='' />
+ <link field='datatype' reltype='has_a' class='qdt' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::bind_variable' reporter:label='&class.qbv.label;' controller='open-ils.cstore' oils_persist:tablename='query.bind_variable' id='qbv'>
+ <fields oils_persist:primary='name'>
+ <field reporter:label='&field.qbv.name.label;' name='name' reporter:datatype='id' />
+ <field reporter:label='&field.qbv.label.label;' name='label' reporter:datatype='text' oils_persist:i18n='true' />
+ <field reporter:label='&field.qbv.type.label;' name='type' reporter:datatype='text' />
+ <field reporter:label='&field.qbv.description.label;' name='description' reporter:datatype='text' />
+ <field reporter:label='&field.qbv.default_value.label;' name='default_value' reporter:datatype='text' />
+ <field reporter:label='&field.qbv.actual_value.label;' name='actual_value' reporter:datatype='text' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expression' reporter:label='&class.qxp.label;' controller='open-ils.cstore' oils_persist:tablename='query.expression' id='qxp'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qxp.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qxp.type.label;' name='type' reporter:datatype='text' />
+ <field reporter:label='&field.qxp.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.qxp.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.qxp.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qxp.literal.label;' name='literal' reporter:datatype='text' />
+ <field reporter:label='&field.qxp.table_alias.label;' name='table_alias' reporter:datatype='text' />
+ <field reporter:label='&field.qxp.column_name.label;' name='column_name' reporter:datatype='text' />
+ <field reporter:label='&field.qxp.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.qxp.operator.label;' name='operator' reporter:datatype='text' />
+ <field reporter:label='&field.qxp.right_operand.label;' name='right_operand' reporter:datatype='link' />
+ <field reporter:label='&field.qxp.function_id.label;' name='function_id' reporter:datatype='link' />
+ <field reporter:label='&field.qxp.subquery.label;' name='subquery' reporter:datatype='link' />
+ <field reporter:label='&field.qxp.cast_type.label;' name='cast_type' reporter:datatype='link' />
+ <field reporter:label='&field.qxp.negate.label;' name='negate' reporter:datatype='bool' />
+ <field reporter:label='&field.qxp.bind_variable.label;' name='bind_variable' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='right_operand' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='function_id' reltype='has_a' class='qfs' key='id' map='' />
+ <link field='subquery' reltype='has_a' class='qsq' key='id' map='' />
+ <link field='cast_type' reltype='has_a' class='qdt' key='id' map='' />
+ <link field='bind_variable' reltype='has_a' class='qbv' key='name' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::case_branch' reporter:label='&class.qcb.label;' controller='open-ils.cstore' oils_persist:tablename='query.case_branch' id='qcb'>
+ <fields oils_persist:sequence='query.case_branch_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qcb.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qcb.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.qcb.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qcb.condition.label;' name='condition' reporter:datatype='link' />
+ <field reporter:label='&field.qcb.result.label;' name='result' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='condition' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='result' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::from_relation' reporter:label='&class.qfr.label;' controller='open-ils.cstore' oils_persist:tablename='query.from_relation' id='qfr'>
+ <fields oils_persist:sequence='query.from_relation_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qfr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qfr.type.label;' name='type' reporter:datatype='text' />
+ <field reporter:label='&field.qfr.table_name.label;' name='table_name' reporter:datatype='text' />
+ <field reporter:label='&field.qfr.class_name.label;' name='class_name' reporter:datatype='text' />
+ <field reporter:label='&field.qfr.subquery.label;' name='subquery' reporter:datatype='link' />
+ <field reporter:label='&field.qfr.function_call.label;' name='function_call' reporter:datatype='link' />
+ <field reporter:label='&field.qfr.table_alias.label;' name='table_alias' reporter:datatype='text' />
+ <field reporter:label='&field.qfr.parent_relation.label;' name='parent_relation' reporter:datatype='link' />
+ <field reporter:label='&field.qfr.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qfr.join_type.label;' name='join_type' reporter:datatype='text' />
+ <field reporter:label='&field.qfr.on_clause.label;' name='on_clause' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='subquery' reltype='has_a' class='qsq' key='id' map='' />
+ <link field='function_call' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='parent_relation' reltype='has_a' class='qfr' key='id' map='' />
+ <link field='on_clause' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::record_column' reporter:label='&class.qrc.label;' controller='open-ils.cstore' oils_persist:tablename='query.record_column' id='qrc'>
+ <fields oils_persist:sequence='query.record_column_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qrc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qrc.from_relation.label;' name='from_relation' reporter:datatype='link' />
+ <field reporter:label='&field.qrc.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qrc.column_name.label;' name='column_name' reporter:datatype='text' />
+ <field reporter:label='&field.qrc.column_type.label;' name='column_type' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='from_relation' reltype='has_a' class='qfr' key='id' map='' />
+ <link field='column_type' reltype='has_a' class='qdt' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::select_item' reporter:label='&class.qsi.label;' controller='open-ils.cstore' oils_persist:tablename='query.select_item' id='qsi'>
+ <fields oils_persist:sequence='query.select_item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qsi.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qsi.stored_query.label;' name='stored_query' reporter:datatype='link' />
+ <field reporter:label='&field.qsi.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qsi.expression.label;' name='expression' reporter:datatype='link' />
+ <field reporter:label='&field.qsi.column_alias.label;' name='column_alias' reporter:datatype='text' />
+ <field reporter:label='&field.qsi.grouped_by.label;' name='grouped_by' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='stored_query' reltype='has_a' class='qsq' key='id' map='' />
+ <link field='expression' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::order_by_item' reporter:label='&class.qobi.label;' controller='open-ils.cstore' oils_persist:tablename='query.order_by_item' id='qobi'>
+ <fields oils_persist:sequence='query.order_by_item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.qobi.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.qobi.stored_query.label;' name='stored_query' reporter:datatype='link' />
+ <field reporter:label='&field.qobi.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.qobi.expression.label;' name='expression' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='stored_query' reltype='has_a' class='qsq' key='id' map='' />
+ <link field='expression' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xbet' reporter:label='&class.xbet.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xbet' id='xbet'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xbet.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xbet.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xbet.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xbet.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xbet.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xbet.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xbind' reporter:label='&class.xbind.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xbind' id='xbind'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xbind.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xbind.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xbind.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xbind.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xbind.bind_variable.label;' name='bind_variable' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='bind_variable' reltype='has_a' class='qbv' key='name' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xbool' reporter:label='&class.xbool.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xbool' id='xbool'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xbool.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xbool.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xbool.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xbool.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xbool.literal.label;' name='literal' reporter:datatype='text' />
+ <field reporter:label='&field.xbool.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xcase' reporter:label='&class.xcase.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xcase' id='xcase'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xcase.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xcase.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xcase.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xcase.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xcase.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xcase.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xcast' reporter:label='&class.xcast.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xcast' id='xcast'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xcast.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xcast.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xcast.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xcast.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xcast.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xcast.cast_type.label;' name='cast_type' reporter:datatype='link' />
+ <field reporter:label='&field.xcast.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='cast_type' reltype='has_a' class='qdt' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xcol' reporter:label='&class.xcol.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xcol' id='xcol'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xcol.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xcol.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xcol.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xcol.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xcol.table_alias.label;' name='table_alias' reporter:datatype='text' />
+ <field reporter:label='&field.xcol.column_name.label;' name='column_name' reporter:datatype='text' />
+ <field reporter:label='&field.xcol.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xex' reporter:label='&class.xex.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xex' id='xex'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xex.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xex.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xex.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xex.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xex.subquery.label;' name='subquery' reporter:datatype='link' />
+ <field reporter:label='&field.xex.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='subquery' reltype='has_a' class='qsq' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xfunc' reporter:label='&class.xfunc.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xfunc' id='xfunc'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xfunc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xfunc.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xfunc.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xfunc.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xfunc.column_name.label;' name='column_name' reporter:datatype='text' />
+ <field reporter:label='&field.xfunc.function_id.label;' name='function_id' reporter:datatype='link' />
+ <field reporter:label='&field.xfunc.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='function_id' reltype='has_a' class='qfs' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xin' reporter:label='&class.xin.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xin' id='xin'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xin.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xin.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xin.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xin.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xin.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xin.subquery.label;' name='subquery' reporter:datatype='link' />
+ <field reporter:label='&field.xin.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='subquery' reltype='has_a' class='qsq' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xisnull' reporter:label='&class.xisnull.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xisnull' id='xisnull'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xisnull.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xisnull.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xisnull.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xisnull.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xisnull.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xisnull.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xnull' reporter:label='&class.xnull.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xnull' id='xnull'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xnull.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xnull.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xnull.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xnull.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xnull.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xnum' reporter:label='&class.xnum.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xnum' id='xnum'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xnum.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xnum.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xnum.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xnum.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xnum.literal.label;' name='literal' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xop' reporter:label='&class.xop.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xop' id='xop'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xop.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xop.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xop.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xop.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xop.left_operand.label;' name='left_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xop.operator.label;' name='operator' reporter:datatype='text' />
+ <field reporter:label='&field.xop.right_operand.label;' name='right_operand' reporter:datatype='link' />
+ <field reporter:label='&field.xop.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='left_operand' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='right_operand' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xser' reporter:label='&class.xser.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xser' id='xser'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xser.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xser.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xser.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xser.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xser.operator.label;' name='operator' reporter:datatype='text' />
+ <field reporter:label='&field.xser.negate.label;' name='negate' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xstr' reporter:label='&class.xstr.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xstr' id='xstr'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xstr.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xstr.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xstr.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xstr.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xstr.literal.label;' name='literal' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='query::expr_xsubq' reporter:label='&class.xsubq.label;' controller='open-ils.cstore' oils_persist:tablename='query.expr_xsubq' id='xsubq'>
+ <fields oils_persist:sequence='query.expression_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.xsubq.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.xsubq.parenthesize.label;' name='parenthesize' reporter:datatype='bool' />
+ <field reporter:label='&field.xsubq.parent_expr.label;' name='parent_expr' reporter:datatype='link' />
+ <field reporter:label='&field.xsubq.seq_no.label;' name='seq_no' reporter:datatype='int' />
+ <field reporter:label='&field.xsubq.subquery.label;' name='subquery' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='parent_expr' reltype='has_a' class='qxp' key='id' map='' />
+ <link field='subquery' reltype='has_a' class='qsq' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.bmpc.label;' oils_persist:tablename='biblio.marc21_physical_characteristics' oils_obj:fieldmapper='biblio::marc21_physical_characteristics' controller='open-ils.cstore' oils_persist:field_safe='true' id='bmpc' oils_persist:readonly='true'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.bmpc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.bmpc.ptype.label;' name='ptype' reporter:datatype='link' />
+ <field reporter:label='&field.bmpc.subfield.label;' name='subfield' reporter:datatype='link' />
+ <field reporter:label='&field.bmpc.value.label;' name='value' reporter:datatype='link' />
+ <field reporter:label='&field.bmpc.record.label;' name='record' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='ptype' reltype='has_a' class='cmpctm' key='id' map='' />
+ <link field='subfield' reltype='has_a' class='cmpcsm' key='id' map='' />
+ <link field='value' reltype='has_a' class='cmpcvm' key='id' map='' />
+ <link field='record' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.cmfpm.label;' oils_persist:tablename='config.marc21_ff_pos_map' oils_obj:fieldmapper='config::marc21_ff_pos_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmfpm'>
+ <fields oils_persist:sequence='config.marc21_ff_pos_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmfpm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmfpm.fixed_field.label;' name='fixed_field' reporter:datatype='text' />
+ <field reporter:label='&field.cmfpm.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.cmfpm.rec_type.label;' name='rec_type' reporter:datatype='text' />
+ <field reporter:label='&field.cmfpm.start_pos.label;' name='start_pos' reporter:datatype='int' />
+ <field reporter:label='&field.cmfpm.length.label;' name='length' reporter:datatype='int' />
+ <field reporter:label='&field.cmfpm.default_val.label;' name='default_val' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmpctm.label;' oils_persist:tablename='config.marc21_physical_characteristic_type_map' oils_obj:fieldmapper='config::marc21_physical_characteristic_type_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmpctm'>
+ <fields oils_persist:primary='ptype_key'>
+ <field reporter:label='&field.cmpctm.ptype_key.label;' name='ptype_key' reporter:datatype='id' />
+ <field reporter:label='&field.cmpctm.label.label;' name='label' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmpcsm.label;' oils_persist:tablename='config.marc21_physical_characteristic_subfield_map' oils_obj:fieldmapper='config::marc21_physical_characteristic_subfield_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmpcsm'>
+ <fields oils_persist:sequence='config.marc21_physical_characteristic_subfield_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmpcsm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmpcsm.ptype_key.label;' name='ptype_key' reporter:datatype='link' />
+ <field reporter:label='&field.cmpcsm.subfield.label;' name='subfield' reporter:datatype='text' />
+ <field reporter:label='&field.cmpcsm.start_pos.label;' name='start_pos' reporter:datatype='int' />
+ <field reporter:label='&field.cmpcsm.length.label;' name='length' reporter:datatype='int' />
+ <field reporter:label='&field.cmpcsm.label.label;' name='label' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='ptype_key' reltype='has_a' class='cmpctm' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.cmpcvm.label;' oils_persist:tablename='config.marc21_physical_characteristic_value_map' oils_obj:fieldmapper='config::marc21_physical_characteristic_value_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmpcvm'>
+ <fields oils_persist:sequence='config.marc21_physical_characteristic_value_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmpcvm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmpcvm.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.cmpcvm.ptype_subfield.label;' name='ptype_subfield' reporter:datatype='link' />
+ <field reporter:label='&field.cmpcvm.label.label;' name='label' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='ptype_subfield' reltype='has_a' class='cmpcsm' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='url_verify::session' reporter:label='&class.uvs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='url_verify.session' id='uvs'>
+ <fields oils_persist:sequence='url_verify.session_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.uvs.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.uvs.name.label;' name='name' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.uvs.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' oils_obj:required='true' />
+ <field reporter:label='&field.uvs.creator.label;' name='creator' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.uvs.container.label;' name='container' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.uvs.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.uvs.search.label;' name='search' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.uvs.selectors.label;' name='selectors' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.uvs.attempts.label;' name='attempts' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='container' reltype='has_a' class='cbreb' key='id' map='' />
+ <link field='selectors' reltype='has_many' class='uvus' key='session' map='' />
+ <link field='attempts' reltype='has_many' class='uvva' key='session' map='' />
+ </links>
+
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='owning_lib' permission='URL_VERIFY'></retrieve>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class oils_obj:fieldmapper='url_verify::session_biblio_record_entry_map' reporter:label='&class.uvsbrem.label;' controller='open-ils.cstore open-ils.pcrud' id='uvsbrem' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT
+ cbrebi.id AS id, -- so we can have a pkey in our view
+ uvs.id AS session,
+ uvs.owning_lib,
+ cbrebi.target_biblio_record_entry
+ FROM url_verify.session uvs
+ JOIN container.biblio_record_entry_bucket cbreb
+ ON (uvs.container = cbreb.id)
+ JOIN container.biblio_record_entry_bucket_item cbrebi
+ ON (cbrebi.bucket = cbreb.id)
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='container.biblio_record_entry_bucket_item_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.uvsbrem.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.uvsbrem.session.label;' name='session' reporter:datatype='link' />
+ <field reporter:label='&field.uvsbrem.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.uvsbrem.target_biblio_record_entry.label;' name='target_biblio_record_entry' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='target_biblio_record_entry' reltype='has_a' class='bre' key='id' map='' />
+ <link field='session' reltype='has_a' class='uvs' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve context_field='owning_lib' permission='URL_VERIFY'></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='url_verify::url_selector' reporter:label='&class.uvus.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='url_verify.url_selector' id='uvus'>
+ <fields oils_persist:sequence='url_verify.url_selector_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.uvus.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.uvus.xpath.label;' name='xpath' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.uvus.session.label;' name='session' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.uvus.urls.label;' name='urls' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+
+ <links>
+ <link field='session' reltype='has_a' class='uvs' key='id' map='' />
+ <link field='urls' reltype='has_many' class='uvu' key='id' map='' />
+ </links>
+
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </create>
+ <retrieve permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </retrieve>
+ <update permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </update>
+ <delete permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class oils_obj:fieldmapper='url_verify::url' reporter:label='&class.uvu.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='url_verify.url' id='uvu'>
+ <fields oils_persist:sequence='url_verify.url_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.uvu.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.uvu.redirect_from.label;' name='redirect_from' reporter:datatype='link' />
+ <field reporter:label='&field.uvu.item.label;' name='item' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.uvu.session.label;' name='session' reporter:datatype='link' oils_obj:required='true' />
+ <field reporter:label='&field.uvu.url_selector.label;' name='url_selector' reporter:datatype='link' />
+ <field reporter:label='&field.uvu.tag.label;' name='tag' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.subfield.label;' name='subfield' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.ord.label;' name='ord' reporter:datatype='int' />
+ <field reporter:label='&field.uvu.full_url.label;' name='full_url' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.scheme.label;' name='scheme' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.host.label;' name='host' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.domain.label;' name='domain' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.tld.label;' name='tld' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.path.label;' name='path' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.page.label;' name='page' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.query.label;' name='query' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.fragment.label;' name='fragment' reporter:datatype='text' />
+ <field reporter:label='&field.uvu.verifications.label;' name='verifications' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+
+ <links>
+ <link field='redirect_from' reltype='has_a' class='uvu' key='id' map='' />
+ <link field='item' reltype='has_a' class='uvsbrem' key='id' map='' />
+ <link field='session' reltype='has_a' class='uvs' key='id' map='' />
+ <link field='url_selector' reltype='has_a' class='uvus' key='id' map='' />
+ <link field='verifications' reltype='has_many' class='uvuv' key='url' map='' />
+ </links>
+
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </create>
+ <retrieve permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </retrieve>
+ <update permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </update>
+ <delete permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class oils_obj:fieldmapper='url_verify::verification_attempt' reporter:label='&class.uvva.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='url_verify.verification_attempt' id='uvva'>
+ <fields oils_persist:sequence='url_verify.verification_attempt_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.uvva.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.uvva.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.uvva.session.label;' name='session' reporter:datatype='link' />
+ <field reporter:label='&field.uvva.start_time.label;' name='start_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.uvva.finish_time.label;' name='finish_time' reporter:datatype='timestamp' />
+ </fields>
+
+ <links>
+ <link field='session' reltype='has_a' class='uvs' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ </links>
+
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </create>
+ <retrieve permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </retrieve>
+ <update permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </update>
+ <delete permission='URL_VERIFY'>
+ <context field='owning_lib' link='session'></context>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class oils_obj:fieldmapper='url_verify::url_verification' reporter:label='&class.uvuv.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='url_verify.url_verification' id='uvuv'>
+ <fields oils_persist:sequence='url_verify.url_verification_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.uvuv.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.uvuv.url.label;' name='url' reporter:datatype='link' />
+ <field reporter:label='&field.uvuv.attempt.label;' name='attempt' reporter:datatype='link' />
+ <field reporter:label='&field.uvuv.req_time.label;' name='req_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.uvuv.res_time.label;' name='res_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.uvuv.res_code.label;' name='res_code' reporter:datatype='int' />
+ <field reporter:label='&field.uvuv.res_text.label;' name='res_text' reporter:datatype='text' />
+ <field reporter:label='&field.uvuv.redirect_to.label;' name='redirect_to' reporter:datatype='link' />
+ </fields>
+
+ <links>
+ <link field='url' reltype='has_a' class='uvu' key='id' map='' />
+ <link field='attempt' reltype='has_a' class='uvva' key='id' map='' />
+ <link field='redirect_to' reltype='has_a' class='uvu' key='id' map='' />
+ </links>
+
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='URL_VERIFY'>
+ <context jump='session' field='owning_lib' link='attempt'></context>
+ </create>
+ <retrieve permission='URL_VERIFY'>
+ <context jump='session' field='owning_lib' link='attempt'></context>
+ </retrieve>
+ <update permission='URL_VERIFY'>
+ <context jump='session' field='owning_lib' link='attempt'></context>
+ </update>
+ <delete permission='URL_VERIFY'>
+ <context jump='session' field='owning_lib' link='attempt'></context>
+ </delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class oils_obj:fieldmapper='config::filter_dialog_interface' reporter:label='&class.cfdi.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.filter_dialog_interface' id='cfdi'>
+ <fields oils_persist:sequence='config.filter_dialog_interface_pkey' oils_persist:primary='key'>
+ <field reporter:label='&field.cfdi.key.label;' name='key' reporter:datatype='text' />
+ <field reporter:label='&field.cfdi.description.label;' name='description' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='filter_sets' reltype='has_many' class='cfdfs' key='interface' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::filter_dialog_filter_set' reporter:label='&class.cfdfs.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.filter_dialog_filter_set' id='cfdfs'>
+ <fields oils_persist:sequence='config.filter_dialog_filter_set_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cfdfs.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cfdfs.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cfdfs.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.cfdfs.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.cfdfs.interface.label;' name='interface' reporter:datatype='link' />
+ <field reporter:label='&field.cfdfs.create_time.label;' name='create_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.cfdfs.filters.label;' name='filters' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='interface' reltype='has_a' class='cfdi' key='key' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owning_lib' permission='SAVED_FILTER_DIALOG_FILTERS'></create>
+ <retrieve context_field='owning_lib' permission='SAVED_FILTER_DIALOG_FILTERS'></retrieve>
+ <update context_field='owning_lib' permission='SAVED_FILTER_DIALOG_FILTERS'></update>
+ <delete context_field='owning_lib' permission='SAVED_FILTER_DIALOG_FILTERS'></delete>
+ </actions>
+ </permacrud>
+
+ </class>
+
+ <class reporter:label='&class.cmrtm.label;' oils_persist:tablename='config.marc21_rec_type_map' oils_obj:fieldmapper='config::marc21_rec_type_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cmrtm'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.cmrtm.code.label;' name='code' reporter:datatype='id' />
+ <field reporter:label='&field.cmrtm.type_val.label;' name='type_val' reporter:datatype='text' />
+ <field reporter:label='&field.cmrtm.blvl_val.label;' name='blvl_val' reporter:datatype='text' />
+ </fields>
+ <links></links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.rlcd.label;' reporter:core='true' oils_obj:fieldmapper='reporter::last_copy_deleted' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='rlcd' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+
+ SELECT b.id,
+ MAX(dcp.edit_date) AS last_delete_date
+ FROM biblio.record_entry b
+ JOIN asset.call_number cn ON (cn.record = b.id)
+ JOIN asset.copy dcp ON (cn.id = dcp.call_number)
+ WHERE NOT b.deleted
+ GROUP BY b.id
+ HAVING SUM( CASE WHEN NOT dcp.deleted THEN 1 ELSE 0 END) = 0
+
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='biblio.record_entry' oils_persist:primary='id'>
+ <field reporter:label='&field.rlcd.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rlcd.last_delete_date.label;' name='last_delete_date' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.rhcrpb.label;' reporter:core='true' oils_obj:fieldmapper='reporter::hold_copy_ratio_per_bib' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='rhcrpb' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+
+ -- -- If we uncomment the RIGHT JOIN against biblio.record_entry, then we'll get a row for every non-deleted bib, whether it has active holds or not.
+ -- -- If we expect to use pcrud to query against specific bibs, we probably want to do this. However, if we're using this to populate a report, we
+ -- -- may not.
+ -- SELECT
+ -- bre.id AS bib_id,
+ -- COALESCE( z.copy_count, 0 ) AS copy_count,
+ -- COALESCE( z.hold_count, 0 ) AS hold_count,
+ -- COALESCE( z.copy_hold_ratio, 0 ) AS hold_copy_ratio
+ -- FROM (
+ SELECT
+ y.bre AS id,
+ COALESCE( x.copy_count, 0 ) AS copy_count,
+ y.hold_count AS hold_count,
+ (y.hold_count::REAL / (CASE WHEN x.copy_count = 0 OR x.copy_count IS NULL THEN 0.1 ELSE x.copy_count::REAL END)) AS hold_copy_ratio
+ FROM (
+ SELECT
+ (SELECT bib_record FROM reporter.hold_request_record r WHERE r.id = h.id LIMIT 1) AS bre,
+ COUNT(*) AS hold_count
+ FROM action.hold_request h
+ WHERE
+ cancel_time IS NULL
+ AND fulfillment_time IS NULL
+ -- AND NOT frozen -- a frozen hold is still a desired hold, eh?
+ GROUP BY 1
+ )y LEFT JOIN (
+ SELECT
+ (SELECT id
+ FROM biblio.record_entry
+ WHERE id = (SELECT record FROM asset.call_number WHERE id = call_number and deleted is false)
+ ) AS bre,
+ COUNT(*) AS copy_count
+ FROM asset.copy
+ JOIN asset.copy_location loc ON (copy.location = loc.id AND loc.holdable)
+ WHERE copy.holdable
+ AND NOT copy.deleted
+ AND copy.status IN ( SELECT id FROM config.copy_status WHERE holdable )
+ GROUP BY 1
+ )x ON x.bre = y.bre
+ -- )z RIGHT JOIN (
+ -- SELECT id
+ -- FROM biblio.record_entry
+ -- WHERE NOT deleted
+ -- )bre ON (z.bib_id = bre.id)
+
+
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='biblio.record_entry' oils_persist:primary='id'>
+ <field reporter:label='&field.rhcrpb.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rhcrpb.copy_count.label;' name='copy_count' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpb.hold_count.label;' name='hold_count' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpb.hold_copy_ratio.label;' name='hold_copy_ratio' reporter:datatype='float' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='reporter::hold_copy_ratio_per_bib_and_pickup' reporter:label='&class.rhcrpbap.label;' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='rhcrpbap' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT *,
+ CASE WHEN copy_count_at_pickup_library = 0 THEN 'Infinity'::FLOAT ELSE holds_at_pickup_library::FLOAT/copy_count_at_pickup_library END AS pickup_library_ratio,
+ CASE WHEN copy_count_everywhere = 0 THEN 'Infinity'::FLOAT ELSE holds_everywhere::FLOAT/copy_count_everywhere END AS everywhere_ratio
+ FROM
+ (SELECT bib_record as id, pickup_lib, count(DISTINCT ahr.id) AS holds_at_pickup_library, COALESCE(count(DISTINCT ac.id),0) as copy_count_at_pickup_library
+ FROM
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ LEFT JOIN asset.copy ac ON (ahcm.target_copy = ac.id AND ahr.pickup_lib = ac.circ_lib)
+ WHERE
+ ahr.cancel_time IS NULL
+ AND ahr.fulfillment_time IS NULL
+ GROUP BY bib_record, pickup_lib
+ )x
+ JOIN
+ (SELECT bib_record as id, count(DISTINCT ahr.id) AS holds_everywhere, COALESCE(count(DISTINCT target_copy),0) as copy_count_everywhere
+ FROM
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ WHERE
+ ahr.cancel_time IS NULL
+ AND ahr.fulfillment_time IS NULL
+ GROUP BY bib_record
+ )y
+ USING (id)
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='biblio.record_entry' oils_persist:primary='id'>
+ <field reporter:label='&field.rhcrpbap.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.rhcrpbap.pickup_lib.label;' name='pickup_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rhcrpbap.holds_at_pickup_library.label;' name='holds_at_pickup_library' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbap.copy_count_at_pickup_library.label;' name='copy_count_at_pickup_library' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbap.holds_everywhere.label;' name='holds_everywhere' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbap.copy_count_everywhere.label;' name='copy_count_everywhere' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbap.pickup_library_ratio.label;' name='pickup_library_ratio' reporter:datatype='float' />
+ <field reporter:label='&field.rhcrpbap.everywhere_ratio.label;' name='everywhere_ratio' reporter:datatype='float' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ <link field='pickup_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='reporter::hold_copy_ratio_per_bib_and_pickup_desc' reporter:label='&class.rhcrpbapd.label;' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='rhcrpbapd' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ WITH counts_at_ou AS (
+ SELECT rhrr.bib_record AS id,
+ aou.id AS pickup_lib_or_desc,
+ COUNT(DISTINCT ahr.id) AS holds_at_or_below,
+ COALESCE(COUNT(DISTINCT ac.id),0) AS copy_count_at_or_below
+ FROM actor.org_unit aou
+ JOIN actor.org_unit_type aout ON (aou.ou_type = aout.id),
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ LEFT JOIN asset.copy ac ON (ahcm.target_copy = ac.id)
+ WHERE ahr.cancel_time IS NULL AND ahr.fulfillment_time IS NULL
+ AND ac.circ_lib IN (SELECT id FROM actor.org_unit_descendants(aou.id))
+ AND (actor.org_unit_ancestor_at_depth(ahr.pickup_lib,aout.depth)).id = (actor.org_unit_ancestor_at_depth(ac.circ_lib,aout.depth)).id
+ GROUP BY 1, 2
+ )
+ SELECT x.id, x.pickup_lib_or_desc, x.holds_at_or_below, x.copy_count_at_or_below,
+ y.holds_everywhere, y.copy_count_everywhere,
+ CASE WHEN copy_count_at_or_below = 0 THEN 'Infinity'::FLOAT ELSE x.holds_at_or_below::FLOAT/x.copy_count_at_or_below END AS hold_copy_ratio_at_or_below_ou,
+ CASE WHEN copy_count_everywhere = 0 THEN 'Infinity'::FLOAT ELSE y.holds_everywhere::FLOAT/y.copy_count_everywhere END AS everywhere_ratio
+ FROM counts_at_ou x
+ JOIN (SELECT bib_record AS id, count(DISTINCT ahr.id) AS holds_everywhere, COALESCE(count(DISTINCT target_copy),0) as copy_count_everywhere
+ FROM
+ action.hold_request ahr
+ JOIN reporter.hold_request_record rhrr USING (id)
+ LEFT JOIN action.hold_copy_map ahcm ON (ahr.id = ahcm.hold)
+ WHERE
+ ahr.cancel_time IS NULL
+ AND ahr.fulfillment_time IS NULL
+ GROUP BY bib_record
+ )y
+ USING (id)
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='biblio.record_entry' oils_persist:primary='id'>
+ <field reporter:label='&field.rhcrpbapd.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.rhcrpbapd.pickup_lib_or_desc.label;' name='pickup_lib_or_desc' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rhcrpbapd.holds_at_or_below.label;' name='holds_at_or_below' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbapd.copy_count_at_or_below.label;' name='copy_count_at_or_below' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbapd.holds_everywhere.label;' name='holds_everywhere' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbapd.copy_count_everywhere.label;' name='copy_count_everywhere' reporter:datatype='int' />
+ <field reporter:label='&field.rhcrpbapd.hold_copy_ratio_at_or_below_ou.label;' name='hold_copy_ratio_at_or_below_ou' reporter:datatype='float' />
+ <field reporter:label='&field.rhcrpbapd.everywhere_ratio.label;' name='everywhere_ratio' reporter:datatype='float' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='bre' key='id' map='' />
+ <link field='pickup_lib_or_desc' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='reporter::last_circ_date' reporter:label='&class.rlc.label;' controller='open-ils.cstore open-ils.pcrud open-ils.reporter-store' id='rlc' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT
+ ac.id,
+ COALESCE(MAX(actac.xact_start), ac.create_date) AS last_circ_or_create,
+ MAX(actac.xact_start) AS last_circ
+ FROM asset.copy ac
+ LEFT JOIN action.all_circulation actac ON ac.id = actac.target_copy
+ GROUP BY ac.id
+
+ -- Alternate version, say if you have migrated last checkout information in extend_reporter.legacy_circ_timestamp:
+ --SELECT
+ -- ac.id,
+ -- GREATEST(MAX(actac.xact_start), erlct.last_cko_ts, ac.create_date) AS last_circ_or_create,
+ -- GREATEST(MAX(actac.xact_start), erlct.last_cko_ts) AS last_circ
+ --FROM asset.copy ac
+ -- LEFT JOIN action.all_circulation actac ON ac.id = actac.target_copy
+ -- LEFT JOIN extend_reporter.legacy_circ_timestamp erlct ON ac.id = erlct.id
+ --GROUP BY ac.id, ac.create_date, erlct.last_cko_ts
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='biblio.record_entry' oils_persist:primary='id'>
+ <field reporter:label='&field.rlc.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.rlc.last_circ_or_create.label;' name='last_circ_or_create' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rlc.last_circ.label;' name='last_circ' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::ts_config_list' reporter:label='&class.ctcl.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.ts_config_list' id='ctcl'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.ctcl.id.label;' reporter:selector='name' reporter:datatype='text' name='id' />
+ <field reporter:label='&field.ctcl.name.label;' name='name' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::metabib_class_ts_map' reporter:label='&class.cmcts.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.metabib_class_ts_map' id='cmcts'>
+ <fields oils_persist:sequence='config.metabib_class_ts_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmcts.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmcts.field_class.label;' name='field_class' reporter:datatype='text' />
+ <field reporter:label='&field.cmcts.ts_config.label;' name='ts_config' reporter:datatype='text' />
+ <field reporter:label='&field.cmcts.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.cmcts.index_weight.label;' name='index_weight' reporter:datatype='text' />
+ <field reporter:label='&field.cmcts.index_lang.label;' name='index_lang' reporter:datatype='text' />
+ <field reporter:label='&field.cmcts.search_lang.label;' name='search_lang' reporter:datatype='text' />
+ <field reporter:label='&field.cmcts.always.label;' name='always' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='field_class' reltype='has_a' class='cmc' key='name' map='' />
+ <link field='ts_config' reltype='has_a' class='ctcl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INDEX_NORMALIZER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INDEX_NORMALIZER'></update>
+ <delete global_required='true' permission='ADMIN_INDEX_NORMALIZER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::metabib_field_ts_map' reporter:label='&class.cmfts.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.metabib_field_ts_map' id='cmfts'>
+ <fields oils_persist:sequence='config.metabib_field_ts_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cmfts.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cmfts.metabib_field.label;' name='metabib_field' reporter:datatype='text' />
+ <field reporter:label='&field.cmfts.ts_config.label;' name='ts_config' reporter:datatype='text' />
+ <field reporter:label='&field.cmfts.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.cmfts.index_weight.label;' name='index_weight' reporter:datatype='text' />
+ <field reporter:label='&field.cmfts.index_lang.label;' name='index_lang' reporter:datatype='text' />
+ <field reporter:label='&field.cmfts.search_lang.label;' name='search_lang' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='metabib_field' reltype='has_a' class='cmf' key='id' map='' />
+ <link field='ts_config' reltype='has_a' class='ctcl' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_INDEX_NORMALIZER'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_INDEX_NORMALIZER'></update>
+ <delete global_required='true' permission='ADMIN_INDEX_NORMALIZER'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+
+
+
+
+ <class reporter:label='&class.rccc.label;' oils_persist:tablename='reporter.classic_current_circ' reporter:core='true' oils_obj:fieldmapper='reporter::classic_current_circ' controller='open-ils.reporter-store' id='rccc'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rccc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rccc.circ_lib.label;' name='circ_lib' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.circ_lib_id.label;' name='circ_lib_id' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rccc.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rccc.circ_type.label;' name='circ_type' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.copy_id.label;' name='copy_id' reporter:datatype='link' />
+ <field reporter:label='&field.rccc.circ_modifier.label;' name='circ_modifier' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.owning_lib_name.label;' name='owning_lib_name' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.language.label;' name='language' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.lit_form.label;' name='lit_form' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.item_form.label;' name='item_form' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.item_type.label;' name='item_type' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.shelving_location.label;' name='shelving_location' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.profile_group.label;' name='profile_group' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.demographic_general_division.label;' name='demographic_general_division' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.call_number.label;' name='call_number' reporter:datatype='link' />
+ <field reporter:label='&field.rccc.call_number_label.label;' name='call_number_label' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.dewey.label;' name='dewey' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.patron_id.label;' name='patron_id' reporter:datatype='link' />
+ <field reporter:label='&field.rccc.patron_home_lib.label;' name='patron_home_lib' reporter:datatype='link' />
+ <field reporter:label='&field.rccc.patron_home_lib_shortname.label;' name='patron_home_lib_shortname' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.patron_county.label;' name='patron_county' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.patron_city.label;' name='patron_city' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.patron_zip.label;' name='patron_zip' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.stat_cat_1.label;' name='stat_cat_1' reporter:datatype='link' />
+ <field reporter:label='&field.rccc.stat_cat_2.label;' name='stat_cat_2' reporter:datatype='link' />
+ <field reporter:label='&field.rccc.dewey_range_tens.label;' name='dewey_range_tens' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.dewey_range_hundreds.label;' name='dewey_range_hundreds' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.dewey_block_tens.label;' name='dewey_block_tens' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.dewey_block_hundreds.label;' name='dewey_block_hundreds' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.stat_cat_1_value.label;' name='stat_cat_1_value' reporter:datatype='text' />
+ <field reporter:label='&field.rccc.stat_cat_2_value.label;' name='stat_cat_2_value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='circ' key='id' map='' />
+ <link field='copy_id' reltype='has_a' class='acp' key='id' map='' />
+ <link field='patron_id' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib_id' reltype='has_a' class='aou' key='id' map='' />
+ <link field='call_number' reltype='has_a' class='acn' key='id' map='' />
+ <link field='patron_home_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='stat_cat_1' reltype='has_a' class='rsce1' key='id' map='' />
+ <link field='stat_cat_2' reltype='has_a' class='rsce2' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='reporter::legacy_cat1' reporter:label='&class.rsce1.label;' controller='open-ils.reporter-store open-ils.cstore' oils_persist:tablename='reporter.legacy_cat1' id='rsce1'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rsce1.id.label;' name='id' reporter:datatype='id' reporter:selector='value' />
+ <field reporter:label='&field.rsce1.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.rsce1.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='reporter::legacy_cat2' reporter:label='&class.rsce2.label;' controller='open-ils.reporter-store open-ils.cstore' oils_persist:tablename='reporter.legacy_cat2' id='rsce2'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rsce2.id.label;' name='id' reporter:datatype='id' reporter:selector='value' />
+ <field reporter:label='&field.rsce2.owner.label;' name='owner' reporter:datatype='link' />
+ <field reporter:label='&field.rsce2.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rccbs.label;' oils_persist:tablename='reporter.classic_current_billing_summary' reporter:core='true' oils_obj:fieldmapper='reporter::classic_current_billing_summary' controller='open-ils.reporter-store' id='rccbs'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rccbs.id.label;' name='id' reporter:datatype='id' />
+
+ <field reporter:label='&field.rccbs.billing_location_shortname.label;' name='billing_location_shortname' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.billing_location_name.label;' name='billing_location_name' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.billing_location.label;' name='billing_location' reporter:datatype='org_unit' />
+
+ <field reporter:label='&field.rccbs.usr_home_ou_shortname.label;' name='usr_home_ou_shortname' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.usr_home_ou_name.label;' name='usr_home_ou_name' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.usr_home_ou.label;' name='usr_home_ou' reporter:datatype='org_unit' />
+
+ <field reporter:label='&field.rccbs.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.usr.label;' name='usr' reporter:datatype='link' />
+
+ <field reporter:label='&field.rccbs.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rccbs.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rccbs.xact_type.label;' name='xact_type' reporter:datatype='text' />
+
+ <field reporter:label='&field.rccbs.total_paid.label;' name='total_paid' reporter:datatype='money' />
+ <field reporter:label='&field.rccbs.total_owed.label;' name='total_owed' reporter:datatype='money' />
+
+ <field reporter:label='&field.rccbs.last_payment_ts.label;' name='last_payment_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rccbs.last_payment_note.label;' name='last_payment_note' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.last_payment_type.label;' name='last_payment_type' reporter:datatype='text' />
+
+ <field reporter:label='&field.rccbs.last_billing_ts.label;' name='last_billing_ts' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rccbs.last_billing_note.label;' name='last_billing_note' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.last_billing_type.label;' name='last_billing_type' reporter:datatype='text' />
+
+ <field reporter:label='&field.rccbs.demographic_general_division.label;' name='demographic_general_division' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.patron_county.label;' name='patron_county' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.patron_city.label;' name='patron_city' reporter:datatype='text' />
+ <field reporter:label='&field.rccbs.patron_zip.label;' name='patron_zip' reporter:datatype='text' />
+
+ <field reporter:label='&field.rccbs.balance_owed.label;' name='balance_owed' reporter:datatype='money' />
+ <field reporter:label='&field.rccbs.profile_group.label;' name='profile_group' reporter:datatype='text' />
+
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='mbt' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='billing_location' reltype='has_a' class='aou' key='id' map='' />
+ <link field='usr_home_ou' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='acq::claim_ready_lineitem_detail' reporter:label='&class.acrlid.label;' controller='open-ils.cstore' id='acrlid' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+
+ SELECT
+ po.ordering_agency AS ordering_agency,
+ po.id AS purchase_order,
+ li.id AS lineitem,
+ lid.id AS lineitem_detail,
+ cpa.id AS claim_policy_action
+ FROM
+ acq.lineitem_detail lid
+ JOIN acq.lineitem li ON (li.id = lid.lineitem)
+ JOIN acq.purchase_order po ON (po.id = li.purchase_order)
+ JOIN acq.claim_policy cp ON (li.claim_policy = cp.id)
+ JOIN acq.claim_policy_action cpa ON (
+ cpa.claim_policy = cp.id
+
+ -- we only care about claim policy actions whose claim
+ -- interval we'd reached or exceeded
+ AND (NOW() - cpa.action_interval) > po.order_date
+
+ -- filter out all claim policy actions where claim events
+ -- have occurred on or after the action's action_interval
+ AND NOT EXISTS (
+ SELECT 1
+ FROM
+ acq.claim_event evt
+ JOIN acq.claim claim ON (
+ claim.id = evt.claim
+ AND claim.lineitem_detail = lid.id
+ )
+ WHERE
+ evt.event_date >= (po.order_date + cpa.action_interval)
+ )
+ )
+ WHERE
+ lid.cancel_reason IS NULL
+ AND li.cancel_reason IS NULL -- belt/suspenders
+ AND po.cancel_reason IS NULL -- belt/suspenders
+ AND lid.recv_time IS NULL
+ AND po.state = 'on-order'
+ ORDER BY 1, 2, 3, 4, 5
+
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label='&field.acrlid.ordering_agency.label;' name='ordering_agency' reporter:datatype='link' />
+ <field reporter:label='&field.acrlid.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acrlid.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acrlid.lineitem_detail.label;' name='lineitem_detail' reporter:datatype='link' />
+ <field reporter:label='&field.acrlid.claim_policy_action.label;' name='claim_policy_action' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='ordering_agency' reltype='has_a' class='aou' key='id' map='' />
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ <link field='lineitem_detail' reltype='has_a' class='acqlid' key='id' map='' />
+ <link field='claim_policy_action' reltype='has_a' class='acqclpa' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.acqlisum.label;' oils_persist:tablename='acq.lineitem_summary' oils_obj:fieldmapper='acq::lineitem_summary' controller='open-ils.cstore' id='acqlisum' oils_persist:readonly='true'>
+ <fields oils_persist:sequence='acq.lineitem_id_seq' oils_persist:primary='lineitem'>
+ <field reporter:label='&field.acqlisum.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqlisum.item_count.label;' name='item_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisum.recv_count.label;' name='recv_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisum.cancel_count.label;' name='cancel_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisum.delay_count.label;' name='delay_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisum.invoice_count.label;' name='invoice_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisum.claim_count.label;' name='claim_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisum.estimated_amount.label;' name='estimated_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqlisum.encumbrance_amount.label;' name='encumbrance_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqlisum.paid_amount.label;' name='paid_amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='acq::lineitem_summary_invoiceable' reporter:label='&class.acqlisumi.label;' controller='open-ils.cstore' id='acqlisumi' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT * FROM acq.lineitem_summary
+ WHERE item_count > (invoice_count + cancel_count)
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='acq.lineitem_id_seq' oils_persist:primary='lineitem'>
+ <field reporter:label='&field.acqlisumi.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqlisumi.item_count.label;' name='item_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisumi.recv_count.label;' name='recv_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisumi.cancel_count.label;' name='cancel_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisumi.delay_count.label;' name='delay_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisumi.invoice_count.label;' name='invoice_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisumi.claim_count.label;' name='claim_count' reporter:datatype='int' />
+ <field reporter:label='&field.acqlisumi.estimated_amount.label;' name='estimated_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqlisumi.encumbrance_amount.label;' name='encumbrance_amount' reporter:datatype='money' />
+ <field reporter:label='&field.acqlisumi.paid_amount.label;' name='paid_amount' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ </links>
+ </class>
+ <class reporter:label='&class.iatc.label;' reporter:core='true' oils_obj:fieldmapper='action::intersystem_transit_copy' controller='open-ils.reporter-store' id='iatc' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+
+ SELECT t.*
+ FROM action.transit_copy t
+ JOIN actor.org_unit AS s ON (t.source = s.id)
+ JOIN actor.org_unit AS d ON (t.dest = d.id)
+ WHERE s.parent_ou <> d.parent_ou
+
+ </oils_persist:source_definition>
+ <fields oils_persist:sequence='action.transit_copy_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.iatc.copy_status.label;' name='copy_status' reporter:datatype='link' />
+ <field reporter:label='&field.iatc.dest.label;' name='dest' reporter:datatype='link' />
+ <field reporter:label='&field.iatc.dest_recv_time.label;' name='dest_recv_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.iatc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.iatc.persistant_transfer.label;' name='persistant_transfer' reporter:datatype='bool' />
+ <field reporter:label='&field.iatc.prev_hop.label;' name='prev_hop' reporter:datatype='link' />
+ <field reporter:label='&field.iatc.source.label;' name='source' reporter:datatype='link' />
+ <field reporter:label='&field.iatc.source_send_time.label;' name='source_send_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.iatc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.iatc.hold_transit_copy.label;' name='hold_transit_copy' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.iatc.cancel_time.label;' name='cancel_time' reporter:datatype='timestamp' />
+ </fields>
+ <links>
+ <link field='hold_transit_copy' reltype='might_have' class='ahtc' key='id' map='' />
+ <link field='source' reltype='has_a' class='aou' key='id' map='' />
+ <link field='copy_status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='dest' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='prev_hop' reltype='has_a' class='atc' key='id' map='' />
+ </links>
+ </class>
+
+ <class oils_obj:fieldmapper='action::circ_counts_by_year' controller='open-ils.cstore open-ils.pcrud' id='circbyyr' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+
+ SELECT copy, SUM(count) AS count, year, is_renewal FROM (
+ SELECT
+ cp.id as copy,
+ COUNT(circ.id),
+ EXTRACT(YEAR FROM circ.xact_start) AS year,
+ (phone_renewal OR desk_renewal OR opac_renewal) as is_renewal
+ FROM
+ asset.copy cp
+ JOIN action.circulation circ ON (cp.id = circ.target_copy)
+ GROUP BY 1, 3, 4
+ UNION ALL
+ SELECT
+ cp.id as copy,
+ COUNT(circ.id),
+ EXTRACT(YEAR FROM circ.xact_start) AS year,
+ (phone_renewal OR desk_renewal OR opac_renewal) as is_renewal
+ FROM
+ asset.copy cp
+ JOIN action.aged_circulation circ ON (cp.id = circ.target_copy)
+ GROUP BY 1, 3, 4
+ UNION ALL
+ SELECT
+ id as copy,
+ circ_count,
+ -1 AS year,
+ false as is_renewal
+ FROM
+ extend_reporter.legacy_circ_count
+ )x GROUP BY 1, 3, 4
+
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label='&field.circbyyr.copy.label;' name='copy' reporter:datatype='link' />
+ <field reporter:label='&field.circbyyr.count.label;' name='count' reporter:datatype='int' />
+ <field reporter:label='&field.circbyyr.year.label;' name='year' reporter:datatype='int' />
+ <field reporter:label='&field.circbyyr.is_renewal.label;' name='is_renewal' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='copy' reltype='has_a' class='acp' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class reporter:label='&class.rodcirc.label;' oils_persist:tablename='reporter.overdue_circs' reporter:core='true' oils_obj:fieldmapper='reporter::overdue_circs' controller='open-ils.reporter-store' id='rodcirc'>
+ <fields oils_persist:sequence='money.billable_xact_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.rodcirc.checkin_lib.label;' name='checkin_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rodcirc.checkin_staff.label;' name='checkin_staff' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.checkin_time.label;' name='checkin_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rodcirc.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rodcirc.circ_staff.label;' name='circ_staff' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.desk_renewal.label;' name='desk_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.rodcirc.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rodcirc.duration.label;' name='duration' reporter:datatype='interval' />
+ <field reporter:label='&field.rodcirc.duration_rule.label;' name='duration_rule' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.fine_interval.label;' name='fine_interval' reporter:datatype='interval' />
+ <field reporter:label='&field.rodcirc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rodcirc.max_fine.label;' name='max_fine' reporter:datatype='money' />
+ <field reporter:label='&field.rodcirc.max_fine_rule.label;' name='max_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.opac_renewal.label;' name='opac_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.rodcirc.phone_renewal.label;' name='phone_renewal' reporter:datatype='bool' />
+ <field reporter:label='&field.rodcirc.recurring_fine.label;' name='recurring_fine' reporter:datatype='money' />
+ <field reporter:label='&field.rodcirc.recurring_fine_rule.label;' name='recurring_fine_rule' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.renewal_remaining.label;' name='renewal_remaining' reporter:datatype='int' />
+ <field reporter:label='&field.rodcirc.stop_fines.label;' name='stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.rodcirc.stop_fines_time.label;' name='stop_fines_time' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rodcirc.target_copy.label;' name='target_copy' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.usr.label;' name='usr' reporter:datatype='link' />
+ <field reporter:label='&field.rodcirc.xact_finish.label;' name='xact_finish' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rodcirc.xact_start.label;' name='xact_start' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rodcirc.billings.label;' name='billings' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.rodcirc.payments.label;' name='payments' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.rodcirc.billable_transaction.label;' name='billable_transaction' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.rodcirc.circ_type.label;' name='circ_type' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.rodcirc.billing_total.label;' name='billing_total' reporter:datatype='link' oils_persist:virtual='true' />
+ <field reporter:label='&field.rodcirc.payment_total.label;' name='payment_total' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='billable_transaction' reltype='might_have' class='mbt' key='id' map='' />
+ <link field='circ_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='checkin_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='target_copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='checkin_staff' reltype='has_a' class='au' key='id' map='' />
+ <link field='usr' reltype='has_a' class='au' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='payments' reltype='has_many' class='mp' key='xact' map='' />
+ <link field='billings' reltype='has_many' class='mb' key='xact' map='' />
+ <link field='duration_rule' reltype='has_a' class='crcd' key='name' map='' />
+ <link field='max_fine_rule' reltype='has_a' class='crmf' key='name' map='' />
+ <link field='recurring_fine_rule' reltype='has_a' class='crrf' key='name' map='' />
+ <link field='circ_type' reltype='might_have' class='rcirct' key='id' map='' />
+ <link field='billing_total' reltype='might_have' class='rxbt' key='xact' map='' />
+ <link field='payment_total' reltype='might_have' class='rxpt' key='xact' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rocit.label;' oils_persist:tablename='reporter.classic_item_list' reporter:core='true' oils_obj:fieldmapper='reporter::classic_item_list' controller='open-ils.reporter-store' id='rocit'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rocit.title.label;' name='title' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.author.label;' name='author' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.pubdate.label;' name='pubdate' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.rocit.price.label;' name='price' reporter:datatype='money' />
+ <field reporter:label='&field.rocit.barcode.label;' name='barcode' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.call_number_label.label;' name='call_number_label' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.dewey_block_tens.label;' name='dewey_block_tens' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.dewey_block_hundreds.label;' name='dewey_block_hundreds' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.use_count.label;' name='use_count' reporter:datatype='int' />
+ <field reporter:label='&field.rocit.circ_modifier.label;' name='circ_modifier' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.shelving_location.label;' name='shelving_location' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.stat_cat_1.label;' name='stat_cat_1' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.stat_cat_2.label;' name='stat_cat_2' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.stat_cat_1_value.label;' name='stat_cat_1_value' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.stat_cat_2_value.label;' name='stat_cat_2_value' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.edit_date.label;' name='edit_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rocit.create_date.label;' name='create_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rocit.owning_lib_name.label;' name='owning_lib_name' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.circ_lib_name.label;' name='circ_lib_name' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.owning_lib.label;' name='owning_lib' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.circ_lib.label;' name='circ_lib' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.creator.label;' name='creator' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.age_protect.label;' name='age_protect' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.opac_visible.label;' name='opac_visible' reporter:datatype='bool' />
+ <field reporter:label='&field.rocit.ref.label;' name='ref' reporter:datatype='bool' />
+ <field reporter:label='&field.rocit.deposit_amount.label;' name='deposit_amount' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.deleted.label;' name='deleted' reporter:datatype='bool' />
+ <field reporter:label='&field.rocit.tcn_value.label;' name='tcn_value' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.status.label;' name='status' reporter:datatype='link' />
+ <field reporter:label='&field.rocit.stop_fines.label;' name='stop_fines' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.due_date.label;' name='due_date' reporter:datatype='timestamp' />
+ <field reporter:label='&field.rocit.patron_barcode.label;' name='patron_barcode' reporter:datatype='text' />
+ <field reporter:label='&field.rocit.patron_name.label;' name='patron_name' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='id' reltype='has_a' class='acp' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='creator' reltype='has_a' class='au' key='id' map='' />
+ <link field='age_protect' reltype='has_a' class='crahp' key='id' map='' />
+ <link field='status' reltype='has_a' class='ccs' key='id' map='' />
+ <link field='stat_cat_1' reltype='might_have' class='rsce1' key='id' map='' />
+ <link field='stat_cat_2' reltype='might_have' class='rsce2' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rmocbbol.label;' oils_persist:tablename='money.open_circ_balance_by_owning_lib' reporter:core='true' oils_obj:fieldmapper='reporter::money::open_circ_balance_by_owning_lib' controller='open-ils.reporter-store' id='rmocbbol'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rmocbbol.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.rmocbbol.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmocbbol.billing_type.label;' name='billing_type' reporter:datatype='text' />
+ <field reporter:label='&field.rmocbbol.billed.label;' name='billed' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='circ' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rmobbol.label;' oils_persist:tablename='money.open_balance_by_owning_lib' reporter:core='true' oils_obj:fieldmapper='reporter::money::open_balance_by_owning_lib' controller='open-ils.reporter-store' id='rmobbol'>
+ <fields oils_persist:primary='owning_lib'>
+ <field reporter:label='&field.rmobbol.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmobbol.billing_types.label;' name='billing_types' reporter:datatype='text' />
+ <field reporter:label='&field.rmobbol.balance.label;' name='balance' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rmocbbcol.label;' oils_persist:tablename='money.open_circ_balance_by_circ_and_owning_lib' reporter:core='true' oils_obj:fieldmapper='reporter::money::open_circ_balance_by_circ_and_owning_lib' controller='open-ils.reporter-store' id='rmocbbcol'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rmocbbcol.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.rmocbbcol.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmocbbcol.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmocbbcol.billing_type.label;' name='billing_type' reporter:datatype='text' />
+ <field reporter:label='&field.rmocbbcol.billed.label;' name='billed' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='circ' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rmobbcol.label;' oils_persist:tablename='money.open_balance_by_circ_and_owning_lib' reporter:core='true' oils_obj:fieldmapper='reporter::money::open_balance_by_circ_and_owning_lib' controller='open-ils.reporter-store' id='rmobbcol'>
+ <fields oils_persist:primary='circ_lib'>
+ <field reporter:label='&field.rmobbcol.circ_lib.label;' name='circ_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmobbcol.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmobbcol.billing_types.label;' name='billing_types' reporter:datatype='text' />
+ <field reporter:label='&field.rmobbcol.balance.label;' name='balance' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='circ_lib' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rmocbbhol.label;' oils_persist:tablename='money.open_circ_balance_by_usr_home_and_owning_lib' reporter:core='true' oils_obj:fieldmapper='reporter::money::open_circ_balance_by_usr_home_and_owning_lib' controller='open-ils.reporter-store' id='rmocbbhol'>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.rmocbbhol.id.label;' name='id' reporter:datatype='link' />
+ <field reporter:label='&field.rmocbbhol.home_ou.label;' name='home_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmocbbhol.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmocbbhol.billing_type.label;' name='billing_type' reporter:datatype='text' />
+ <field reporter:label='&field.rmocbbhol.billed.label;' name='billed' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='id' reltype='has_a' class='circ' key='id' map='' />
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='home_ou' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+
+ <class reporter:label='&class.rmobbhol.label;' oils_persist:tablename='money.open_balance_by_usr_home_and_owning_lib' reporter:core='true' oils_obj:fieldmapper='reporter::money::open_balance_by_usr_home_and_owning_lib' controller='open-ils.reporter-store' id='rmobbhol'>
+ <fields oils_persist:primary='home_ou'>
+ <field reporter:label='&field.rmobbhol.home_ou.label;' name='home_ou' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmobbhol.owning_lib.label;' name='owning_lib' reporter:datatype='org_unit' />
+ <field reporter:label='&field.rmobbhol.billing_types.label;' name='billing_types' reporter:datatype='text' />
+ <field reporter:label='&field.rmobbhol.balance.label;' name='balance' reporter:datatype='money' />
+ </fields>
+ <links>
+ <link field='owning_lib' reltype='has_a' class='aou' key='id' map='' />
+ <link field='home_ou' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='acq::fund_tag' reporter:label='&class.acqft.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fund_tag' id='acqft'>
+ <fields oils_persist:sequence='acq.fund_tag_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqft.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqft.owner.label;' name='owner' reporter:datatype='org_unit' />
+ <field reporter:label='&field.acqft.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.acqft.map_entries.label;' name='map_entries' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ <link field='map_entries' reltype='has_many' class='acqftm' key='fund' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_ACQ_FUND_TAG'></create>
+ <retrieve context_field='owner' permission='ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'></retrieve>
+ <update context_field='owner' permission='ADMIN_ACQ_FUND_TAG'></update>
+ <delete context_field='owner' permission='ADMIN_ACQ_FUND_TAG'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::fund_tag_map' reporter:label='&class.acqftm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='acq.fund_tag_map' id='acqftm'>
+ <fields oils_persist:sequence='acq.fund_tag_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acqftm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acqftm.fund.label;' name='fund' reporter:datatype='link' />
+ <field reporter:label='&field.acqftm.tag.label;' name='tag' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='fund' reltype='has_a' class='acqf' key='id' map='' />
+ <link field='tag' reltype='has_a' class='acqft' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='ADMIN_ACQ_FUND_TAG'>
+ <context field='owner' link='tag'></context>
+ </create>
+ <retrieve permission='ADMIN_ACQ_FUND_TAG ADMIN_ACQ_FUND VIEW_FUND MANAGE_FUND'>
+ <context field='owner' link='tag'></context>
+ </retrieve>
+ <update permission='ADMIN_ACQ_FUND_TAG'>
+ <context field='owner' link='tag'></context>
+ </update>
+ <delete permission='ADMIN_ACQ_FUND_TAG'>
+ <context field='owner' link='tag'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='acq::map_to_invoice' reporter:label='&class.acqmapinv.label;' controller='open-ils.cstore' id='acqmapinv' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT
+ poi.purchase_order AS purchase_order,
+ ii.invoice AS invoice,
+ NULL AS lineitem,
+ poi.id AS po_item,
+ NULL AS picklist
+ FROM
+ acq.po_item poi
+ JOIN acq.invoice_item ii ON (ii.po_item = poi.id)
+ UNION SELECT
+ jub.purchase_order AS purchase_order,
+ ie.invoice AS invoice,
+ jub.id AS lineitem,
+ NULL AS po_item,
+ jub.picklist AS picklist
+ FROM
+ acq.lineitem jub
+ JOIN acq.invoice_entry ie ON (ie.lineitem = jub.id)
+ UNION SELECT
+ ii.purchase_order AS purchase_order,
+ ii.invoice AS invoice,
+ NULL AS lineitem,
+ NULL AS po_item,
+ NULL AS picklist
+ FROM
+ acq.invoice_item ii
+ WHERE ii.po_item IS NULL
+ UNION SELECT
+ ie.purchase_order AS purchase_order,
+ ie.invoice AS invoice,
+ NULL AS lineitem,
+ NULL AS po_item,
+ NULL AS picklist
+ FROM
+ acq.invoice_entry ie
+ WHERE ie.lineitem IS NULL
+ UNION SELECT
+ NULL AS purchase_order,
+ NULL AS invoice,
+ jub.id AS lineitem,
+ NULL AS po_item,
+ jub.picklist AS picklist
+ FROM
+ acq.lineitem jub
+ WHERE jub.purchase_order IS NULL
+ </oils_persist:source_definition>
+ <fields>
+ <field reporter:label='&field.acqmapinv.purchase_order.label;' name='purchase_order' reporter:datatype='link' />
+ <field reporter:label='&field.acqmapinv.lineitem.label;' name='lineitem' reporter:datatype='link' />
+ <field reporter:label='&field.acqmapinv.invoice.label;' name='invoice' reporter:datatype='link' />
+ <field reporter:label='&field.acqmapinv.po_item.label;' name='po_item' reporter:datatype='link' />
+ <field reporter:label='&field.acqmapinv.picklist.label;' name='picklist' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='purchase_order' reltype='has_a' class='acqpo' key='id' map='' />
+ <link field='lineitem' reltype='has_a' class='jub' key='id' map='' />
+ <link field='invoice' reltype='has_a' class='acqinv' key='id' map='' />
+ <link field='po_item' reltype='has_a' class='acqpoi' key='id' map='' />
+ <link field='picklist' reltype='has_a' class='acqpl' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='config::barcode_completion' reporter:label='&class.cbc.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.barcode_completion' id='cbc'>
+ <fields oils_persist:sequence='config.barcode_completion_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cbc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cbc.active.label;' name='active' reporter:datatype='bool' />
+ <field reporter:label='&field.cbc.org_unit.label;' name='org_unit' reporter:datatype='org_unit' />
+ <field reporter:label='&field.cbc.prefix.label;' name='prefix' reporter:datatype='text' />
+ <field reporter:label='&field.cbc.suffix.label;' name='suffix' reporter:datatype='text' />
+ <field reporter:label='&field.cbc.length.label;' name='length' reporter:datatype='int' />
+ <field reporter:label='&field.cbc.padding.label;' name='padding' reporter:datatype='text' />
+ <field reporter:label='&field.cbc.padding_end.label;' name='padding_end' reporter:datatype='bool' />
+ <field reporter:label='&field.cbc.asset.label;' name='asset' reporter:datatype='bool' />
+ <field reporter:label='&field.cbc.actor.label;' name='actor' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='org_unit' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org_unit' permission='UPDATE_ORG_UNIT_SETTING_ALL'></create>
+ <retrieve></retrieve>
+ <update context_field='org_unit' permission='UPDATE_ORG_UNIT_SETTING_ALL'></update>
+ <delete context_field='org_unit' permission='UPDATE_ORG_UNIT_SETTING_ALL'></delete>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class oils_obj:fieldmapper='config::org_unit_setting_type_log' reporter:label='&class.coustl.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.org_unit_setting_type_log' id='coustl'>
+ <fields oils_persist:sequence='config.org_unit_setting_type_log_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.coustl.id.label;' name='id' reporter:datatype='id' />
+ <field name='date_applied' reporter:datatype='timestamp' />
+ <field name='org' reporter:datatype='org_unit' />
+ <field name='original_value' reporter:datatype='text' />
+ <field name='new_value' reporter:datatype='text' />
+ <field name='field_name' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='field_name' reltype='has_a' class='coust' key='name' map='' />
+ <link field='org' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='org' permission='ADMIN_ORG_UNIT_SETTING_TYPE'></create>
+ <retrieve context_field='org' permission='STAFF_LOGIN'></retrieve>
+ <update context_field='org' permission='ADMIN_ORG_UNIT_SETTING_TYPE_LOG'></update>
+ <delete context_field='org' permission='ADMIN_ORG_UNIT_SETTING_TYPE_LOG'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::archive_actor_stat_cat' reporter:label='&class.aaactsc.label;' controller='open-ils.reporter-store' oils_persist:tablename='action.archive_actor_stat_cat' id='aaactsc'>
+ <fields oils_persist:sequence='action.archive_actor_stat_cat_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aaactsc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aaactsc.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.aaactsc.stat_cat.label;' name='stat_cat' reporter:datatype='link' />
+ <field reporter:label='&field.aaactsc.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='xact' reltype='has_a' class='combcirc' key='id' map='' />
+ <link field='stat_cat' reltype='has_a' class='actsc' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='action::archive_asset_stat_cat' reporter:label='&class.aaasc.label;' controller='open-ils.reporter-store' oils_persist:tablename='action.archive_asset_stat_cat' id='aaasc'>
+ <fields oils_persist:sequence='action.archive_actor_stat_cat_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.aaasc.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.aaasc.xact.label;' name='xact' reporter:datatype='link' />
+ <field reporter:label='&field.aaasc.stat_cat.label;' name='stat_cat' reporter:datatype='link' />
+ <field reporter:label='&field.aaasc.value.label;' name='value' reporter:datatype='text' />
+ </fields>
+ <links>
+ <link field='xact' reltype='has_a' class='combcirc' key='id' map='' />
+ <link field='stat_cat' reltype='has_a' class='asc' key='id' map='' />
+ </links>
+ </class>
+ <class oils_obj:fieldmapper='config::floating_group' reporter:label='&class.cfg.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.floating_group' id='cfg'>
+ <fields oils_persist:sequence='config.floating_group_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cfg.id.label;' name='id' reporter:datatype='id' reporter:selector='name' />
+ <field reporter:label='&field.cfg.name.label;' name='name' reporter:datatype='text' />
+ <field reporter:label='&field.cfg.manual.label;' name='manual' reporter:datatype='bool' />
+ <field reporter:label='&field.cfg.members.label;' name='members' reporter:datatype='link' oils_persist:virtual='true' />
+ </fields>
+ <links>
+ <link field='members' reltype='has_many' class='cfgm' key='floating_group' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_FLOAT_GROUPS'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_FLOAT_GROUPS'></update>
+ <delete global_required='true' permission='ADMIN_FLOAT_GROUPS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='config::floating_group_member' reporter:label='&class.cfgm.label;' controller='open-ils.cstore open-ils.pcrud' oils_persist:tablename='config.floating_group_member' id='cfgm'>
+ <fields oils_persist:sequence='config.floating_group_member_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.cfgm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.cfgm.floating_group.label;' name='floating_group' reporter:datatype='link' />
+ <field reporter:label='&field.cfgm.org_unit.label;' name='org_unit' reporter:datatype='link' />
+ <field reporter:label='&field.cfgm.stop_depth.label;' name='stop_depth' reporter:datatype='int' />
+ <field reporter:label='&field.cfgm.max_depth.label;' name='max_depth' reporter:datatype='int' />
+ <field reporter:label='&field.cfgm.exclude.label;' name='exclude' reporter:datatype='bool' />
+ </fields>
+ <links>
+ <link field='floating_group' reltype='has_a' class='cfg' key='id' />
+ <link field='org_unit' reltype='has_a' class='aou' key='id' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create global_required='true' permission='ADMIN_FLOAT_GROUPS'></create>
+ <retrieve></retrieve>
+ <update global_required='true' permission='ADMIN_FLOAT_GROUPS'></update>
+ <delete global_required='true' permission='ADMIN_FLOAT_GROUPS'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.cctt.label;' oils_persist:tablename='config.copy_tag_type' oils_obj:fieldmapper='config::copy_tag_type' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='cctt'>
+ <fields oils_persist:primary='code'>
+ <field reporter:label='&field.cctt.code.label;' oils_obj:required='true' name='code' reporter:datatype='id' reporter:selector='label' />
+ <field reporter:label='&field.cctt.label.label;' name='label' reporter:datatype='text' oils_obj:required='true' />
+ <field reporter:label='&field.cctt.owner.label;' name='owner' reporter:datatype='org_unit' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_COPY_TAG_TYPES'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_COPY_TAG_TYPES'></update>
+ <delete context_field='owner' permission='ADMIN_COPY_TAG_TYPES'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.acpt.label;' oils_persist:tablename='asset.copy_tag' oils_obj:fieldmapper='asset::copy_tag' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acpt'>
+ <fields oils_persist:sequence='asset.copy_tag_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acpt.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acpt.tag_type.label;' name='tag_type' reporter:datatype='link' />
+ <field reporter:label='&field.acpt.label.label;' name='label' reporter:datatype='text' />
+ <field reporter:label='&field.acpt.value.label;' name='value' reporter:datatype='text' />
+ <field reporter:label='&field.acpt.staff_note.label;' name='staff_note' reporter:datatype='text' />
+ <field reporter:label='&field.acpt.pub.label;' name='pub' reporter:datatype='bool' />
+ <field reporter:label='&field.acpt.owner.label;' name='owner' reporter:datatype='org_unit' oils_obj:required='true' />
+ </fields>
+ <links>
+ <link field='tag_type' reltype='has_a' class='cctt' key='code' map='' />
+ <link field='owner' reltype='has_a' class='aou' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create context_field='owner' permission='ADMIN_COPY_TAG'></create>
+ <retrieve></retrieve>
+ <update context_field='owner' permission='ADMIN_COPY_TAG'></update>
+ <delete context_field='owner' permission='ADMIN_COPY_TAG'></delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class reporter:label='&class.acptcm.label;' oils_persist:tablename='asset.copy_tag_copy_map' oils_obj:fieldmapper='asset::copy_tag_copy_map' controller='open-ils.cstore open-ils.pcrud' oils_persist:field_safe='true' id='acptcm'>
+ <fields oils_persist:sequence='asset.copy_tag_copy_map_id_seq' oils_persist:primary='id'>
+ <field reporter:label='&field.acptcm.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.acptcm.copy.label;' name='copy' reporter:datatype='link' />
+ <field reporter:label='&field.acptcm.tag.label;' name='tag' reporter:datatype='link' />
+ </fields>
+ <links>
+ <link field='copy' reltype='has_a' class='acp' key='id' map='' />
+ <link field='tag' reltype='has_a' class='acpt' key='id' map='' />
+ </links>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <create permission='UPDATE_COPY'>
+ <context field='circ_lib' link='copy'></context>
+ </create>
+ <retrieve></retrieve>
+ <update permission='UPDATE_COPY'>
+ <context field='circ_lib' link='copy'></context>
+ </update>
+ <delete permission='UPDATE_COPY'>
+ <context field='circ_lib' link='copy'></context>
+ </delete>
+ </actions>
+ </permacrud>
+ </class>
+ <class oils_obj:fieldmapper='action::has_holds_count' reporter:label='&class.hasholdscount.label;' controller='open-ils.cstore open-ils.pcrud' id='hasholdscount' oils_persist:readonly='true'>
+ <oils_persist:source_definition>
+ SELECT ahcm.target_copy AS id,count(*) AS count
+ FROM
+ action.hold_request ahr,
+ action.hold_copy_map ahcm
+ WHERE
+ ahr.cancel_time IS NULL AND
+ ahr.fulfillment_time IS NULL AND
+ ahr.capture_time IS NULL AND
+ ahr.id = ahcm.hold
+ GROUP BY ahcm.target_copy
+ </oils_persist:source_definition>
+ <fields oils_persist:primary='id'>
+ <field reporter:label='&field.hasholdscount.id.label;' name='id' reporter:datatype='id' />
+ <field reporter:label='&field.hasholdscount.count.label;' name='count' reporter:datatype='text' />
+ </fields>
+ <permacrud xmlns='http://open-ils.org/spec/opensrf/IDL/permacrud/v1'>
+ <actions>
+ <retrieve></retrieve>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rds" controller="open-ils.pcrud"
+ oils_obj:fieldmapper="rbdigital::digital_services"
+ oils_persist:tablename="rbdigital.digital_services"
+ reporter:label="RBDigital Digital Services">
+ <fields oils_persist:sequence="rbdigital.digital_services_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label='Name' name="name" reporter:datatype="text" />
+ <field reporter:label='Is Enabled' name="is_enabled" reporter:datatype="bool" />
+ <field reporter:label='Search URI' name="search_uri" reporter:datatype="text" />
+ <field reporter:label='Vendor Key' name="vendor_key" reporter:datatype="text" />
+ <field reporter:label='Display Order' name="display_order" reporter:datatype="id" />
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rl" controller="open-ils.cstore open-ils.pcrud"
+ oils_obj:fieldmapper="rbdigital::library"
+ oils_persist:tablename="rbdigital.library"
+ reporter:label="RBDigital Library">
+ <fields oils_persist:sequence="rbdigital.library_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label="Home Library Name" name="home_library_name" reporter:datatype="text" />
+ <field reporter:label="Home Library Parent Name" name="home_library_parent_name" reporter:datatype="text" />
+ <field reporter:label="Home Library URL" name="home_library_url" reporter:datatype="text" />
+ <field reporter:label="Created Timestamp" name="created_timestamp" reporter:datatype="timestamp" />
+ <field reporter:label="Updated Timestamp" name="updated_timestamp" reporter:datatype="timestamp" />
+ </fields>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rdsa" controller="open-ils.pcrud"
+ oils_persist:tablename="rbdigital.digital_services_authorized"
+ oils_obj:fieldmapper="rbdigital::digital_services_authorized"
+ reporter:label="RBDigital Digital Services Authorized">
+ <fields oils_persist:sequence="rbdigital.digital_services_authorized_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label="Library Id" name="library_id" reporter:datatype="link" />
+ <field reporter:label="DS Id" name="digital_services_id" reporter:datatype="link" />
+ <field reporter:label="DS Library Id" name="digital_services_library_id" reporter:datatype="id" />
+ <field reporter:label="DS Library Token" name="digital_services_library_token" reporter:datatype="text" />
+ <field reporter:label="DS Library URL" name="digital_services_library_url" reporter:datatype="text" />
+ <field reporter:label="DS Name" name="digital_services_name" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="digital_services_id" reltype="has_a" class="ebook_rds" key="id" map="" />
+ <link field="id" reltype="has_a" class="ebook_rl" key="id" map="" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+
+ <class id="ebook_rsf" controller="open-ils.pcrud open-ils.cstore"
+ oils_obj:fieldmapper="rbdigital::search_fields"
+ oils_persist:tablename="rbdigital.search_fields"
+ reporter:label="RBDigital Search Fields">
+ <fields oils_persist:sequence="rbdigital.search_fields_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label='Digital Services ID' name="digital_services_id" reporter:datatype="link" />
+ <field reporter:label='Evergreen Field Name' name="evergreen_field" reporter:datatype="text" />
+ <field reporter:label='Digital Services Field Name' name="digital_services_field" reporter:datatype="text" />
+ <field reporter:label='Field Type' name="field_type" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="digital_services_id" reltype="has_a" class="ebook_rds" key="id" map="" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+ <class id="ebook_rsfm" controller="open-ils.pcrud open-ils.cstore"
+ oils_obj:fieldmapper="rbdigital::search_field_mappings"
+ oils_persist:tablename="rbdigital.search_field_mappings"
+ reporter:label="RBDigital Search Field Mappings">
+ <fields oils_persist:sequence="rbdigital.search_field_mappings_id_seq" oils_persist:primary="id">
+ <field reporter:label="Id" name="id" reporter:datatype="id" />
+ <field reporter:label='Search Fields ID' name="search_fields_id" reporter:datatype="link" />
+ <field reporter:label='Evergreen Field Code' name="evergreen_field_code" reporter:datatype="text" />
+ <field reporter:label='Evergreen Field Value' name="evergreen_field_value" reporter:datatype="text" />
+ <field reporter:label='Digital Services Field Code' name="digital_services_field_code" reporter:datatype="text" />
+ <field reporter:label='Digital Services Field Value' name="digital_services_field_value" reporter:datatype="text" />
+ </fields>
+ <links>
+ <link field="search_fields_id" reltype="has_a" class="ebook_rsf" key="id" map="" />
+ </links>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create global_required="true"/>
+ <retrieve/>
+ <update global_required="true"/>
+ <delete global_required="true"/>
+ </actions>
+ </permacrud>
+ </class>
+</IDL>
\ No newline at end of file