[% l('Record Buckets') %]
</a>
</li>
+ <li>
+ <a href="" ng-click="retrieveLastRecord()" target="_self">
+ <span class="glyphicon glyphicon-share-alt"></span>
+ [% l('Retrieve Last Bib Record') %]
+ </a>
+ </li>
</ul>
</li>
hotkeys.add(key, desc, function() { navTo(path) });
};
+ $scope.retrieveLastRecord = function() {
+ var last_record = egCore.hatch.getLocalItem("eg.cat.last_record_retrieved");
+ if (last_record) {
+ var reg = new RegExp($location.path());
+ $window.location.href =
+ $window.location.href + 'cat/catalog/record/' + last_record;
+ }
+ }
+
$scope.applyLocale = function(locale) {
// EGWeb.pm can change the locale for us w/ the right param
// Note: avoid using $location.search() to derive a new